@charset "utf-8";
/*CSS document*/

@font-face{
	font-family: 'Tomorrow';
	src: url("fonts/Tomorrow/Tomorrow-Regular.ttf");
}

@font-face{
	font-family: 'Cooper Hewitt';
	src: url("fonts/cooper-hewitt/CooperHewitt-Medium.otf");
}

@font-face{
	font-family: 'PT Sans';
	src: url("fonts/PT_Sans/PTSans-Regular.ttf");
}

:root{
    --darkNavy: #22283a;
    --denimBlue: #1e63a0;
    --skyBlue: #5ba6cc;
    --cream: #fbf8ea;
    --pewter: #626060;
    --copper: #b36c50;
    --offWhite: #f2f2f2;
}

html{
    scroll-behavior: smooth;
}

*{
    font-family: "PT Sans";
    color: var(--darkNavy);
    margin: 0;
    padding: 0;
}

body{
    box-sizing: border-box;
    position: relative;
    background-color: var(--cream);
    overflow-x: hidden;
}

h1{
    color: var(--denimBlue);
    font-size: 28px;
    font-weight: 600;
    font-family: 'Tomorrow';
}

h2{
    color: var(--darkNavy);
    font-size: 24px;
    font-weight: 400;
    font-family: 'Cooper Hewitt';
}

p{
    color: var(--darkNavy);
    font-size: 16px;
    font-weight: 400;
    font-family: 'PT Sans';
}

a{
    text-decoration: none;
}

.stroke{
    text-shadow:
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        2px 2px 0 #fff;
}

/*Scrollbar Style*/
/* width */
::-webkit-scrollbar {
    width: 14px;
    box-shadow: 1px 1px 3px 1px var(--pewter);
    border-radius: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: var(--cream);
    border: solid 1px #cfcec9;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background-color: var(--pewter);
    border-radius: 6px;

}
  
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--darkNavy);
}

input[type="submit"]{
    padding: 6px 10px 6px 10px;
    background-color: var(--denimBlue);
    color: var(--offWhite);
    font-size: 20px;
    font-weight: 700;
    box-shadow: #777 1px 1px 3px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.submit{
    padding: 6px 10px 6px 10px;
    background-color: var(--denimBlue);
    color: var(--offWhite);
    font-size: 20px;
    font-weight: 700;
    box-shadow: #777 1px 1px 3px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.submit:hover{
    transform: scale(1.1);
    box-shadow: #626060 1px 1px 4px 3px;
}

.lead{
    padding: 6px 10px 6px 10px;
    background-color: var(--denimBlue);
    color: var(--offWhite);
    font-size: 20px;
    font-weight: 700;
    box-shadow: #777 1px 1px 3px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.lead:hover{
    transform: scale(1.1);
    box-shadow: #626060 1px 1px 4px 3px;
}

.errorMessage{
    padding: 5px;
    border-radius: 5px;
    display: flex;
    width: calc(100% - 10px);
    background-color: rgba(179, 108, 80, 0.65);
    justify-content: center;
}

.successMessage{
    padding: 5px;
    border-radius: 5px;
    display: flex;
    width: calc(100% - 10px);
    background-color: rgba(100, 179, 80, 0.65);
    justify-content: center;
}

.absoluteError{
    position: absolute;
    top: 0;
    z-index: 11;

    animation:absoluteError 0.5s 1;
    -webkit-animation:absoluteError 0.5s 1;
    animation-fill-mode: forwards;

    animation-delay:3s;
    -webkit-animation-delay:3s; /* Safari and Chrome */
    -webkit-animation-fill-mode: forwards;

} 

@keyframes absoluteError{
    from {opacity :1;}
    to {opacity :0;}
}

@-webkit-keyframes absoluteError{
    from {opacity :1;}
    to {opacity :0;}
}

.topBar{
    background-color: var(--cream);
    padding: 20px;
    box-shadow: 0 0 5px 5px var(--pewter);
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 40px);
    height: 10vh;
    max-height: 200px;
    z-index: 10;
}

.topBar #logoLink{
    float: left;
    text-decoration: none;
    background-image: url("images/AmaTradie Logo Coloured Transparent V1 Slim(800 x 300 px).png");
    background-size: cover;
    background-repeat: no-repeat;
    height: 10vh;
    max-height: 200px;
    width: 20vw;
    min-width: 240px;
    max-width: 280px;
}

.topBar img{
    height: 10vh;
    max-height: 200px;
}

