.home {
  text-align: justify;
  align-items: center;
  padding: 10rem;
}

.home h1 {
  font-size: 4.75rem;
  color: var(--text);
  border-bottom: 4px solid #ffffff44;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.home p {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 3rem;
  margin-bottom: 0.75rem;
}

button {
  font-family: "Space Mono", monospace;
  font-weight: 900;
  font-size: 1.25rem;
  margin-block: 1rem;
  background-color: #ffffff44;
  border: 1px solid #ffffff88;
  border-radius: 8px;
  color: var(--text);
  padding: 0.25rem 1rem;
  cursor: pointer;
  transition: background-color 0.1s ease-in-out;
}

.home button {
  font-size: 1.5rem;
  text-shadow: 0 0 0.5rem var(--font-shadow);
  margin-right: 1rem;
}

.home .audio-btn {
  margin: 0rem;
}

.home .audio-btn.on {
  background-color: #5dff3444;
  border-color: #5dff3488;
}

.home .audio-btn.on:hover {
  background-color: #5dff3488;
}

button:hover {
  background-color: #ffffff88;
}

/* highlight */
span.highlight {
  background-color: #ffffff44;
  padding: 0rem 0.25rem;
  border-radius: 4px;
}

/* audio */
.audio-prompt {
  display: none; /* Hidden by default */
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(0px);
  transition: opacity 1s ease, backdrop-filter 1s ease;
}

.audio-prompt.show {
  display: block; /* Make visible */
  opacity: 1; /* Fade in */
  backdrop-filter: blur(4px); /* Apply blur effect */
}

.audio-prompt.hide {
  opacity: 0; /* Fade out */
  backdrop-filter: blur(0px); /* Remove blur effect */
  transition: opacity 1s ease, backdrop-filter 1s ease;
}

.audio-prompt .card {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%; /* Center the card */
  background-color: #ffffff44;
  backdrop-filter: blur(4px);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  width: auto; /* Let the width adjust based on content */
  max-width: 90%; /* Prevent the card from getting too wide on large screens */
  min-width: 300px; /* Ensure it doesn’t become too narrow */
  animation: slideIn 0.5s forwards;
}

.audio-prompt.hide .card {
  animation: slideOut 0.5s forwards; /* Apply slide-out animation */
}

@keyframes slideIn {
  from {
    transform: translate(-50%, -60%); /* Start slightly above center */
  }
  to {
    transform: translate(-50%, -50%); /* End at center */
  }
}

@keyframes slideOut {
  from {
    transform: translate(-50%, -50%); /* Start at center */
  }
  to {
    transform: translate(-50%, -60%); /* Slide up and out */
  }
}

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

.btn-container {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.yes-btn,
.no-btn {
  border: none;
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: 10px;
}

.yes-btn {
  background-color: #5dff3444;
}

.no-btn {
  background-color: #ff343444;
}

.yes-btn:hover {
  background-color: #5dff3488;
}

.no-btn:hover {
  background-color: #ff343488;
}

@keyframes slideIn {
  0% {
    transform: translateY(-200%);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes slideOut {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(200%);
  }
}

/* responsiveness */
@media screen and (max-width: 600px) {
  .audio-prompt .card {
    padding: 1rem;
  }
}

/* blink */
.home span.blink {
  background-color: white;
  animation: blink step-end 1s infinite;
  margin-left: 0.25rem;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* responsiveness */
@media (max-width: 600px) {
  .home h1 {
    font-size: 3rem;
    text-align: left;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    padding-inline: 0;
  }

  .home p {
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 0rem;
    line-height: 2.25rem;
    padding-inline: 0;
  }

  .home button {
    font-size: 1.5rem;
  }

  .home {
    padding: 3rem;
    text-align: left;
  }
}

@media (width > 850px) {
  .container {
    padding: 12rem;
  }
}
