@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

/* remove all default browser styling (tip picked up from Love Running Project) */

* {
    margin: 0;
    padding: 0;
    border: none;
}


/* General CSS properties */

body {
    font-family: Roboto, sans-serif;
    font-weight: 600;
    color: #808080;
}

h1,
h2 {
    font-family: Roboto;
    color: #7d7d7d;
    text-transform: uppercase;
}

.logo {
    margin-left: 30px;
    float: left;
    font-size: 2.5rem;
    line-height: 75px;
}

/* Code snippet taken from https://www.prodjex.com/2019/03/match-hr-width-to-text-above/ */

.hr {
    display: inline-block;
}

.hr:after {
    content: '';
    display: block;
    border-top: 2px solid #7d7d7d;
}

/* code used ends above here */


/* General CSS properties continued */

.section-heading {
    padding-bottom: 30px;
}

.section-paragraph {
    padding-bottom: 30px;
    font-size: 1.4rem;
}

.section-paragraph a {
    text-decoration: none;
    color: #808080;
}

.clear-both {
    clear: both;
}

.column-1,
.column-2 {
    float: left;
    width: 50%;
}

/* navigation menu */

#menu {
    font-size: 1.5rem;
    float: right;
    text-align: center;
    word-spacing: 20px;
    margin-right: 30px;
    line-height: 75px;
}

#menu li {
    display: inline-block;

}

#menu a {
    text-decoration: none;
    color: #7d7d7d;
}

#menu a:hover {
    border-bottom: 2px solid #7d7d7d;
}

.active {
    border-bottom: 2px solid #7d7d7d;
}

/* Banner image */

#banner-image-outer {
    height: 600px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

#banner-image {
    height: 600px;
    width: 100%;
    background: url(../images/baby-banner-image.jpg) no-repeat center center;
    background-size: cover;

}

/* About us */

#about-us-container {
    max-width: 100%;
    padding: 10px;
    overflow: auto;
    display: flex;
    align-items: center;
}

.right-section img {
    max-width: 100%;
}

/* About me */

#about-me-container {
    max-width: 100%;
    background-color: #ccc;
    padding: 10px;
    overflow: auto;
    display: flex;
    align-items: center;
}

.left-section img {
    max-width: 100%;
}

/* Services */

#services-container {
    max-width: 100%;
    padding: 10px;
    overflow: auto;
    display: flex;
    align-items: center;
}

/* Gallery */

#gallery-header {
    padding: 30px;
}

#gallery-container {
    max-width: 100%;
    padding: 10px;
    overflow: auto;
    display: flex;
    align-items: center;
}

/* Services and Gallery structural CSS */

.row {
    display: flex;
}

.column {
    flex: 33.3%;
    padding: 5px;
}

.column img {
    max-width: 100%;
}

/* About me, Abouts us and Services and Gallery overal padding */

div.left-section.column-1 {
    padding: 30px;
}

div.left-section.column-2 {
    padding: 30px;
}

div.right-section.column-1 {
    padding: 30px;
}

div.right-section.column-2 {
    padding: 30px;
}

/* Contact */

#form-container {
    max-width: 50%;
    vertical-align: middle;
    margin: 0 auto;
    padding-top: 50px;
    padding-bottom: 50px;
}

input[type=text],
select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #7d7d7d;
    border-radius: 4px;
    box-sizing: border-box;
}

#desc {
    height: 200px;
}

input[type=email],
select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #7d7d7d;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Some style copied from https://www.w3schools.com/css/tryit.asp?filename=trycss_form_button */

input[type=submit],
input[type=reset],
select {
    font: inherit;
    color: inherit;
    border: none;
    padding: 16px 32px;
    text-decoration: none;
    margin: 4px 2px;
    cursor: pointer;
}

/* Code used ends above */

/* Contact continued */

.click:hover {
    background-color: #4a54e7;
    color: #fff;
}

/* Thank you page */

#thank-you-container {
    padding-top: 50px;
    padding-left: 30px;
}

/* Footers*/

.footer-container {
    max-width: 100%;
    height: 250px;
    background-color: #4a54e7;
}

.contact-links {
    text-align: center;
    line-height: 250px;
}

.contact-links li {
    display: inline;
}

.contact-links a {
    font-size: 1.6rem;
    margin: 1%;
    padding: 5%;
    color: #ffffff;
}

#thank-you-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 250px;
    background-color: #4a54e7;
}

/* Media queries */

/* For larger to medium screens size from 900px wide and down */
@media screen and (max-width: 900px) {

    .column-1,
    .column-2 {
        float: none;
        max-width: 100%;
        width: auto;
        margin: 0 auto;
        text-align: left;
    }

    #about-us-container {
        display: block;
        clear: both;
    }

    #about-me-container {
        display: block;
        clear: both;
    }

    #about-me-img {
        float: right;
        padding-bottom: 30px;
    }

    #gallery-container {
        display: block;
        clear: both;
    }

    #services-container {
        display: block;
        clear: both;
    }

    .column {
        width: 50%;
    }
}

/* For larger to medium screens size from 800px wide and down */
@media screen and (max-width: 800px) {
    .logo {
        float: none;
        padding-right: 30px;
    }

    h1 {
        text-align: center;
    }

    .section-paragraph {
        font-size: 1.2rem;
    }

    #med-clear {
        clear: both;
        display: block;
        width: 100%;
        margin: 0 auto;
    }

    #menu {
        float: none;
        text-align: center;
    }


    h2 {
        text-align: center;
        width: 100%;
        text-decoration: underline 2px solid #7d7d7d;
        text-underline-offset: 2px;
    }

    #about-me-container h2 {
        text-align: center;
        width: 100%;
    }

    #services-container h2 {
        text-align: center;
        width: 100%;
    }

    .hr {
        display: block;
        text-align: center;
    }

    .hr:after {
        content: '';
        display: block;
        border-top: none;
    }

    .row {
        display: block;
    }

    .column {
        width: 100%;
        padding-right: 30px;
    }

    .footer-container {
        height: 125px;
    }

    .gallery-footer {
        position: fixed;
        bottom: 0;
        width: 100%;
    }

    .contact-links {
        line-height: 125px;
    }

    #thank-you-footer {
        height: 125px;
    }

    #form-container {
        max-width: 70%;
    }
}

/* For smaller screens size from 560px wide and down */
@media screen and (max-width: 560px) {

    #form-container {
        max-width: 80%;
    }

    .section-paragraph {
        font-size: 1rem;
    }

    #footer-container {
        height: 125px;
    }

    .contact-links {
        text-align: center;
        line-height: 125px;
    }
}