:root {
    --navbar-color: #900a0a;
    --navbar-text-color: #e8e8e8;
    --line-color: #00000030;
    --book-text-color: #9B9638;

}

* {
    margin: 0;
    padding: 0;
}

header {
    background-color: var(--navbar-color);
    display: grid;
    grid-template-columns: auto auto;
    width: 100vw;
    height: 80px;
}

/* Navigation bar */
.logo {
    display: flex;
    max-width: 8rem;
    padding: 1.25rem 1rem;
}

.logo a  {
    color: var(--book-text-color);
    text-shadow: 1px 1px 2px black;
    text-decoration: none;
    font-size: 1.125rem;
}

.logo p {
    color: var(--book-text-color);
    text-shadow: 1px 1px 2px black;
}

.start {
    font-size: 1.75rem ;
    padding-right: .5rem;
}

#navbar ul {
    display: flex;
    list-style-type: none;
}

#navbar a {
    color: var(--book-text-color);
    text-shadow: 1px 1px 2px black;
    font-size: 1.25rem;
    display: flex;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid var(--book-text-color);
    box-shadow: 1px 1px 1px black;
    padding: .5rem 1.5rem;
    margin: 1rem 3vw;
}

#navbar a:hover {
    box-shadow: 1px 1px 3px  var(--book-text-color);
}

.hamburger {
    display: none;
}
/* End of navigation bar */

/* Image below the navigation bar */
.header-img {
    height: 25vh;
    width: 100vw;
}

.header-citation {
    color: black;
    text-shadow: none;
    text-align: right;
    font-size: .75rem ;
    padding: 0  1rem;
}
/* End of image */

/* page title */
#title {
    margin: 2.5rem;
    text-align: center;
    font-size: 2rem;
}

#title p {
    font-size: 1.5rem;
}
/* End of title */

/* Line underneath the title */
.line {
    background-color: var(--line-color);
    height: 1px;
    width: 90vw;
    margin: 4rem;
}
/* End of line */

/* Bookshelf and books */
#bookshelf {
    background: url("/assets/img/shelf.png") center / 85% 100% no-repeat;
    height: 80vh;
    margin: 0 10vw;
    color:var(--book-text-color);
    text-shadow: 1.5px 1.5px black;
    overflow: hidden;
}

#bookshelf ul {
    display: flex;
}

#bookshelf li {
    display: flex;
    margin: 4.25rem 0;
    transform: translate(13vw);
}

#bookshelf a {
    color: var(--book-text-color);
    text-decoration: none;
}

#bookshelf p {
    margin: 2rem .375rem;
    max-width: 9vw;
    position: absolute;
    font-weight: bold;
    top: .5rem;
    z-index: 8;
}

#bookshelf p:last-of-type {
    margin: 4.5rem .25rem;
}

#bookshelf img {
    border: 1px solid black;
    border-radius: 10px;
    width: 9vw;
    height: 61vh;
    gap: 3px;
    position: relative;
}

.google-books {
    width: 8.625vw !important;
    border: 4px solid var(--book-text-color) !important;
}

.book-spine:hover {
    transform: translateY(1rem) translateX(-2px);
    height: 63vh;
    transition: transform .4s ease;
}

.book-title {
    transform: rotateZ(270deg) translateX(8rem);
    position: absolute;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 1px;
    white-space: nowrap;
    width: 100%;
    overflow: visible;
} 
/* End of bookshelf */

/* Start of the image gallery page */
.img-gallery {
    margin: 5vw 10vw;
}

.img-gallery h1 {
    font-size: 3rem;
    padding-bottom: 3rem;
}

.img-gallery ul {
    display: grid;
    grid-template-columns: auto auto auto;
}

.img-gallery li {
    padding: 3rem 0;
    list-style-type: none;
}

.img-gallery img {
    width: 20vw;
    height: 30vh !important;
    border-radius: 5px;
    border: 2px solid black;
    margin-bottom: 1rem;
}

.img-gallery img:hover {
    box-shadow: 2px 2px 8px black;
    transform: scale(1.1);
}

.light-background {
    background-color: #000000d0;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 512;
}

.light-background.projection {
    display: flex;
}

.light-background button {
    position: relative;
    top: -35vh;
    padding: .25rem .5rem;
    background-color: transparent;
    border: 1px solid white;
    color: white;
    border-radius: 5px;
    font-size: large;
    font-weight: bold;
}

#light-background-img {
    max-width: 80vw;
    max-height: 75vh;
}
/* end of image gallery */

/* Article Page styles */
.article {
    background-color: #e3e3e3;
    margin: 5vh 8vw;
    padding: 4rem;
    border-radius: 5px;
}

.article h1 {
    font-size: 3rem;
}

