html, body, button {
    font-family: "Public Sans", sans-serif;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: calc(0.35vw + 25px);
}

h3 {
    font-size: calc(.2vw + 20px);
    margin: 0;
}

p {
    font-size: calc(0.1vw + 15px);
}

button {
    color: black;
}

input {
    font-family: "Public Sans", sans-serif;
    border: none;
    background-color: transparent;
    border-bottom: 2px solid #f8c423;
    padding: 0;
    font-size: calc(0.1vw + 15px);
}

@media only screen and (min-width: 1094px) {
    #topbox-container {
        display: flex;
        justify-content: center;
        height: min-content;
        background-color: #FAF8F2;
        padding-top: 2vh;
        padding-bottom: 4vh;
    }

    #topbox {
        background-color: #faeca0;
        border-radius: 10px;
        width: 75vw;
        height: min-content;
        padding: max(4vh, 25px) max(2vw, 25px);
    }

    #toprow {
        display: flex;
        flex-direction: row;
    }

    #toprow img {
        height: 12vh;
        min-height: 100px;
    }

    #toprow > div {
        margin-left: auto;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
    }

    #toprow ul {
        display: flex;
        flex-direction: row;
        gap: 2vw;
        list-style: none;
        margin: 0;
        padding: 0;
        margin-bottom: 2vh;
        margin-left: auto;
        font-weight: bold;
        height: min-content;
        font-size: calc(0.2vw + 20px);
    }

    #toprow ul li {
        border: 2px solid transparent;
        transition: border-bottom 0.3s ease;
    }

    #toprow ul li:hover {
        border-bottom: 2px solid #f8c423;
    }

    #burger {
        display: none;
    }

    #close {
        display: none;
    }

    #highlight a {
        border-bottom: 2px solid #f8c423;
    }
}

@media only screen and (max-width: 1093px) {
    #topbox-container {
        display: flex;
        justify-content: center;
        height: min-content;
        background-color: #FAF8F2;
        padding-top: 2vh;
        padding-bottom: 4vh;
    }

    #topbox {
        background-color: #faeca0;
        border-radius: 10px;
        width: 75vw;
        height: min-content;
        padding: max(4vh, 25px) max(2vw, 25px);
    }

    #toprow {
        display: flex;
        flex-direction: row;
    }

    #toprow > div {
        margin-left: auto;
    }

    #toprow img {
        height: 12vh;
        min-height: 100px;
    }

    #toprow ul {
        display: flex;
        flex-direction: column;
        background-color: #f8c423;
        gap: 2vw;
        list-style: none;
        margin: 0;
        padding: 0;
        font-weight: bold;
        font-size: calc(0.2vw + 20px);
        position: fixed;
        top: 0;
        right: 0;
        min-height: 100vh;
        z-index: 100;
        padding: 2vh 2vw;
        width: 40vw;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    #toprow ul.open {
        transform: translateX(0);
    }

    #toprow ul li {
        border: 2px solid transparent;
    }

    #toprow ul li a {
        border: 2px solid transparent;
        transition: border-bottom 0.3s ease;
    }

    #toprow ul li a:hover {
        border-bottom: 2px solid white;
    }

    #burger {
        font-size: calc(0.9vw + 25px);
        cursor: pointer;
    }

    #close {
        position: absolute;
        top: 2vh;
        right: 2vw;
        font-size: calc(0.9vw + 25px);
        cursor: pointer;
    }

    #toprow li#highlight a {
        border-bottom: 2px solid white;
    }
}

a {
    color: black;
    text-decoration: none;
}

a:has(.card) {
    display: flex;
}

#content1 {
    padding-top: 6vh;
    padding-bottom: 6vh;
    background-color: #F4F0E6;
}

#content1 > div {
    margin-left: 12.5vw;
    width: 75vw;
}

#content1 h1 {
    margin-top: 0;
    padding-top: 0;
}

#content1 em a {
    font-weight: bold;
    text-decoration: underline;
}

@media only screen and (min-width: 760px) {
    #cardholder > div {
        display: flex;
        flex-direction: row;
        gap: 4vw;
    }

    .card {
        background-color: #faf8f2;
        min-height: 55vh;
        padding-bottom: 5vh;
        border-radius: 20px;
        border: 2px solid #f8c423;
        width: calc(67vw/3);
        overflow: hidden;
        transition: box-shadow 0.6s ease;
    }

    #prevCard, #nextCard, #indicator {
        display: none;
    }
}

