body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Verdana;
    color: #000;
    background-color: #274F4F;
}
html, body {
    max-width: 100%;
}

main{					/*Wit scherm in het midden van de vieuwport.*/
    position: absolute;
    background-color: #E5E5E5;
    width: 100%;
    height: 100%;
    max-width: 500px;	/*Responsive: Indien de vieuwport onder 5OOpx komt wort de width en/of height 100%*/
    max-height: 500px;
    border-bottom: solid;
    border-right: solid;
    border-radius: 4px;
    border-color: #969696;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.title{
    font-size: 26px;
    font-weight: bold;
}

#error-message{
    text-align: left;
    font-size: 12px;
    color: red;
    font-weight: bold;
    visibility: hidden;
}

#footer{
    font-size: 12px;
}

form{
    position: absolute;
    width: 290px;
    margin-left: calc(50% - 145px);
    text-align: center; /*Inhoud centeren*/
    top: 50%;
    transform: translateY(-50%);
}

input:not(#nickname){
    margin-top: 15px;
}

#nickname, #email, #password-verification, #password {
    width: 250px;
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#password-verification, #password{         /*achtergrond word actief in javascript*/
    background-size: 30px 30px;
    background-repeat: no-repeat;
    background-position: right center;
    background-position-x: calc(100% - 5px);
}

#submit-button{
    width: 290px;
    background-color: #49A84D;
    color: white;
    font-weight: bold;
    padding: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#submit-button:hover{
    background-color: #3E8F41;
}

#to-login-page{				/*Sign up !*/
    color: #3E8F41;
    cursor: pointer;
}
#to-login-page:hover{
    color: #49A84D;
}

@media screen and (max-height: 500px){
    main{
        height: 500px;
        margin: 0 auto;
        max-height: unset;
        top: unset;
        left: 50%;
        transform: translateX(-50%);
    }
    form{
        transform: translateY(-50%);
    }
}
