html, body {
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #1f2122, #2a2d30, #23272b);
  color: #f1f1f1;
  /*overflow: hidden;*/
}

.exam-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Top bar */
.topbar {
  flex: 0 0 auto;
  background: rgba(30, 32, 34, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: bold;
  font-size: 1.1rem;
  color: #f5f5f5;
    text-shadow: 
      0 0 6px rgba(255, 255, 255, 0.6),
      0 0 12px rgba(200, 200, 200, 0.4),
      0 0 20px rgba(255, 255, 255, 0.3);
    overflow: hidden; 
}

.karaoke-highlight {
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
    border-radius: 1rem;
}

.logo span {
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    
}
.mode {
  font-weight: bold;
  font-size: 1rem;
  color: #00f0ff; 
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}
/*.timer {*/
/*  font-size: 1rem;*/
/*  font-weight: 600;*/
/*  color: #ff6bcb;*/
/*  text-shadow: 0 0 8px rgba(255, 107, 203, 0.6);*/
/*}*/

.timer {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00f0ff; /* start light blue */
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
    transition: color 0.3s linear, text-shadow 0.3s linear;
    display: flex;
flex-direction: column;
 align-items: center;
  }
/* Question */
.question-section {
position: relative;
flex: 0 0 auto;
padding: 1.2rem 1.5rem;
margin: 0.5rem 1rem;
border-radius: 1rem;

/* Glass + gradient */
background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);

/* Border + subtle shine */
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 4px 20px rgba(0,0,0,0.55);

color: #fff;
transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.3s ease;
}

/* Hover / active state */
.question-section:hover {
transform: translateY(-2px) scale(1.005);
box-shadow: 0 8px 28px rgba(0,0,0,0.65);
background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
}

/* Badge / sub-label */
.question-section small {
display: inline-block;
padding: 0.25rem 0.6rem;
border-radius: 0.5rem;
font-size: 0.72rem;
font-weight: 600;
letter-spacing: 0.5px;
color: #222;
background: rgba(255,255,255,0.65);
backdrop-filter: blur(4px);
}

/* Question text */
.question-section h5 {
margin-top: 0.6rem;
font-weight: 700;
font-size: 1.1rem;
line-height: 1.4;
color: #fff;
text-shadow: 0 1px 6px rgba(255,255,255,0.2);

overflow-y: auto;
max-height: 3rem;
scrollbar-width: thin;
scrollbar-color: #00f0ff transparent;
}

  .hint-header {
/*display: inline-block;*/
/*margin-bottom: 1rem;*/
/*border-radius: 12px;*/
/*padding: 0.6rem 1.2rem;*/
font-size: 0.9rem;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;

/* Glass effect */
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.2);
backdrop-filter: blur(12px) saturate(180%);

/* Futuristic text glow */
color: #00f0ff;
text-shadow: 0 0 6px rgba(0, 240, 255, 0.8);

/* Subtle animated shine */
position: relative;
overflow: hidden;


}

.hint-header::after {
content: "";
position: absolute;
top: 0;
left: -100%;
width: 200%;
height: 100%;
background: linear-gradient(
  120deg,
  transparent,
  rgba(255, 255, 255, 0.3),
  transparent
);
animation: shimmer 4s infinite;
}

@keyframes shimmer {
0% { left: -100%; }
50% { left: 100%; }
100% { left: 100%; }
}
.hint-header h6 {
  margin: 0;
  font-size: 0.95rem;
  color: #00f0ff;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
}

.hint-actions {
  overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #00f0ff transparent;
}

.hint-section {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem;
  font-size: 1.2rem;
  line-height: 1.5;
  scrollbar-width: thin;
  scrollbar-color: #00f0ff transparent;
  padding-top: 5vh;
  padding-bottom: 40vh;
}

/* Answer Section */
.answer-section {
  flex: 0 0 auto;
  /*padding: 1rem;*/
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  position: absolute;
    width: 100%;
    bottom: 0;    
    padding-bottom: 0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.answer-card {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /*border-radius: 0.75rem;*/
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.1);
}


/* Glassmorphic Answer Textarea */
textarea.form-control {
width: 100%;
/*min-height: 120px;*/
  min-height: 90px;
  max-height: 25vh;
/*padding: 1rem 1.2rem;*/
border-radius: 1rem;

/* Glass + gradient */
background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
backdrop-filter: blur(14px) saturate(180%);
-webkit-backdrop-filter: blur(14px) saturate(180%);

/* Border + shadow */
border: 1px solid rgba(255,255,255,0.2);
box-shadow: 0 4px 20px rgba(0,0,0,0.5);

color: #fff;
font-size: 1rem;
line-height: 1.5;
resize: vertical; /* allow vertical resize only */

transition: all 0.25s ease;
}

/* Placeholder styling */
textarea.form-control::placeholder {
color: rgba(255, 255, 255, 0.6);
font-style: italic;
text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Focus effect */
textarea.form-control:focus {
outline: none;
border-color: #00ffe7; /* neon accent */
box-shadow: 0 0 12px rgba(0,255,231,0.6);
background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}


/* Buttons */
.btn-glow {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 0 12px rgba(0, 198, 255, 0.6);
  transition: all 0.2s ease;
}
.btn-glow:hover {
  box-shadow: 0 0 20px rgba(0, 198, 255, 1);
  transform: translateY(-1px);
}
.btn-alt {
  background: linear-gradient(135deg, #ff6bcb, #ff0080);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 0 12px rgba(255, 107, 203, 0.6);
  transition: all 0.2s ease;
}
.btn-alt:hover {
  box-shadow: 0 0 20px rgba(255, 107, 203, 1);
  transform: translateY(-1px);
}