@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

#refundTable{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#refundTable, #refundTable th, #refundTable td{
    border: 1px solid;
    border-collapse: collapse;
}
body{
    font-family: "Roboto", sans-serif;
    overflow-x: hidden;
    background-color: rgb(234,237,237);
    min-height: 100vh;
}

#setPass, #confPass, #sendPass{
    width: 100%;
    font-size: 1.4em;
}
#sendPass{
    color: black;
    background-color: lavender;
}
#cart{
    width: 20%;
    position: fixed;
    top: 0;
    right: -20%;
    transition-duration: 0.5s;
    z-index: 3;
    background-color: rgb(234,237,237);
    height: 100vh;
}

#closeCart, #hideAccount{
    font-size: 35px;
    width: 35px;
    height: 35px;
    margin-bottom: 15px;
}

#closeCart img, #hideAccount img{
    width: 100%;
    height: auto;
}
#closeCart:hover, #hideAccount:hover{
    cursor: pointer;
}

#signinForm, #signupForm, #passForm, #accountForm{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#signinForm input, #passForm input, #accountForm input, #contact input{
    width: 100%;
    font-size: 1.2em;
    text-align: center;
}

#submitContact{
    margin-top: 5px;
}

#signin, #signup, #changePass, #saveChanges{
    width: 100%;
    margin-bottom: 5px;
    background-color: lavender;
    border: solid black 1px;
    border-radius: 2px;
}

#swapButtons{
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}

#upForm, #passButton{
    width: 50%;
}

#upForm, #inForm, #revertForm{
    color: white;
    background-color: black;
}

#setemail, #address{
    width: 50%;
}

.formDiv{
    display: flex;
}

.formDiv input, .formDiv select, #names input, .names input{
    flex-grow: 1;
    font-size: 1.2em;
}

.fullInputs{
    width: 100%;
}

.fullInputs input{
    width: 100%;
    font-size: 1.2em;
}

#mainButtons{
    width: 100%;
}

#mainButtons input{
    width: 100%;
    font-size: 1.2em;
}

#cartItems{
    height: 80vh;
    overflow-y: auto;
    margin-left: 10px;
}

#accountDetails{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 80%;
}

#accountDetails p{
    text-align: center;
}

#editAccount, #submitContact{
    width: 100%;
    font-size: 1.2em;
    height: 1.4em;
    line-height: 1.4em;
    margin-bottom: 5px;
    background-color: lavender;
    border-radius: 5px;
}

#sOut{
    width: 75%;
    margin-left: 12.5%;
    font-size: 1.2em;
    height: 1.5em;
    line-height: 1.5em;
    background-color: red;
    color: white;
    border-radius: 5px;
}

#cancelChanges{
    width: 75% !important;
    margin-left: 12.5%;
    font-size: 1.2em;
    height: 1.5em;
    line-height: 1.5em;
    background-color: black;
    color: white;
    border-radius: 5px;
}

.cartEntry{
    display: flex;
    width: 100%;
    height: 100px;
    justify-content: space-between;
}

.noImg{
    width: 80%;
}

h4{
    margin: 0px;
}
.cartEntry img{
    height: 100%;
    width: auto;
    max-width: 100px;
}

.itemText{
    display: flex;
    flex-direction: column;
}

.itemButtons{
    display: flex;
    width: 100% !important;
}

.itemButtons input{
    font-size: 1.2em;
}

.cartQty{
    width: 20%;
}

.cartRemove{
    width: 80% !important;
    color: white;
    background-color: red;
    
}

#cartFooter{
    border-top: 1px solid black;
    margin-left: 10px;
}

#checkout{
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    height: 1.7em;
    font-size: 1.3em;
    line-height: 1.7em;
    background-color: lavender;
    transition-duration: 0.2s;
    border-radius: 5px;
}

#checkout:hover{
    color: lavender;
    border-color: lavender;
    background-color: black;
}

.shown{
    right: 0 !important;
}

#mainContent{
    z-index: 1;
}

#dimDiv{
    background-color: black;
    opacity: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    position: fixed;
    top: 0;
    left: 0;
    transition-duration: 0.5s;
}

.unfocus{
    opacity: 0.5 !important;
    z-index: 2 !important;
}

#accountPage{
    z-index: -1;
    opacity: 0;
    transition-duration: 0.2s;    
    width: 60%;
    height: 40%;
    position: fixed;
    top: 30%;
    left: 20%;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
    background-color: rgb(234,237,237);
    border-radius: 3px;
    padding: 3px;
}

.unrendered{
    display: none !important;
}

#footer{
    padding-top: 50px;
    width: 100vw;
    position: relative;
    bottom: 0px;
}

