h1 {
    font-family:Georgia, 'Times New Roman', Times, serif;
}

h2 {
    font-family:Georgia, 'Times New Roman', Times, serif;
    color:beige;
    font-size: clamp(30px, 5vh, 90px);
    font-weight: bold;
    padding: 2.5vh;
}

h3 {
    font-family:Georgia, 'Times New Roman', Times, serif;
    color: #363029;
    padding: 2vh;
    font-weight: 900;
    background-color: #E0B55D;
}

h1.banded {
    background-color:#E0B55D;
    color: #363029;
    font-weight: bold;
}

section {
    padding-top: 27vh;
    margin-top: 0;
    padding-left: 1.5vw;
    padding-right: 1.5vw;
}

p {
    font-family: Garamond, 'Times New Roman', Times, serif;
    border: white 2px solid;
    padding: 12px;
    top: 27%;
    position: relative;
    margin: 25px;
    color: white;
    font-size: clamp(16px, 3vh, 36px);
    text-align: center;
    overflow-y: auto;
    max-height: 49vh;
    max-width: 58vw;
}

.centered-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    padding: 2vh;
}

#end {
    height: 90vh;
    align-self: start;
}

.close {
    padding-top: 27vh;
    padding-left: 0;
    padding-right: 0;
}

.anchor {
    scroll-behavior: smooth;
}

.brown {
    background-color: #363029;
    color:aliceblue;
    align-content: center;
    text-align: center;
    height: 100%
}

.lighter {
    background-color: #614E38;
    height: 100%;
    align-content: center;
    text-align: center;
}

footer {
    font-size: xx-small;
}

#reliabilityhead{
    color:beige;
    font-weight: 300;
}

.box {
    display: flex;
    align-items:center;
    justify-content: space-around;
    align-content: space-around;
    width: 100%;
    flex-wrap: wrap;
}

.box img {
    max-width: 40vw;
    max-height: 50vh;
    padding-right: 1vw;
}

.top-box {
    display: flex;
    align-items:center;
    justify-content: space-around;
    align-content: space-around;
    width: 100%;
    flex-wrap: wrap;
    max-height: 50vh;
}

.top-box img {
    width: auto;
    height: 15vw;
    max-height: 27vh;
    opacity: 1;
}

.image-container {
    position: relative;
}

.image-container:hover .overlay {
    opacity: 1; /* Show overlay on hover */
}

.overlay {
    z-index: 1000000;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    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; /* Initially hidden */
    transition: opacity 0.3s ease; /* Smooth transition effect */
    font-size: clamp(20px, 2vh, 60px);
}

.overlay-link {
    display: block;
    width: 100%;
    height: 100%;
}

#topper {
    background-color: #363029;
    color:aliceblue;
    align-content: center;
    text-align: center;
    height: 100%
}

@media (max-width: 600px) {
    h1 {
        font-size: clamp(22px, 3.5vh, 50px);
    }
    
    h2 {
        font-size: clamp(20px, 2.5vh, 50px);
        margin-top: 2vh;
        padding-top: 2vh;
    }
    
    h3 {
        font-family:Georgia, 'Times New Roman', Times, serif;
        color: #363029;
        padding: 2vh;
        font-weight: 900;
        background-color: #E0B55D;
    }
    
    h1.banded {
        background-color:#E0B55D;
        color: #363029;
        font-weight: bold;
    }
    
    section {
        width: 100vw;
        padding-left: 1.5vw;
        padding-right: 1.5vw;
        padding-top: 27vh; /* Match navbar height */
        margin-top: 0;
    }

    .overlay {
        opacity: 1;
        font-size: clamp(7px, 1.5vh, 60px);
    }

    
    p {
        font-family: Garamond, 'Times New Roman', Times, serif;
        border: white 2px solid;
        padding: 12px;
        top: 27%;
        position: relative;
        margin: 25px;
        color: white;
        font-size: clamp(9px, 1.75, 36px);
        text-align: center;
        overflow-y: auto;
        max-height: 55vh;
        max-width: 90vw;
    }
    
    .centered-container {
        display: flex;
        justify-content: center; /* Center horizontally */
        align-items: center; /* Center vertically */
        padding: 2vh;
    }
    
    #end {
        height: 90vh;
        align-self: start;
    }
    
    .close {
        padding-top: 27vh;
        padding-left: 0;
        padding-right: 0;
        margin-top: 0;
    }
    
    .anchor {
        scroll-behavior: smooth;
    }
    
    .brown {
        background-color: #363029;
        color:aliceblue;
        align-content: center;
        text-align: center;
        height: 100%
    }
    
    .lighter {
        background-color: #614E38;
        height: 100%;
        align-content: center;
        text-align: center;
    }
    
    footer {
        font-size: xx-small;
    }
    
    #reliabilityhead{
        color:beige;
        font-weight: 300;
    }
    
    .box {
        display: flex;
        align-items:center;
        justify-content: space-around;
        align-content: space-around;
        width: 100%;
        flex-wrap: wrap;
        padding-top: 2%;
    }

    .box img {
        display: none;
    }
    
    .top-box img {
        min-width: 40vw;
        max-width: 40vw;
        min-height: 10vh;
    }
    
    .top-box {
        display: flex;
        align-items:center;
        justify-content: space-around;
        align-content: space-around;
        width: 100%;
        flex-wrap: wrap;
        max-height: 50vh;
    }
    
    .image-container {
        position: relative;
    }
    
    #topper {
        background-color: #363029;
        color:aliceblue;
        align-content: center;
        text-align: center;
    }
}