* {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background-color: #FFFDFA;
    margin: 0px;
}
header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    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;
}
.fillerLink {
    opacity: 0%;
    pointer-events: none;
}
#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;
    left: 1px;
}
#slider.transition::before {
    transition: 0.3s;
}
#slider > .fa-solid.fa-sun {
    float: left;
}
#slider > .fa-solid.fa-moon {
    float: right;
}
#toggle:checked + #slider::before {
    transform: translateX(87%);
}
#toggle:checked + #slider.transition::before {
    transition: 0.3s;
}
#searchBar {
    display: flex;
    align-items: center;
    width: 60%;
}
#searchQuery {
    height: 30px;
    width: 90%;
    margin-right: 5px;
    border-radius: 10px;
    border: none;
    box-shadow: inset 0px 0px 5px rgb(0, 0, 0, 0.5);
    text-indent: 10px;
}
#searchResults {
    display: flex;
    flex-direction: column;
    width: 70%;
    gap: 25px;
    margin-top: 20px;
}
#searchResults img {
    height: auto;
    width: 20%;
}
#searchResults img:hover {
    cursor: pointer;
}
#searchResults > div {
    display: flex;
    flex-direction: row;
    justify-content: start;
}
#searchResults p:not(.searchDesc) {
    margin: 0px 20px;
}
.searchDesc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-top: 30px;
    margin-bottom: 0px;
    margin-left: 20px;
}
#searchResults p:first-child {
    font-size: 18px;
}
.fa-solid.fa-magnifying-glass {
    font-size: 25px;
    margin-right: 5px;
}
.fa-solid.fa-magnifying-glass:hover {
    cursor: pointer;
}
.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;
    padding: 15px;
}
main {
    padding-bottom: 15px;
    width: 100%;
}
main img {
    height: 190px;
    width: auto;
}
h2 {
    font-size: larger;
}
.centeredMain span, .slideCover {
    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;
    margin: 5px;
}
.fa-solid.fa-chevron-left:hover, .fa-solid.fa-chevron-right:hover {
    font-size: xx-large;
    cursor: pointer;
}
#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;
}
#surveyBased {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#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;
}
#popular img:not(.active), #recommended img:not(.active) {
    display: none;
}
#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;
    align-self: center;
}
#recommended button {
    font-style: italic;
    font-weight: 500;
    color: #ba7d67;
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 17px;
}
button:hover {
    cursor: pointer;
    text-decoration: underline;
}
#popular button {
    font-style: italic;
    font-weight: 500;
    color: #FFDDD1;
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 15px;
}
.centeredMain img {
    box-shadow: 2px 2px 5px black;
}
footer {
    height: 70px;
    background-color: #ba7d67;
    width: 100%;
    margin-top: -15px;
}
#copyright, footer > p {
    position: relative;
    color: #FFF6EB;
    text-align: right;
    margin-right: 10px;
}
#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-between;
    margin-bottom: 10px;
}
.bookColumn, .searchColumn {
    display: flex;
    flex-direction: column;
}
.bookColumn {
    width: 120px;
}
.oneBook {
    position: relative;
    height: auto;
    max-height: 195px;
    width: 120px;
    box-shadow: 2px 2px 5px black;
}
.oneBook:hover, .slideCover img:hover {
    cursor: pointer;
}
.bookColumn figure {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    position: relative;
    width: fit-content;
    height: 240px;
    margin: 0px;
}
.bookColumn figcaption {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-top: 5px;
    font-size: .9em;
    height: 40px;
    width: 120px;
}
#sorting {
    width: 70%;
    text-align: right;
    margin-top: 100px;
    margin-bottom: 20px;
}
#pages {
    width: 70%;
    text-align: right;
    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;
    width: 20%;
    height: auto;
}
.cartBook > img:hover {
    cursor: pointer;
}
.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;
}
#cartMain .cartColumn {
    justify-content: space-between;
}
.cartColumn {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 38%;
}
.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;
    width: 30%;
}
#orderTable {
    background-color: white;
    width: 70%;
    height: 70%;
    border: 2px inset black;
    border-collapse: collapse;
    overflow: hidden;
}
#orderTable th {
    background-color: #FFDDD1;
    height: 60px;
    box-shadow: 0px 3px 5px #B87964;
}
#orderTable td {
    padding: 20px;
}
#orderTable td:nth-child(2) {
    width: 60%;
    border-left: 1px solid black;
}
#orderTable tr:nth-child(odd) {
    background-color: #fff6f3;
}
.detailAll {
    display: flex;
    flex-direction: column;
    width: 70%;
    margin: auto;
    margin-top: 5%;
    gap: 20px;
    justify-content: space-between;
}
.detailBook {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 25px;
}
.detailBook ~ hr {
    width: 100%;
    height: .2em;
    background-color: #B87964;
    border: none;
}
.detailBook ~ p {
    margin: 0px;
}
.detailBook img {
    width: 20vw;
    height: auto;
}
.detailText {
    display: flex;
    flex-direction: column;
    justify-content: start;
}
.detailText hr {
    width: 40vw;
}
.detailTitle {
    font-weight: bold;
    margin: 0px 5px;
    font-size: 25px;
}
.detailAuthor {
    font-style: italic;
    margin: 0px 5px;
    font-size: 18px;
}
.detailPrice {
    font-size: 20px;
    font-weight: 500;
}
.detailButtons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.detailButtons button {
    width: 15vw;
    height: 5vh;
    border-radius: 5px;
    background-color: #FFDDD1;
    font-weight: 500;
}
.extraDetails {
    text-align: center;
}
#aboutVid {
    text-align: center;
}
#quote {
    font-family: "Baskervville SC", serif;
    font-size: 40px;
}
#quote + p {
    font-family: "Baskervville SC", serif;
    font-style: italic;
    text-align: right;
}
@media only screen and (max-width: 510px) {
    #logo {
        flex-direction: row;
        align-items: center;
        width: fit-content;
        flex: 0;
    }
    #logo > img {
        height: 5em;
        margin-left: 10px;
        margin-bottom: -15px;
    }
    #logo h1 {
        display: none;
    }
    #extraNav {
        width: fit-content;
        flex: 1;
    }
    #middleContent {
        flex-direction: column;
    }
    nav {
        width: 100%;
        flex-direction: row;
        align-items: center;
        height: 40px;
    }
    nav > hr {
        display: none;
    }
    nav > a {
        font-size: 15px;
    }
    .centeredMain > h2 {
        font-size: 15px;
    }
    #recommended, #popular {
        width: 95%;
    }
    #recommended figure, #popular figure {
        width: 50%;
        height: fit-content;
    }
    #recommended i, #popular i {
        width: 10%;
        height: auto;
    }
    #recommended img, #popular img {
        width: 80%;
        height: auto;
    }
}
