@import url("https://fonts.googleapis.com/css2?family=Bellota+Text:wght@700&display=swap");

:root {
  --text-color: #1b242d;
  --background-color: #1b242d;
  --challenge-box-bg: #fbce5d;
  --challenge-box-outline: #fde6aa;
  --challenge-text-color: white;
}

body {
  font-family: "Bellota Text", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

.container {
  text-align: center;
  background-color: var(--challenge-box-bg);
  border: 4px solid var(--challenge-box-outline);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  max-width: 80%;
  width: 100%;
}

h1,
#guest-name,
#episode-source {
  text-transform: uppercase;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff,
    1px 1px 0 #fff;
}

h1 {
  font-size: 6rem;
  font-weight: 700;
  -webkit-text-stroke: 2px #fff;
  text-shadow: none;
  margin-bottom: 1rem;
  margin-top: 0;
  color: var(--text-color);
  text-transform: uppercase;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#challenge-display {
  margin-bottom: 1rem;
}

#challenge-text {
  font-size: 2rem; /* Starting font size */
  height: 200px; /* Fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
  margin-bottom: 1rem;

  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

#guest-name,
#episode-source {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

#youtube-link {
  display: inline-block;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 700;
}

#youtube-link img {
  max-width: 100px;
  height: auto;
  display: block;
}

#youtube-link:hover,
#reroll-button:hover,
.links-box a:hover {
  transition: all 0.3s ease-in-out;
  transform: scale(1.2);
}

#reroll-button {
  margin: 0 1em;
}

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

  h1 {
    font-size: 3rem;
    -webkit-text-stroke: 1px #fff;
  }

  #challenge-text {
    font-size: 1.5rem;
  }

  #guest-name,
  #episode-source {
    font-size: 1rem;
  }
}

@keyframes sparkle {
  0% {
    text-shadow: 0 0 4px #fff, 0 0 8px #fff, 0 0 12px #fff, 0 0 16px #fff;
  }
  50% {
    text-shadow: 0 0 8px #fff, 0 0 16px #fff, 0 0 24px #fff, 0 0 32px #fff;
  }
  100% {
    text-shadow: 0 0 4px #fff, 0 0 8px #fff, 0 0 12px #fff, 0 0 16px #fff;
  }
}

.sparkle {
  animation: sparkle 2s infinite;
}

.links-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  min-height: 100%;
}

.links-box > * {
  display: flex;
  align-items: center;
}

.links-box a,
.links-box button {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.links-box img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .links-box {
    gap: 15px;
  }

  .links-box img {
    width: 30px;
    height: 30px;
  }
}
