
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: gray;
    color: #222;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.header {
    background: black;

    padding: 30px;

    border-radius: 14px;

    box-shadow:
        0 4px 15px
        rgba(0,0,0,0.08);

    margin-bottom: 25px;

    text-align: center;
}

.header h1 {
    margin: 0 0 10px;

    color: white;

    font-size: 36px;
}

.header p {
    color: white;

    font-size: 18px;

    margin: 0;
}

.subject {
    background: black;

    padding: 25px;

    margin-bottom: 25px;

    border-radius: 14px;

    box-shadow:
        0 4px 15px
        rgba(0,0,0,0.08);
}

.subject-title {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 18px;
}

.subject-title h2 {
    margin: 0;

    font-size: 26px;
}

.icon {
    font-size: 32px;
}

.quiz-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(240px, 1fr)
        );

    gap: 15px;
}

.quiz {
    border: 1px solid #ddd;

    border-radius: 10px;

    padding: 18px;

    transition:
        transform 0.15s,
        box-shadow 0.15s;
}

.quiz:hover {
    transform: translateY(-3px);

    box-shadow:
        0 5px 15px
        gray;
}

.quiz h3 {
    margin: 0 0 8px;
    color: white;
    font-size: 20px;
}

.quiz p {
    color: white;

    min-height: 45px;
}

.start {
    display: block;

    text-align: center;

    padding: 11px;

    border-radius: 7px;

    background: turquoise;

    color: black;

    text-decoration: none;

    font-weight: bold;
}

.start:hover {
    background: darkturquoise;
    color: black;
}

.empty {
    color: white;

    font-style: italic;

    padding: 10px 0;
}

.admin {
    text-align: center;

    margin-top: 25px;
}

.admin a {
    color: #555;

    text-decoration: none;
}

.admin a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {

    body {
        padding: 10px;
    }

    .header {
        padding: 22px 15px;
    }

    .header h1 {
        font-size: 30px;
    }

    .subject {
        padding: 18px;
    }

}

/* Make sizing predictable */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background-color: black;
    overflow-x: hidden;
}

/* ---------- Dropdown Navigation ---------- */
.dropdown {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.dropbtn {
    background-color: #007bff; /* Keeps it blue like your original image */
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.dropbtn:hover {
    background-color: #0056b3;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #111;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    border: 1px solid #333;
    border-radius: 4px;
    margin-top: 5px;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #222;
}

/* This class is added by your JavaScript */
.show {
    display: block !important;
}


/* ---------- Typography & Headings ---------- */
h1 {
    text-align: center;
    font-family: "Times New Roman", Times, serif;
    color: white;
    margin-top: 60px; /* Gives space so it doesn't overlap the top button */
    margin-bottom: 10px;
}

p {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    color: white;
}


/* ---------- Main Menu & Buttons ---------- */
.menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px; /* Keeps the menu centered and crisp */
    margin: 0 auto;
    padding: 0 20px;
}

.menu form {
    width: 100%;
    margin-bottom: 12px; /* This creates the clear space between buttons */
}

/* Styles only the submit inputs inside your menu */
.menu input[type=submit] {
    display: block;
    width: 100%;
    padding: 16px 32px;
    border: none;
    border-radius: 4px;
    background-color: turquoise;
    color: black;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background-color .2s, transform 0.1s;
}

.menu input[type=submit]:hover {
    background-color: darkturquoise;
}

.menu input[type=submit]:active {
    transform: scale(0.99); /* Slight press effect */
}


/* ---------- Turnstile Captcha Alignment ---------- */
.turnstile {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    margin-bottom: 40px;
}
