#resize {
    color: rgb(65, 197, 76);
    margin-left: 50px;
    margin-top: 100px;
    position: absolute;
}

div#envelope {
    border: 2px solid gray;
    border-radius: 10px;
    margin: 10px 30% 10px 25%;
    padding: 10px 0;
    width: 55%;
}

form {
    margin: 0% auto;
    /*max-width: 450px;*/
    width: 100%;
}

/* Makes responsive fields.Sets size and field alignment.*/

input[type=text] {
    border: 1px solid #c9c9c9;
    border-radius: 5px;
    margin-bottom: 20px;
    margin-top: 10px;
    padding: 10px;
    width: 97%;
}

input[type=password] {
    border: 1px solid #c9c9c9;
    border-radius: 5px;
    margin-bottom: 20px;
    margin-top: 10px;
    padding: 10px;
    width: 97%;
}

input[type=submit] {
    background-color: #4180C5;
    border-color: inherit;
    border-radius: 5px;
    border-style: none;
    border-width: medium;
    color: aliceblue;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 10px;
}

input[type=submit]:hover {
    background-color: #66d025;
    border: none;
}

#submit:hover {
    background-color: #66d025;
    border: none;
}


textarea {
    border: 1px solid #7ac9b7;
    border-radius: 5px;
    margin-bottom: 20px;
    margin-top: 10px;
    padding: 15px;
    resize: none;
    width: 100%;
}

input[type=text]:focus, textarea:focus { border-color: #4697e4; }

@media only screen and (max-width: 1550px) and (min-width: 1200px) {
    #resize { display: none; }
}

@media only screen and (max-width: 1200px) and (min-width: 601px) {
    div#envelope {
        margin: 10px 30% 10px 11%;
        width: 80%;
    }

    #resize { display: none; }
}

@media only screen and (max-width: 600px) and (min-width: 351px) {
    h2 { font-size: 18px; }

    p { font-size: 14px; }

    label { font-size: 12px; }

    input[type=submit] { }

    input[type=text] { padding: 8px; }

    div#envelope {
        margin: 10px 30% 10px 11%;
        width: 80%;
    }

    #resize { display: none; }
}

@media only screen and (max-width: 350px) {
    input[type=submit] { font-size: 12px; }

    input[type=text] { padding: 8px; }

    label { font-size: 12px; }

    h2 { font-size: 15px; }

    p { font-size: 12px; }

    div#envelope {
        margin: 10px 30% 10px 11%;
        width: 80%;
    }

    #resize { display: none; }
}