/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
body {
  font-family: "Arimo", Helvetica, Arial, Lucida, sans-serif;
  background-image: url("../images/bg_subtle_light_pattern.jpg");
  background-repeat: repeat;
  color: #373737;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header Styles */
header {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-container {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  max-width: 300px;
  height: auto;
}

.dave-header-wrapper {
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  padding: 12px;
  margin-bottom: 2rem;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.dave-header-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Main Content Styles */
.farewell-message {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #40a0b8;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #343399;
}

.message-content {
  text-align: left;
}

p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Image Styles */
.family-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.family-wrapper {
  max-width: 600px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: white;
  padding: 12px;
}

.family-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .farewell-message {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 0.9rem;
  }

  .logo {
    max-width: 250px;
  }

  .dave-header-wrapper {
    max-width: 320px;
    padding: 10px;
  }

  .family-wrapper {
    max-width: 500px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .farewell-message {
    padding: 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  p {
    font-size: 0.85rem;
  }

  .logo {
    max-width: 200px;
  }

  .dave-header-wrapper,
  .family-wrapper {
    padding: 8px;
  }

  .family-container {
    margin-top: 1.5rem;
  }
}
