@font-face {
    font-family: 'Poppins Bold';
    src: url('../fonts/poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins Medium';
    src: url('../fonts/poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins Regular';
    src: url('../fonts/poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter Regular';
    src: url('../fonts/inter/Inter_28pt-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter SemiBold';
    src: url('../fonts/inter/Inter_28pt-SemiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ------------ Variables ------------*/
:root{
    --white: white;
    --light-grey: #F2F2F2;
    --grey: #C9C9C9;
    --medium-grey: #7B7B7B;
    --dark-grey: #373737;
    --blue: #2F49F5;
}

/* ------------ General ------------*/

body{
    background-color: #F5F5F5;
    min-width: 505px;
}

main{
    min-height: 96vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

h1, h2, h3, h4 {
    font-family: "Poppins Bold";
    font-size: 14pt;
}


/* ------------ Header ------------*/
.page-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 40px);

    margin-bottom: 10px;

    background-color: var(--white);
    padding: 3px 20px;

    margin-bottom: 30px;
    border-radius: 7px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.10);
}

/* ------------ Button ------------*/

.button{
    background-color: var(--dark-grey);
    padding: 8px 40px;
    color: white;

    text-decoration: none;
    border-radius: 20px;
    font-family: 'Poppins Regular';
    font-size: 8pt;

    transition: .3s;
}

.button:hover{
    transform: scale(0.98);
    transition: .3s;
}

/* ------------ Form ------------*/

form.location-wrapper{
    margin: 0 auto 50px;
    max-width: 600px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.location-header, .location-body{
    width: -webkit-fill-available;
    background-color: white;
    display: flex;
    flex-direction: row;
    
    margin-bottom: 10px;
    border-radius: 7px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.10);
}

.location-header{
    justify-content: space-between;
    align-items: center;

    padding: 8px 20px;
}

.location-body{
    justify-content: center;
    align-items: center;

    padding: 30px 20px;
}

.input-w-label{
    display: flex;
    flex-direction: column;
}

.value-field{
    background-color: var(--dark-grey);
    margin: 0;
    text-align: center;
    font-size: 12px;

    border-radius: 5px;
    border-style: none;

    font-family: "Poppins Regular";
    color: var(--white);

    width: 175px;
    height: 20px;

    padding: 7px 0px 3px;

    margin-bottom: 13px;

}

input.value-field{
    padding: 6px 0px 4px;
    font-size: 12px;
}


label{
    font-family: "Inter Regular";
    font-size: 8pt;
    margin-bottom: 4pt;

    color: var(--dark-grey);
}

/* Input */

/* Text input styling */
input[type="text"] {
  font-family: "Poppins Regular";
  font-size: 12px;
}

.greyed-out{
    background-color: var(--light-grey);
    border: var(--grey) solid 1px;
    color: var(--medium-grey);
}

.bright-text{
    color: var(--white);
}

.display-none{
    display: none;
}

/* SVG */

.svg-container{
    margin: 11px 3px 0 ;
}

.svg-container-large {
    display: block;
}

.svg-container-small {
    display: none;
}

@media screen and (max-width: 650px) {
    .svg-container-large {
        display: none;
    }
    
    .svg-container-small {
        display: block;
    }
}

/* Toggle Switch */

.toggle-switch-wrapper{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    width: 160px;
    height: 22px;

    border-radius: 12px;
    border: 1px solid #373737;

    font-family: "Inter SemiBold";
    font-size: 8pt;
    cursor: pointer;
    transition: .2s;
}

.toggle-switch-wrapper:hover{
    transform: scale(0.99);
    transition: .2s;
}

.toggle-switch-label{
    margin: 0;
    width: 75px;
    text-align: center;

    position: relative;
    z-index: 1;
    cursor: pointer;
}

.slider{
    position: absolute;
    background-color: var(--dark-grey);

    width: 85px;
    height: 22px;

    transform: translate(-38px, 0);

    border-radius: 11px;
    z-index: 0;
}

/* Submit Button */



.submit-button{
    border: none;
    padding: 8px 40px;

    font-family: "Inter SemiBold";
    color: var(--white);

    background-color: var(--grey);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.10);

    border-radius: 20px;
    transition: transform .3s;

    
}


.submit-button.active{
    background-color: var(--blue);
}

.submit-button.active:hover{
    transform: scale(.98);
    transition: .3s;
    cursor: pointer;
}


/*Login Form*/

form.login-form{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;

    width: 100%;
    max-width: 300px;
    padding: 40px 10px;
    margin: 0 auto;

    border-radius: 7px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.10);
}

form.login-form input{
    margin-bottom: 10px;
    width: 160px;
    height: 20px;

    font-family: "Poppins Regular";
    font-size: 14px;
}

h2.login-header{
   text-align: center;
}

.error-message{
    color: red;
    text-align: center;
    font-family: "Poppins Regular";
    font-size: 12px;
    margin-bottom: 10px;
}

/* Footer */

footer{

    font-family: "Poppins Regular";
    font-size: 10pt;

    text-align: center;
    margin: 20px;
    padding: 10px;
    width: 100%;
    max-width: 300px;
    border-radius: 7px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.10);
    background-color: white;
}

footer a{
    color: var(--dark-grey);
}



@media screen and (max-width: 650px) {
    
    body{
        min-width: 315px;
    }
    .page-header{
        flex-direction: column;
        padding: 5px 20px 20px;
    }

    .page-header h2{
        text-align: center;
    }

    div.location-header{
        flex-direction: column;
        justify-content: center;
    }

    div.location-header .input-w-label{
        margin-bottom: 10px;
    }

    div.location-header .input-w-label label{
        text-align: center;
    }


    input.value-field{
        padding: 6px 0px 4px;
        font-size: 7pt;
    }

    input[type="text"] {
        font-family: "Poppins Regular";
        font-size: 10px;
      }

    .value-field{
        width: 115px;
        font-size: 7pt;
        padding: 6px 0px 0px;
    }

    label{
        font-size: 6pt;
    }
   
}


