﻿.trivia-card {
    max-width: 760px;
    margin: 20px auto;
    margin-top: 0px;
    padding: 24px;
    background: #fffaf3;
    border: 2px solid #ead7b7;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.trivia-progress {
    font-weight: bold;
    color: #7b3f00;
    margin-bottom: 12px;
}

.trivia-card h2 {
    color: #2F3E75;
    margin-bottom: 20px;
}

.trivia-answers {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

    .trivia-answers td {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 14px;
        cursor: pointer;
        transition: .2s;
    }

        .trivia-answers td:hover {
            background: #f2ecff;
            border-color: #bda8f0;
        }

    .trivia-answers input[type=radio] {
        margin-right: 10px;
        vertical-align: middle;
    }

    .trivia-answers label {
        display: inline;
        cursor: pointer;
        vertical-align: middle;
    }

.trivia-button,
.trivia-button:link,
.trivia-button:visited,
.trivia-button:hover,
.trivia-button:active {
    display: inline-block;
    padding: 12px 22px;
    background: #6a3dbd;
    color: #fff !important;
    border: none;
    border-radius: 0.375rem;
    font-weight: bold;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .2s ease, transform .15s ease;
}

    .trivia-button:hover {
        background: #4f2d91;
        color: #fff !important;
        text-decoration: none !important;
        transform: translateY(-1px);
    }

    .trivia-button:active {
        transform: translateY(1px);
    }

    .trivia-button.secondary,
    .trivia-button.secondary:link,
    .trivia-button.secondary:visited,
    .trivia-button.secondary:hover,
    .trivia-button.secondary:active {
        background: #0e7c7b;
        color: #fff !important;
    }

        .trivia-button.secondary:hover {
            background: #0b6665;
        }

.trivia-result {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.trivia-summary {
    background: #f6f0ff;
    border: 1px solid #d8c7ff;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.trivia-review {
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    border: 1px solid #ddd;
    background: #fff;
}

    .trivia-review.correct {
        border-left: 8px solid #2f8f46;
        background: #f2fff5;
    }

    .trivia-review.incorrect {
        border-left: 8px solid #b53737;
        background: #fff5f5;
    }

    .trivia-review h3 {
        margin-top: 0;
    }

.question-text {
    font-size: 1.15em;
    font-weight: bold;
}

.trivia-saved-progress {
    background: white;
    border: 2px solid #d9e5f2;
    border-left: 5px solid #3366cc;
    padding: 22px;
    border-radius: 14px;
    margin: 20px 0;
}

.trivia-resume-box {
    margin-top: 24px;
    padding: 20px;
    background: #f6f0ff;
    border: 1px solid #d8c7ff;
    border-left: 8px solid #6a3dbd;
    border-radius: 14px;
}

/*Trivia Home Page Stuff*/

.trivia-hero {
    min-height: 360px;
    padding: 18px;
    /*background:
        linear-gradient(rgba(18, 8, 38, .35), rgba(18, 8, 38, .55)),
        url('/images/trivia/poetry-trivia-bg.jpg') center center / cover no-repeat;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.trivia-overlay {
    width: 100%;
    max-width: 760px;
    padding: 20px;
    background: rgba(255, 255, 255, .88);
    border: 2px solid rgba(255, 215, 160, .8);
    border-radius: 22px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .35);
    text-align: center;
    backdrop-filter: blur(6px);
}

.trivia-title-top {
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1;
    color: #2b0f55;
    font-weight: bold;
}

.trivia-subtitle {
    color: #8a520d;
    font-weight: bold;
    font-size: 1.5rem;
}

.trivia-intro {
    max-width: 560px;
    margin: 28px auto;
    color: #222;
}

.trivia-section-title {
    margin: 26px 0 16px;
    padding-top: 22px;
    border-top: 1px solid rgba(80, 55, 90, .25);
    color: #2F3E75;
    font-size: 1.45rem;
    font-weight: bold;
}

.trivia-form-row {
    display: flex;
    gap: 22px;
    justify-content: center;
    margin: 20px 0 26px;
}

.trivia-field {
    flex: 1;
    text-align: left;
}

    .trivia-field label {
        display: block;
        margin-bottom: 8px;
        color: #895511;
        font-weight: bold;
        font-size: .85rem;
    }

.trivia-select {
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    border: 1px solid #bbb;
    border-radius: 10px;
    background: rgba(255, 255, 255, .92);
    color: #222;
    font-size: 1.05rem;
}

.trivia-main-button,
.trivia-resume-button {
    display: inline-block;
    width: min(460px, 100%);
    padding: 16px 24px;
    border: 0;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1.15rem;
}

.trivia-main-button {
    color: #fff;
    box-shadow: 0 8px 18px rgba(74, 8, 125, .35);
}

    .trivia-main-button:hover {
        background: linear-gradient(135deg, #36055f, #6e1ea2);
    }

.trivia-resume-panel {
    margin-top: 30px;
}

.resume-copy {
    margin-top: -4px;
    color: #333;
    font-size: 1rem;
}

.resume-details {
    max-width: 420px;
    margin: 16px auto;
    padding: 14px 18px;
    background: rgba(246, 240, 255, .85);
    border: 1px solid #d8c7ff;
    border-radius: 12px;
    text-align: left;
}

    .resume-details p {
        margin: 7px 0;
    }

.trivia-resume-button {
    background: #fff;
    color: #4a1d78;
    border: 2px solid #7d3db4;
}

    .trivia-resume-button:hover {
        background: #f4ebff;
    }

.trivia-message {
    display: block;
    margin-top: 18px;
    color: #b53737;
    font-weight: bold;
}

@media (max-width: 700px) {
    .trivia-hero {
        padding: 20px 10px;
        min-height: auto;
    }

    .trivia-overlay {
        padding: 28px 18px;
    }

    .trivia-form-row {
        flex-direction: column;
        gap: 14px;
    }

    .trivia-subtitle {
        letter-spacing: 4px;
    }
}
