/* FULL-HEIGHT, FIXED GRADIENT BACKGROUND */
html, body {
  height: 100%;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;

  background: linear-gradient(135deg, #004c4c 10%, #e2ecfa 100%);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;

  color: #333;
  text-align: center;
}

/* WRAPPER & GLITCH */
.page-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 40px;
}
.page-wrapper.glitch {
  animation: glitch 0.4s;
}
@keyframes glitch {
  0%, 100% { transform: none; }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(3px, -3px); }
  60% { transform: translate(-3px, 3px); }
  80% { transform: translate(3px, -3px); }
}

/* HEADER & TITLE in teal green */
.app-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 30px;
}
.app-title {
  font-size: 2rem;
  color: #004c4c;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 auto;
}

.typed-out{
  overflow: hidden;
  border-right: .15em solid #e2ecfaorange;
  white-space: nowrap;
  animation: 
  typing 1s steps(22, end) forwards;
  font-size: 1.6rem;
  width: 0;
}
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* TOP-LEFT RESET ICON */
.reset-icon {
  position: absolute;
  left: 0;
  top: 0;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  margin: 10px;
}
.white-icon {
  color: #fff;
  font-size: 36px;
}

/* CARD CONTAINER */
.card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* CARDS */
.card {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 700px;
  text-align: left;
  border-radius: 10px;
  margin-bottom: 25px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  padding: 30px;
  animation: fadeIn 0.4s ease;
  box-sizing: border-box;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hidden {
  display: none;
}

/* HEADINGS */
.card-heading {
  font-size: 1.4rem;
  color: #004c4c;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* TEXT */
.card-text {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 15px;
  color: #444;
}

/* VIDEO */
.video-container {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}
.video-frame {
  width: 480px;
  max-height: 300px;
  border-radius: 6px;
  border: 1px solid #bbb;
}

/* INPUT BOX */
.input-box {
  margin: 20px 0;
  box-sizing: border-box;
}
.input-box input {
  width: 100%;
  font-size: 1rem;
  padding: 10px 15px;
  border: 2px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border 0.3s;
  color: #333;
  background: #fff;
  box-sizing: border-box;
}
.input-box input:focus {
  border-color: #4a63d2;
}

/* MULTIPLE CHOICE CONTAINER */
.mc-container {
  margin: 20px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  background: #fafafa;
}
.mc-option {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
}
.mc-option .wrong-cross {
  color: #cc0000;
  margin-left: 5px;
  font-weight: bold;
  display: none;
}

/* BUTTONS - TEAL BACKGROUND */
.primary-btn {
  background-color: #008080; /* Teal color */
  color: #fff;
  border: none;
  padding: 12px 25px;
  cursor: pointer;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: background 0.3s, transform 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.primary-btn:hover {
  background-color: #00a0a0;
  transform: translateY(-2px);
}
.disabled-btn {
  background-color: #999 !important;
  cursor: not-allowed;
  pointer-events: none;
}

/* OUTCOME BOX */
.outcome {
  background: #fefefe;
  border-radius: 8px;
  padding: 15px 20px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 20px auto;
  font-size: 1rem;
  display: none;
  text-align: center;
}
.outcome.correct {
  color: #008080; /* teal for correct */
}
.outcome.hint {
  color: #cc0000; /* red for hints */
}

/* INFO ICON */
.info-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #4a63d2;
  color: #fff;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-radius: 50%;
  text-decoration: none;
}

/* BOTTOM-RIGHT LOGO */
.logo-holder {
  position: fixed;
  bottom: 20px;
  right: 20px;
}
.logo {
  width: 80px;
}

/* RESPONSIVENESS */
@media (max-width: 600px) {
  .page-wrapper {
    padding: 20px;
  }
  .card {
    padding: 20px;
  }
  .video-frame {
    width: 100%;
    max-height: 240px;
  }
  .info-icon {
    top: 15px;
    right: 15px;
  }
  .reset-icon {
    margin: 5px;
  }
  .white-icon {
    font-size: 32px;
  }
}