.mobileNav{
    display: none;
    float: right;
    margin-right: 20px;
    height: calc(4vh);
    width: calc(4vh);
}

#burger{
    position: relative;
    height: 100%;
    width: 100%;
}

.burgerBar{
    height: 20%;
    width: 100%;
    border-radius: 10px;
    background-color: var(--darkNavy);
    transform-origin: 0% 50%;
    transition: transform 200ms;
}

#bar1{
    position: absolute;
    top: 0;
}

#bar2{
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
}

#bar3{
    position: absolute;
    bottom: 0;
}

.hideBar{
    display: none;
}

.tiltBarDown{
    transform: rotate(45deg);
    width: 110%;
}

.tiltBarUp{
    transform: rotate(-45deg);
    width: 110%;
}

.desktopNav{
    position: relative;
    float: right;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: right;
    top: 50%;
    transform: translate(0, -50%);
    height: auto;
}

.navLink{
    position: relative;
    font-size: 20px;
    font-weight: 600;
    margin-right: 10px;
    transition: text-shadow 100ms;
    transition: font-size 100ms;
}

.navLink:hover{
    cursor: pointer;
    font-weight: 800;
    font-size: 22px;
    text-shadow: #777 1px 1px 3px;
}

.desktopCriticalNav{
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: right;
    align-items: center;
    float: right;
    top: 50%;
    transform: translate(0, -50%);
    height: auto;
}

.mobileCriticalNav{
    display: none;
}

.dynamicButtons{
    margin-right: 10px;
}

.loginButton{
    position: relative;
    font-size: 20px;
    font-weight: 600;
    padding: 10px;
    border: solid 2px var(--darkNavy);
    border-radius: 5px;
    transition: 100ms;
}

.loginButton:hover{
    cursor: pointer;
    box-shadow: #777 1px 1px 3px;
}

.registerButton{
    position: relative;
    font-size: 20px;
    font-weight: 600;
    padding: 12px;
    background-color: var(--darkNavy);
    color: var(--cream);
    border-radius: 5px;
    transition: 100ms;
}

.registerButton i{
    color: var(--cream);
}

.registerButton:hover{
    cursor: pointer;
    box-shadow: #777 1px 1px 3px;
}

.listingButton{
    position: relative;
    font-size: 20px;
    font-weight: 600;
    padding: 12px;
    min-width: 145px;
    background-color: var(--darkNavy);
    color: var(--cream);
    border-radius: 5px;
    transition: 100ms;
    height: 26px;
}

.listingButton i{
    color: var(--cream);
}

.listingButton:hover{
    cursor: pointer;
    box-shadow: #777 1px 1px 3px;
}

.accountButton img{
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
}

.heroSection{
    box-sizing: border-box;
    height: 50vh;
    width: calc(82vw - 14px);
    max-width: calc(100vw - 240px);
    position: absolute;
    top: calc(10vh + 40px);
    right: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url("images/hero_background.png");
    background-repeat: no-repeat;
    background-position: 100% 0%;
    background-size: cover;
    padding: 0 120px;
    z-index: 2;
}

