body {
    width: 100%;
}

p {
    font-size: clamp(40px, 20vh, 36px);
}

span {
    font-family: Garamond, 'Times New Roman', Times, serif;
    font-size: clamp(12px, 3.5vh, 68px);
    min-width: 50vw;
    max-width: 60vw;
    max-height: 56vh;
    overflow-y: auto;
    margin: 0 2.5vw 0 1vw;
    border: 3px solid black;
}

.box, .image-box {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100vw;
}

.box span {
    padding: 12px;
}

.centered {
    text-align: center;
}

.centered-box {
    display: flex;
    align-items: center;
}

.citation {
    font-size: xx-small;
    color: navy;
    text-align: right;
}

h1, h2, h3 {
    text-align: center;
}

h1 {
    font-size: clamp(24px, 9vh, 68px);
    height: 9vh;
}

h2 {
    font-size: clamp(24px, 7vh, 68px);
    color: navy;
    font-weight: bold;
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin-top: 2vh;
    padding-top: 10px;
}

h3 {
    padding-top: 10px;
    font-family: Garamond;
}

.hold_list {
    display: flex;
    justify-content: center;
}

.key_list, .ontological {
    font-weight: bolder;
    font-size: clamp(24px, 9vh, 68px);
}

.ontological {
    color: midnightblue;
    background-color: snow;
    vertical-align: middle;
}

.pageDivider {
    width: 100%;
    height: 50px;
}

.post-parallax {
    width: 100vw;
    margin: -10vh;
}

section {
    width: 100%;
    font-size: clamp(12px, 3.5vh, 68px);
    align-items: center;
    vertical-align: middle;
}

/* Specific styles for specific sections */
#earth {
    height: auto;
    max-height: 50vh;
    float: right;
}

#exist, #nt {
    width: auto;
    height: 65vh;
    float: left;
}

#exists, #ev {
    flex-wrap: wrap;
    height: 50vh;
    justify-content: space-around;
}

#exists img, #ev img {
    height: 27vh;
    min-width: 23vw;
    max-width: 31vw;
}

.box img {
    height: 27vh;
    max-width: 40vw;
    min-width: 30vw;
    flex-wrap: wrap;
}

/* Adding text on hover */
.image-container {
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    font-weight: bold;
    font-family: Georgia, 'Times New Roman', Times, serif;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: clamp(12px, 3vh, 60px);
    text-align: center;
}

.image-container:hover .overlay {
    opacity: 1;
}

/* End of adding text on hover */

#end {
    align-self: start;
}

#NTEvid, #OurMission, #WhyImport {
    background: linear-gradient(to bottom, floralwhite 10%, lightblue);
    align-items: center;
    padding-top: 5vh;
}

#WhoFor, #Existence {
    padding-top: 5vh;
    align-items: center;
    background: linear-gradient(to bottom, lightblue 10%, floralwhite);
}

#Existence h2, #Existence span, #NTEvid h2, #NTEvid span, #OurMission h2, #OurMission span, #WhyImport h2, #WhyImport span, #WhoFor h2, #WhoFor span {
    color: black;
}

#OurMission {
    padding-bottom: 5vh;
}

#OurMission span {
    max-height: 45vh;
    border: 3px solid black;
    margin-right: 9px;
}

#OurMission h3 {
    color: #0E202D;
    font-size: clamp(20px, 4.5vh, 68px);
    max-width: 100vw;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-decoration: underline;
    padding-bottom: 3vh;
}

#OurMission img {
    min-width: 30vw;
    max-width: 50vw;
}

#science {
    width: 100vh;
    height: auto;
    float: right;
}

/* Styles for mobile devices (e.g., phones) */
@media (max-width: 600px) {
    html, body {
        height: 100%;
        scroll-behavior: smooth;
        scroll-snap-type: y mandatory;
    }

    section {
        margin: 0 0 5vh 0;
        padding: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        scroll-snap-align: start;
        scroll-padding: 400px;
    }

    #whatis {
        font-size: clamp(7px, 2vh, 24px);
        margin-top: 2vh;
    }

    #OurMission h3 {
        font-size: clamp(10px, 3vh, 24px);
    }

    h1 {
        font-size: clamp(12px, 6vh, 60px);
        height: 9vh;
    }

    h2 {
        font-size: clamp(11px, 3vh, 60px);
        padding-top: 10px;
    }

    h3 {
        font-size: clamp(10px, 4vh, 60px);
    }

    .image-container .overlay {
        opacity: 1;
    }

    #NTEvid, #OurMission, #WhyImport {
        background: floralwhite;
        align-items: center;
        padding-top: 27vh;
        height: 100vh;
    }
    
    #WhoFor, #Existence {
        padding-top: 27vh;
        align-items: center;
        background: lightblue;
        height: 100vh;
    }
    
    /* Subtle scrollbar styling */
    span::-webkit-scrollbar {
        width: 8px;
    }

    span::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.6);
        border-radius: 10px;
    }

    #WhoFor span, #WhyImport span, #OurMission span {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: clamp(9px, 2.5vh, 60px);
        min-width: 80vw;
        max-width: 80vw;
        max-height: 50vh;
        padding: 1vh 1vw;
        overflow-y: auto;
        margin: 0 auto;
        border: 3px solid black;
        text-align: center;
        margin-top: 2vh;
    }

    .box img {
        display: none;
    }

    .image-box {
        padding-top: 1vh;
        display: block;
    }

    #exists img, #ev img {
        height: 15vh;
        min-width: 100vw;
    }

    .overlay {
        font-size: clamp(8px, 2vh, 56px);
    }

    span {
        overflow-y: scroll;
    }
}