:root {
    --gold: #d4af37;
    --dark-purple: #120d1a;
    --light-purple: #060507;
    --bg-gradient: linear-gradient(180deg, #000000 0%, #29194d 100%);
}

body {
  font-family: 'Cinzel', serif;
  background: #1c1030;
  color: #f5e6b8;
}

nav {
  background: #0f0d23;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  border-bottom: 2px solid #d4af37;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 50px;    /* Set a fixed height */
  width: fit-content;     /* Keeps the aspect ratio perfect */
  display: block;  /* Removes extra space at the bottom of images */
}

nav h1 {
  color: #d4af37;
  font-size: 22px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: white;
  font-size: 14px;
  transition: 0.3s;
}
/* --- HEADER --- */
.header-section {
    margin: 60px 0;
    text-align: center;
}

.header-section h1 {
    font-family: 'Cinzel', serif;
    color: var(--white);
    letter-spacing: 4px;
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.8);
    font-size: 2.5rem;
}

/* --- QUIZ GRID --- */
.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    width: 90%;
    padding-bottom: 60px;
}

/* --- THE CARDS --- */
.card {
    background: rgba(20, 20, 20, 0.7); /* Dark semi-transparent background */
    padding: 30px;
    text-align: center;
    border: 40px solid transparent; 
    border-image: url('images/border.jpg') 100 round; /* Keep your border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* IMPROVEMENT: Lift effect on hover */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.q-text {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: white;
    text-shadow: 1px 1px 2px black;
}

/* --- BUTTONS --- */
.option-btn {
    display: block;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid #444;
    color: #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Fauna One', serif;
    font-size: 1rem;
}

/* IMPROVEMENT: Magic Glow effect on hover */
.option-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    color: white;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.option-btn.active {
    background: var(--gold);
    color: #000;
    font-weight: bold;
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold);
}

.main-btn {
    padding: 18px 50px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.main-btn:hover {
    background: white;
    box-shadow: 0 0 20px white;
    transform: scale(1.05);
}

/* --- ANSWER FEEDBACK COLORS --- */

/* Green for Correct */
.option-btn.correct {
    background-color: #27ae60 !important; /* Vivid Green */
    color: white !important;
    border-color: #27ae60 !important;
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.6);
}

/* Red for Incorrect */
.option-btn.incorrect {
    background-color: #c0392b !important; /* Vivid Red */
    color: white !important;
    border-color: #c0392b !important;
    box-shadow: 0 0 15px rgba(192, 57, 43, 0.6);
}

/* --- RETAKE BUTTON STYLING --- */
.retry-btn {
    padding: 15px 35px;
    background: transparent;
    color: var(--gold); /* Gold text */
    border: 2px solid var(--gold); /* Gold border */
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: inline-block;
}

/* Hover Effect: Inverse colors */
.retry-btn:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 15px var(--gold);
    transform: translateY(-2px);
}

#result-screen {
    /* --- FIX: Keep it hidden by default --- */
    display: none;
    
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1625;
    padding: 40px;
    border: 3px solid var(--gold);
    z-index: 2000;
    
    /* Center the text */
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    width: 90%;
    max-width: 500px;
    box-sizing: border-box;
}