
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #4a90e2, #7ed321); 
    color: black;
    transition: background 0.3s, color 0.3s;
}

body.dark-mode {
    background: #121212; 
    color: #e0e0e0; 
}

#home, #quiz, #result {
    background: rgba(255, 255, 255, 0.85);
    padding: 40px;
    width: 100%;
    max-width: 650px;
    border-radius: 12px;
    box-shadow: 0px 0px 26px 0px rgba(255,255,255,0.75);
    text-align: center;
    transition: background 0.3s ease;
}

body.dark-mode #home, body.dark-mode #quiz, body.dark-mode #result {
    background: rgba(33, 33, 33, 0.9);
}

h1, h2 {
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
}

body.dark-mode h1, body.dark-mode h2 {
    color: #e0e0e0; 
}

button {
    background-color: #1d72b8;
    color: #fff;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #156a97;
    transform: scale(1.05);
}

body.dark-mode button {
    background-color: #16a085;
}

#options {
    margin-top: 20px;
}

#options label {
    display: flex;
    align-items: center;
    background: #f7f9fb;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

#options input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.3);
}

body.dark-mode #options label {
    background: #444;
    border: 1px solid #555; 
}

#options label:hover {
    background-color: #e1e7ec;
    border-color: #aaa;
}

body.dark-mode #options label:hover {
    background-color: #555; 
}

#score {
    font-size: 20px;
    color: #333;
    font-weight: 600;
    margin-top: 20px;
}

body.dark-mode #score {
    color: #e0e0e0; 
}


#themeToggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #2ecc71;
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 0px 26px 0px rgba(255,255,255,0.75);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

#themeToggle:hover {
    background-color: #27ae60;
    transform: scale(1.1);
}

body.dark-mode #themeToggle {
    background-color: #1abc9c;
}

#themeToggle i {
    font-size: 24px;
}

@media (max-width: 768px) {
    body {
        padding: 20px;
    }

    #home, #quiz, #result {
        padding: 25px;
    }
}
