body {
    background-color: #d0d5de;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

html, body {
    width: 100%; /* Ensure the body and HTML take up the full width of the screen */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.site-header {
    background-color: #295786;
    color: white;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header h1 {
    margin: 0;
    font-size: 3rem;
}

.site-header p {
    margin: 5px 0 0;
    font-size: 1rem;
}

.site-footer {
    background-color: #295786;
    color: white;
    padding: 20px;
    text-align: center;
    width: 100%;
    margin-top: 30px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    bottom: 0; /* Keeps it at the bottom */
    left: 0; /* Ensures it aligns with the left edge */
    
}

.site-footer p {
    margin: 0;
    font-size: 1rem;
}

/* Container for quiz content */
.quiz-container, .results-container, .start-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 80%;
    margin-top: 10px; /* Default margin for larger screens */
    margin-bottom: 10px; /* Default margin for larger screens */
    max-width: 100%; /* Allow full-width on small screens */
    box-sizing: border-box; /* Make sure padding doesn't overflow */
}

/* Quiz Header */
.quiz-header {
    text-align: center;
    margin-bottom: 30px;
    color:#dc3545
}

.question {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #000000; /* Dark blue */
    
}

.options {
    display: grid;
    gap: 10px;
    width: 100%;
}

.option {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    background-color: #e9ecef;
}

.option.selected {
    background-color: #cfe2ff;
    border-color: #0d6efd;
}

.option.correct {
    background-color: #d4edda;
    border-color: #28a745;
}

.option.incorrect {
    background-color: #f8d7da;
    border-color: #dc3545;
}

/* Footer elements like timer and next button */
.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.timer {
    font-size: 1.2rem;
    font-weight: bold;
}

.progress {
    height: 10px;
    margin-bottom: 20px;
}

/* Results Box */
.results {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #f8f9fa; /* Light background for contrast */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.result-icon {
    font-size: 4rem; /* Larger icon */
    margin-bottom: 20px;
    color: #28a745; /* Green color for success, can change based on result */
}

.score {
    font-size: 2.5rem; /* Larger score */
    font-weight: bold;
    color: #007bff; /* Use blue color for the score */
    margin-bottom: 20px;
}

/* Results container (similar to quiz box) */
.results-container {
    text-align: center;
}

.result-text {
    font-size: 1.2rem;
    color: #333333; /* Dark gray color for the result text */
    line-height: 1.6; /* Make the text more readable */
    margin-bottom: 30px; /* Adds spacing below the text */
    font-family: 'Arial', sans-serif; /* Use a clean sans-serif font */
}

.results-container button {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 1.2rem;
    background-color: #28a745; /* Green button color */
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.results-container button:hover {
    background-color: #218838; /* Darker green on hover */
}

/* Start Screen */
.start-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
}

/* Header Text for Start Screen */
.start-container h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.start-container .btn {
    padding: 10px 20px;
    font-size: 1.5rem;
}

.start-container .quiz-image {
    display: block;
    margin: 0 auto 20px; /* Center the image horizontally and add space below */
    max-width: 50%; /* Ensures the image scales down if needed */
    height: auto; /* Maintain aspect ratio */
    min-width: 220px; /* Minimum width */
    min-height: 130px; /* Minimum height */
}

/* Hide quiz-container and results-container initially */
.quiz-container, .results-container {
    display: none;
}

/* Make Links Bitcoin Orange */
a {
    color: #FF9900; /* Bitcoin orange color */
    text-decoration: none; /* Remove underline */
}

a:hover {
    text-decoration: underline; /* Optionally, add an underline on hover */
}

/* Responsive Design with Bootstrap's grid system */
@media (max-width: 767px) {
    /* Adjustments for smaller screens (mobile/tablets) */
    .quiz-container, .results-container, .start-container {
        margin-top: 10px; /* Smaller top margin for mobile */
        margin-bottom: 10px; /* Smaller bottom margin for mobile */
        padding: 20px; /* Adjust padding if needed */
    }

    .quiz-image {
        display: block;
        margin: 0 auto 20px; /* Center the image horizontally and add space below */
        max-width: 50%; /* Ensures the image scales down if needed */
        height: auto; /* Maintain aspect ratio */
        min-width: 220px; /* Minimum width */
        min-height: 130px; /* Minimum height */
    }

    .quiz-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .quiz-footer .timer {
        margin-bottom: 10px;
    }
}
