@font-face {
    font-family: "AvenirBook";
    src: url("../assets/fonts/Avenir/AvenirLTStd-Book.woff2") format("woff2"),
        url("../assets/fonts/Avenir/AvenirLTStd-Book.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}
@keyframes fadeIn{
    0%{
        opacity: 0;
        z-index: -2;
        transform: translateY(30rem);
    }
    50%{
        z-index: 0;
        opacity: .5;
        transform: translateY(-10rem);
    }
    100%{
        opacity: 1;
        z-index: 0;
        transform: translateY(0);
    }
}
@keyframes translate{
    from{
        transform: translateY(10rem);
        opacity: 0;
    }
    to{
        transform: translateY(0rem);
        opacity: 1;  
    }
}
*{
    box-sizing: border-box;
}
html{
    box-sizing: inherit;
    font-size: 62.5%;
    height: 100%;
    
}
.color{
    font-weight: bold;
    color: #4485c4;
}
.hidden{
    display: none;
}
.container{
    width: 96rem;
    margin: auto;
    margin-top: 25rem;
    animation: translate .5s;
}
.container--small{
    margin-top: 15rem;
}
.content__titlewrapper{
    width: 100%;
    height: 30rem;
    background-image: url("../assets/img/obesitas_wrapper.png");
    background-position: center;
    background-attachment: fixed;
    background-position-y: -25rem;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    background-size: cover; 
    /* border-radius: 0 0 30rem 30rem; */
}
.titlewrapper__box{
    background-color: rgb(244, 244, 244);   
    width: 96rem;
    text-align: center;
    padding: 4rem;
    margin-top: 30rem;
    border-radius: 2.5rem;
    /* border: .2rem solid #4485c4; */
    animation: fadeIn 1.25s;
}
.content__title{
    font-family: bebas-neue-by-fontfabric, sans-serif;
    font-weight: 400;
    font-size: 5rem;
    text-transform: uppercase;
    color: #4485c4;
}
.titlewrapper__line{
    width: 5rem;
    border: .1rem solid #4485c4;
}
.content__section{
    margin-bottom: 5rem;
}
.section__tekst{
    font-family: "AvenirBook";
    font-size: 1.5rem;
    margin-top: 2rem;
    line-height: 1.4;
}
.section__title{
    font-family: bebas-neue-by-fontfabric, sans-serif;
    font-weight: 400;
    font-size: 4rem;
    text-transform: uppercase;
    color: #4485c4;
    text-align: center;
    margin-top: 10rem;
}
.section__container{
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}
.section__gewicht{
    width: 50%;
    background-color: rgb(244, 244, 244);
    margin: 2rem;
    padding: 3.15rem;
    border-radius: 2.5rem;
}
.gewicht__title{
    text-transform: uppercase;
    color: #4485c4;
    font-family: bebas-neue-by-fontfabric, sans-serif;
    font-weight: 400;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}
.bmi-popup{
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    transform: scale(0);
    transition: all .4s;
    background-color: rgba(0, 0, 0, .5);
}
.bmi__box{
    background-color: white;
    padding-bottom: 0;
    margin: 2rem;
    border-radius: 2.5rem;
    padding: 4rem;
    text-align: left;
}
.bmi__box--close{
    text-align: right;
    font-size: 4rem;
    margin-bottom: 2rem;
}
.section__tekst__bmi{
    color: blue;
}
.section__tekst__bmi:hover{
    text-decoration: underline;
    cursor: pointer;
}
.bmi__klasses{
    margin-top: 2rem;
}
.klasses__tekst{
    font-family: "AvenirBook";
    font-size: 1.5rem;
    line-height: 1.4;
}
.close__icon:hover{
    cursor: pointer;
}
.form-bmi{
    display: flex;
    flex-flow: column;
    margin-bottom: 10rem;
    margin-top: 10rem;
}
.form-bmi__label{
    font-size: 5rem;
    text-transform: uppercase;
    font-family: bebas-neue-by-fontfabric, sans-serif;
    font-weight: 400;
    display: flex;
    flex-flow: column;
    color: #4485c4;
    margin-bottom: 20rem;
}
.form-bmi__label--deel{
    text-transform: lowercase;
    font-family: "AvenirBook";
    font-size: 2.5rem;
}
.form-bmi__input{
    font-size: 5rem;
    border: none;
    border-bottom: .2rem solid #4485c4;
    margin-top: 4rem;
    font-family: "AvenirBook";
}
.form-bmi__input:focus{
    outline: none;
}
.form-bmi__input::placeholder{
    color: #c0c0c2;
}
.form-bmi__button-wrapper{
    text-align: right;
}
.form-bmi__button{
    border: .2rem solid #4485c4;
    color: #4485c4;
    padding: 1rem 3rem;
    padding-top: 1.5rem;
    text-decoration: none;
    font-size: 2.2rem;
    border-radius: 5rem;
    font-weight: bold;
    transition: background-color .5s, color .7s, border-radius 1s;
    font-family: bebas-neue-by-fontfabric, sans-serif;
    width: 20rem;
    background-color: white;
}
.form-bmi__button:focus{
    outline: none;
    color: white;
}
.form-bmi__button:hover{
    background-color: #4485c4;
    color: white;
    border-radius: 0;
    cursor: pointer;
}
.form-bmi__skip{
    font-size: 2.2rem;
    text-decoration: none;
    font-family: bebas-neue-by-fontfabric, sans-serif;
    padding: 2rem;
    color: #4485c4;
}
.form-bmi__skip:hover{
    text-decoration: underline;
}
.bmi{
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    margin-bottom: 15rem;
}
.bmi__wrapper{
    background-color: #4485c4;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    margin-bottom: 10rem;
}
.bmi__uitslag--tekst{
    text-transform: uppercase;
    font-family: bebas-neue-by-fontfabric, sans-serif; 
    font-size: 2.5rem;
    color: white;
}
.bmi__uitslag{
    font-size: 7rem;
    font-family: "AvenirBook";
    margin-top: 4rem;
    color: white;
}
.bmi__container{
    width: 96rem;
    text-align: left;
}
.bmi__container--center{
    text-align: center;
}
.bmi__errors{
    margin-bottom: 5rem;
}
.bmi__tekst{ 
    font-size: 1.8rem;
    font-family: "AvenirBook";
    margin-bottom: 3rem;
    line-height: 1.4;
}
.bmi__button-wrapper{
    margin-top: 8rem;
    text-align: right;
}
.bmi__button{
    border: .2rem solid #4485c4;
    padding: 1rem 3rem;
    padding-top: 1.5rem;
    text-decoration: none;
    font-size: 2.2rem;
    border-radius: 5rem;
    font-weight: bold;
    transition: background-color .5s, color .7s, border-radius 1s;
    margin: 3rem auto;
    color: #4485c4;
    font-family: bebas-neue-by-fontfabric, sans-serif; 
    background-color:white;
}
.bmi__button:hover{
    background-color: #4485c4;
    color: white;
    border-radius: 0;
}
.error{
    font-family: "AvenirBook";
    font-size: 2rem;
    font-weight: bold;
    color: red;
    margin-bottom: 2rem;
}
.error--back{
    font-family: "AvenirBook";
    font-size: 2rem;
    text-decoration: none;
}
.error--back:hover{
    text-decoration: underline;
}
@media (max-width: 320px){
    .bmi__wrapper{
        width: 25rem;
        height: 25rem;
    }
    .bmi{
        margin: auto -2rem 4rem -2rem;
    }
}
@media (max-width: 767px){
    .form-bmi__button-wrapper{
        display: flex;
        flex-flow: column-reverse;
        align-items: center;
    } 
    .bmi__button-wrapper{
        text-align: center;
    }
}
@media (max-width: 768px){
    .container{
        width: auto;
        padding: 5rem;
    }
    .container--small{
        margin-top: 10rem;
    }
    .titlewrapper__box{
        width: 90%;
    }
    .content__titlewrapper{
        background-size: cover;
        background-position-y: 0;
        background-attachment: inherit;
    } 
    .bmi__container{
        width: auto;
    }
    .section__container{
        flex-flow: column;
        align-items: center;
    }
    .section__gewicht{
        width: 100%;
    }
}
@media (min-width: 1280px){
    .content__titlewrapper{
        height: 40rem;
        background-position-y: -35rem;
    }
    .titlewrapper__box{
        margin-top: 40rem;
    }
}