.visible{
    z-index: 3 !important;
    opacity: 1 !important;
}

.item{
    max-width: 200px;
    width: 20%;
    height: 300px;
    border-radius: 5px;
    border: solid black 1px;
}

.item:hover{
    cursor: pointer;
}

.thumbImg{
    width: 98%;
    display: block;
    margin: auto;
    height: auto;
    padding-top: 5px;
    max-height: 200px;
    aspect-ratio: 1/1;
}
#rating{
    height: 20px;
    display: flex;
    flex-direction: row;
}
#rating p{
    font-size: 0.6em;
}
#rating img{
    height: 20px !important;
    width: auto !important;
    max-width: 200px !important;
}

h3{
    text-align: center;
}
.items{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#topBanner{
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 50px;
}

#leftSide{
    width: 40%;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

#rightSide{
    display: flex;
    max-width: 40vw;
    width: 20%;
    justify-content: space-around;
}
#leftSide a{
    width: 20%;
    text-align: center;
    transition-duration: 0.2s;
    line-height: 25px;
    height: 55px;
    font-size: 1.2em;
}

a{
    text-decoration: none;
}
a:visited{
    color: black;
    text-decoration: none;  
}
#leftSide a:hover{
    background-color: black;
    color: lavender;
}
#leftSide a:not(.edge){
    border-right: 2px solid black;
}
.itemName{
    margin: 0px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
    line-clamp: 2; 
    -webkit-box-orient: vertical;
}

.itemPrice{
    font-size: 1.2em;
}

#cartToggle{
    width: 33%;
    border: solid black 1px;
    border-radius: 5px;
    text-align: center;
    height: 25px;
    line-height: 25px;
    transition-duration: 0.2s;
}
#cartToggle:hover{
    background-color: black;
    color: lavender;
}

#accToggle{
    width: 33%;
    height: 25px;
    line-height: 25px;
    transition-duration: 0.2s;
    text-align: center;
    font-size: 1.2em;
}

#accToggle:hover{
    color: purple;
}
#rightSide a{
    width: 33%;
    height: 25px;
    line-height: 25px;
    text-align: center;
    font-size: 1.2em;
    transition-duration: 0.2s;
    border: solid black 1px;
    border-radius: 5px;
}
#rightSide a:hover{
    height: 25px;
    line-height: 25px;
    font-size: 1.2em;
    color: purple;
    border-color: purple;
}

#sellMeYourStuff{
    height: 20vh;
    margin-bottom: 5px;
}

#initBanner{
    width: 100vw;
    height: 60vh;
    border: solid black 1px;
    background-image: url('images/bgimg.jfif');
    background-color: rgba(0,0,0,1);
    position: relative;
    margin-bottom: 90px;
    left: -8px;
}

#initBanner p{
    margin-left: 30px;
    margin-right: 5px;
}

#shop, #shopAll{
    color: lavender;
    background-color: black;
    width: 25%;
    border: solid black 1px;
    border-radius: 5px;
    font-size: 1.3em;
    height: 1.5em;
    line-height: 1.5em;
}

#aboutFeatured, #aboutItems, #getSales{
    color: lavender;
    background-color: black;
    width: 50%;
    border: solid black 1px;
    border-radius: 5px;
    font-size: 1.3em;
    height: 1.5em;
    line-height: 1.5em;
    margin-left: 25%;
}

#keyButtons{
    margin-top: auto;
    margin-bottom: 15px;
    margin-left: 15px;
    width: 50%;
    display: flex;
    flex-direction: column;
}
#keyButtons input{
    width: 50%;
    height: 40px;
    font-size: 1.5em;
    margin-bottom: 5px;
    background-color: lavender;
    color: black;
    transition-duration: 0.2s;
}

#keyButtons input:hover, .shopCollection:hover{
    color: lavender;
    background-color: black;
}

#leftAlign{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 100%;
    height: 90vh;
}

#collections{
    width: 100vw;
    position: relative;
    left: -8px;
}

.collection{
    width: 100%;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.collection img{
    z-index: 1;
    width: 100%;
    position: absolute;
    height: 350px;
}

.collection div{
    margin-left: 30px;
    margin-right: 15px;
    z-index: 2;
}

.shopCollection{
    z-index: 2;
    margin-right:30px;
    margin-bottom: 15px;
    width: 50%;
    height: 40px;
    font-size: 1.5em;
    line-height: 40px;
    margin-left: auto;
    background-color: lavender;
    color: black;
    transition-duration: 0.2s;
    border-radius: 5px;
}

#footer{
    position: relative;
    left: 0;
    right: 0;
    margin-left: -8px;
    border-top: solid black 1px;
    background-color: lavender;
    height: 20vh;
    margin-bottom: -8px;
}
#footLinks{
    display: flex;
    flex-direction: row;
    text-align: center;
    justify-content: space-around;
    width: 100%;
}

