/* -------------------------------------------------------------
   BASIC LAYOUT & AESTHETICS (BIRTHDAY THEME)
------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Festive colorful gradient */
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
  background-size: 400% 400%;
  animation: gradientBG 10s ease infinite;
  color: #333;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  max-width: 500px;
  width: 90%;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(255, 154, 158, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(255, 154, 158, 0.6);
}

h1 { 
  text-align: center;
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  font-weight: 600;
  /* Bright festive gradient for text */
  background: linear-gradient(90deg, #ff0844, #ffb199);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 5px rgba(255, 8, 68, 0.2);
}

/* -------------------------------------------------------------
   FORM ELEMENTS
------------------------------------------------------------- */
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 400;
  color: #555;
  font-size: 0.95rem;
}

select, input {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.7);
  color: #333;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.3s ease;
  outline: none;
}

select:focus, input:focus {
  border-color: #ff0844;
  box-shadow: 0 0 10px rgba(255, 8, 68, 0.3);
  background: rgba(255, 255, 255, 0.9);
}

/* -------------------------------------------------------------
   BUTTON ROW (Check / Skip)
------------------------------------------------------------- */
.button-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

button {
  flex: 1;
  padding: 0.8rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#checkBtn {
  background: linear-gradient(135deg, #f6d365, #fda085);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

#checkBtn:hover {
  background: linear-gradient(135deg, #fda085, #f6d365);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(253, 160, 133, 0.4);
}

#skipBtn {
  background: linear-gradient(135deg, #84fab0, #8fd3f4);
  color: #444;
}

#skipBtn:hover {
  background: linear-gradient(135deg, #8fd3f4, #84fab0);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(143, 211, 244, 0.4);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* -------------------------------------------------------------
   PROGRESS + FEEDBACK
------------------------------------------------------------- */
#progress {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #666;
  text-align: center;
  font-weight: 400;
}

#feedback {
  margin-top: 1.5rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.5em;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

#questionContainer p {
  font-size: 1.3rem;
  font-weight: 600;
  color: #444;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* -------------------------------------------------------------
   PASSWORD REVEAL
------------------------------------------------------------- */
#passwordBox {
  text-align: center;
  margin-top: 2rem;
  animation: fadeIn 1s ease forwards;
}

#passwordBox h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #ff0844;
}

pre {
  background: rgba(255, 255, 255, 0.6);
  padding: 1.2rem;
  border-radius: 12px;
  font-size: 1.5rem;
  letter-spacing: 5px;
  color: #ff0844;
  border: 2px dashed rgba(255, 8, 68, 0.5);
  overflow-x: auto;
  font-weight: bold;
}

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

@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------
   GIFTCARD OVERLAY & MODAL
------------------------------------------------------------- */
#giftcardModal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.4s ease forwards;
}

.modal-content {
  background: #111;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #333;
  box-shadow: 0 20px 50px rgba(0,0,0,0.9);
  max-width: 95%;
  width: 450px;
  animation: slideUp 0.4s ease forwards;
}

.modal-content h2 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.modal-content button {
  background: #fff;
  color: #000;
  border-radius: 0;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
}

.modal-content button:hover {
  background: #ccc;
}
.giftcard-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 1.5rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

#giftcardImage {
  width: 100%;
  display: block;
}

#finalCodeOutput {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.2rem;
  font-family: monospace;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.9);
  white-space: nowrap;
}

/* -------------------------------------------------------------
   UTILITIES
------------------------------------------------------------- */
.hidden { display: none !important; }

/* -------------------------------------------------------------
   GYMSHARK THEME
------------------------------------------------------------- */
body.gymshark-theme {
  background: #000;
  animation: none;
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body.gymshark-theme .container {
  background: #111;
  border: 1px solid #333;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

body.gymshark-theme h1, 
body.gymshark-theme h2, 
body.gymshark-theme h3 {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  text-shadow: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
}

body.gymshark-theme button {
  background: #fff;
  color: #000;
  border-radius: 0;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: none;
}

body.gymshark-theme button:hover {
  background: #ccc;
  transform: none;
  box-shadow: none;
}

body.gymshark-theme input {
  background: #222;
  border-color: #444;
  color: #fff;
  border-radius: 0;
}

body.gymshark-theme input:focus {
  border-color: #fff;
  box-shadow: none;
}

/* -------------------------------------------------------------
   MOBILE RESPONSIVENESS
------------------------------------------------------------- */
@media (max-width: 600px) {
  .container {
    width: 95%;
    padding: 1.5rem;
    border-radius: 15px;
  }
  
  h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  #questionContainer p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  input, button {
    padding: 0.7rem;
    font-size: 0.95rem;
  }
  
  .button-row {
    gap: 0.5rem;
  }
  
  pre {
    font-size: 1.1rem;
    letter-spacing: 2px;
    padding: 0.8rem;
  }
  
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }
  
  .modal-content h2 {
    font-size: 1.3rem;
  }
  
  #finalCodeOutput {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }
}