/* by Matheus Souza */

article {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #157F50;
    min-height: 65vh;
    padding: 32px;
}

article h1 {
    min-width: 75vw;
    font-size: 10vw;
    margin: 0px 0px 32px;
    border-bottom: 8px double #FFF8E1;
    color: #FFF8E1;
    font-family: Birthstone;
    text-align: center;
}

form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

form div {
    width: 90vw;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

#nombre, #correo, textarea {
    background-color: #F4E1C1;
    color: #043F2D;
    padding: 1vw;
    border-radius: 16px;
    border: 4px solid #043F2D;
    font-family: Pattaya;
}

#nombre, #correo {
    width: 40vw;
    height: 32px;
    margin: 8px;
    font-size: 2.5vw;
}

form textarea {
    width: 90vw;
    height: 35vh;
    font-size: 2vw;
}

form button {
    width: 128px;
    height: 128px;
    position: relative;
    top: -64px;
    background-color: #F4E1C1;
    color: #043F2D;
    font-size: 32px;
    text-transform: uppercase;
    font-family: Pattaya;
    border: 4px solid #043F2D;
    border-radius: 128px;
    cursor: pointer;
    transition: 0.5s ease-in-out;
}

form button:hover {
    background-color: #043F2D;
    color: #F4E1C1;
    transition: all 0.5s ease-in-out;
}

#nombre:invalid, #correo:invalid {
    border-color: #D35239;
    transition: all 1s ease-in-out;
}

#nombre:valid, #correo:valid {
    border-color: #5FB390;
    transition: all 1s ease-in-out;
}

/*Responsive for Mobile*/
@media (max-width: 800px) {
    form div { 
        flex-direction: column; 
        justify-content: center;
        align-items: center;
    }

    #nombre, #correo, form textarea {
        width: 75vw;
        padding: 1vw 2vw;
        font-size: 5vw;
    }    
}
