* {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background-color: #FFFDFA;
    margin: 0px;
}
header {
    height: 30%;
    position: relative;
    box-shadow: 0px 0.5px 10px rgb(0, 0, 0, 0.6);
}
#logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    width: 15%;
}
#logo > img {
    height: 8em;
    width: auto;
}
#logo > h1 {
    font-size: x-large;
    font-family: "Cormorant SC", serif;
    color: #6B9A83;
    margin-bottom: 10px;
    margin-top: -30px;
    text-align: center;
}
#extraNav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    right: 0px;
    bottom: 10px;
    width: 30%;
}
#modeSwitch {
    background-color: white;
    border: 1px solid black;
    height: 25px;
    width: 45px;
    border-radius: 20px;
    position: relative;
    margin-right: 10px;
}
#toggle {
    position: absolute;
    height: 20px;
    width: 38px;
    padding: 0px;
    appearance: none;
    z-index: 1000;
}
#slider {
    position: absolute;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 25px;
    width: 45px;
    border-radius: 20px;
    left: 50%;
    transform: translateX(-50%);
}
#slider::before {
    width: 23px;
    height: 23px;
    border-radius: 15px;
    content: "";
    position: absolute;
    background-color: black;
    right: 1px;
    transition: 0.3s;
}
#slider > .fa-solid.fa-sun {
    float: left;
}
#slider > .fa-solid.fa-moon {
    float: right;
}
#toggle:checked + #slider::before {
    transform: translateX(-87%);
    transition: 0.3s;
}
#searchBar {
    display: flex;
    align-items: center;
    width: 250px;
}
#searchQuery {
    height: 30px;
    width: 200px;
    margin-right: 5px;
    border-radius: 10px;
    border: none;
    box-shadow: inset 0px 0px 5px rgb(0, 0, 0, 0.5);
}
.fa-solid.fa-magnifying-glass {
    font-size: 25px;
    margin-right: 5px;
}
.fa-solid.fa-cart-shopping {
    font-size: 25px;
}
.thickHr {
    height: 1em;
    width: 100%;
    background-color: #B87964;
    border: none;
    padding: 0px;
    margin: 0px;
}
#middleContent {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    height: 100%;
    margin-bottom: 0px;
}
nav {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    text-align: center;
    background-color: #C7D8D0;
    float: left;
    width: 13%;
    overflow: hidden;
    box-shadow: 3px 3px 5px rgb(0, 0, 0, 0.3);
    margin-bottom: 0px;
    position: sticky;
    top: 0;
    height: 100vh;
}
nav > hr {
    background-color: #6B9A83;
    box-shadow: 1px 3px 5px rgb(0, 0, 0, 0.7);
    height: 1em;
    width: 100%;
    border: none;
    padding: 0px;
    margin: 0px;
}
nav > a {
    font-size: 17px;
}
a {
    font-weight: 600;
    color: black;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.centeredMain {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 87%;
}
.centeredMain > h2 {
    color: #2E694D;
}
main {
    padding-bottom: 15px;
    width: 100%;
}
main img {
    height: 190px;
    width: auto;
}
h2 {
    font-size: larger;
}
.centeredMain span {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    margin-bottom: 6px;
}
.centeredMain figure {
    width: 20%;
}
.fa-solid.fa-chevron-left, .fa-solid.fa-chevron-right {
    font-size: xx-large;
}
#recommended .fa-solid.fa-chevron-left, #recommended .fa-solid.fa-chevron-right {
    color: #2E694D;
}
#popular .fa-solid.fa-chevron-left, #popular .fa-solid.fa-chevron-right {
    color: #FFDDD1;
}
#recommended {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 70%;
    background-color: #FFDDD1;
    border-radius: 40px;
}
#popular {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 70%;
    background-color: #6B9A83;
    border-radius: 40px;
}
#popOne {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
}
#popTwo {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
}
.centeredMain figcaption {
    text-align: center;
    font-weight: 500;
}
#recommended a {
    font-style: italic;
    color: #ba7d67;
}
#popular a {
    font-style: italic;
    color: #FFDDD1;
}
.centeredMain img {
    box-shadow: 2px 2px 5px black;
}
footer {
    height: 70px;
    background-color: #ba7d67;
    width: 100%;
    margin-top: -15px;
}
#copyright {
    position: relative;
    color: #FFF6EB;
    text-align: right;
    margin-right: 5px;
    top: 99%;
    transform: translateY(-100%);
}
#aboutUs {
    display: inline-block;
    width: 60%;
    margin-left: 10%;
    margin-top: 5%;
}
#aboutUs > img {
    float: right;
    padding: 7px;
}
#bookArray {
    display: flex;
    flex-direction: row;
    width: 70%;
    justify-content: space-evenly;
    align-items: center;
}
.bookColumn {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}
.bookColumn figure {
    width: fit-content;
}
.bookColumn figcaption {
    margin-top: 5px;
}
#sorting {
    width: 74%;
    text-align: right;
    margin-right: 0px;
    margin-top: 100px;
    margin-bottom: 15px;
}
#pages {
    width: 74%;
    text-align: right;
    margin-right: 0px;
    margin-top: 20px;
    margin-bottom: 15px;
}
#cartMain {
    display: flex;
    flex-direction: row;
    width: 60%;
    justify-content: space-evenly;
    gap: 20px;
    margin: auto;
    margin-top: 50px;
}
#savedArea {
    display: flex;
    flex-direction: column;
    flex: 2;
}
#summaryArea {
    position: sticky;
    top: 0;
    align-self: flex-start;
    flex: 1;
}
#summary {
    background-color: #C7D8D0;
    border: 2px solid black;
    font-weight: 500;
}
#summary p {
    margin: 30px;
}
#summary hr {
    width: 80%;
    height: 2px;
    background-color: black;
    border: none;
}
#savedCart, #savedLater{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #FFDDD1;
    border: 2px solid black;
}
#submitCart {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background-color: #6B9A83;
    font-weight: 500;
    width: 80%;
    height: 40px;
    margin-bottom: 10px;
}
.cartBook {
    display: flex;
    flex-direction: row;
    width: 100%;
}
.cartBook:nth-child(even) {
    background-color: #ffece6;
}
.cartBook > img {
    float: left;
    padding: 10px;
    margin-right: 10px;
}
.cartText {
    margin-top: 10px;
}
.cartText p {
    margin-top: 0px;
    margin-bottom: 0px;
}
.cartTitle {
    font-weight: bold;
}
.cartAuthor {
    font-style: italic;
}
.cartButtons * {
    border-radius: 5px;
    height: 40px;
    width: 100px;
    text-align: center;
    margin-right: 10px;
    background-color: white;
    font-weight: 500;
    margin-bottom: 10px;
}
.cartColumn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.fa-solid.fa-x, .priceTag {
    margin-top: 10px;
    margin-left: auto;
    margin-right: 20px;
    font-size: larger;
}
.priceTag {
    line-height: 1;
    margin-right: -10px;
}
#checkoutInfo {
    display: flex;
    flex-direction: column;
    background-color: #FFFDFA;
    border: 2px solid black;
    width: 80%;
    margin: auto;
    margin-bottom: 10px;
}
#checkoutInfo input[type="radio"] {
    float: left;
    margin-right: 5px;
}
#checkoutInfo > * {
    margin-left: 5px;
    margin-right: 5px;
}
#surveys {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 60%;
}
#surveys i {
    font-size: 150px;
    color: #2E694D;
    margin-bottom: 10px;
}
.iconLinks {
    text-align: center;
}
#orderTable {
    background-color: #ffece6;
    width: 70%;
    height: 70%;
    border: 2px inset black;
    border-collapse: collapse;
}
@media only screen and (max-width: 510px) {
    #logo {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 55%
    }
    #logo > img {
        height: 5em;
    }
    #logo > h1 {
        font-size: large;
        margin: 0;
    }
    #middleContent {
        flex-direction: column;
    }
    nav {
        width: 100%;
        flex-direction: row;
    }
    nav > hr {
        display: none;
    }
}
