body {
    transition: background-color 1s ease, background-image 1s ease;
    background-color: #f8f8f2;
    color: #111;
    font-family: 'IM Fell DW Pica', serif;
    font-size: 1.6rem;
    line-height: 1.6;
    margin: 0;
    padding: 2rem;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#course-menu {
    text-align: left;
    width: 100%;
    max-width: 42rem;
    padding: 1rem;
}

#course-description,
#course-journeys {
    text-align: left;
    margin-top: 2rem;
}

#course-menu button {
    background-color: #222;
    border: 1px solid #555;
    color: #f8f8f2;
    font-family: inherit;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    cursor: pointer;
    width: 100%;
    max-width: 20rem;
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.course-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'IM Fell DW Pica', serif;
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
    margin: 1.5rem auto;
    color: #f8f8f2;
    background-color: #222;
    border: 1px solid #555;
    text-decoration: none;
    transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
    max-width: 24rem;
    text-align: center;
    gap: 0.5rem;
}

.course-link:hover {
    background-color: #2f2f2f;
    color: #f0c674;
}

.course-link:active {
    background-color: #1a1a1a;
    color: #bfa76f;
}

.course-icon {
    font-size: 1.1em;
    margin-right: 0.25rem;
}

#journey-container {
    color: #f8f8f2;
    transition: opacity 1s ease;
    display: none;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    max-width: 42rem;
    width: 100%;
    margin: auto;
    align-items: stretch;
    background-color: #111;
    padding: 2rem;
}

#line {
    opacity: 0;
    transition: opacity 1.5s ease;
    min-height: 3.5em;
    width: 100%;
    text-align: left;
}

#prompt {
    display: inline-block;
    font-size: 1rem;
    color: #888;
    margin-top: 2rem;
    opacity: 0.8;
    cursor: pointer;
    text-decoration: underline;
}

#prompt:hover {
    opacity: 0.6;
}

#progress-container {
    width: 100%;
    height: 0.5rem;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 2rem;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #bfa76f, #f8f8f2);
    transition: width 0.5s ease;
}

#exit-button {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #f8f8f2;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s, text-shadow 0.3s;
}

#exit-button:hover {
    color: #f0c674;
    text-shadow: 0 0 8px rgba(240, 198, 116, 0.7);
}

#exit-button:active {
    color: #bfa76f;
    text-shadow: none;
}

.dark-link {
    color: #f0c674;
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    #course-menu button {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
}

#review-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    font-size: 1rem;
}

#review-table th,
#review-table td {
    border: 1px solid #aaa;
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

#review-table th {
    background-color: #222;
    color: #f8f8f2;
}

#review-table td img {
    display: block;
    max-width: 60px;
    height: auto;
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    #course-menu button {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }

    #review-table {
        border-collapse: separate;
        border-spacing: 0;
    }

    #review-table thead {
        display: none;
    }

    #review-table,
    #review-table tbody,
    #review-table tr,
    #review-table td {
        display: block;
        width: 100%;
    }

    #review-table tr {
        margin-bottom: 1.5rem;
        border-bottom: 2px solid #ccc;
    }

    #review-table td {
        text-align: left;
        position: relative;
        padding-left: 50%;
        border: none;
        border-bottom: 1px solid #ddd;
        box-sizing: border-box;
    }

    #review-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 1rem;
        font-weight: bold;
        color: #666;
        top: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        height: 100%;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

#start-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    color: #f8f8f2;
    font-family: 'IM Fell DW Pica', serif;
}

#start-description {
    max-width: 32rem;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

#start-button {
    background-color: #222;
    border: 1px solid #555;
    color: #f8f8f2;
    font-family: inherit;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    cursor: pointer;
    max-width: 20rem;
}