#footLinks a{
    border-left: solid lavender 15px;
    border-right: solid lavender 15px;
    width: 20%;
    height: 40px;
    line-height: 40px;
    transition-duration: 0.3s;
}

#footLinks a:hover{
    border-color: purple;
    border-width: 1px;
    color: purple;
}
.miniText, .miniText a, .miniText a:visited{
    font-size: 1em;
    color: darkgrey;
    text-align: center;
}

.macroText{
    text-align: center;
}

#mediaLinks{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-top: 20px;
}
#linksMain{
    display: flex;
    flex-direction: row;
    width: 120px !important;
    justify-content: space-between;
}
#mediaLinks div{
    width: 33%;
}

#mediaLinks a{
    width: 35px;
    align-content: center;
    text-align: center;
}

#mediaLinks a img{
    width: 100%;
    height: auto;
}

#mainContent{
    min-height: 70vh;
    margin-bottom: 15px;
}

.edge img{
    width: auto;
    height: 100%;
}

#gallery{
    width: 40vw;
    display: flex;
    flex-direction: row;
}

#Previews{
    width: 10%;
    max-height: 400px;
    overflow-y: auto;
}

#mainImage{
    width: auto;
    height: 400px;
}

#item{
    display: flex;
    flex-direction: row;
}

#textInfo{
    display: flex;
    justify-content: space-between;
    width: 55vw;
}

#information p{
    font-size: 1.2em;
}

#mainDetails h3{
    text-align: left;
    font-size: 1.6em;
    margin-bottom: 4px;
}

#itemReview{
    height: 50px;
}
#itemReview img, #itemReview .rateGrade{
    height: 20px;
}

#itemReview p{
    font-size: 0.8em;
    margin-top: 0px;
}
#quantitySelect, #cartAdd{
    width: 100%;
    font-size: 1.3em; 
    text-align: center;
    height: 1.5em;
}
#cartAdd{
    background-color: black;
    color: lavender;
}
#quantControls{
    margin-top: auto;
}

.cartItem{
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    height: 80px;
    padding-bottom: 5px;
    border-bottom: solid black 1px;
}
.imgandBase{
    display: flex;
    flex-direction: row;
}
.cartImg{
    height: 80px;
    width: 80px;
}
.imgandBase p{
    margin-top: 0px;
}
.toItem{
    font-weight: bold;
}

.cartControls{
    width: 30vw;
}
.quantitySelect, .cartQuant, .mainCartRemove{
    width: 100%;
    font-size: 1.3em; 
    text-align: center;
    height: 1.5em;
}
.mainCartRemove{
    color: white;
    background-color: red;
}
#toShipping, .halfCartButton, #orderNow{
    width: 100%;
    background-color: lavender;
    border: solid black 1px;
    border-radius: 2px;
    font-size: 1.2em;
    height: 1.5em;
    color: black;
    transition-duration: 0.1s;
}
#toShipping:hover, .halfCartButton:hover, #orderNow:hover{
    border-color: purple;
    background-color: black;
    color: lavender;
}
#bottomCartControls{
    margin-top: 50px;
}
.halfCartButton, #orderNow{
    width: 50%;
}
#CartButtons{
    display: flex;
    flex-direction: row;
}
#names, .names{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
#fname, #lname{
    flex-grow: 1;
}
#email{
    width: 100%;
}
#saddress, #baddress, #cNo, #cName{
    width: 100%;
    font-size: 1.2em;
}
#scity, #sstate, #sZIP, #bcity, #bstate, #bZIP{
    width: 33%;
}
.fullSetCart div{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.fullSetCart div input, .fullSetCart div select{
    font-size: 1.2em;
}
#otherDetails{
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    font-size: 1.2em;
}
#cVV{
    width: 50%;
    font-size: 1.2em;
}
#expField{
    width: 50%;
    display: flex;
    flex-direction: row;
}
#cExpM, #cExpY{
    width: 50%;
    font-size: 1.2em;
}
#bottomControls{
    display: flex;
    flex-direction: row;
}
#orderTechinfo p{
    font-size: 1.2em;
    text-align: center
}
#mobileNavMenu, #mobileFooter{
    display: none;
}

