/* latin - 400 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-v12-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin - 500 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-v12-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin - 600 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-v12-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin - 700 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-v12-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin - 800 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-v12-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --body-color:       #050508;
  --bg-color:         rgba(18, 18, 24, 0.7);
  --container-color:  rgba(18, 18, 24, 0.9);
  --keyword-color:    #ffd700;
  --button-color:     #7b61ff;
  --buttonhover-color:#6c52ed;
  --selection-color:  #14141d;
  --selectionhover-color: #1e1935;
  --z-index: 9999;
  --star-size: 42px;
  --star-color: rgba(255, 255, 255, 0.1);
  --star-background: #ffd700;
  --text-color:       #f3f4f6;
  --text-muted:       #9ca3af;

  --border-light: rgba(255, 255, 255, 0.08);
  --radius-outer: 24px;
  --radius-inner: 16px;
  --radius-pill: 50px;
  --shadow-glow: 0 0 20px rgba(123, 97, 255, 0.15);
}

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  height: 100%;
  background-color: var(--body-color);
}

body {
  margin: 0;
  padding: 0;
  overflow: auto;
  color: var(--text-color);
  background-color: var(--body-color);
  background-image:
    radial-gradient(circle at 50% 15%, rgba(123, 97, 255, 0.18) 0%, rgba(5, 5, 8, 0) 50%),
    radial-gradient(circle at 10% 80%, rgba(168, 85, 247, 0.08) 0%, rgba(5, 5, 8, 0) 40%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: #fff;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  background-color: var(--container-color);
  color: var(--text-color);
  border: none;
  margin: 0;
  padding: 0.85rem 1.5rem;
  font-weight: 500;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.05);
}

nav {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

#howTo {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 1.1rem;
  text-align: left;
}

.game-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem 0;
}

.container {
  background-color: var(--bg-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  width: 95%;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  padding: 0;
  padding-bottom: 1.5rem;
  border-radius: var(--radius-outer);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

h1 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #ffffff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin: 0;
}

button {
  font-size: 1.15rem;
  padding: 0.75rem 2rem;
  margin-bottom: 1rem;
  background-color: var(--button-color);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  margin: auto;
  font-weight: 700;
  transition: all 0.3s ease;
}

button:hover {
  background-color: var(--buttonhover-color);
}

#closeButton {
  position: absolute;
  width: 1.25rem;
  height: auto;
  right: 1rem;
  cursor: pointer;
}

#questionMark {
  width: 1.25rem;
  height: auto;
  margin-right: .25rem;
}

.transpartentLayer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.transpartentLayer.active {
  opacity: 1;
  visibility: visible;
}
#instructionContainer {
  position: absolute;
  background-color: var(--container-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-light);
  color: var(--text-color);
  margin: auto;
  max-width: 500px;
  width: 90%;
  min-width: 300px;
  padding: 2.25rem 2rem 2rem 2rem;
  border-radius: var(--radius-outer);

  top: 6rem;
  left: 50%;
  transform: translate(-50%, 0%);
}

#instructionContainer h2 {
  font-size: 1.45rem;
  font-weight: 700;
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.75rem;
  color: var(--text-color);
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--button-color);
  color: var(--body-color);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.step-content {
  text-align: left;
  flex-grow: 1;
}

.step-content h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.step-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}



#scoreDisplay,
#counterContainer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--selection-color);
  border: 1px solid #2f3342;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#counterContainer:empty {
  display: none !important;
}

#scoreLabel {
  color: var(--text-muted);
}

#scoreNumber {
  color: var(--button-color);
  font-weight: 700;
}

#question,
#keywordReveal {
  display: flex;
  gap: .2rem;
  flex-wrap: wrap;
  flex-basis: 50%;
  font-size: 1.15rem;
  margin-left: 0rem;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  width: auto;
  align-items: flex-start;
  top: 0;
}

#keywordReveal {
  width: 100%;
  margin: 0 auto;
  margin-bottom: 1rem;
  justify-content: center;
  align-items: center;
}

#keywordReveal .keyword {
  animation: none;
}


.keyword {
  background-color: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #ffd700;
  font-size: 0.95rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  
  /* CSS Animation for keyword reveal */
  animation: revealKeyword 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes revealKeyword {
  from {
    transform: scale(1.2);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}


main {
  margin-top: .5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  text-align: center;
  padding: 0 1rem 0 1rem;

}

#question {
  margin-bottom: 1rem;
  margin-top: 0;
  min-height: 3.5rem;
  width: 100%;
  display: flex;
  justify-content: center;

}

#options {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 0rem;
}

#options .answer {
  width: 100%;
  background-color: var(--selection-color);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-inner);
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  
  /* CSS Animation for options reveal */
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  animation: showAnswer 0.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes showAnswer {
  from {
    opacity: 0;
    transform: scaleY(0);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes hideAnswer {
  from {
    opacity: 1;
    transform: scaleY(1);
  }
  to {
    opacity: 0;
    transform: scaleY(0);
  }
}

#options .answer.fade-out {
  animation: hideAnswer 0.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0s !important;
}

#options .answer:hover {
  background-color: var(--selectionhover-color);
  border-color: var(--button-color);
  box-shadow: var(--shadow-glow);
}

#options img {
  height: 70px;
  width: 50px;
  margin: 0 auto;
  display: block;
  margin-top: 0rem;
  margin-bottom: 0rem;
  outline: none;
  flex-grow: none;

 
}
#options .button {
  font-size: 0.85rem;
  color: #ffffff;
  border: none;
  cursor: pointer;
  margin: auto;
  text-align: center;
  font-weight: 600;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .container {
    width: 95%;
    margin-top: 1rem;
    border-radius: 8px;
  }
}

