@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;500;700&display=swap');
:root{
    --green : #32cd32;
    --white : #fff;
    --white2 : #f8f8f8;
    --grey : #ccc;
    --border : 15px;
    --black: #333;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    width: 100%;
    height: 100vh;
    background-color: var(--white2);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 60px 1fr 40px;
    grid-template-areas: 
        "header"
        "main"
        "footer";
}

header {
    grid-area: header;
    background-color: var(--green);
    display: flex;
    align-items: center;
}

header .container{
    width: min(90%, 1200px);
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu{
    position: fixed;
    top: 55px;
    left: -100%;
    display: block;
    padding: 100px 50px;
    text-align: center;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    transition: 0.5s;
    z-index: 999;
    border-top: 1px solid rgba(0,0,0,0.2);
}

.menu.active{
    left: 0;
}
header ul li{
    list-style: none;
    margin: 20px;
    border-bottom: 3px solid transparent;
    transform: 1s;
}
header ul li:hover{
    border-bottom: 3px solid var(--green);
    transform: 1s;
}

header ul li a{
    color: var(--black);
    font-size: 24px;
    text-decoration: none;
}

header h1{
    font-weight: 700;
    font-size: 30px;
    color: var(--white);
}

.toggle i{
    font-size: 26px;
    color: var(--white);
    cursor: pointer;
}

main{
    position: relative;
    height: calc(100vh - 100px);
    margin: 0 auto;
    text-align: center;
    grid-area: main;
}

main h2{
    margin: 10px 0 20px 0;
    font-weight: 500;
    font-size: 24px;
    color: var(--black);
}

form{
    width: min(90%, 800px);
    text-align: left;
    margin: 0 auto;

}

form label{
    width: 100%;
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
}

form input, form textarea{
    margin-bottom: 15px;
    height: 40px;
    padding-left: 8px;
    border: 1px solid var(--grey);
    border-radius: 10px;
    font-size: 16px;
}

form #number{
    width: 30%;
}

form #message{
    width: 100%;
    height: 120px;
    resize: none;
}

#txtLink{
    width: min(90%, 800px);
    min-height: 40px;
    height: auto;
    resize: none;
    padding: 5px 8px;
    cursor: pointer;
    border: 1px solid var(--grey);
    border-radius: 10px;
    font-size: 16px;    
}

form button{
    margin: 0 auto;
    width: 100%;
    background-color: var(--green);
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
    cursor: pointer;
}

.link{
    margin-top: 20px;
}

footer{
    grid-area: footer;
    background-color: #383838;
    display: flex;
    justify-content:center;
    align-items: center;
}

footer p{
    color: var(--white);
    font-size: 12px;
}
footer p a{
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

@media screen and (max-width:645px){
    header h1{
        font-size: 22px;
    }

    main h2{
        margin: 10px 2% 10px 2%;
        font-size: 18px;
    }

    form #number{
        width: 100%;
    }
}

@media screen and (max-width: 430px){
    header h1{
        font-size: 16px;
    }

    .menu{
        padding: 50px 50px;
    }
}