* {
    font-family: "San-serif", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.2rem;

}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    /* Prevent margin issues */
    padding: 0;
    /* Prevent padding issues */
    margin-top: 300px;
}

#text {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 75%;
    padding: 0 15px;
    /* Add some padding to prevent text from hitting the edges */
}

#top-image {
    display: flex;
    height: 400px;
    align-items: center;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#navbar {
    border-bottom: solid 1px black;
    align-items: center;
    justify-content: center;
    display: flex;
    width: 100%;
}

#navbar ul {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: row;
    padding: 0;
    margin: 0;
}

#navbar li {
    padding: 20px;
    list-style: none;
}

a:link,
a:visited {
    color: black;
    text-decoration: none;
}

a:hover {
    color: gray;
    text-decoration: underline;
}

a:active {
    color: gray;
    text-decoration: underline;
}

#container {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}

p {
    max-width: 820px;
}

.floor-modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

h1 {
    padding: 0%;
    margin: 0%;
}

h2 {
    padding: 0%;
    margin: 0%;
}

.modal-content {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    overflow: scroll;
    height: 60%;
    /* Allow both vertical and horizontal scrolling if necessary */
}

#top-image {
    display: flex;
    height: 400px;
    /* Set the height you want for the top div */
    align-items: center;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* or 'contain' if you want to avoid cropping */
}

.modal-content2 {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    max-height: 70%;
    /* Limit the maximum height */
    overflow-y: auto;
    /* Add vertical scrolling */
}


.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    z-index: 100;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    body {
        padding: 0 10px;
    }

    #text {
        width: 90%;
        /* Increase width to fill the screen on smaller devices */
    }

    #top-image {
        height: 250px;
        /* Reduce height of the top image */
    }

    #navbar ul {
        flex-direction: column;
        /* Stack navbar items vertically */
    }

    #navbar li {
        padding: 10px 0;
        /* Reduce padding for smaller screens */
    }

    p {
        font-size: 14px;
        /* Adjust paragraph font size for smaller devices */
    }

    .modal-content2 {
        width: 80%;
        /* Make modal content more responsive */
        height: auto;
    }

    .modal-content {
        width: 90%;
        /* Increase width for modal content */
        flex-direction: column;
        /* Stack content vertically for mobile */
    }

    .close {
        font-size: 24px;
        /* Reduce the close button size */
    }
}

@media screen and (max-width: 480px) {
    #top-image {
        height: 200px;
        /* Further reduce height of top image */
    }

    #text {
        width: 95%;
        /* Fill almost all width on very small screens */
    }

    p {
        font-size: 12px;
        /* Further reduce font size for small screens */
    }

    .modal-content2 {
        width: 90%;
        /* Increase modal content width for small devices */
    }

    .modal-content {
        width: 95%;
        /* Make modal content width fit the small screens */
        padding: 10px;
        /* Reduce padding in modal for small screens */
    }

    .close {
        font-size: 20px;
        /* Make close button smaller */
    }

    #navbar li {
        padding: 8px 0;
        /* Reduce padding even more */
    }

    .modal-content {
        display: flex;
        flex-direction: row;
        background-color: #fff;
        margin: 15% auto;
        padding: 20px;
        border: 1px solid #888;
        overflow: scroll;
        /* Allow both vertical and horizontal scrolling if necessary */
    }
}

#container {
    padding: 5%;
}