@media screen and (min-width: 591px) {
    .Maindiv {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        justify-content:space-around;
        max-height: 90vh;
    }
    .Maindiv img {
        width: 35vw;
        /* No image stretching */
        object-fit: cover;
    }
    .Form {
        width: 65vw;
        background-color: #DBDBDB;
        display: flex;
        padding: 10%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    
    .Form form {
        display: flex;
        flex-direction: column;
        width: 80%;
        align-items: flex-start;
    }

    
}

@media screen and (max-width: 591px) {
    .Maindiv {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content:space-around;
    }
    .Maindiv img {
        width: 100vw;
        height: 35vh;
        /* No image stretching */
        object-fit: cover;
    }
    .Form {
        width: 100vw;
        background-color: #DBDBDB;
        display: flex;
        padding: 10% 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .Form form {
        display: flex;
        flex-direction: column;
        width: 80%;
        align-items: center;
    }

    .Form label {
        width: 100%;
        text-align:left;
        margin-top: 5px;
        margin-bottom: 4px;
    }
}


.Form input[type="text"], input[type="email"], textarea {
    width: 100%;
    margin-top: 2px;
}

/* Input selected */

.Form input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    outline: 1px solid #00538C;
    border: none
}

.Form #message {
    height: 150px;
}