body {
    
    font-family: 'Roboto', sans-serif;
    background-color: #1a1a1a;
    color: #f5f5f5;

    
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.back-to-home {
    position: fixed;
    top: 2rem;
    left: 2rem;
    color: #f5f5f5;
    text-decoration: none;
    font-weight: bold;
}

.quiz-container {
    background-color: #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 600px;
    max-width: 100%;
    overflow: hidden;
}

.quiz-header {
    padding: 2rem;
}

h2 {
    text-align: center;
    margin: 0 0 1rem 0;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    font-size: 1.2rem;
    margin: 1rem 0;
    cursor: pointer;
}

ul li label {
    cursor: pointer;
    display: block;
    padding: 0.5rem;
    border: 2px solid #444;
    border-radius: 5px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

ul li input[type="radio"] {
    display: none; 
}


ul li label:hover {
    background-color: #3c3c3c;
}


ul li input[type="radio"]:checked + label {
    background-color: #c1121f;
    border-color: #f5f5f5;
}

#submit {
    background-color: #c1121f;
    color: #fff;
    border: none;
    display: block;
    width: 100%;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 1.3rem;
    transition: background-color 0.2s ease;
}

#submit:hover {
    background-color: #a00f1a;
}

#preloader {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a; 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; 
    transition: opacity 0.75s ease, visibility 0.75s ease; 
}


#preloader.loaded {
    opacity: 0;
    visibility: hidden; 
}

.loader {
    width: 80px; 
    height: 80px;
    
    background-image: url('../images/loader.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    
    
    animation: spin 1.5s linear infinite;
}



@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}