@media only screen and (max-width: 759px) {
    #cardholder {
        display: flex;
        flex-direction: row;
        gap: 1vw;
        align-items: center;
        justify-content: center;
        margin-top: max(4vh, 25px);
    }

    #cardholder > div {
        position: relative;
    }

    .card {
        background-color: #faf8f2;
        min-height: 55vh;
        padding-bottom: 5vh;
        border-radius: 20px;
        border: 2px solid #f8c423;
        width: 60vw;
        overflow: hidden;
        transition: box-shadow 0.6s ease;
    }
    
    @keyframes slideOut {
        from {
            transform: translateY(0) translateX(0);
            opacity: 1;
        }
    
        to {
            transform: translateY(-20px) translateX(10px);
            opacity: .67;
        }
    }
    
    @keyframes slideIn {
        from {
            transform: translateY(20px) translateX(-10px);
            opacity: .67;
        }
    
        to {
            transform: translateY(0) translateX(0);
            opacity: 1;
        }
    }
    
    .slideOut {
        animation: slideOut .3s ease;
    }

    .slideIn {
        animation: slideIn .3s ease;
    }
    
    #indicator {
        position: absolute;
        display: flex;
        flex-direction: row;
        gap: 7px;
        transform: translateX(-50%);
        left: 50%;
        bottom: 2vh;
    }
    
    #indicator div {
        width: 8px;
        height: 8px;
        background-color: black;
        border-radius: 50%;
        transition: background-color 0.3s ease;
    }
    
    button {
        border: none;
        background: none;
        cursor: pointer;
    }
    
    #prevCard,
    #nextCard {
        transform-origin: center;
        height: min-content;
        font-size: calc(0.75vw + 40px);
        transition: transform 0.3s ease;
    }
    
    #prevCard:hover,
    #nextCard:hover {
        transform: scale(1.2);
    }
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-text {
    padding: max(1.25vh, 15px) max(1.25vw, 15px);
    display: flex;
    flex-direction: column;
    gap: max(1vh, 10px);
}

.card-image {
    height: max(22vh, 150px);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card p {
    margin: 0;
}

.dateline {
    font-size: calc(0.05vw + 12px);
}

@media only screen and (min-width: 760px) {
    #content2 {
        padding-top: 6vh;
        padding-bottom: 6vh;
        padding-left: 12.5vw;
        background-color: #FAF8F2;
        display: flex;
        flex-direction: row;
        gap: 4vw;
        height: min-content;
        align-items: center;
    }

    #content2 div {
        width: 35.5vw;
    }

    #content2 img {
        width: 35.5vw;
        height: min-content;
    }
}

@media only screen and (max-width: 759px) {
    #content2 {
        padding-top: 6vh;
        padding-bottom: 6vh;
        padding-left: 12.5vw;
        background-color: #FAF8F2;
        display: flex;
        flex-direction: column;
        gap: 4vh;
        height: min-content;
    }

    #content2 div {
        width: 75vw;
    }

    #content2 img {
        width: 75vw;
        height: min-content;
    }
}

#below div form {
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

#email {
    width: 100%;
    padding-bottom: .5vh;
    margin-top: 1vh;
    margin-bottom: 1vh;
}

#submitform {
    background-color: #f8c423;
    border-radius: 10px;
    padding: .5vh .75vw;
    transition-property: background-color, font-weight;
    transition-duration: 0.3s;
    transition-timing-function: ease;
    border: 4px solid transparent;
    font-size: calc(0.2vw + 17.5px);
    margin-top: 3vh;
}

#submitform:hover {
    background-color: #ffbf00;
    font-weight: bold;
}

@media only screen and (min-width: 1417px) {
    footer {
        background-color: #333;
        color: white;
        padding-left: 12.5vw;
        padding-right: 12.5vw;
        padding-top: 4vh;
        padding-bottom: 6vh;
        display: flex;
        flex-direction: row;
    }

    footer p {
        margin: 0;
    }

    #icons {
        margin-left: auto;
        display: flex;
        gap: min(1vw, 10px);
    }

    #icons a {
        color: white;
        transition: color 0.3s ease;
    }

    #icons a:hover {
        color: #f8c423;
    }

    #footerlinks {
        display: flex;
        transform: translateX(-50%);
        left: 50%;
        gap: 2vw;
        position: absolute;
    }

    #footerlinks a {
        color: white;
    }
}

@media only screen and (max-width: 1416px) and (min-width: 517px) {
    footer {
        background-color: #333;
        color: white;
        padding-left: 12.5vw;
        padding-right: 12.5vw;
        padding-top: 4vh;
        padding-bottom: 6vh;
        display: flex;
        flex-direction: column;
        gap: 2vh;
    }

    footer p {
        margin: 0;
    }

    #icons {
        display: flex;
        gap: max(1vw, 10px);
    }

    #icons a {
        color: white;
        transition: color 0.3s ease;
    }

    #icons a:hover {
        color: #f8c423;
    }

    #footerlinks {
        display: flex;
        gap: 2vw;
    }

    #footerlinks a {
        color: white;
    }
}

@media only screen and (max-width: 516px) {
    footer {
        background-color: #333;
        color: white;
        padding-left: 12.5vw;
        padding-right: 12.5vw;
        padding-top: 4vh;
        padding-bottom: 6vh;
        display: flex;
        flex-direction: column;
        gap: 2vh;
    }

    footer p {
        margin: 0;
    }

    #icons {
        display: flex;
        gap: max(1vw, 10px);
    }

    #icons a {
        color: white;
        transition: color 0.3s ease;
    }

    #icons a:hover {
        color: #f8c423;
    }

    #footerlinks {
        display: flex;
        flex-direction: column;
        gap: 2vh;
    }

    #footerlinks a {
        color: white;
    }
}