/* General Page Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Headings */
h1 {
    margin: 20px 0;
    font-size: 2em;
    color: #333;
}

/* Questions & Answers Styling */
.question-block {
    text-align: left;
    margin-bottom: 20px;
}
.question {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}
.options {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.option {
    margin: 5px 0;
}

/* Quiz Book List Styling */
#quiz-list, .bookshelf {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1080px;
    margin: auto;
    list-style: none;
}

/* Individual Quiz Book Styling */
.book {
    list-style: none;
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease-in-out;
}
.book:hover {
    transform: scale(1.05);
}
.book img {
    width: 150px;
    height: 225px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}
.book a {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

/* Button Styling */
button {
    background-color: #008CBA;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: 0.2s;
}
button:hover {
    background-color: #007AA3;
}

/* Quiz Log Table Styling */
#quiz-log-table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#quiz-log-table th, #quiz-log-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

#quiz-log-table th {
    background-color: #008CBA;
    color: white;
    font-weight: bold;
}

#quiz-log-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#quiz-log-table tr:hover {
    background-color: #f1f1f1;
}

button {
    background-color: #008CBA;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background-color: #007AA3;
}


/* Responsive Design */
@media (max-width: 900px) {
    #quiz-list, .bookshelf {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    #quiz-list, .bookshelf {
        grid-template-columns: 1fr;
    }
}
