/* Base styles */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #f1cdcd;
  padding: 1rem;
  min-height: 100vh;
  box-sizing: border-box;
}

.nameplate-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.nameplate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #b86969;
  padding: 1rem;
  border-radius: 10px;
  min-height: 600px;
  border: 1px solid #000;
  flex: 1 1 300px;
  max-width: 500px;
  box-sizing: border-box;
}

.nameplate-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10%;
}

.nameplate-image:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
}

#sorry {
  background-color: #774646;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: 1px solid #000;
  cursor: pointer;
  font-size: 1rem;
  margin: 1rem 0;
}

#sorry:hover {
  background-color: #000;
  color: #fff;
}

.blur-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  cursor: pointer;
  margin: 1rem auto;
}

.blur-container img {
  width: 100%;
  height: auto;
  display: block;
  filter: blur(20px);
  transition: filter 0.4s ease;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: bold;
  text-shadow: 0 0 8px black;
  pointer-events: none;
  transition: opacity 0.4s ease;
  text-align: center;
  padding: 0 1rem;
}

.blur-container.revealed img {
  filter: blur(0);
}

.blur-container.revealed .overlay-text {
  opacity: 0;
}

/* Tablet styles */
@media screen and (max-width: 1024px) {
  .nameplate {
    min-height: 500px;
    flex: 1 1 280px;
  }

  .nameplate-image {
    max-width: 300px;
  }
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  body {
    padding: 0.5rem;
  }

  .nameplate-container {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .nameplate {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 1rem;
  }

  .nameplate-image {
    max-width: 250px;
  }

  .blur-container {
    max-width: 100%;
    margin: 1rem 0;
  }

  #sorry {
    width: 90%;
    max-width: 300px;
  }
}

/* Small mobile styles */
@media screen and (max-width: 480px) {
  .nameplate {
    padding: 0.75rem;
  }

  .nameplate-image {
    max-width: 200px;
  }

  .nameplate h2 {
    font-size: 1.25rem;
  }

  .nameplate-description {
    font-size: 0.9rem;
  }
}