.heroSection div{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.heroSection h1{
    font-size: 4vw;
    text-align: center;
    text-shadow: #fff 1px 1px 3px;
}

.heroSection h2{
    font-size: 1.6vw;
    text-align: center;
}

.heroSection a{
    margin: 0 auto;
}

.mobileSideBar{
    display: none;
    justify-content: center;
    align-items: center;
    background-color: var(--cream);
    padding: 10px 10px 10px 5px;
    height: 40px;
    width: 35px;
    position: fixed;
    left: 0;
    top: 200px;
    z-index: 10;
    cursor: pointer;
    border: #333 solid 1px;
    border-left: none;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
}

.sideBar{
    box-sizing: border-box;
    position: fixed;
    top: calc(10vh + 40px);
    width: 18vw;
    min-width: 220px;
    height: calc(90vh - 40px);
    overflow-y: scroll;
    overflow-x: hidden;
    background-color: var(--skyBlue);
    z-index: 3;
}

.sort{
    padding: 10px;
    margin: 10px;
    background-color: var(--cream);
    border-radius: 10px;
}

.filter{
    padding: 10px;
    margin: 10px;
    background-color: var(--cream);
    border-radius: 10px;
    position: relative;
}

.filterDropDownItem{
    font-weight: bold;
    margin-top: 10px;
}

.filterDropDownItem span{
    cursor: pointer;
    width: 100%;
}

.filterDropDownItem span i{
    float: right;
}

.filterDropDownList{
    display: none;
    padding-left: 10px;
    font-weight: 400;
}

.showFilters{
    display: block;
}

.priceContent{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 10px;
}

.rangeSlider{
    width: 100%;
    position: relative;
    left: 0;
    margin: 15px 0 30px 0;
}

input[type="range"]{
    display: block;
    --webkit-appearance: none;
    width: 100%;
    background: transparent;
    position: absolute;
}

input[type="range"]::-webkit-slider-thumb{
    -webkit-appearance: none;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background-color: var(--denimBlue);
    cursor: pointer;
    margin-top: -5px;
    position: relative;
    z-index: 1;
}

input[type="range"]::-webkit-slider-runnable-track{
    width: 100%;
    height: 5px;
    background: var(--pewter);
    border-radius: 3px;
    border: none;
}

.rangeFill{
    height: 6px;
    background-color: var(--denimBlue);
    position: absolute;
    z-index: 1;
}

.ratingContent{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 10px;
}

.ratingRangeSlider{
    width: 100%;
    position: relative;
    left: 0;
    margin: 15px 0 30px 0;
}

.ratingRangeFill{
    height: 6px;
    background-color: var(--denimBlue);
    position: absolute;
    z-index: 1;
}

.fa-star{
    height: 16px;
}

.searchBar{
    position: fixed;
    top: 0;
    left: 300px;
    width: calc(100vw - 340px);
    height: 50px;
    padding: 20px;
    z-index: 7;
    transition: top 0.3s;
}

.searchBarShow{
        top: calc(10vh + 40px);
    }

.searchBar form{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#searchInput{
    width: 50vw;
    padding: 10px;
    margin-right: 20px;
    font-size: 20px;
    font-family: "PT Sans";
    border-radius: 10px;
    box-shadow: #777 1px 1px 3px 2px;
}

#submitSearch{
    padding: 6px;
    height: 40px;
    width: 40px;
    background-color: var(--denimBlue);
    color: var(--offWhite);
    font-size: 20px;
    font-weight: 700;
    box-shadow: #777 1px 1px 3px 2px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

#submitSearch i{
    color: var(--offWhite);
}

.listingContainer{
    box-sizing: border-box;
    width: calc(82vw - 14px);
    max-width: calc(100vw - 220px);
    min-height: 85vh;
    padding: 100px 0px 0px 0px;
    position: absolute;
    top: 15vh;
    right: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-image: url("images/index_background.png");
    background-repeat: repeat-y;
    background-size: 100%;
    z-index: 0;
}

.heroSpace{
    top: 40vh;
    padding: 220px 0px 0px 0px;
}

.categoryBar{
    position: relative;
    padding: 10px;
    border-radius: 10px;
    width: 95%;
    margin: 20px;
    background-color: var(--cream);
    box-shadow: var(--pewter) 1px 1px 6px 2px;
}

.listings{
    margin-top: 5px;
    position: relative;
    width: 100%;
    overflow-x: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.listing{
    position: relative;
    width: 200px;
    height: 310px;
    padding: 5px;
    margin: 5px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: left;
    background-color: var(--cream);
    box-shadow: #000 0px 0px 5px;
    text-wrap: wrap;
    cursor: pointer;
}

.listing img{
    width: 200px;
    aspect-ratio: 1;
    object-fit: cover;
}

.listing h2{
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cardDetails{
    position: absolute;
    bottom: 5px;
    width: 200px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/*Register Page*/

.registerContainer{
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
    background-image: url("images/register_background.png");
    background-attachment: fixed;
    background-size: cover;
}

.registerBox{
    position: relative;
    margin: 20px 0 20px 0;
    background-color: var(--cream);
    padding: 20px 40px;
    border-radius: 10px;
    max-width: 40vw;
    min-width: 500px;
    max-height: 100%;
    overflow-y: auto;
}

.registerBox h1{
    color: var(--darkNavy);
}

.registerForm{
    position: relative;
    width: 100%;
}

.registerForm input{
    width: calc(100% - 16px);
    padding: 5px 8px;
    margin: 0 0 10px 0;
    font-size: 20px;
    border: none;
    border-bottom: solid 3px var(--pewter);
    background: none;
}

input:focus{
    outline: none;
}

.registerForm input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

.passwordInputBox{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
}

.viewPWIcon{
    position: absolute;
    bottom: 16px;
    right: 10px;
    height: 20px;
}

.passwordTerms{
    margin-left: 16px;
}

#acceptTerms{
    width: initial;
}

#registerSubmit{
    padding: 6px 10px 6px 10px;
    background-color: var(--denimBlue);
    color: var(--offWhite);
    font-size: 20px;
    font-weight: 700;
    box-shadow: #777 1px 1px 3px;
    border: none;
    border-radius: 5px;
    width: 100%;
    transition: 0.2s;
}

#registerSubmit:hover{
    cursor: pointer;
    background-color: var(--darkNavy);
    box-shadow: #333 2px 2px 3px;
}

