body {
    background-image: url(../imgs/background-tile.png);
    background-color: rgb(55, 68, 51);

    display: flex;
    flex-direction: column;
    margin-top: 0;
}

.banner {
    width: 100%;
    max-width: 1000px;
    /* width: 75%; */
    margin: 0 auto;
}

@media (max-width: 700px) {
    .banner {
        width: 100%;
    }
}

#mobileNavOpen {
    display: none;
}

#mobileNavMenu {
    display: none;
}

/* Applied to the body when mobileNavOpen is clicked */
.no-scroll {
    height: 100%;
    overflow-y: hidden;
}


@media (max-width: 700px) {
    #mobileNavOpen {
        display: block;
        position: fixed;
        top: 5px;
        left: 5px;
        z-index: 800;

        background-color: rgb(80, 112, 71);

        width: 15vw;
        height: 15vw;
        padding: 0;

        border-radius: 50%;
        border: 3px solid black;
    }

    #mobileNavOpen img {
        width: 90%;
        height: 90%;
    }

    #mobileNavClose {
        position: absolute;
        top: 10px;
        right: 10px;
        height: auto;
        width: 15%;
    }
    
    #mobileNavClose:hover {
        filter: brightness(50%);
    }

    #mobileNavMenu {
        position: fixed;
        top: 0;
        background-color: rgb(80, 112, 71);
        z-index: 900;
        width: 250px;
        min-width: 40%;
        height: 100vh;
        padding-bottom: 30%;
        padding-top: 10%;
    
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;

        color: rgb(245, 146, 54);
        /* display: none; */
    }

    #mobileNavMenu.active {
        display: flex;
    }

    #mobileNavScreenOverlay {
        position: fixed;
        background-color: rgba(0, 0, 0, .5);
        z-index: 899;
        width: 100%;
        height: 100%;


        display: none;
    }

    #mobileNavScreenOverlay.active {
        display: block;
    }
    
    #mobileNavMenu a {
        font-size: 1.2em;
        padding: 8px;
        color: burlywood;
    }
    
    #mobileNavMenu p a:hover {
        color: rgb(255, 255, 255);
        background-color: rgb(36, 36, 36);
    }
    
}


.containerSidebarMain {
    display: flex;
    flex-direction: row;

    width: 100%;
    max-width: 1000px;
    /* width: 75%; */
    margin: 0 auto;

    border: 2px solid rgb(24, 37, 0);
}

@media (max-width: 700px) {
    .containerSidebarMain {
        width: 100%;
        margin: 0;
        border: none;
        border-top: 2px solid rgb(24, 37, 0);
    }
}

.sidebar {
    background-color: rgb(80, 112, 71);
    min-width: 20%;
    border-right: 1px solid rgb(24, 37, 0);
    padding: 10px;
    color: rgb(245, 146, 54);
}

@media (max-width: 700px) {
    .sidebar {
        display: none;
    }
}


.sidebar a {
    padding: 8px;
    color: burlywood;
}

.sidebar p a:hover {
    color: rgb(255, 255, 255);
    background-color: rgb(36, 36, 36);

}

.iconLink {
    display: block;
    width: min-content;
}

.iconLink img {
    max-width: 70px;
    border-radius: 50px;
}

.iconLink img:hover {
    transform: rotate(30deg);
}

main {
    background-color: rgb(122, 160, 112);
    min-width: 80%;
    border-left: 1px solid rgb(24, 37, 0);
}

@media (max-width: 700px) {
    main {
        border-left: none;       
    }
}

/***********************/
/* Home page styles  */
/***********************/

.homePageDiv {
    margin: 20px;
}

#greetingImg {
    height: 150px;
    float: right;
}

#greetingImgAlt {
    display: none;
    height: 150px;
}


@media (max-width: 700px) {
    #greetingImg {
        display: none;
    }

    #greetingImgAlt {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

}



.updatesContainer {
    position: relative;
    width: 550px;
    max-width: 100%;

    margin-left: auto;
    margin-right: auto;

    margin-top: 40px;
    margin-bottom: 20px;

    background-color: #aeafa3;
    border: 5px groove rgb(101, 158, 101);
}

@media (max-width: 700px) {
    .updatesContainer {
        width: 100%;
    }

    #updates {
        max-height: 35vh;
    }
}


.updatesContainer h4 {
    position: absolute;
    top: -20px;
    left: 10px;

    padding: 4px;

    background-color: rgb(122, 160, 112);
    border: 5px groove  rgb(101, 158, 101);
}

#updates {
    padding-top: 25px;
    overflow-y: scroll;
    max-height: 250px;
}


/* MUSIC SPOTLIGHT */
#musicSpotlightHeading {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;

    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.musicSpotlightMainArea {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;
}

/* @media (max-width: 700px) {
    .musicSpotlightMainArea {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
} */

#musicFrameImg {
    width: 350px;
}

#musicSpotlightTextArea {
    flex-basis: 400px;
    flex-grow: 1;

    padding: 10px;

    border-width: 10px 25px 5px 50px; 
    border-style: solid;
    
    border-image-source: url('../imgs/frame10.png'); /*asset from https://xixxii.neocities.org/gooftown/foryou/frames*/
    border-image-slice: 10 25 5 50 fill;
    border-image-repeat: stretch;

}

#musicTitle {
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

#musicParagraphs {
    font-family:'Franklin Gothic Light', 'Arial Narrow', Arial, sans-serif;
    text-align: justify;
}

/***********************/
/* Books page styles  */
/***********************/
.spoiler {
    color: black;
    background-color: black;
}

.spoiler:hover {
    color: white;
}

#booksIntro, .bookShelfHeader {
    padding-left: 20px;
    padding-right: 20px;
    text-align: justify;
}

#bookShelf, #bookShelfLegacy {
    background-image: url(../imgs/light-wood.jpg);
}

.shelfBetween {
    width: 100%;
}

.bookEntry {
    display: flex;
    flex-direction: row;
    padding: 20px;
    justify-content: center;
}

@media (max-width: 800px) {
    .bookEntry {
        flex-wrap: wrap;
    }
}

.bookThumb {
    height: 300px;
    max-width: 250px;
    /* width: auto; */
    max-width: 100%;
    padding-right: 12px;
    margin-bottom: 5px;
}

.bookInfo {
    background-color: rgba(240, 248, 255, .65);
    padding: 10px;
    margin-bottom: 5px;
}

.bookInfo p {
    font-size: small;
    text-align: justify;
}

.bookSortSelected {
    font-style: italic;
}

.bookSortLink {
    cursor:pointer;
    color: #f0f8ff;
    text-decoration:underline;
}

.bookSortLink:hover {
    color: #cad3db;
}

/* Styling for legacy books (2020-2022) */
#bookShelfLegacy {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.bookEntryLegacy {
    position: relative;
    margin: 20px;
}

@media (max-width: 700px) {
    .bookEntryLegacy {
        width: 40%;
        max-width: 200px;

        margin: 10px;
    }
}

.bookThumbLegacy {
    height: 300px;
    width: auto;
}

@media (max-width: 700px) {
    .bookThumbLegacy {
        width: 100%;
        height: auto;
    }
}

.legacyInfoOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 249, 240, 0.9);
    border: 1px solid black;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 6px;
    opacity: 0;
}



.legacyInfoOverlay:hover {
    opacity: 1;
    transition: opacity 0.3s;
}

.startLabel {
    background-color: aliceblue;
    height: 150px;
    width: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    font-size: 32px;
    background-image: url(../imgs/minecraft-log.png);
}
