/* Ultimate Movie Challenge - Basic Styles */

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: url('./images/background.jpg') center center/cover no-repeat fixed;
  color: #fff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
}
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,26,32,0.82);
  z-index: 0;
  pointer-events: none;
}
#home-screen, #game-screen, #result-screen, #name-input-screen {
  position: relative;
  z-index: 1;
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh !important;
  min-height: unset !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  box-sizing: border-box;
}

/* Timer bar styles - to be added */

/* Zoom effect styles - to be added */

/* Responsive design - to be added */

h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(90deg, #ffb300 0%, #2196f3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-shadow: 0 2px 12px rgba(33,150,243,0.08);
}

#home-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  max-width: 520px;
  min-width: 320px;
  margin: 0 auto;
  padding: 2rem 1rem;
  gap: 1.2rem;
  background: rgba(34, 40, 49, 0.55);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  border-radius: 24px;
  border: 1.5px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 2;
}

/* Animated gradient background overlay for home screen */
#home-screen::before {
  content: '';
  position: absolute;
  top: -30px; left: -30px; right: -30px; bottom: -30px;
  z-index: -1;
  border-radius: 32px;
  background: linear-gradient(120deg, rgba(255,184,0,0.13) 0%, rgba(33,150,243,0.10) 100%);
  animation: bgMove 8s ease-in-out infinite alternate;
}
@keyframes bgMove {
  0% { filter: blur(0px); opacity: 0.7; }
  100% { filter: blur(8px); opacity: 1; }
}

#name-input-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  max-width: 520px;
  min-width: 320px;
  margin: 0 auto;
  padding: 2rem 1rem;
  gap: 1.2rem;
  background: rgba(34, 40, 49, 0.55);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  border-radius: 24px;
  border: 1.5px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 2;
}

/* Animated gradient background overlay for name input screen */
#name-input-screen::before {
  content: '';
  position: absolute;
  top: -30px; left: -30px; right: -30px; bottom: -30px;
  z-index: -1;
  border-radius: 32px;
  background: linear-gradient(120deg, rgba(255,184,0,0.13) 0%, rgba(33,150,243,0.10) 100%);
  animation: bgMove 8s ease-in-out infinite alternate;
}

#name-input-screen h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(90deg, #ffb300 0%, #2196f3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-shadow: 0 2px 12px rgba(33,150,243,0.08);
}

#name-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#name-form input {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  border: 2px solid #ffd600;
  background: #23272f;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#name-form input:focus {
  outline: none;
  border-color: #ffb300;
  box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.2);
}

#name-form button {
  width: 100%;
  padding: 0.8rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  background: #ffb300;
  color: #181a20;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(255,184,0,0.13);
  letter-spacing: 0.04em;
}

#name-form button:hover {
  box-shadow: 0 0 0 4px #ffb30055, 0 8px 32px rgba(255,184,0,0.22);
  background: linear-gradient(90deg, #ffb300 0%, #ff9800 100%);
  color: #181a20;
  transform: scale(1.05);
}

#back-to-home {
  margin-top: 1rem;
  background: transparent;
  color: #ffd600;
  border: 2px solid #ffd600;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

#back-to-home:hover {
  background: #ffd600;
  color: #181a20;
}

@media (max-width: 600px) {
  #name-input-screen {
    max-width: 100vw;
    padding: 1rem 0.5rem;
    min-height: 100vh;
  }
  
  #name-input-screen h1 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  #name-form input {
    font-size: 1rem;
    padding: 0.7rem;
  }
  
  #name-form button {
    font-size: 1.1rem;
    padding: 0.7rem;
  }
}

.category-select, .level-select {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 0.5rem;
}

.category-select label, .level-select label {
  font-size: 1.08rem;
  padding: 0.7rem 1.2rem;
  background: #23272f;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  min-width: 110px;
  justify-content: center;
}

.category-select input[type="radio"], .level-select input[type="radio"] {
  width: 1em;
  height: 1em;
  margin-right: 0.6em;
  accent-color: #2196f3;
}

#start-btn {
  display: block;
  margin: 1.2rem auto 0 auto;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  background: #ffb300;
  color: #181a20;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(255,184,0,0.13);
  letter-spacing: 0.04em;
  outline: none;
}

#start-btn:hover {
  box-shadow: 0 0 0 4px #ffb30055, 0 8px 32px rgba(255,184,0,0.22);
  background: linear-gradient(90deg, #ffb300 0%, #ff9800 100%);
  color: #181a20;
  transform: scale(1.07);
  outline: none;
}

#start-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.0) 100%);
  transform: skewX(-20deg);
  transition: left 0.5s;
  pointer-events: none;
}

