@font-face {
    font-family: 'Red Hat Display';
    src: url(https://fonts.gstatic.com/s/redhatdisplay/v19/8vIf7wUr0m80wwYf0QCXZzYzUoTK8RZQvRd-D1NYbmyWQkEz-Eec.woff2) format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Red Hat Display';
    src: url(https://fonts.gstatic.com/s/redhatdisplay/v19/8vIf7wUr0m80wwYf0QCXZzYzUoTK8RZQvRd-D1NYbmyWQk8z-A.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    background-attachment: fixed;
    background-image: url("/media/website background.png");
    background-size: cover;
    background-repeat: no-repeat;
    font-family: 'Red Hat Display', sans-serif;
}

* { box-sizing: border-box; }

#container {
    margin: 0 auto;
    max-width: 900px;
}

/* all non-navbar links */
#container a {
    color: #64bbf5;
    font-weight: bold;
}

#header {
    align-items: center;
    background-image: url("media/new wordmark.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: flex;
    height: 150px;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

/* navigation bar */
#navbar {
    height: 40px;
    width: 100%;
}

#navbar ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style-type: none;
    justify-content: space-evenly;
}

#navbar li { padding-top: 10px; }

/* navigation links */
#navbar li a {
    color: white;
    font-weight: 800;
    text-decoration: none;
    text-shadow:
        0px 0px 5px #426087,
        0px 0px 5px #658ECC,
        0px 0px 2px #658ECC,
        0px 0px 2px #426087;
}

#navbar li a:hover { text-decoration: underline; }

#flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* sidebar */
aside {
    background-color: rgba(66, 96, 135, 0.75);
    border: 5px double white;
    border-radius: 25px;
    color: white;
    flex: 0 1 250px;
    padding: 20px;
    font-size: smaller;
    text-align: center;
}

#sidebar { order: 1; }

/* main content */
main {
    border: 5px double white;
    background-color: rgba(66, 96, 135, 0.75);
    border-radius: 25px;
    color: white;
    flex: 1;
    height: 430px;
    order: 2;
    padding: 20px;
    overflow-y: scroll;
}

/* iframe for importing blog posts */
iframe {
    border: none;
    display: block; 
    height: 100%;
    min-height: 400px;
    width: 100%;
}

/* scrolling footer */
footer {
    background-color: rgba(66, 96, 135, 0.75);
    border: 5px double white;
    border-radius: 25px;
    color: white;
    height: 40px;
    padding: 5px;
    width: 100%;
}

/* icon display */
#gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px; 
}

div.gallery-item {
    box-sizing: border-box;
    margin: 5px;
    padding: 10px;
    text-align: center;
    width: 45%;
}
  
div.gallery-item img {
    display: block;
    height: auto;
    margin: 0 auto;
    width: 50%;
}
  
div.desc {
    padding: 10px;
    text-align: center;
} 

/* mobile view */
@media only screen and (max-width: 800px) {
    body { transform: scale(0.95); }

    #flex { flex-direction: column; }

    aside { width: 100%; }

    main {
        order: 1;
        overflow: hidden;
        width: 100%;
    }

    #leftSidebar { order: 2; }

    #rightSidebar { order: 3; }

    .art { div.gallery-item { width: 100%; } }
}

/* responsive adjustments for art galleries */
.art {
    #gallery { justify-content: flex-start; }

    div.gallery-item {
        padding: 0px;
        width: calc(33.333% - 20px);
    }
    
    div.gallery-item:hover { border: 1px solid #64bbf5; }
    
    div.gallery-item img {
        display: block;
        height: auto;
        width: 100%;
    }
}