*{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

input, a, h1, h2, label, button{
    font-family: "Nunito", serif;
}

/* nav */

.container{
    background-image: url("../img/background-for.svg");
    background-repeat: no-repeat;
    background-position: 99% 70%;
    background-size: 30%;
}

.img{
    background-color: #4C5A4F;
    width: 100%;
    height: 12vh;
    padding: 20px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.7);
}

.img img{
    height: 100%;
}

.img a{
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

/* formulario */

form{
    height: 75vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(8, 1fr);
    grid-auto-flow: column;
    gap: 20px;
    padding: 20px;
    width: 70%;
}

input[type="text"], input[type="number"], input[type="email"]{
    border-color: #4C5A4F;
    border-radius: 20px;
    padding: 5px;
    font-size: 1.2rem;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.7);
}

textarea{
    border-color: #4C5A4F;
    border-radius: 20px;
    border-width: 2px;
    padding: 5px;
    font-size: 1.2rem;
}

label{
    font-size: 1.2rem;
}

h2, h1{
    margin-left: 20px;
    margin-top: 10px;
}

button[type="submit"]{
    color: white;
    background-color: #4C5A4F;
    border: 0;
    border-radius: 20px;
    width: 50%;
    margin: 0px auto;
    font-size: 1.2rem;
}

hr{
    width: 100%;
    height: 4px;
    background-color: #4C5A4F;
    border: 0;
}

@media (max-width: 900px){
    .container{
        background-position: 80% 80%;
        background-size: 70%;
    }

    form{
        height: 65vh;
        margin-top: 40px;
        width: 100%;
    }

    button[type="submit"]{
        width: 80%;
    }

    input[type="text"], input[type="number"], input[type="email"]{
        height: auto;
    }
}

@media (max-width: 604px){
    .container{
        background-image: none;
    }

    form{
        height: 120vh;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(16, 1fr);
        gap: 5px;
        margin-top: 0;
        width: 100%;
    }

    input[type="text"], input[type="number"], input[type="email"]{
        height: auto;
    }
}