#start-btn:hover::after {
  left: 120%;
  transition: left 0.5s;
}

#game-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  box-sizing: border-box;
  background: rgba(34, 40, 49, 0.55);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  border-radius: 24px;
  border: 1.5px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(10px);
}

#score-display {
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffd600;
  text-align: right;
  width: 100%;
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(255,184,0,0.10);
}

#timer-bar {
  width: 100%;
  margin: 1rem 0 1.2rem 0;
}
#timer-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, #ffb300 0%, #ff9800 100%);
  width: 100%;
  transition: width 0.2s linear;
  box-shadow: 0 2px 8px rgba(255,184,0,0.10);
}

#zoom-image-container {
  flex-shrink: 0;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 16/9;
  min-height: 180px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  overflow: hidden;
  margin: 0 auto 1.2rem auto;
  box-shadow: 0 4px 24px rgba(33,150,243,0.13), 0 2px 8px rgba(255,184,0,0.10);
  border: 2px solid rgba(255,255,255,0.10);
  transition: box-shadow 0.2s, border 0.2s;
}
#zoom-image {
  width: 100%;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s;
}

#options-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-top: 0.7rem;
}

.option-btn {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  background: #23272f;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.13s, box-shadow 0.13s;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(33,150,243,0.08);
  outline: none;
  letter-spacing: 0.01em;
}
.option-btn:hover, .option-btn.selected {
  background: linear-gradient(90deg, #ffb300 0%, #ff9800 100%);
  color: #181a20;
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(255,184,0,0.13);
}
.option-btn:focus {
  outline: 2px solid #2196f3;
  outline-offset: 2px;
}

#progress-indicator {
  text-align: center;
  color: #aaa;
  font-size: 0.95rem;
  margin-top: 0.7rem;
  font-weight: 500;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 600px) {
  #home-screen, #game-screen, #result-screen {
    max-width: 100vw;
    padding: 1rem 0.5rem;
    min-height: 100vh;
  }
  h1 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  .category-select, .level-select {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0.7rem;
  }
  .category-select label, .level-select label {
    min-width: unset;
    width: 100%;
    justify-content: flex-start;
    padding: 0.7rem 0.9rem;
    font-size: 1.08rem;
  }
  #start-btn {
    width: 100%;
    font-size: 1.15rem;
    margin: 1.1rem 0 0.7rem 0;
    padding: 1rem 0;
  }
  #zoom-image-container {
    max-width: 98vw;
    aspect-ratio: 16/9;
    min-height: 120px;
    border-radius: 12px;
  }
  #zoom-image {
    min-height: 80px;
    border-radius: 0;
  }
  #options-container {
    gap: 0.5rem;
  }
  .option-btn {
    font-size: 0.95rem;
    padding: 0.7rem 0.5rem;
    border-radius: 7px;
  }
  #progress-indicator {
    font-size: 0.9rem;
  }
  #timer-bar {
    height: 6px;
  }
  #home-screen {
    padding: 1.2rem 0.3rem;
    gap: 0.8rem;
    min-width: unset;
    max-width: 98vw;
  }
  #game-screen {
    padding: 0.7rem 0.2rem 0.7rem 0.2rem;
  }
}

#level-indicator {
  display: inline-block;
  padding: 0.3rem 1.1rem;
  border-radius: 999px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0 auto 0.2rem auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  background: #222;
  color: #fff;
  border: 2px solid #444;
  transition: background 0.2s, color 0.2s;
  text-shadow: 0 2px 8px rgba(33,150,243,0.10);
}
#level-indicator.easy {
  background: #2ecc40;
  color: #fff;
  border-color: #27ae60;
}
#level-indicator.medium {
  background: #ffb300;
  color: #181a20;
  border-color: #ff9800;
}
#level-indicator.hard {
  background: #e53935;
  color: #fff;
  border-color: #b71c1c;
}