.article img {
    margin: 4rem 0 0;
    width: 55vw;
    height: 75vh;
}

.citations {
    font-size: .875rem;
    color: #2d2d2d;
    padding-bottom: 4rem;
}

.article h2 {
    font-size: 2rem;
}

.content {
    margin: 2rem 0;
    font-size: 1.5rem;
    max-width: 60vw;
}

.close-article {
    color: black;
    text-decoration: none;
    position: absolute;
    font-size: 2rem;    
    right: 10rem;
    top: 8.25rem;
}
/* End of article page styles */

/* featured below the bookshelf */
.featured-title {
    font-size: 2.5rem;
    padding: 3rem 0;
}

#featured {
    margin: 0 10vw;
    padding: 0 5rem;
}

#featured ul {
    list-style-type: none;
    display: grid;
    grid-template-columns: auto auto;
    gap: 10vw;
}

.featured-container {
    border: 1px solid var(--line-color);
    border-radius: 10px;
    box-shadow: 5px 5px 5px var(--line-color);
    padding: 1.75rem 0 1rem 2.125rem;
}

.featured-container p {
    max-width: 92%;
}

.featured-container:hover {
    border: 1px solid #00000015;
    box-shadow: 5px 5px 5px grey;
    transition: transform .4s ease;
} 

#featured a {
    text-decoration: none;
    color: black;
}

#featured img {
    padding: 0 2rem 0 0;
    width: 25vw;
    height: 35vh;
}
/* End of featured */

/* footer */
#footer {
    background-color: var(--navbar-color);
    color: var(--book-text-color);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 5rem;
    padding: 1rem 0
}

#footer .logo {
    max-width: 7rem;
}

.footer-content {
    text-align: center;
}

.footer-content a {
    color: var(--book-text-color);
    text-shadow: 1px 1px 2px black;

}

.footer-content p {
    padding-top: 2rem;
    color: var(--book-text-color);
    text-shadow: 1px 1px 2px black;
}


.social-media ul {
    list-style-type: none;
    display: flex;
    margin: 2rem 6rem;
    gap: 4rem;
}

.social-media img {
    background-color: white;
    border-radius: 7px;
    width: 2rem;
}
/* End of footer */

@media (max-width: 1024px) {
    /* Bookshelf and books */
    #bookshelf {
        background: url("/assets/img/shelf.png") 0px / 100% 110% no-repeat;
        margin: 4rem 2.5rem;
        height: fit-content;
        width: fit-content;
    }

    #bookshelf ul {
        margin: 5rem 10rem 5rem 0;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    #bookshelf li {
        margin: 0;
        transform: translate(8vw);
    }

    #bookshelf p {
        font-size: 1.5rem;
        margin: 1rem;
        max-width: 24vw;
    }

    #bookshelf p:last-of-type {
        margin: 5rem 1rem;
    }

    #bookshelf img {
        object-fit: cover;
        width: 25vw;
        height: 70vh;
    }

    .google-books {
        object-fit: fill !important;
        width: 25vw !important;
        border: 3px solid var(--book-text-color) !important;
    }

    .book-title {
        transform: rotateZ(270deg) translateX(12rem);
        font-size: 3rem;
    } 
    /* End of bookshelf */

        /* Start of the image gallery page */
    .img-gallery ul {
        display: grid;
        grid-template-columns: auto auto;
        gap: 5vw;
    }

    .img-gallery img {
        width: 40vw;
        height: 35vh !important;
    }
    /* end of image gallery */

    /* Article Page styles */
    .article img {
        height: 50vh;
    }
    /* End of article page styles */

    /* featured below the bookshelf */
    .featured-title {
        font-size: 3rem;
    }

    #featured {
        margin: 0 2.5rem;
        padding: 0 0rem;
    }

    #featured ul {
        gap: 6vw;
    }

    .featured-container {
        border: 1px solid var(--line-color);
        border-radius: 10px;
        box-shadow: 5px 5px 5px var(--line-color);
        padding: 1.75rem 0 1rem 2.125rem;
    }

    #featured a {
        text-decoration: none;
        color: black;
    }

    #featured img {
        padding: 0 2rem 0 0;
        width: 35vw;
        height: 30vh;
    }

    #featured p {
        max-width: 35vw;
    }
    /* End of featured */
}

