/* styles.css */

body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
}

header.navbar nav a {
    color: #f2f2f2;
    text-align: center;
    padding: 12px 16px;
    text-decoration: none;
}

header.navbar nav a:hover {
    background-color: #575757;
}

main.container {
    background-color: #ffffff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
    margin-top: 60px; /* Adjusted margin to account for fixed navbar */
}

/* styles.css */

h1 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    font-family: 'Roboto Slab', serif; /* Change the font-family to your desired font */
}

#quiz-introduction {
    margin-bottom: 20px;
    text-align: left;
    color: #666;
    font-size: 16px;
}

.sidebar {
    position: fixed;
    right: 20px;
    top: 100px;
    width: 200px;
}

.box {
            background-color: #;
            color: #;
            border: 1px solid #ff4d4d;
            border-radius: 5px;
            padding: 10px;
            width: 190px;
            margin: 20px auto;
            text-align: center;

}

#quiz-timer {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ff0000;
}

.question {
    margin-bottom: 20px;
    text-align: left;
}

.question p {
    font-size: 18px;
    color: #333;
}

.choices {
    list-style-type: none;
    padding: 0;
}

.choice {
    margin: 5px 0;
}

.choice input {
    margin-right: 10px;
}

#submit-button, #restart-button {
    padding: 10px 20px;
    font-size: 16px;
    color: #ffffff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

#submit-button:hover, #restart-button:hover {
    background-color: #0056b3;
}

#quiz-result {
    font-size: 24px;
    margin-top: 20px;
    color: #28a745;
}

.social-share {
            display: flex;
            align-items: center;
            gap: 10px;  
            right: 40px;
            margin-top: 30px;                      /*Use this if required in bottom overlapping*/               
        }
        .social-share a {
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            border-radius: 50%;
        }
        .social-share img {
            width: 90%;
            height: 100%;
            border-radius: 50%;            
        }
        .share-text {
            margin-right: 10px;
            font-weight: bold;
        }
        
        .footer {           
            display: flex;        
        }

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    main.container {
        margin-top: 80px; /* Adjusted for mobile */
        padding: 10px 15px;
    }

    header.navbar nav {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        margin-top: 20px;
    }

    .box {
        width: 52%; /* Adjust width for smaller screens */
    }
}