#play-again-btn {
  margin-top: 1.2rem;
  padding: 0.85rem 2.2rem;
  font-size: 1.15rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb300 0%, #ff9800 100%);
  color: #181a20;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  cursor: pointer;
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
  letter-spacing: 0.04em;
}
#play-again-btn:hover {
  background: linear-gradient(90deg, #ff9800 0%, #ffb300 100%);
  color: #181a20;
  transform: scale(1.07);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

#leaderboard-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
#player-name-input {
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 2px solid #ffb300;
  font-size: 1.08rem;
  outline: none;
  width: 220px;
  max-width: 80vw;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: border 0.2s, box-shadow 0.2s;
}
#player-name-input:focus {
  border: 2px solid #ff9800;
  box-shadow: 0 4px 16px rgba(255,184,0,0.13);
}
#leaderboard-form button[type="submit"] {
  padding: 0.7rem 2.2rem;
  font-size: 1.1rem;
  border-radius: 999px;
  background: linear-gradient(90deg,#ffb300 0%,#ff9800 100%);
  color: #181a20;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  margin-left: 0;
}
#leaderboard-form button[type="submit"]:hover {
  background: linear-gradient(90deg,#ff9800 0%,#ffb300 100%);
  color: #181a20;
  transform: scale(1.07);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

#app-logo {
  display: block;
  margin: 0 auto 1.2rem auto;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  background: rgba(0,0,0,0.08);
  transition: transform 0.18s;
  cursor: pointer;
}
#app-logo:hover {
  animation: logoBounce 0.7s;
  transform: scale(1.08) rotate(-6deg);
}
@keyframes logoPop {
  0% { transform: scale(0.2) rotate(-30deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes logoBounce {
  0% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.18) rotate(-8deg); }
  60% { transform: scale(0.95) rotate(6deg); }
  100% { transform: scale(1.08) rotate(-6deg); }
}

/* Add a soft fade-in animation for the home screen */
#home-screen {
  animation: fadeInHome 1.2s cubic-bezier(0.4,0,0.2,1);
}
@keyframes fadeInHome {
  0% { opacity: 0; transform: scale(0.98) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Admin Auth/Login Styles */
#auth-container {
  display: none;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(24,26,32,0.68);
  backdrop-filter: blur(8px);
}
#auth-container.active {
  display: flex;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(34, 40, 49, 0.93);
  padding: 2.2rem 2.2rem 2rem 2.2rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.22);
  border: 2px solid rgba(255,255,255,0.18);
  min-width: 320px;
  max-width: 370px;
  width: 100%;
  align-items: center;
  overflow: visible;
}

#login-form h2 {
  color: #ffd600;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 2px 8px rgba(255,184,0,0.10);
}

#login-form input[type="email"],
#login-form input[type="password"] {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1.5px solid #444;
  font-size: 1.08rem;
  background: #23272f;
  color: #fff;
  outline: none;
  transition: border 0.2s;
  width: 100%;
  margin-bottom: 0.2rem;
}

#login-form input[type="email"]:focus,
#login-form input[type="password"]:focus {
  border: 1.5px solid #ffb300;
}

#login-form button[type="submit"] {
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  background: linear-gradient(90deg,#ffb300 0%,#ff9800 100%);
  color: #181a20;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1.08rem;
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  width: 100%;
  margin-top: 0.3rem;
}

#login-form button[type="submit"]:hover {
  background: linear-gradient(90deg,#ff9800 0%,#ffb300 100%);
  color: #181a20;
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

@media (max-width: 500px) {
  #login-form {
    min-width: 0;
    max-width: 98vw;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
}

#close-admin-login {
  background: none;
  border: none;
  font-size: 2rem;
  color: #ffd600;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  padding: 0.1em 0.4em;
  transition: background 0.18s, color 0.18s;
  box-shadow: none;
  margin-left: 0.3em;
  display: flex;
  align-items: center;
}
#close-admin-login:hover {
  background: rgba(255, 184, 0, 0.13);
  color: #fff;
  border-radius: 50%;
}

/* --- Tighter spacing and alignment for main menu on all screens --- */
.category-select, .level-select {
  margin-bottom: 0.7rem;
  gap: 0.7rem;
}
.category-select label, .level-select label {
  margin-bottom: 0;
  min-width: 110px;
  width: auto;
}
#start-btn {
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

/* --- Remove all scrollbars and prevent scrolling --- */
html, body {
  /* overflow: hidden !important; */
  height: 100%;
}
body {
  overscroll-behavior: none;
}
/* Hide scrollbars for Webkit browsers */
::-webkit-scrollbar {
  display: none !important;
}

#stop-btn {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
} 

.fade-in-replay {
  animation: fadeInHome 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* Copyright Footer Styles */
.copyright-footer {
  position: static;
  background: rgba(24, 26, 32, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1rem;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-content p {
  margin: 0;
  font-size: 0.9rem;
  color: #b0b0b0;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.footer-content a {
  color: #ffd600;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.footer-content a:hover {
  color: #ffb300;
  text-shadow: 0 0 8px rgba(255, 184, 0, 0.4);
}

.footer-content a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #ffd600, #ffb300);
  transition: width 0.3s ease;
}

.footer-content a:hover::after {
  width: 100%;
}

/* Responsive footer adjustments */
@media (max-width: 600px) {
  .copyright-footer {
    padding: 0.6rem 0.8rem;
  }
  .footer-content p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .copyright-footer {
    padding: 0.5rem 0.6rem;
  }
  .footer-content p {
    font-size: 0.75rem;
  }
} 