.theme-blue {
    --color-soft: var(--course-blue-soft);
    --color-bold: var(--course-blue-bold);
    --color-dark: var(--course-blue-dark);
}

.theme-green {
    --color-soft: var(--course-olive-soft);
    --color-bold: var(--course-olive-bold);
    --color-dark: var(--course-olive-dark);
}

.theme-dark-green {
    --color-soft: var(--course-forest-soft);
    --color-bold: var(--course-forest-bold);
    --color-dark: var(--course-forest-dark);
}

.theme-yellow {
    --color-soft: var(--course-yellow-soft);
    --color-bold: var(--course-yellow-bold);
    --color-dark: var(--course-yellow-dark);
}

.theme-light-blue {
    --color-soft: white;
    --color-bold: #D5E9F0;
    --color-dark: #90B6C3;
}

.site {
    overflow: visible;
}

@keyframes sheen-across {
    /*
      * The animation runs for a total of 5 seconds.
      * We want the sheen to move across the button quickly and then delay for a few seconds.
      * This is done by making the animation move from 0% to a certain point (e.g., 20%),
      * and then stay there until 100%.
      *
      * Total animation time = 5s
      * Sheen duration = ~1s
      * Delay duration = ~4s
      * * 1s / 5s = 0.2, or 20%
    */
    0% {
        left: -100%; /* Starting position (off-screen left) */
    }
    20% {
        left: 100%; /* Ending position (off-screen right) */
    }
    100% {
        left: 100%; /* Keep the sheen off-screen for the remaining time */
    }
}

#start-button-secondary {
    background-color: var(--color-bold);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 13px 15px;
    border-radius: 25px;
    max-width: 320px;
    min-width: 170px;
    text-align: center;
    position: sticky;
    bottom: auto;
    top: 0;
    transition: 0.3s;
    opacity: 0;
    width: 100%;
    animation: pulse 2s infinite;
    overflow: hidden;
}

#start-button-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -200%; /* Start the sheen far to the left, off-screen */
    width: 100%;
    height: 100%;

    /* Create the linear gradient sheen */
    background: linear-gradient(
            90deg,
            transparent, /* Transparent at the beginning */ rgba(255, 255, 255, 0.4), /* Semi-transparent white sheen */ transparent /* Transparent at the end */
    );

    /* Apply the animation */
    animation: sheen-across 3s infinite;
    animation-timing-function: ease-in-out;
}

#start-button-secondary:hover {
    background-color: var(--color-dark);
}

#share-link {
    display: none;
}

.course-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F9FAFB;
    padding: 1.1rem 1.6rem 4rem 1.6rem;
}

.course {
    display: grid;
    grid-template-columns: auto 400px;
    grid-template-rows: auto auto auto;
    gap: 30px 35px;
    margin-top: 40px;
    position: relative;
    max-width: 1200px;
}

.course .breadcrumb {
    position: absolute;
    top: -40px;
    left: 0;
    color: var(--course-secondary-button);
    font-size: 0.7rem;
    font-weight: 400;
}

.course .accordions {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    margin-right: 40px;
    width: 100%;
}

#accordions-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 2rem;
}

#accordions-top-bar:has(> :only-child) {
    justify-content: end;
}

.course-progress {
    width: 100%;
    -webkit-appearance: none;
    background-color: white;
    border-radius: 10px;
    border: 1px var(--course-secondary-button) solid;
}

#course-progress-secondary {
    display: none;
}

::-webkit-progress-bar {
    background-color: white;
    border-radius: 10px;
}

::-webkit-progress-value {
    background-color: var(--color-bold);
    border-radius: 10px;
}

::-moz-progress-bar {
    background-color: var(--color-bold);
    border-radius: 10px;
}

.course .accordions .accordion-controls {
    display: flex;
    justify-content: end;
    gap: 1rem;
}

.course .accordions .accordion-controls .accordion-control {
    border: 1px solid var(--course-secondary-button);
    padding: 5px 0 5px 0;
    color: var(--course-secondary-button);
    border-radius: 15px;
    font-size: 0.7rem;
    width: 7rem;
    transition: 0.3s;
}

.course .accordions .accordion-controls .accordion-control:hover {
    background-color: var(--course-secondary-button);
    color: white;
}

#quick-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-column: 2;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px 0 #0000001A;
    padding: 40px;
    color: #191819;
    gap: 1.5rem;
    height: fit-content;
    transition: 0.3s;
}

.black-text {
    color: #191819 !important;
}

@media only screen and (max-width: 75rem) {

    .course {
        display: flex;
        flex-direction: column;
    }

    #accordions-top-bar {
        justify-content: end;
    }

    #course-progress-primary {
        display: none;
    }

    #course-progress-secondary {
        display: flex;
    }
}

@media only screen and (max-width: 53rem) {

    .course {
        width: 90vw;
    }

    .course .accordions .accordion-controls {
        gap: 10px;
    }
}
