#page-top{
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}
#header{
    padding-top: 1.3125vw;
    padding-bottom: 1.3125vw;

    border-top-style: solid;
    border-top-width: 3px;
    border-top-color: var(--darkest-color);

    background-color: var(--dark-color);
}
#header-text{
    justify-content: space-between;
    align-items:flex-end;
}
#locale-text{
    font-size: 22px;
    text-align: right;
    padding-bottom: 12px;
}
#nav-bar{
    background-color:var(--darkest-color);
    color:var(--light-color);

    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: var(--light-color);
}
#nav-bar-text{
    justify-content: right;
}
.nav-bar-link{
    color:var(--light-color); 
    font-size: 20px;
    margin: 3px;
    margin-right: 1.875vw;
}
#residents-button{
    background-color: var(--darkest-color);
    color:var(--light-color);
    font-family: inherit;
    font-size: min(20px, 5vw);
    padding: 0;
    border: 0;
}
#about-div{
    display: grid;
    grid-template-rows: repeat(64 1fr);
}
#about-text-div, #main-image-div{
    grid-column: 1 / 2;
}
#main-image-div{
    grid-row: 1 / 64;
}
#about-text-div{
    grid-row: 3 / 21;
    background: linear-gradient(to right,
                              rgba(255, 255, 255, .7) 0%,
                              rgba(255, 255, 255, .7) 70%,
                              rgba(255, 255, 255, 0) 70%,
                              rgba(255, 255, 255, 0) 100%);
}
#about-text{
    margin-top: 10px;
    margin-left: 20px;
    margin-right: 32%;
    margin-bottom: 10px;
    font-size: min(24px, 6vw);
    text-align: justify;
}
#main-image-div img { 
    width: 100%;
    height: auto; 
    vertical-align: top;
}
#gallery-image-div{
    aspect-ratio: 16/9;
    position: relative;
}
#map-div{
    position: relative;
}
#gallery-text-div, #map-text-div{
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    color:#f8f8f8;
    font-size: 24px;
    text-shadow: 1px 1px 2px black;
    padding: 8px;
    position: absolute;
    top: 0;
    left:50%;
    transform: translate(-50%);
}
#gallery-image{
    width: auto;
    height: 100%;
    vertical-align: top;
}
.gallery-button{
    background: none;
    border: none;
    position: absolute;
    top: 47%;
}
.material-symbols-outlined{
    font-size: min(54px, 6vw);
    color: var(--dark-color);
    text-shadow: 1px 0px 5px #f8f8f8, -1px 0px 5px #f8f8f8;
}
#next-button{
    right: 3%;
}
#back-button{
    left: 3%;
}
#mobile-map-text{
    display: none;
}
#map{
    width: 100%;
    aspect-ratio: 16/9;
    vertical-align: top;
}
#contact-div-inner{
    margin:auto;
    width: 80%;
    font-size: 24px;
    background-color: var(--dark-color);
    color: #f8f8f8;
    text-shadow: 1px 1px 2px black;
    padding: 43px;
    padding-top: 10px;
}
#contact-us{
    font-size: 30px;
    text-decoration: underline;
    margin-bottom: 3px;
}
#info{
    font-family: Lato, sans-serif;
    font-size: 18px;
    margin-bottom: 15px;
}
#contact-form{
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: min(20px, 2vw);
    gap: min(18px, 2vw);
    width: 100%;
    background-color: #f8f8f8;
}
#required-info, #message-area, #submit-button{
    grid-column: span 2;
}
#required-info{
    font-size: 16px;
    color: red;
    text-shadow: none;
    margin-bottom: -10px;
}
#submit-button{
    justify-self: center;
    background-color: #808080;
    color:#f8f8f8;
    cursor: pointer;
}
#message-area{
    resize: none;
    aspect-ratio: 3/1;
    font-size: 16px;
}
#info{
    flex: 1;
}
#message-modal{
    display: none; /*hidden by default*/
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 1000; /* On top of everything */
}  
#modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f8f8f8;
    border: thick double var(--dark-color-translucent);
    padding: 15px 50px 4px 50px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#message-paragraph{
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}
#ok-button{
    background-color: var(--dark-color);
    color: #f8f8f8;
    font-size: 20px;
    border-radius: 4px;
    padding: 6px 10px 4px 10px;
    margin-top: 10px;
}
#waiting-spinner{
    margin-top: 4px;
    border: 5px solid #EAF0F6;
    border-radius: 50%;
    border-top: 5px solid var(--dark-color);
    width: 30px;
    height: 30px;
    animation: spin 3s linear infinite;
}
@keyframes spin{
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#footer{
    flex-direction: column;
    padding-bottom: .875vw;
    padding-top: 2.625vw;
    background-color: var(--light-color);
}
#footer-text{
    margin-top: .875vw;
    font-size: 12px;
}