.profilePicBox{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.profilePicBox h3{
    margin-bottom: 20px;
}

.profilePic{
    position: relative;
}

.profilePic img{
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
}

.fileUpload{
    display: none;
}

.profilePic label{
    position: absolute;
    top: 10px;
    right: 13px;
    background-color: var(--darkNavy);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
}

.profilePic:hover label{
    opacity: 1;
    pointer-events: all;
}

.profilePic label i{
    color: var(--cream);
}

/*Login page*/

#loginSubmit{
    padding: 6px 10px 6px 10px;
    background-color: var(--denimBlue);
    color: var(--offWhite);
    font-size: 20px;
    font-weight: 700;
    box-shadow: #777 1px 1px 3px;
    border: none;
    border-radius: 5px;
    width: 100%;
    transition: 0.2s;
}

#loginSubmit:hover{
    cursor: pointer;
    background-color: var(--darkNavy);
    box-shadow: #333 2px 2px 3px;
}

#loginToRegisterLink{
    color: var(--skyBlue);
}

/*Account page*/

.editPicContainer{
    width: 100vw;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    background-color: #33333390;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hide{
    display: none;
}

.editPicBox{
    position: relative;
    padding: 30px;
    border-radius: 10px;
    background-color: var(--cream);
    width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.editPicBox img{
    width: 500px;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.editPicBox form{
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.editPicBox form label{
    position: absolute;
    width: 500px;
    height: 500px;
    top: 61px;
    cursor: pointer;
}

.editPicBox form input[type="submit"]{
    cursor: pointer;
}

.editPicBox form input[type="submit"]:hover{
    box-shadow: #333 3px 3px 3px;
    transform: scale(1.1);
}

.accountPage{
    position: relative;
    margin-top: 14vh;
    width: 100vw;
    height: auto;
    min-height: calc(100vh - 240px);
    padding: 20px 0;
    background-image: url("images/register_background.png");
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.accountProfilePic{
    position: relative;
}

.accountProfilePic img{
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
}

.accountFileUpload{
    display: none;
}

.accountProfilePic label{
    position: absolute;
    top: 20px;
    right: 26px;
    background-color: var(--darkNavy);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
}

.accountProfilePic:hover label{
    opacity: 1;
    pointer-events: all;
}

.accountProfilePic label i{
    color: var(--cream);
}

#accountPageSelect{
    padding: 20px;
    margin: 20px;
    width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--cream);
    border-radius: 10px;
    overflow-y: auto;
}

.accountPageButton{
    margin: 10px 0 10px 0;
    padding: 14px;
    border-radius: 5px;
    width: 90%;
    cursor: pointer;
}

.activeButton{
    padding: 10px;
    background-color: var(--denimBlue);
    color: var(--cream);
    font-size: 22px;
    font-weight: bold;
    box-shadow: #333 2px 2px 4px;
}

.accountPageSection{
    display: none;
    position: relative;
    max-width: 800px;
    width: 60vw;
    padding: 30px;
    margin: 20px;
    background-color: var(--cream);
    border-radius: 10px;
    overflow-y: auto;
}

.activePage{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#pageHeading{
    width: 100%;
}

.accountPageSection form{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
}

.accountPageInput{
    max-width: 600px;
    padding: 5px 8px;
    margin: 0 0 10px 0;
    font-size: 20px;
    border: none;
    border-bottom: solid 3px var(--pewter);
    background: none;
}

.accountPageSection form input[type="submit"]{
    max-width: 616px;
}

.bigRating{
    font-size: 100px;
}

.bigRating i{
    font-size: 100px;
    color: var(--copper);
}

.listingGrid{
    width: 100%;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, 220px);
    grid-template-rows: auto;
    justify-content: center;
}

.pageSelectButtons{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: auto;
    width: 100%;
}

/*createListing Page*/

.listingBox{
    position: relative;
    padding: 30px;
    margin: 20px;
    border-radius: 20px;
    background-color: var(--cream);
    width: 100%;
    max-width: 1000px;
    overflow-y: auto;
}

.titleSection{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.listingBox form{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
}

.listingBox form input, select{
    padding: 5px 8px;
    margin: 0 0 10px 0;
    font-size: 20px;
    border: none;
    border-bottom: solid 3px var(--pewter);
    background: none;
}

.listingBox form textarea{
    font-size: 20px;
	border: none;
    border-bottom: solid 3px var(--pewter);
	outline: none;
	background: none;
	padding: 5px 8px;
    margin: 0 0 10px 0;
	resize: none;
	min-height: 40px;
}

.largerInput{
    font-size: 20px;
}

.listingImageUpload{
    height: 100%;
    width: 100%;
    max-width: 50%;
}

.listingPic{
    position: relative;
    width: 100%;
}

.listingPic label{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 14px);
    cursor: pointer;
}

#mainListingPic{
    width: 100%;
    margin: 0 2px 2px 2px;
    aspect-ratio: 1;
    object-fit: cover;
}

