@import url(../styles/layout.css);

#contact-section {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    height: auto;
    width: fit-content;
    margin: auto;
    margin-top: 50px;
    padding: 20px;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0px 20px 10px -1px #00000070;
    background-color: rgba(255, 255, 255, 0.9);
}

#contact-section img, #contact-info-section {
    height: 400px;
    background-color: #f7dde0;
    padding: 20px;
}

#contact-section img {
    border: 5px solid #673a16;
    margin-right: 20px;
    border-top-left-radius: 10px;
}

#contact-info-section {
    border: 5px solid #673a16;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom-right-radius: 10px;
}

#contact-info-section h2 {
    font-family: CormorantUpright;
    font-size: 40px;
    text-decoration: underline;
    font-weight: bold;
    margin-bottom: 10px;
}

#contact-info-section div {
    background-color: #fffefe;
    border: 2px solid #673a16;
    border-radius: 5px;
    box-shadow: none;
    padding: 0;
}

#contact-info-section div p {
    margin: auto;
    font-size: 30px;
    font-weight: bold;
    border-bottom: 2px solid #673a16;
    padding: 15px;
    letter-spacing: 2px;
}

#contact-info-section div p:last-of-type {
    border-bottom: none;
}

#map-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px 0;
    padding: 20px;
    width: 75%;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    justify-self: center;
    box-shadow: 0px 20px 10px -1px #00000070;
    background-color: rgba(255, 255, 255, 0.9);
}

#map-section iframe {
    width: 100%;
    height: 500px;
    border: 5px solid #673a16;
    border-radius: 5px;
    padding: 20px;
    background-color: #f7dde0;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* ~~~~ RESPONSIVE ~~~~*/

@media screen and (max-width: 1500px) {
    #contact-section img, #contact-info-section {
        height: 300px;
    }

    #contact-info-section h2 {
        font-size: 30px;
    }
    
    #contact-info-section div p {
        font-size: 25px;
    }

    #map-section iframe {
        height: 400px;
    }
}

@media screen and (max-width: 1160px) {
    #contact-section img, #contact-info-section {
        height: 250px;
    }

    #contact-info-section div {
        margin-top: 10px;
    }

    #contact-info-section h2 {
        font-size: 25px;
    }
    
    #contact-info-section div p {
        font-size: 20px;
        padding: 15px;
    }

    #map-section iframe {
        height: 350px;
    }
}

@media screen and (max-width: 990px) {
    #contact-section img, #contact-info-section {
        height: 200px;
    }

    #contact-info-section h2 {
        font-size: 22px;
    }
    
    #contact-info-section div p {
        font-size: 18px;
    }

    #map-section iframe {
        height: 300px;
    }
}

@media screen and (max-width: 990px) {
    #contact-section {
        flex-direction: column;
    }

    #contact-section img {
        height: 350px;
        padding: 10px;
        order: 1;
        margin: 20px 0 0 0;
        border-top-left-radius: 0px;
        border-bottom-right-radius: 10px;
    }

    #contact-info-section {
        border-bottom-right-radius: 0px;
        border-top-left-radius: 10px;
    }
    
    #contact-info-section div p {
        padding: 10px;
    }
}

@media screen and (max-width: 500px) {

    #contact-section {
        padding: 10px;
    }

    #contact-section img {
        height: 262px;
        padding: 10px;
        order: 1;
        margin: 20px 0 0 0;
    }

    #contact-info-section {
        padding: 10px;
    }

    #contact-info-section h2 {
        font-size: 18px;
    }
    
    #contact-info-section div p {
        font-size: 12px;
        padding: 10px;
    }

    #map-section {
        padding: 10px;
        width: fit-content;
    }

    #map-section iframe {
        width: 262px;
        height: 262px;
        padding: 10px;
    }
}