@media (max-width: 768px) {
    /* Navigation bar */
    header {
        height: 70px;
        position: fixed;
        z-index: 1024;
        display: grid;
        grid-template-columns: 3fr 1fr;
    } 

    .logo {
        width: 9rem;
    }

    .logo a  {
        font-size: 1rem;
    }

    .start {
        font-size: 1.25rem ;
    }

    #navbar {
        display: block;
        text-align: right;
    }

    #navbar ul {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        background-color: var(--navbar-color);
        padding: 2rem;
    } 

    #navbar ul.open {
        display: inline-block;
    }

    #navbar a {
        font-size: 1.5rem;
        padding: .75rem 5rem;
        margin: 1rem 3vw;
    }

    .hamburger {
        display: contents;
        color: var(--book-text-color);
        font-size: 3.5rem;
    }
    /* End of navigation bar */

    /* Image below the navigation bar */
    .header-img {
        margin-top: 70px;
        height: 15vh;
        object-fit: cover;
        object-position: center;
    }

    .header-citation {
        font-size: .625rem ;
    }
    /* End of image */

    /* page title */
    #title {
        margin: 2rem .75rem;
        font-size: 1.25rem;
    }

    #title p {
        margin-top: 1rem;
        font-size: 1.125rem;
    }
    /* End of title */

    /* Line underneath the title */
    .line {
        margin: 1rem;
    }
    /* End of line */

    /* Bookshelf and books */
    #bookshelf {
        background: url("/assets/img/shelf.png") 0px / 100% 115% no-repeat;
        margin: 4rem 2rem;
        height: fit-content;
        width: fit-content;
    }

    #bookshelf ul {
        margin: 5rem 9rem 5rem 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    #bookshelf li {
        margin: 0;
        transform: translate(10vw);
    }

    #bookshelf p {
        margin: 2rem .5rem;
        max-width: 33vw;
    }

    #bookshelf p:last-of-type {
        text-align: center;
        margin: 5.5rem .5rem;
    }

    #bookshelf img {
        object-fit: cover;
        width: 33vw;
    }

    .google-books {
        object-fit: fill !important;
        width: 33vw !important;
        border: 2px solid var(--book-text-color) !important;
        gap: 2px !important;
    } 
    /* End of bookshelf */

    /* Start of the image gallery page */
    .img-gallery {
        margin: 0rem 1rem 0 5vw;
        padding-top: 6rem;

    }
    
    .img-gallery h1 {
        font-size: 2.75rem;
    }

    .img-gallery ul {
        display: block;
    }

    .img-gallery li {
        padding: 2rem 0;
    }

    .img-gallery img {
        width: 90vw;
        height: 100% !important;
    }

    .light-background.projection {
        display: none;
    }
    /* end of image gallery */

    /* Article Page styles */
    .article {
        margin: 0 4vw 1rem;
        padding: 10rem 1rem 5rem;
    }

    .article h1 {
        font-size: 2rem;
    }

    .article img {
        margin: 4rem 0 0;
        width: 83vw;
        height: 25vh;
        object-fit: cover;
    }

    .article h2 {
        font-size: 1.75rem;
    }

    .content {
        margin: 1rem 0;
        font-size: 1.25rem;
        max-width: 83vw;
    }

    .close-article {    
        right: 3rem;
        top: 7.375rem;
    }
    /* End of article page styles */

    /* featured below the bookshelf */
    #featured {
        margin: 0 5vw 0 5vw ;
        padding: 0;
    }

    #featured ul {
        display: block;
    }

    .featured-container {
        margin-bottom: 2rem;
        padding: 1.75rem 2rem 1rem 2rem;
    } 

    #featured img {
        width: 75vw;
        height: 35vh;
    }

    #featured p {
        padding: .25rem;
        max-width: 75vw;
    }
    /* End of featured */

    /* footer */
    #footer {
        display: block;
        margin-top: 1rem;
    }

    #footer .logo {
        text-align: center;
        margin-left: 26vw;
        padding-bottom: 2rem;
    }

    .footer-content p {
        margin: 0 1rem 3rem;
    }
}

@media (max-width: 480px) {
    /* Bookshelf and books */
 
    #bookshelf {
        background: url("/assets/img/shelf.png") 0px / 100% 117% no-repeat;
    }

    #bookshelf ul {
        margin: 3rem 5rem 3rem 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    #bookshelf li {
        margin: 0;
        transform: translate(10vw);
    } 

    #bookshelf p {
        margin: 1rem .5rem;
        max-width: 33vw;
        font-size: 1rem;
    }

    #bookshelf p:last-of-type {
        text-align: center;
        margin: 6rem .5rem;
    }

    #bookshelf img {
        height: 60vh;
    }

    .google-books {
        object-fit: fill !important;
        width: 33vw !important;
        border: 2px solid var(--book-text-color) !important;
        gap: 2px !important;
    }

    .book-title {
        transform: rotateZ(270deg) translateX(7rem);
        font-size: 2.375rem;
    } 
    /* End of bookshelf */
}
/* End of responsive style for smartphone*/


