html,
body {
    font-family: "freight-text-pro", "Georgia", "Times", serif;
    margin: 0px;
    overflow-x: hidden;
    overflow-y: hidden;
    background-color: #EEECE8;
}

#top-bar {
    height: 6vh;
    background-color: #361E1C;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
}

#bdh-logo {
    height: 4.2vh;
    width: auto;
    display: block;
}

#welcome-text {
    margin-left: auto;
    margin-right: 15px;
}

#front-split {
    height: 94vh;
    display: flex;
}

#front-sidebar {
    width: 24%;
    background-color: #EEECE8;
    display: flex;
    flex-direction: column;
}

#slide-sidebar {
    position: fixed;
    top: 6vh;
    left: 0;
    width: 70vw;
    height: 94vh;
    background-color: #EEECE8;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 20;
    display: flex;
    flex-direction: column;
}

#slide-sidebar.open {
    transform: translateX(0);
}

#slide-sidebar-close {
    width: 28px;
    height: 28px;
    border: none;
    background-color: #AA4A4F;
    cursor: pointer;
    flex: 0 0 auto;
    margin-right: 10px;
}

#slide-sidebar-close::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin: 0 auto;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 9px solid #FFFFFF;
}

#slide-sidebar-close:hover,
#slide-sidebar-close:focus-visible {
    background-color: #6D191D;
}

#slide-sidebar-top {
    width: 100%;
    height: 5vh;
    background-color: #951D23;
    color: white;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    box-sizing: border-box;
    font-size: 1.5rem;
}

#slide-sidebar-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#slide-sidebar-body::-webkit-scrollbar {
    display: none;
}

#credits {
    width: 100%;
    height: 5vh;
    background-color: #951D23;
    color: white;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    box-sizing: border-box;
    font-size: 1.5rem;
}

#byline, #mobile-byline {
    margin: 0px 15px;
    font-size: 1rem;
}

#mobile-byline {
    display: none;
}

#byline .author,
#mobile-byline .author {
    background-color: #951D23;
    color: white;
    padding: 0.2rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    border-radius: 0.2rem;
    font-weight: bold;
    line-height: 2.15rem;
    white-space: nowrap;
}

.author-header {
    margin-top: 10px;
    font-size: 1rem;
}

#byline a,
#mobile-byline a {
    color: inherit;
    text-decoration: none;
}

#read-more {
    margin-top: auto;
    padding: 0 10px 10px;
}

#read-more .down-arrow {
    text-align: center;
}

#front-image-space {
    flex: 1;
    position: relative;
    background-color: #EAEAEA;
    background-image: url("images/ScoutChen.jpg");
    background-size: cover;
    background-position: center;
}

#front-overlay {
    position: absolute;
    left: 24px;
    bottom: calc(24px + 25% + 12px);
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.75);
    color: #FFFFFF;
    padding: 12px 14px;
    display: inline-block;
    transition: opacity 0.4s ease;
}

#front-title {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.1;
}

#front-subtitle {
    margin: 6px 0 0;
    font-size: 1rem;
}

#front-subtitle a {
    color: white;
}

#considered {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    height: 25%;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.75);
    color: #FFFFFF;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

#front-overlay.faded,
#considered.faded {
    opacity: 0;
}

#considered-strip {
    height: 15%;
    min-height: 16px;
    background-color: #951d23bf;
    display: flex;
    align-items: center;
    padding: 2px 10px;
    box-sizing: border-box;
}

#considered-main {
    flex: 1;
    padding: 18px;
    box-sizing: border-box;
    display: flex;
    gap: 18px;
}

.considered-item {
    flex: 1;
    background-color: #EEECE8;
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
    box-sizing: border-box;
    cursor: pointer;
}

.considered-item * {
    cursor: pointer;
}

.considered-item:hover {
    background-color: #951D23;
    color: #FFFFFF;
}

.considered-title {
    font-weight: bold;
    font-size: 1.5rem;
}

.considered-subtitle {
    margin-top: 4px;
}

.down-arrow {
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
    animation: bounce 2s infinite;
    font-size: 2rem;
    /* Increase the size of the down arrow */
    font-weight: bold;
    /* Make the arrow bold */
    color: #951D23;
    /* Change the color to a shade of green */
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-2px);
    }
}

.data-box,
.text-box {
    position: relative;
    max-width: 940px;
    width: 80%;
    margin: 2em auto;
    padding: 2em;
    background-color: rgb(250, 250, 250);
    z-index: 10;
    font-family: "freight-text-pro", "Georgia", "Times", serif;
    font-size: 1.2em;
    box-sizing: border-box;
    /* Ensure padding is included in width calculation */
    color: rgb(12, 12, 12);
    /* Apply color for text-box */
    min-height: 100px;
}

.data-box[data-day] { position: absolute; visibility: hidden; pointer-events: none; }
.data-box[data-day].active { position: relative; visibility: visible; pointer-events: auto; }

#day-select {
    display: block;
    margin: 0 auto;
    font-family: "freight-text-pro", "Georgia", "Times", serif;
    font-size: 1.1em;
    padding: 0.4em 0.8em;
    border: 2px solid rgb(106, 106, 106);
    color: rgb(12, 12, 12);
    background-color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    border-radius: 6px;
    outline: none;
}

@media (max-width: 768px) {
    html,
    body {
        overflow-y: auto;
    }

    #welcome-text {
        display: none;
    }

    #top-bar {
        justify-content: center;
    }

    #top-bar a {
        margin: 0 auto;
    }

    #considered {
        display: none;
    }

    #front-split {
        height: 94vh;
        min-height: 94vh;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    #front-image-space {
        min-height: 0;
        flex: 1 1 auto;
        order: 1;
    }

    #front-overlay {
        left: 50%;
        top: auto;
        bottom: 10px;
        transform: translateX(-50%);
        width: min(88%, 560px);
        box-sizing: border-box;
    }

    #front-sidebar {
        display: block;
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        z-index: 4;
        /* background-color: rgba(255, 255, 255, 0.95); */
        background-color: #EEECE8;
        overflow: visible;
        flex: 0 0 auto;
        order: 2;
    }

    #credits,
    #byline {
        display: none;
    }

    #mobile-byline {
        display: block;
        margin: 8px 12px 0;
    }

    #read-more {
        display: block;
        margin-top: 4px;
        padding-bottom: 8px;
    }

    #slide-sidebar,
    #slide-sidebar.open {
        position: static;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: none;
        transform: none;
        transition: none;
        z-index: 1;
        display: block;
        overflow: visible;
    }

    #slide-sidebar-top,
    #slide-sidebar-close {
        display: none;
    }

    #slide-sidebar-body {
        flex: none;
        height: auto;
        max-height: none;
        overflow: visible !important;
        overscroll-behavior: auto;
        -webkit-overflow-scrolling: auto;
    }

    .data-box,
    .text-box {
        width: 86%;
    }

    #slide-sidebar-body iframe {
        pointer-events: none;
    }
}