* {
    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: 10vw;
    flex: 1;
}
#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: 3vw;
    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;
    z-index: 1001;
}
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;
    font-size: 20px;
}
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: center;
    align-items: center;
    width: 100%;
    margin-bottom: 6px;
}
.slideCover img {
    width: auto;
    height: 13vw;
}
.slideCover + figcaption {
    font-size: 1.2vw;
}
.centeredMain figure {
    width: 30%;
}
.fa-solid.fa-chevron-left, .fa-solid.fa-chevron-right {
    font-size: 2vw;
    margin: 5px;
}
.fa-solid.fa-chevron-left:hover, .fa-solid.fa-chevron-right:hover {
    cursor: pointer;
}
#recommended i {
    color: #2E694D;
}
#recommended i:hover {
    text-shadow: 0px 2px 2px white;
}
#popular i {
    color: #FFDDD1;
}
#popular i:hover {
    text-shadow: 0px 2px 2px black;
}
#recommended {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 70%;
    background-color: #FFDDD1;
    border-radius: 40px;
}
#recommended figure, #popular figure {
    margin-left: 0px;
    margin-right: 0px;
    flex: 1;
}
#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, #popTwo {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
}
#popPlaceholder {
    display: none;
}
.centeredMain figcaption {
    text-align: center;
    font-weight: 500;
}
#recommended button {
    font-style: italic;
    font-weight: 500;
    color: #ba7d67;
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 1.2vw;
}
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: 1.2vw;
}
.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;
}
.searchColumn {
    flex: 4.5;
}
.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;
    line-height: 1.2em;
    height: calc(1.2em * 2);
    width: 120px;
}
#sorting {
    width: 70%;
    text-align: right;
    margin-top: 8vw;
    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;
}
.subImage {
    float: left;
    padding: 10px;
    margin-right: 10px;
    width: 20%;
    height: auto;
}
.cartBook > form:hover {
    cursor: pointer;
}
.cartBook > form img {
    width: 100%;
    height: auto;
}
.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;
}
.cartButtons {
    display: flex;
    flex-direction: row;
}
#cartMain .cartColumn {
    justify-content: space-between;
}
.cartColumn {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 38%;
}
.fa-solid.fa-x {
    margin-top: 10px;
    margin-left: auto;
    margin-right: 20px;
    font-size: x-large;
}
.priceTag {
    line-height: 1;
    margin-top: 10px;
    margin-left: auto;
    font-size: 120%;
}
.deleteContainer {
    height: fit-content;
    width: fit-content;
}
.deleteButton {
    background-color: transparent;
    border: none;
    height: fit-content;
    width: fit-content;
}
#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: 10vw;
    color: #2E694D;
    margin-bottom: 10px;
    flex: 2;
}
.iconLinks {
    text-align: center;
    width: 30%;
}
.iconLinks p {
    flex: 1;
}
#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;
    flex: 1;
}
.detailText hr {
    width: 100%;
}
.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: 2.7vw;
}
#quote + p {
    font-family: "Baskervville SC", serif;
    font-style: italic;
    text-align: right;
    font-size: 1.3vw;
    margin-right: 20px;
    margin-top: -2vw;
    margin-bottom: 4vw;
}
@media only screen and (max-width: 900px) {
    #logo {
       flex-direction: row;
       align-items: center;
       margin-bottom: -15px;
       margin-left: 10px;
       width: fit-content;
    }
    #logo h1 {
        margin-bottom: 0px;
        margin-top: 0px;
        margin-left: 10px;
    }
    #logo > img {
        height: 5em;
    }
    #extraNav {
        width: fit-content;
        flex: 1;
    }
    nav {
        width: 100%;
        flex-direction: row;
        align-items: center;
        height: 40px;
    }
    nav > hr {
        display: none;
    }
    nav > a {
        font-size: 15px;
    }
    .fillerLink {
        display: none;
    }
    #middleContent {
        flex-direction: column;
    }
    .centeredMain {
        width: 100%;
    }
    #recommended, #popular {
        width: 95%;
    }
    .slideCover + figcaption, #recommended button, #popular button {
        font-size: 1.8vw;
    }
    .slideCover img {
        width: auto;
        height: 20vw;
    }
    #recommended i, #popular i {
        font-size: 4.5vw;
    }
    #searchResults {
        width: 95%;
    }
    .searchDesc {
        -webkit-line-clamp: 4;
    }
    #aboutUs {
        width: 90%;
        margin: auto;
        margin-top: 5%;
    }
    #aboutUs > h2 {
        text-align: center;
    }
    #quote {
        font-size: 4vw;
    }
    #quote + p {
        font-size: 2vw;
    }
    #orderTable {
        margin-top: 30px;
    }
    #cartMain {
        width: 95%;
    }
    nav:has(~ #cartMain) {
        position: relative;
    }
    #sorting, #bookArray, #pages {
        width: 90%;
    }
    .detailAll {
        width: 80%;
    }
}
@media only screen and (max-width: 510px) {
    #logo {
        flex-direction: row;
        align-items: center;
        width: fit-content;
        flex: 0;
        margin-bottom: 0px;
        margin-left: 0px;
    }
    #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;
    }
    .fillerLink {
        display: none;
    }
    .centeredMain {
        width: 100%;
    }
    .centeredMain > h2 {
        font-size: 20px;
        text-align: center;
    }
    .slideCover img {
        width: auto;
        height: 40vw;
    }
    #recommended, #popular {
        width: 95%;
    }
    #recommended i, #popular i {
        font-size: 8vw;
    }
    #popular {
        flex-direction: row;
    }
    #popOne, #popTwo {
        flex-direction: column;
        align-items: center;
    }
    #popOne figure:last-child {
        margin-left: 100%;
    }
    #popTwo {
        justify-content: start;
    }
    #popPlaceholder {
        display: block;
    }
    .slideCover + figcaption, #recommended button, #popular button {
        font-size: 3vw;
    }
    .fa-solid.fa-chevron-left, .fa-solid.fa-chevron-right {
        font-size: 6vw;
    }
    #searchResults {
        width: 95%;
    }
    .searchDesc {
        -webkit-line-clamp: 3;
    }
    #surveys {
        width: 95%;
    }
    #surveys i {
        font-size: 15vw;
        flex: 2;
    }
    .iconLinks {
        text-align: center;
        width: 30%;
    }
    .iconLinks p {
        flex: 1;
    }
    iframe {
        width: 70vw;
        height: auto;
    }
    #quote {
        font-size: 5vw;
    }
    #quote + p {
        font-size: 3vw;
    }
    #cartMain {
        flex-direction: column-reverse;
    }
    #summaryArea {
        width: 100%;
        margin-top: -50px;
        position: relative;
    }
    .cartButtons * {
        height: 25px;
        text-align: center;
        margin-bottom: 2px;
    }
    .cartButtons {
        flex-direction: column;
    }
    .cartAuthor {
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .cartTitle {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    #cartMain h2 {
        text-align: center;
    }
    #bookArray {
        flex-direction: column;
    }
    .bookColumn {
        flex-direction: row;
        justify-content: space-evenly;
        width: 100%;
        flex-wrap: wrap;
    }
    .bookColumn figcaption {
        width: 35vw;
    }
    .bookColumn figure {
        margin-bottom: 15px;
    }
    .oneBook {
        width: 30vw;
    }
    .detailAll {
        width: 90%;
    }
    .detailButtons button {
        width: auto;
        height: 100%;
        padding: 4px;
        margin-top: auto;
    }
    .detailButtons button:first-child {
        margin-right: 5px;
    }
    .detailText {
        height: 50vw;
    }
    .detailBook img {
        width: auto;
        height: 50vw;
    }
    .detailTitle {
        font-size: 125%;
        margin-bottom: 5px;
    }
    .detailAuthor {
        font-size: 110%;
    }
    .detailPrice {
        margin-top: 5px;
    }
}