.listingSubPics{
    position: relative;
    max-width: 100%;
    max-height: 200px;
    display: flex;
    flex-direction: row;
    justify-content: left;
    overflow-x: auto;
}

.subListingPic{
    height: 100%;
    max-width: 30%;
    aspect-ratio: 1;
    margin: 2px;
    object-fit: cover;
}

.listingDetails{
    position: relative;
    display: flex;
    flex-direction: column;
    width: 50%;
    padding: 20px;
}

.listingSpecification{
    display: none;
    width: 100%;
}

.activeFields{
    display: flex;
    flex-direction: column;
}

#submitListing{
    padding: 6px 10px 6px 10px;
    background-color: var(--denimBlue);
    color: var(--offWhite);
    font-size: 20px;
    font-weight: 700;
    box-shadow: #777 1px 1px 3px;
    border: none;
    border-radius: 5px;
    width: 100%;
    transition: 0.2s;
}

#submitListing:hover{
    cursor: pointer;
    background-color: var(--darkNavy);
    box-shadow: #333 2px 2px 3px;
}

/*viewListing page*/

.viewBackground{
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
    background-image: url("images/register_background.png");
    background-attachment: fixed;
    background-size: cover;
}

.viewListingContainer{
    box-sizing: border-box;
    position: relative;
    width: 100vw;
    min-height: 100%;
    padding: 40px 0;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 14vh;
}

.sellerAccount{
    padding: 20px;
    border-radius: 10px;
    background-color: var(--cream);
    box-shadow: var(--pewter) 1px 1px 6px 2px;
}

.sellerAccount img{
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
}

.smallRating{
    font-size: 30px;
}

.smallRating i{
    font-size: 30px;
    color: var(--copper);
}

.listingInfoContainer{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--cream);
    box-shadow: var(--pewter) 1px 1px 6px 2px;
    width: 100%;
    max-width: 60vw;
}

.imagesSlideshow{
    width: 50%;
    height: fit-content;
    position: relative;
}

.slide{
    display: none;
}

