* {
  box-sizing: border-box;
  font-family: "Cormorant Garamond", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, serif;
  margin: 0;
  padding: 0;
}

body {
  background: #538ece4d;
  color: #fff;
}

.container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #000000 80%, #538ece4d 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.memorial-header {
  padding: 3rem 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
  width: 100%;
}

.logo-header {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.main-logo {
  height: 100px;
  object-fit: contain;
  margin: 0 auto;
  opacity: 0.9;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.years {
  font-size: 1.5rem;
  color: #9e9e9e;
  margin: 1rem 0;
  font-style: italic;
}

.memorial-header h1 {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.subtitle {
  font-size: 1.4rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-style: italic;
}

.memory-wall {
  width: 100%;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.community-image {
  width: 100%;
  height: auto;
  max-height: 800px;
  object-fit: cover;
  transition: opacity 0.5s ease;
  filter: grayscale(40%);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3)
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.8) 50%,
    rgba(0, 0, 0, 0.95) 100%
  );
  z-index: 1;
}

.legacy-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
  margin: -120px auto 60px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  max-width: 800px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-item i {
  font-size: 1.5rem;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

.memorial-quote {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 2rem;
}

blockquote {
  font-size: 1.6rem;
  line-height: 1.6;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.memorial-message {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.memorial-message h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: #fff;
}

.memorial-message p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.memorial-candle {
  font-size: 2rem;
  color: #ffd700;
  margin-top: 2rem;
}

.flame {
  animation: flicker 1.5s infinite alternate;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

@keyframes flicker {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(0.95);
  }
}

@media screen and (max-width: 768px) {
  .memorial-header {
    padding: 2rem 1.5rem;
  }

  .main-logo {
    height: 80px;
  }

  .memorial-header h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .legacy-stats {
    flex-direction: column;
    gap: 2rem;
    margin: -80px 1rem 40px;
    padding: 1.5rem;
  }

  .memorial-quote {
    padding: 0 1.5rem;
  }

  blockquote {
    font-size: 1.3rem;
  }

  .memorial-message {
    margin: 0 1rem;
    padding: 1.5rem;
  }

  .memorial-message h2 {
    font-size: 1.8rem;
  }

  .memorial-message p {
    font-size: 1.1rem;
  }

  .community-image {
    max-height: 600px;
  }
}