@media (max-aspect-ratio: 1/1) {
    #mainContent{
        min-height: 100vh;
    }
    #signinForm, #signupForm, #passForm{
        width: 98%;
        margin-left: auto;
        margin-right: auto;
    }
    #mobileFooter{
        width: 100vw;
        position: sticky;
        bottom: 0;
        left: 0;
        margin-left: -2vw;
        background-color: lavender;
        height: 15vh;
        display: flex;
        flex-direction: row;
        margin-bottom: 0px;
        z-index: 3;
    }
    #mobileFooter div{
        width: calc(100vw/3);
        height: 100%;
        transition-duration: 0.1s;
    }
    #mobileFooter div img{
        width: 100%;
        height: 100%;
        transition-duration: 0.1s;
    }
    #mobileFooter div:active img{
        filter: invert(100%);
    }
    #mobileFooter div:active{
        background-color: black;
    }
    #accountButton{
        border-left: solid black 2px;
        border-right: solid black 2px;
    }
    #hideNav img, #closeCart img, #hideAccount img{
        height: 100%;
        width: auto;

    }
    #hideNav, #closeCart, #hideAccount{
        height: 45px;
        margin-bottom: 15px;
        width: 45px;
    }
    #hideNav, #hideAccount{
        margin-left: auto;
    }
    #mobileNavMenu div{
        display: flex;
        flex-direction: column;
    }
    #mobileNavMenu a{
        text-decoration: none;
        font-size: 1.4em;
        color: black;
        margin-bottom: 5px;
        border-bottom: solid black 2px;
    }
    #mobileNavMenu a:active{
        text-decoration: none;
        font-size: 1.4em;
        color: lavender;
        border-color: lavender;
    }
    #navFooter{
        font-size: 0.8em;
    }
    #navFooter a{
        margin-bottom: 15px;
    }
    #mobileNavMenu{
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        height: 100vh;
        width: 100vw;
        background-color: white;
        position: fixed;
        top: 0;
        z-index: 5;
        left: -100vw;
        transition-duration: 0.2s;
    }
    #mobileNavMenu.active{
        left: 0vw;
    }
    .cartEntry{
        width: 100%;
        height: 75px; 
        display: flex;
    }
    .cartEntry div:not(.noImg){
        width: 75px;
        height: 75px;
    }
    .cartEntry div a{
        width: 100%;
    }
    .cartEntry div a img{
        width: 100%;
        height: 100%;
    }
    .noImg{
        width: calc(100% - 75px);
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .itemButtons, .itemText{
        display: flex;
        flex-direction: column;
        width: 50%;
    }
    .itemText h4, .itemText p{
        margin: 0;
    }
    #cart{
        display: flex;
        flex-direction: column;
        width: 100vw;
        height: 100vh;
        background-color: white;
        position: fixed;
        top: 0;
        right: -100vw;
        z-index: 5;
        transition-duration: 0.2s;
    }
    #cartFooter{
        margin-top: auto;
        margin-left: 3px;
        margin-bottom: 15px;
    }
    #cart.shown{
        right: 0vw;
    }
    #accountPage{
        opacity: 1;
        position: fixed;
        top: 100vh;
        left: 0vw;
        z-index: 5 !important;
        width: 100vw;
        height: 100vh;
        background-color: white;
        transition-duration: 0.2s;

    }
    #accountPage.visible{
        top: 0;
    }
    #topBanner, #footer{
        display: none;
    }
    .cartQty, .cartRemove{
        width: 100% !important;
    }
    #shop, #shopAll, #keyButtons{
    width: 100% !important;
    }
    .item{
        min-width: 175px;
    }
    .abtImg{
        display: none;
    }
    #gallery{
        display: flex;
        flex-direction: column-reverse !important;
        width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }
    #mainImage, #Previews{
        margin-left: auto;
        margin-right: auto;
    }
    #item{
        display: flex;
        flex-direction: column;
    }
    #textInfo{
        width: 100%;
    }
    #textInfo{
        display: flex;
        flex-direction: column;
    }
    #quantControls{
        margin-top: 0;
    }
    #mainDetails{
        margin-top: 15px;
    }
    #mainDetails h2, #mainDetails h3{
        margin: 0px;
    }
    #mainDetails h2{
        font-size: 1.2em;
    }
    #itemReviews{
        float: left;
    }
    #scity, #sstate, #sZIP, #bcity, #bstate, #bZIP{
        width: 100%;
    }
    #shippingOpts h4{
        text-align: center;
        margin-top: 10px;
    }
    #shippingOpts div{
        margin-left: auto;
        margin-right: auto;
        padding-left: auto;
        padding-right: auto;
        text-align: center;
        align-content: center;
        font-size: 1.2em;
    }
    #terms{
        margin-bottom: 15px;
    }
}