.slide img{
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    max-height: 100%;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: var(--cream);
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.numbertext {
  color: var(--cream);
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 14px;
  position: absolute;
  top: 10px;
  left: 10px;
}

.dots{
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 14px;
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: var(--copper);
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

.listingInfo{
    width: 45%;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.listingInfo form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.listingInfo form textarea{
    font-size: 20px;
	border: none;
    border-bottom: solid 3px var(--pewter);
	outline: none;
	background: none;
	padding: 5px 8px;
    margin: 0 0 10px 0;
	resize: none;
	min-height: 40px;
    text-align: left;
}

#sendMessage{
    padding: 6px 10px 6px 10px;
    background-color: var(--denimBlue);
    color: var(--offWhite);
    font-size: 20px;
    font-weight: 700;
    box-shadow: #777 1px 1px 3px;
    border: none;
    border-radius: 5px;
    width: 100%;
    transition: 0.2s;
}

#sendMessage:hover{
    cursor: pointer;
    background-color: var(--darkNavy);
    box-shadow: #333 2px 2px 3px;
}

/*editListing page*/

.editBackground{
    box-sizing: border-box;
    position: relative;
    width: 100vw;
    height: 100%;
    min-height: 60vh;
    padding-bottom: 60px;
    background-image: url("images/listing_background.png");
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
}

.editContainer{
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    background-color: #33333390;
    display: flex;
    justify-content: center;
    align-items: center;
}

.editListingPicBox{
    position: relative;
    padding: 30px;
    border-radius: 10px;
    background-color: var(--cream);
    width: 30vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hideListingPicBox{
    display: none;
}

.overrideMaxWidth{
    max-width: 100%;
}

.listingImageUpload form{
    position: relative;
    width: 100%;
}

.listingImageUpload form label{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    cursor: pointer;
}

.listingEditInfoContainer{
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--cream);
    box-shadow: var(--pewter) 1px 1px 6px 2px;
    width: 80vw;
    max-width: 1200px;
}

.listingEditInfoSections{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.editForms{
    width: 40%;
    display: flex;
    flex-direction: column;
}

.editListingDetails{
    width: 100%;
    display: flex;
    flex-direction: column;
}

.editListingDetailsInput{
    max-width: 600px;
    padding: 5px 8px;
    margin: 0 0 10px 0;
    font-size: 20px;
    border: none;
    border-bottom: solid 3px var(--pewter);
    background: none;
}

.editListingDetailsTextarea{
    font-size: 20px;
	border: none;
    border-bottom: solid 3px var(--pewter);
	outline: none;
	background: none;
	padding: 5px 8px;
    margin: 0 0 10px 0;
	resize: none;
	min-height: 40px;
}

#deleteListing{
    width: 100%;
    background-color: var(--copper);
}

/*giveRating page*/

.ratingInputBox{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.ratingInputBox label{
    font-size: 36px;
}

.ratingStarsInput{
    display: none;
}

/*searchResults page*/

.searchResults{
    box-sizing: border-box;
    width: 100vw;
    min-height: 90vh;
    padding-top: 24vh;
    background-image: url("images/index_background.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resultsBox{
    width: 80vw;
    background-color: var(--cream);
    box-shadow: #000 0px 0px 5px;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
}

.fullWidthSearch{
    width: 100vw;
    left: 0;
}

/*Contact page*/

.contactForm{
    display: flex;
    flex-direction: row;
    width: 100%;
}

.formSection{
    display: flex;
    flex-direction: column;
    width: 50%;
}

.contactForm textarea{
    font-size: 20px;
	border: none;
    border-bottom: solid 3px var(--pewter);
	outline: none;
	background: none;
	padding: 5px 8px;
    margin: 0 0 10px 0;
	resize: none;
	min-height: 40px;
}

#sideImage{
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

#sideImage img{
    height: 30vh;
    aspect-ratio: 1;
}

/*Terms page*/

.documentStyle{
    padding: 40px;
}

/*About page*/

.aboutContainer{
    box-sizing: border-box;
    position: relative;
    top: calc(10vh + 40px);
    left: 0;
    width: 100vw;
    padding: 60px 0 120px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    background-image: url("images/index_background.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.aboutSection{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.aboutText{
    box-sizing: border-box;
    min-width: 530px;
    padding: 80px;
    margin: 40px;
    background-color: var(--cream);
    border-radius: 20px;
    box-shadow: var(--denimBlue) 2px 2px 5px 3px;
}

.aboutText h1{
    font-size: 34px;
}

.aboutText h2{
    font-size: 28px;
}

.aboutText p{
    font-size: 24px;
}

.aboutText li{
    font-size: 26px;
}

.mobile{
    display: none;
}

.aboutImage img{
    width: 40vw;
}

/*footer*/

footer{
    box-sizing: border-box;
    width: 100%;
    height: 20vh;
    min-height: 240px;
    background-color: var(--pewter);
    position: relative;
    bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 50px;
}

footer div{
    box-sizing: border-box;
    width: 30%;
    padding: 0 20px;
}

footer img{
    height: 10vh;
}

footer h3{
    color: var(--cream);
}

footer li{
    color: var(--cream);
}

footer a{
    color: var(--cream);
}

.withBorder{
    border-right: solid var(--cream) 2px;
}

@media (max-width: 900px){

    h1{
        color: var(--denimBlue);
        font-size: 22px;
        font-weight: 600;
        font-family: 'Tomorrow';
    }

    h2{
        color: var(--darkNavy);
        font-size: 18px;
        font-weight: 400;
        font-family: 'Cooper Hewitt';
    }

    p{
        color: var(--darkNavy);
        font-weight: 400;
        font-family: 'PT Sans';
    }

    /*Index*/

    .topBar{
        height: 4vh;
    }

    .topBar #logoLink{
        background-image: url("images/AmaTradie\ Icon.png");
        height: calc(4vh + 30px);
        width: calc(4vh + 40px);
        min-width: calc(4vh + 40px);
        margin-top: -20px;
    }

    .mobileNav{
        display: block;
    }

    .desktopNav{
        position: absolute;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        top: 100%;
        right: 20px;
        transform: translate(0, 0%);
        height: auto;
        min-width: 250px;
        width: 20vw;
        background-color: var(--darkNavy);
        border-bottom-right-radius: 20px;
        border-bottom-left-radius: 20px;
    }

    .desktopNavShow{
        display: flex;
    }

    .navLink{
        position: relative;
        font-size: 28px;
        font-weight: 400;
        color: var(--offWhite);
        padding: 10px 0 10px 0;
        margin: 10px 0 10px 0;
        width: 100%;
        text-align: center;
    }

    .navLink:hover{
        cursor: pointer;
        font-weight: 800;
        font-size: 30px;
        text-shadow: none;
    }

    .mobileCriticalNav{
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: right;
        align-items: center;
        float: right;
        top: 50%;
        transform: translate(0, -50%);
        height: 40px;
    }

    .desktopCriticalNav{
        display: none;
    }

    .loginButton{
        font-size: 20px;
        padding: 4px;
    }

    .registerButton{
        font-size: 20px;
        padding: 6px;
    }

    .criticalButtons{
        font-size: 32px;
        font-weight: 600;
        margin-right: 20px;
    }

    .accountButton{
        height: 40px;
    }

    .accountButton img{
        height: 40px;
        width: 40px;
    }

    .desktopNavCover{
        display: none;
        position: fixed;
        top: calc(0px);
        left: calc(0px);
        width: 100vw;
        height: 100vh;
        background-color: rgba(98, 96, 96, 0.30);
        z-index: 9;
    }

    .desktopSideBarCover{
        display: none;
        position: fixed;
        top: calc(0px);
        left: calc(0px);
        width: 100vw;
        height: 100vh;
        background-color: rgba(98, 96, 96, 0.40);
        z-index: 9;
    }

    .desktopNavCoverShow{
        display: block;
    }

    .mobileSideBar{
        display: flex;
    }

    .sideBar{
        display: none;
        top: calc(4vh + 40px);
        height: 100%;
        padding-bottom: 100px;
        z-index: 9;
    }

    .showSideBar{
        display: block;
    }

    .searchBar{
        left: 0;
        width: 100vw;
    }

    .searchBarShow{
        top: calc(4vh + 40px);
    }

    .heroSection{
        top: calc(4vh + 40px);
        padding: 80px 60px 0 60px;
        width: 100vw;
        max-width: 100vw;
        left: 0;
        height: 35vh;
    }

    .heroSection h1{
        font-size: 7vw;
        text-align: center;
    }

    .heroSection h2{
        font-size: 3vw;
        text-align: center;
    }

    .listingContainer{
        width: 100vw;
        max-width: 100vw;
        left: 0;
    }

    .heroSpace{
        top: 22vh;
        padding: 220px 10px 10px 10px;
    }

    .listing h2{
        font-size: 26px;
    }

    /*Register / Login*/

    .registerBox{
        box-sizing: border-box;
        padding: 20px;
        max-width: 90vw;
        width: 100%;
        min-width: 240px;
        overflow-y: auto;
    }

    .profilePic label{
        opacity: 1;
        pointer-events: all;
        transition: 0;
    }

    /*Account*/

    .editPicBox{
        width: 70vw;
    }

    .editPicBox img{
        width: 100%;
        aspect-ratio: 1;
        height: auto;
    }

    .accountPage{
        box-sizing: border-box;
        margin-top: calc(4vh + 40px);
        min-height: 100%;
        padding: 20px;
        flex-direction: column;
        align-items: center;
        justify-content: start;
    }

    #accountPageSelect{
        box-sizing: border-box;
        padding: 0px;
        margin: 20px;
        width: 90vw;
        height: auto;
        overflow-y: hidden;
    }

    .mobileStack{
        display: flex;
        flex-direction: row;
        justify-content: start;
        align-items: center;
    }

    .accountProfilePic img{
        width: 150px;
        height: 150px;
        margin: 20px;
    }

    .accountProfilePic label{
        top: 12px;
        right: 14px;
        opacity: 1;
    }

    .pageSelectButtons{
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        height: auto;
    }

    .accountPageButton{
        margin: 0;
        padding: 10px;
        border-radius: 0;
        width: 100%;
        text-align: center;
        font-size: 18px;
    }

    .activeButton{
        padding: 10px;
        background-color: var(--cream);
        color: var(--denimBlue);
        font-size: 22px;
        font-weight: bold;
        box-shadow: none;
        font-size: 18px;
    }

    .accountPageSection{
        box-sizing: border-box;
        max-width: 90vw;
        width: 100%;
        padding: 20px;
        margin: 0;
        background-color: var(--cream);
        border-radius: 10px;
        overflow-y: hidden;
    }

    .activePage{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .bigRating{
        font-size: 10vw;
    }

    .bigRating i{
        font-size: 10vw;
        color: var(--copper);
    }

    /*createListing*/

    .viewListingContainer{
        box-sizing: border-box;
        margin-top: 0;
        top: calc(4vh + 40px);
        overflow-y: auto;
        flex-direction: column;
        justify-content: start;
        margin-bottom: 60px;
    }

    .listingBox{
        box-sizing: border-box;
        padding: 30px;
        margin: 20px 0;
        width: 100%;
        max-width: 90vw;
        overflow-y: hidden;
    }

    .listingBox form{
        flex-direction: column;
        justify-content: start;
        align-items: center;
    }

    .listingImageUpload{
        max-width: 100%;
    }

    .listingDetails{
        width: 100%;
        padding: 0px;
    }

    /*viewListing*/

    .sellerAccount{
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        justify-content: start;
        align-items: center;
        width: 100%;
        max-width: 90vw;
        margin-bottom: 60px;
    }

    .sellerAccount img{
        width: 40vw;
        height: 40vw;
        margin-right: 20px;
    }

    .smallRating{
        font-size: 5vw;
    }

    .smallRating i{
        font-size: 5vw;
    }

    .listingInfoContainer{
        box-sizing: border-box;
        flex-direction: column;
        justify-content: start;
        width: 100%;
        max-width: 90vw;
        margin-bottom: 20px;
    }

    .imagesSlideshow{
        width: 100%;
    }

    .listingInfo{
        width: 100%;
    }

    /*editListing page*/

    .editListingPicBox{
        box-sizing: border-box;
        width: 90vw;
    }

    .listingImageUpload form{
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .listingEditInfoContainer{
        box-sizing: border-box;
        width: 100%;
        max-width: 90vw;
    }

    .listingEditInfoSections{
        flex-direction: column;
        justify-content: start;
    }

    .editForms{
        width: 100%;
    }

    /*searchResults*/

    .searchResults{
        min-height: 70vh;
        padding-top: 200px;
    }

    .resultsBox{
        box-sizing: border-box;
        width: 90vw;
        padding: 10px;
    }

    .listingGrid{
        gap: 5px;
    }

    /*Contact*/

    .contactForm{
        flex-direction: column;
    }

    .formSection{
        width: 100%;
    }

    #sideImage img{
        display: none;
    }

    /*Footer*/

    footer{
        max-width: 100vw;
        height: auto;
        flex-direction: column;
        justify-content: space-evenly;
        padding: 20px;
    }

    footer div{
        width: 100%;
        padding: 20px;
    }

    footer img{
        height: 5vh;
    }

    .withBorder{
        border-right: none;
        border-bottom: solid var(--cream) 2px;
    }

    /*Universal*/

    .hide{
        display: none;
    }

}

@media (max-width: 1000px){
    /*About*/

    .aboutContainer{
        top: calc(4vh + 40px);
    }

    .aboutSection{
        flex-direction: column;
        justify-content: space-evenly;
        width: 90vw;
        margin: 20px;
        background-color: var(--cream);
        border-radius: 20px;
        box-shadow: var(--denimBlue) 2px 2px 5px 3px;
    }

    .aboutText{
        box-sizing: border-box;
        min-width: 0%;
        width: 100%;
        padding: 10px;
        margin: 10px 40px;
        background-color: transparent;
        border-radius: 0px;
        box-shadow: none;
        text-align: center;
    }

    .aboutText h1{
        font-size: 6vw;
    }

    .aboutText h2{
        font-size: 5vw;
    }

    .aboutText p{
        font-size: 3vw;
    }

    .aboutText li{
        font-size: 3.2vw;
        margin-left: 20px;
    }

    .desktop{
        display: none;
    }

    .mobile{
        display: block;
    }

    .aboutImage img{
        width: 100%;
    }

    .lead{
        font-size: 3.2vw;
    }
}