body {
    font-family: "freight-text-pro", "Georgia", "Times", serif;
    margin: 0px;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-color: #f4eeeb;
    color: #4E3629;
}

.data-box, .text-box {
    position: relative;
    max-width: 940px;
    width: 80%;
    margin: 2em auto;
    padding: 2em;
    background-color: rgba(255, 255, 255, 0.95);
    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 */
}


#caption {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px;
    font-family: "freight-text-pro", "Georgia", "Times", serif;
}

#logo {
    width: 300px;
    height: auto;
}

.flash-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

.flash-image.visible {
    opacity: 1;
}

#heading {
    min-height: 15rem;
    text-align: center;
    padding: 2rem 2.2rem 2.2rem 2.2rem;
    background-color: rgba(255, 255, 255, 0.8);
    /* Light grey background */
    min-width: 300px;
    width: 32%;
    /* Limit the width */
    margin: 0 auto;
    /* Center the element horizontally */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    /* Center the element vertically and horizontally */
}

#heading h3 {
    font-size: 2.2rem;
    font-family: "freight-text-pro", "Georgia", "Times", serif;
    font-optical-sizing: auto;
    font-style: bold;
    font-style: normal;
    padding: 0;
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: center;
}

#herald-logo {
    max-width: 300px;
    display: block;
    margin: 0 auto;
}

.description {
    font-size: 1rem;
    font-style: italic;
    font-weight: 400;
    max-width: 350px;
    text-align: center;
    margin: 0 auto;
    margin-top: 10px;
}

#heading p {
    text-align: left;
    font-style: italic;
}

#byline {
    font-size: 0.7rem;
}

#byline .author {
    background-color: #4E3629;
    color: white;
    padding: 0.2rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    border-radius: 0.3rem;
    font-weight: bold;
    line-height: 1.5rem;
    white-space: nowrap;
}

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

a {
    /* color: #94102a; */
    color: #4E3629;
}

#purple-data {
    color: white;
    animation: fadeToPurple 2s forwards;
}

@keyframes fadeToPurple {
    to {
        color: #bb2fbb;
    }
}

#jump-button {
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 16px;
    color: black;
    background-color: #f7f7f7;
    border: rgb(59, 59, 59) 2px solid;
    cursor: pointer;
    margin-bottom: 22px;
}

.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: #4E3629;
    /* 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);
    }
}

@media (max-width: 768px) {
    #title {
        width: 80%;
        padding: 10px;
    }

    #heading {
        width: 70%;
        min-width: 200px;
    }

    #heading h3 {
        font-size: 1.5rem;
    }

    #title h1 {
        font-size: 2em;
        padding-top: 10px;
    }

    #title h2 {
        font-size: 0.8em;
    }

    #logo {
        width: 200px;
    }
    #herald-logo {
        max-width: 200px;
    }

    .data-box, .text-box {
        max-width: 90%;
        padding: 1em;
    }
}