@media (min-width: 640px) {
  #options .answer  {
    width: 48%;
  }

  #options img {
    height: 105px;
    width: 75px;
  }
  #options .button {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }
}

@media (min-width: 1260px) {
  #options .answer  {
    width: 32%;
  }
  #options img {
    height: 140px;
    width: 100px;
  }
  #options .button {
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
  }
  .keyword{
    font-size: 1.1rem;
  }
}



#resultContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  padding: 2rem 1rem;
}

#resultContainer.clickable {
  cursor: pointer;
}

.result-card {
  background-color: var(--container-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-outer);
  max-width: 500px;
  width: 100%;
  padding: 1.5rem 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  animation: revealCard 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes revealCard {
  from {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

#quizButtons {
  margin-top: 0;
}

#result {
  font-size: 1.1rem;
  color: var(--text-color);
  margin: 0.5rem 0 1.25rem 0;
  text-align: center;
  line-height: 1.4;
}

#resultHeader {
  display: flex;
  flex-direction: row;
  margin: auto;
  max-width: 250px;
  justify-content: space-around;
}

#playerChoice {
  width: 100%;
  background-color: #1a1c23;
  border: 1px solid #2f3342;
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin: 0 auto 0.75rem auto;
  text-align: center;
}



#poster {
  width: 100%;
  max-width: 160px;
  margin: 0 auto;
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  outline: none;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

#nextBtn,
#resultsBtn {
  font-size: 1.1rem;
  padding: 0.6rem 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
  border-radius: 6px;
  font-weight: 600;
}

#restartBtn {
  margin-top: 1rem;
}

#headerContainer {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.headerText {
  width: 85%;
  max-width: 800px;
  border: 0px solid white;
  color: var(--text-color);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 0;
  border-radius: 16px;
  margin: 0.5rem auto 0.75rem auto;
  text-align: center;
}

#shareContainer {
  width: 100%;
  margin: auto;
  text-align: center;
}

#scoreTimer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #333;
}

.cookie-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cookie-banner__content {
  max-width: 800px;
  padding: 25px;
  background-color: var(--container-color);
  color: #ffffff;
  border: 1px solid #2f3342;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cookie-banner__button {
  background-color: var(--button-color);
  color: var(--body-color);
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.cookie-banner__button:hover {
  background-color: var(--buttonhover-color);
}

.alreadyPlayed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.alreadyPlayed_content {
  max-width: 480px;
  width: 90%;
  position: relative;
  padding: 2.5rem 2rem 2rem 2rem;
  background-color: var(--container-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-outer);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  animation: revealCard 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.alreadyPlayed_close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  cursor: pointer;
  font-size: 28px;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.2s ease;
}

.alreadyPlayed_close span {
  display: inline-block;
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.alreadyPlayed_close:hover span {
  color: var(--text-color);
}

#score-grid {
  display: flex;
  justify-content: center;
  gap: 1px;
  margin: auto;
  text-align: center;
  margin-bottom: 1rem;
}

#poster-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
  margin: auto;
  text-align: center;
  margin-bottom: 2rem;
}

ul.share-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

ul.share-buttons li {
  display: inline;
}

ul.share-buttons li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #1a1b23;
  border: 1px solid #2f3342;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

ul.share-buttons li a:hover {
  transform: scale(1.1);
  background-color: #272a34;
  border-color: var(--button-color);
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: #9ca3af;
  transition: fill 0.2s ease;
}

ul.share-buttons li a:hover .social-icon {
  fill: #ffffff;
}

ul.share-buttons li a:hover .facebook-icon {
  fill: #1877f2;
}

ul.share-buttons li a:hover .x-icon {
  fill: #ffffff;
}

ul.share-buttons li a:hover .reddit-icon {
  fill: #ff4500;
}

ul.share-buttons li a:hover .whatsapp-icon {
  fill: #25d366;
}

.banner {
  width: 100%;
  height: auto;
  font-size: 1rem;
  color: #555;
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
  position: relative;

  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  
}
.banner img {
  max-width: 100%;
  max-height: 100%;
}

footer {
  width: 100%;
  background-color: var(--container-color);
  padding: 15px 10px;
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.banner a {
  color: var(--text-muted);
  text-decoration: underline;
}

.banner a:hover {
  color: var(--text-color);
}

#countdownGame {
  width: 100%;
}

.countdown-card {
  margin: 3rem auto;
  max-width: 500px;
  width: 90%;
  padding: 2.5rem 2rem;
  background-color: var(--container-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-outer);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.countdown-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.countdown-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.4;
}

.countdown-timer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}

.timer-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.timer-val {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--button-color);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.timer-divider {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: -1.25rem;
}

.timer-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.star-rating {
  display: flex;
  align-items: center;
  font-size: 24px;
  justify-content: center;
  margin-bottom: 20px;
}

.Stars {
  --percent: calc(var(--rating) / 5 * 100%);
  
  display: inline-block;
  font-size: var(--star-size);
  font-family: Times, serif;
  line-height: 1;
}

.Stars::before {
  content: '★★★★★';
  letter-spacing: 3px;
  background: linear-gradient(90deg, var(--star-background) var(--percent), var(--star-color) var(--percent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 520px) {
  header {
    flex-direction: column !important;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-align: center;
  }
  h1 {
    font-size: 1.25rem !important;
    margin-bottom: 0.25rem;
  }
  #howTo {
    font-size: 0.9rem !important;
    justify-content: center;
  }
  .result-card {
    padding: 1.25rem 1rem !important;
  }
}