:root {
    --main-color: white;
    --secondary-color: black;
}

* {
    padding: 0;
    margin: 0;
    font-family: 'Monda', sans-serif;
} 

/* nav styles */
nav {
    position: fixed;
    top: 0px;
    height: 7.3rem;
    width: 100%;
    background-color: var(--secondary-color);
    z-index: 2;
}

#logo {
    float: left;
    width: auto;
    height: 7.3rem;
    background-color: var(--secondary-color);
    padding: 0;
}

#nav-bar-links-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 66.66%;
    height: 7.3rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-bar-link {
    background-color: var(--secondary-color);
    text-align: center;
    font-size: 1rem;
    width: 11rem;
    padding: 2.3rem 0;
    color: var(--main-color);
}

a:link, a:visited {
    color: var(--main-color);
    text-decoration: none;
}

a:hover, a:active {
    background-color: var(--main-color);
    color: var(--secondary-color);
}

#nav-space {
    height: 7.3rem;
}

/* content styles */
.main-title-display {
    position: relative;
    height: 37rem;
    text-align: center;
    width: 100%;   
    color: var(--main-color);
    background-color: var(--secondary-color);
    overflow: hidden;
}

#main-title {
    position: absolute;
    top: 3.67rem;
    left: 8%;
    font-size: 5.2rem;
    border: .25rem solid var(--main-color);
    padding: 1rem;
}

#subtitle {
    position: absolute;
    top: 22rem;
    left: 58.33%;
    font-size: 2rem;
    border: .2rem solid var(--main-color);
    padding: .5rem;
}

/* squares styles */
.white-squares {
    position: absolute;
    z-index: 1;
}

#left-squares {
    top: 25.7rem;
    left: 25%;
    width: 20rem;
    animation-name: pulse-squares;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(.3,0,.98,.72);
}

#left-squares:hover ~ #main-title {
    color: black;
    background-color: white;
}

#left-squares:hover ~ #subtitle {
    color: black;
    background-color: white;
}

#right-squares {
    top: 11rem;
    left: 58.33%;
    width: 7rem;
    animation-name: pulse-squares;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(.3,0,.98,.72);
}

#right-squares:hover {
    background-color: black;
}

#right-squares:hover ~ #main-title {
    color: black;
    background-color: white;
}
#right-squares:hover ~ #subtitle {
    color: black;
    background-color: white;
}
#right-squares:hover ~ #left-squares {
    background-color: black;
}

#main-image {
    opacity: 0%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 42rem;
    object-fit: cover;
    z-index: 0;
}

@keyframes pulse-squares {
    0% {background-color: black;}
    50% {background-color: white;}
}

/* footer */
#border-space {
    height: 2rem;
    overflow: hidden;
}

.border-stripes-image {
    object-fit: contain;
}

footer {
    height: 5rem;
    background-color: var(--secondary-color);
    color: var(--main-color);
    text-align: center;
    padding: 1rem;
}

#last-updated {
    color: rgb(36, 224, 241);
    font-size: 2rem;
    z-index: 10;
    /* position: fixed; */
    top: 2rem;
    /* text-align: center; */
}

@media (max-width: 980px) {
    /* content styles */
    .main-title-display {
        position: relative;
        height: 37rem;
        text-align: center;
        width: 100%;   
        color: var(--main-color);
        background-color: var(--secondary-color);
        overflow: hidden;
    }
    
    #main-title {
        position: relative;
        top: 3.67rem;
        left: unset;
        font-size: 5.2rem;
        border: .25rem solid var(--main-color);
        padding: 1rem;
    }

    #subtitle {
        position: relative;
        top: 5rem;
        left: unset;
        font-size: 2rem;
        border: .2rem solid var(--main-color);
        padding: .5rem;
    }
    
    #right-squares {
        z-index: -1;
        visibility: hidden;
    }

    #left-squares {
        z-index: -1;
        visibility: hidden;
    }
}