/* --- GLOBAL LAYOUT --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Verdana', sans-serif;
    background-color: #f0f8ff;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER --- */
header {
    background-color: #2c3e50; /* Darker, professional blue */
    color: white;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header h1 { margin: 10px 0 5px 0; }

/* --- 3-COLUMN LAYOUT SYSTEM --- */
.main-layout {
    display: flex;
    flex-direction: row; /* Arranges Left - Center - Right */
    justify-content: center;
    align-items: flex-start; /* Aligns items to the top */
    gap: 20px;
    padding: 20px;
    flex: 1; /* Pushes footer down */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* SIDEBAR STYLES */
.sidebar {
    width: 250px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
}

/* Hide sidebars on very small screens if needed, or stack them */
@media (max-width: 800px) {
    .main-layout {
        flex-direction: column; /* Stack vertically on phones/tablets */
        align-items: center;
    }
    .sidebar {
        width: 90%;
        max-width: 600px;
        text-align: center;
    }
}

/* --- LOGO STYLING (NEW) --- */
.logo-box {
    text-align: center;
    margin-bottom: 20px;
}

/* This ensures your logo image fits nicely in the sidebar */
.logo-img {
    max-width: 100%; /* Makes it responsive */
    height: auto;
    max-height: 150px; /* Prevents it from being too tall */
    margin-bottom: 10px;
}

.fun-fact {
    background-color: #fff3cd;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    margin-top: 20px;
    border-left: 4px solid #ffc107;
}

/* --- QUOTE CARDS --- */
.quote-card {
    background-color: #e8f6f3;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #1abc9c;
    font-style: italic;
}
.quote-card small {
    display: block;
    margin-top: 5px;
    font-weight: bold;
    color: #555;
    font-style: normal;
}

/* --- MAIN GAME CONTAINER --- */
.container {
    flex: 1; /* Takes up remaining space in the middle */
    max-width: 600px;
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- BUTTONS & GAME ELEMENTS --- */
button {
    background-color: #3498db;
    border: none;
    padding: 12px 20px;
    margin: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}
button:hover { background-color: #2980b9; }
button:disabled { background-color: #ccc; cursor: not-allowed; }

.options { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.option-btn { background-color: #eee; color: #333; padding: 15px; text-align: left; }
.option-btn:hover { background-color: #ddd; }

/* --- GAME HEADER (Score/Time) --- */
.quiz-header {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: #ecf0f1;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 3px solid #bdc3c7;
}
#timer-display { color: #c0392b; }
#quiz-feedback { font-weight: bold; margin-top: 15px; font-size: 18px; min-height: 25px; }

/* --- RIDDLES --- */
.riddle-card {
    border: 2px dashed #3498db;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    background-color: #f4faff;
}

/* --- FOOTER --- */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: auto;
    width: 100%;
}
.creator-box { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 10px; }
.profile-pic { width: 60px; height: 60px; border-radius: 50%; border: 3px solid #3498db; object-fit: cover; }
.copyright { font-size: 12px; color: #bdc3c7; margin: 0; }