.content{
    display: flex;
    margin: 40px;
    justify-content: center;
}

.context1, .context2{
    display: flex;
    width: 50%;
    justify-content: center;
    align-items: center;
}

.context2{
    flex-direction: column;
}

.context1 img{
    width: 60%;
}

h1{
    color: #c9511d;
    font-weight: bold;
}

#txtName, #txtEmail, #txtPassword{
    width: 350px;
}

.errMsg{
    display: none;
    color: red;
    font-size: 12px;
}

.context2 div{
    display: flex;
    justify-content: center;
}

.context2 form{
    background-color: #f5f5f5;
    margin-top: 50px;
    padding: 20px;
    border-radius: 10px;
}

.context2 input{
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#btnRegister{
    border: 1px solid #c34a1e;
    border-radius: 4px;
    background-color: #c34a1e;
    padding: 10px 15px;
    color: white;
    font-weight: bold;
}

#btnRegister:hover{
    background-color: #ac2e1d;
    cursor: pointer;
}

label[for=terms]{
    text-decoration: underline;
}

label[for=terms]:hover{
    cursor: pointer;
}

.termsBox{
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
}

.termsBox h2{
    text-align: center;
}

.termsBox p{
    text-align: justify;
}

#termsContent{
    background-color: #f5f5f5;
    width: 80%;
    max-height: 50vh;
    max-width: 80vw;
    overflow-y: auto;
    padding: 30px;
}

.close{
    font-size: 32px;
    font-weight: bold;
    float: right;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

@media only screen and (max-width: 800px) {
    .content{
        font-size: 10px;
    }

    .context1{
        display: none;
    }

    .context2 form{
        margin-top: 20px;
        padding: 10px;
    }

    .context2 input{
        font-size: 10px;
    }

    #txtName, #txtEmail, #txtPassword{
        width: 180px;
    }

    #rbtGender, #chkTerms{
        width: 8px;
        height: 8px;
    }

    .errMsg{
        font-size: 10px;
    }

    #termsContent{
        font-size: 10px;
        background-color: #f5f5f5;
        width: 80%;
        padding: 20px;
    }
    
    .close{
        font-size: 12px;
    }
}