/* Root styles - freeCodeCamp inspired */
body {
  background: linear-gradient(135deg, #f9fafc 0%, #d1dbe6 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0;
}

#email {
  background: white;
  border: 2px solid #23395d;
  margin-top: 50px;
  padding: 50px;
  width: 500px;
  box-sizing: border-box;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(35, 57, 93, 0.15);
  transition: box-shadow 0.3s;
  position: relative;
  animation: fadeIn 1.2s cubic-bezier(0.33, 0.04, 0.43, 1.19);
}

#email:hover {
  box-shadow: 0 12px 36px 0 rgba(35, 57, 93, 0.23);
}

#confidential,
#top-secret {
  display: inline-block;
  padding: 8px 22px;
  margin-bottom: 18px;
  border: 2px solid #b9182a;
  background: linear-gradient(90deg, #fceabb 0%, #f8b500 100%);
  color: #b9182a;
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: 1.5px;
  border-radius: 6px;
  position: relative;
  box-shadow: 0 2px 8px 0 rgba(185, 24, 42, 0.07);
  user-select: none;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.33, 0.04, 0.43, 1.19),
    box-shadow 0.22s;
}

#confidential {
  transform: rotate(-8deg);
  z-index: 2;
  background: linear-gradient(90deg, #ffd6e0 0%, #fcb69f 100%);
  border-color: #a81d1d;
  color: #a81d1d;
  margin-left: 12px;
  animation: bounceIn 1.1s 0.1s both;
}

#top-secret {
  transform: rotate(6deg);
  z-index: 3;
  animation: bounceIn 1.1s 0.18s both;
  margin-left: 12px;
}

#confidential:focus,
#top-secret:focus {
  outline: 3px solid #23395d;
  outline-offset: 2px;
}

p {
  margin: 18px 0 0 0;
  font-size: 1.13em;
  line-height: 1.7;
  color: #2c3e50;
  letter-spacing: 0.02em;
  padding-left: 10px;
  padding-right: 10px;
  animation: fadeInUp 1.2s cubic-bezier(0.33, 0.04, 0.43, 1.19);
}

.blurred {
  filter: blur(3px);
  background: #f8d7da linear-gradient(90deg, #f8d7da 0%, #fff5f5 100%);
  border-radius: 4px;
  padding: 0 0.25em;
  transition:
    filter 0.3s,
    background 0.3s;
  cursor: pointer;
}

/* Optional: reveal on hover for demo purpose */
.blurred:hover,
.blurred:focus {
  filter: blur(0px);
  background: #f1f8e9;
  color: #2c3e50;
  outline: none;
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(-48px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Responsive for mobile (centered scroll) */
@media (max-width: 600px) {
  #email {
    width: 98vw;
    padding: 18vw 3vw;
    min-width: 0;
  }
}

/* Accessibility and freeCodeCamp style inspiration */
#email:focus-within {
  border-color: #ff9800;
  box-shadow: 0 0 0 4px #ffe0b2;
}

::-webkit-scrollbar {
  width: 9px;
  background: #e3e9f3;
}
::-webkit-scrollbar-thumb {
  background: #b5c6e0;
  border-radius: 6px;
}
