body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    font-size: 1.5rem; /* Adjusted for better readability on smaller screens */
    margin-bottom: 20px; /* Added margin for spacing */
}

.settings {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    justify-content: space-between;
    align-items: center;
}

.settings label {
    flex: 1 1 100%;
    margin-bottom: 10px;
}

.settings select, .settings button {
    flex: 1 1 100%;
    padding: 10px;
    margin-bottom: 10px;
}

/* Add more styling as needed */
.video-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    height: 0;
}

.video-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

@media (min-width: 600px) {
    .settings {
        flex-wrap: nowrap; /* Prevent wrapping on larger screens */
    }
    .settings label, .settings select, .settings button {
        width: auto; /* Adjusts width back to auto for larger screens */
        margin: 0 10px;
    }
}

#quiz-container {
    display: block; /* Ensure it is displayed */
    padding: 10px;
}

#question-container {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}

button:disabled {
    background-color: #ccc;
}

.hidden {
    display: none;
}

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

li {
    margin-bottom: 10px;
}

#question-timer, #full-quiz-timer {
    margin-top: 10px;
    font-size: 1rem; /* Adjusted for better readability on smaller screens */
}

#result-container {
    margin-top: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

footer {
    background-color: #3f51b5;
    width: 100%;
  }
  
  .social {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 5px 5px;
  }
  
  .social-link {
    color: white;
  }

@media (max-width: 600px) {
    .container {
        padding: 10px; /* Reduce padding for smaller screens */
        margin: 10px auto; /* Adjust margin for smaller screens */
    }

    .settings select, .settings button {
        width: 100%; /* Ensure full width for mobile screens */
        margin: 5px 0; /* Adjust margin for better spacing */
    }

    button {
        width: 100%; /* Make buttons full width on smaller screens */
        padding: 10px; /* Adjust padding for better tap targets */
    }

    h1 {
        font-size: 1.25rem; /* Adjust font size for smaller screens */
    }

    #question-container h3 {
        font-size: 1rem; /* Adjust font size for smaller screens */
    }

    li {
        font-size: 0.9rem; /* Adjust font size for smaller screens */
    }
}