*{
    margin: 0px;
    padding: 0px;
    font-family: 'Open Sans';
    --primary-color: #009C3B;
    --secondary-color: #FFDF00;
    --terciary-color: #002776;
}

html{
    background: url("../images/background.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size:  cover;
}

body{
    overflow: hidden;
}

#confetti-canvas{
    position: fixed;
}

#main{
    width: 100vw;
    height: 100vh;
    position: relative;
}

#terms-banner.closed{
    bottom: -100%;
}

#terms-banner{
    box-shadow: 0px 2px 8px -3px #000;
    position: absolute;
    width: 80%;
    border-radius: 10px;
    left: 50%;
    bottom: 0;
    background: rgb(255,255,255, 0.86);
    z-index: 9;
    translate: -50% -25%;
    padding: 10px 40px;
    max-width: 900px;
    transition: .3s;
}

.terms-banner-wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
}

.terms-banner-title{
    font-size: 1.5em;
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.terms-banner-content{
    line-height: 1.2;
    width: 100%;
    font-size: .8em;
    display: inline-block;
    text-align: justify;
}

.terms-banner-button{
    width: 30%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin: 15px 0;
}

.terms-banner-button button{
    border-radius: 10px;
    padding: 5px;
    width: 100px;
    border: none;
    background: var(--terciary-color);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 8px 10px -5px #000;
    font-weight: bold;
    transition: .25s;
}

.terms-banner-button button:hover{
    background-color: var(--primary-color);
}

#footer{
    background: var(--terciary-color);
    color: #FFF;
    display: none;
    align-content: center;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 5%;
    line-height: 1;
    font-size: 1em;
    background-image: radial-gradient(circle at top, rgba(255,255,255,0.15) 0%, rgba(80,80,80,0.3) 80%);
}

.footer-title{
    font-size: 1.5em;
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.footer-content{
    line-height: 1.2;
}

.bg-mask{
    position: absolute;
    height: 100%;
    width: 100vw;
    top: 0;
    left: 0;
    opacity: 1;
    z-index: 1;
    background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(80,80,80,0.3) 80%);
}

#title-head{
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    user-select: none;
    padding-top: 30px;
}

#title-head img{
    max-width: 80vw;
    display: block;
    margin: 0 auto;
}

#title-head .title-text{
    color: #FFF;
    font-size: 3em;
    -webkit-text-stroke: 2px #002776;
}

.person-image{
    position: absolute;
    bottom: 0;
    height: 60%;
    z-index: 2;
}

.person-left{
    left: 2%;
}

.person-right{
    right: 2%;
}

.input-field.shaking-r{
    transform: rotate(2deg);
    background: transparent;
}
.input-field.shaking-l{
    transform: rotate(-2deg);
    background: transparent;
}

#submit-user{
    background-color: var(--terciary-color);
    color: #fff;
    padding: 5px;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: .25s;
    min-width: 80px;
    box-shadow: 0 8px 10px -5px #000;
}

#submit-user:hover{
    background-color: var(--primary-color);
}

.loading #submit-user{
    display: none;
}

.success #submit-user{
    display: none;
}

.loading-gif{
    display: none;
    margin: 0 auto;
    height: 40px;
}

.success-message{
    display: none;
    color: var(--terciary-color);
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.success .success-message{
    display: block;
}

.loading .loading-gif{
    display: block;
}

#user-form-container{
    width: 25%;
    min-width: 300px;
    border: none;
    border-radius: 4px;
    padding: 12px;
    position: relative;
    text-align: center;
    background: #fff;
    z-index: 2;
    margin: 20px auto 0;
    opacity: .95;
    box-shadow: 0px 2px 8px -4px #000;
}

#user-form-container label{
    display: block;
    -webkit-text-stroke: 0.1px #000;
    font-weight: bold;
}

#user-form-container input{
    font-size: 1.1em;
    border-radius: 4px;
    padding: 4px;
    width: 100%;
    border: 1px solid #a0a0a0;
    transition: .2s;
}

#user-form-container input.err-red{
    outline: 2px solid red;
}

.input-field{
    position: relative;
    margin: 15px;
    transition: .2s;
}

.input-field input{
    margin: 10px 0;
    box-shadow: 0 5px 8px -8px #000;
}

.input-field label{
    position: absolute;
    transition: color .2s ease-out, -webkit-transform .2s ease-out;
    transform: translateY(15px) translateX(4px);
    cursor: text;
    color: #6883b5;
    user-select: none;
}

.input-field label.active{
    -webkit-transform: translateY(-14px) translateX(0px) scale(0.8);
    transform: translateY(-14px) translateX(0px) scale(0.8);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    color: #004ddd;
}

@media screen and (max-width: 1500px){
    #title-head img {
        width: 30vw;
    }
    #title-head .title-text{
        font-size: 2em;
    }
}

@media screen and (max-width: 480px){

    #title-head .title-text{
        -webkit-text-stroke: 0px;
    }
    
    #title-head img {
        width: 70vw;
    }

    #terms-banner{
        display: none;
    }

    body{
        overflow: auto;
    }

    #main{
        background: url("../images/background.png");
        background-position: center;
        background-repeat: no-repeat;
        background-size:  cover;
        padding-top: 20px;
        /* height: -webkit-calc(100% - 140px); */
        height: auto;
        padding-bottom: 200px;
    }

    #footer{
        display: flex;
        padding: 10px 5%;
    }

    .user-form-active #user-form-container{
        left: 50%;
    }

    .person-images{
        display: none;
    }

    #title-head .title-text{
        font-size: 2em;
    }

}
