@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;
    min-height: 100vh;
}

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;
}

hr{
    width: 100%;
    color: var(--darkNavy);
}

/*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;
}

.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;
}

.accountButton img{
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
}

.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);
}

.sort{
    padding: 10px;
    margin: 10px;
    background-color: var(--cream);
    border-radius: 10px;
}

.dashboardContainer{
    box-sizing: border-box;
    width: calc(82vw - 14px);
    max-width: calc(100vw - 220px);
    min-height: 85vh;
    padding: 60px 0px 60px 0px;
    position: absolute;
    top: 15vh;
    right: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    background-image: url("images/index_background.png");
    background-repeat: repeat-y;
    background-size: 100%;
    z-index: 0;
}

.metricBox{
    width: 80%;
    display: none;
    justify-content: space-evenly;
}

.chartContainer{
    box-sizing: border-box;
    padding: 30px;
    margin: 20px;
    width: 100%;
    border-radius: 20px;
    background-color: var(--cream);
    box-shadow: var(--pewter) 2px 2px 4px 2px;
}

.chart{
    width: 100%;
    height: auto;
}

.activePage{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pageSelectButtons{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.indexPageButton{
    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;
}

.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%;
}

/*Register page*/

.titleSection{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.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-top: 20px;
    background-color: var(--cream);
    padding: 20px 40px;
    border-radius: 10px;
    max-width: 40vw;
    min-width: 500px;
    max-height: calc(100vh - 100px);
    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;
}

.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;
}

/*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*/

.accountContainer{
    box-sizing: border-box;
    width: 100vw;
    min-height: 85vh;
    padding: 60px 0px 60px 0px;
    position: absolute;
    top: 15vh;
    right: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    background-image: url("images/index_background.png");
    background-repeat: repeat-y;
    background-size: 100%;
    z-index: 0;
}

.accountBox{
    box-sizing: border-box;
    padding: 30px;
    margin: 20px;
    width: 80%;
    max-width: 1000px;
    border-radius: 20px;
    background-color: var(--cream);
    box-shadow: var(--pewter) 2px 2px 4px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.accountSection{
    width: 100%;
    max-width: 800px;
}

.accountBox form{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
}

.accountPageInput{
    max-width: 800px;
    padding: 5px 8px;
    margin: 0 0 10px 0;
    font-size: 20px;
    border: none;
    border-bottom: solid 3px var(--pewter);
    background: none;
}

.accountBox form input[type="submit"]{
    max-width: 816px;
}

.hide{
    display: none;
}

@media (max-width: 1000px) {
    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;
    }

    .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;
    }

    .dashboardContainer{
        width: 100vw;
        max-width: 100vw;
        min-height: calc(96vh - 40px);
        left: 0;
        top: calc(4vh + 40px);
    }

    .accountContainer{
        width: 100vw;
        max-width: 100vw;
        min-height: calc(96vh - 40px);
        left: 0;
        top: calc(4vh + 40px);
    }

    /*Register / Login*/

    .registerBox{
        box-sizing: border-box;
        padding: 20px;
        max-width: 90vw;
        width: 100%;
        min-width: 240px;
        overflow-y: auto;
    }

    .hide{
        display: none;
    }
}