body {
    background-color: hsl(213, 25%, 14%);
    margin: 0;
}

.home-container {
    background-color: rgb(12, 12, 11);
    display: flex; /* makes this a flex container whos children will be flex items*/
    flex-direction: column;
    min-height: 100vh; /* 100% of viewport height */
    background-image: url("Images/hero-image.jpg");
    background-position-x: 200px;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: "Montserrat", sans-serif;
}

.container {
    display: flex; /* makes this a flex container whos children will be flex items*/
    flex-direction: column;
    /*min-height: 100vh; !* 100% of viewport height *!*/
    font-family: "Montserrat", sans-serif;
    background-color: hsl(213, 25%, 14%);
}

.top-section {
    flex: 1;
    display: flex;
    flex-direction: row;
}

.bottom-section {
    flex: 10;
    display: flex;
    flex-direction: row;
}

.home-main {
    flex: 10;
    display: flex;
    flex-direction: column;
    margin-right: 50vw;
    margin-left: 100px;
    max-width: 100vw;
}

.bottom-section-contact {
    flex: 10;
    text-align: center;
    padding-top: 150px;
}

.bottom-section-about {
    flex: 10;
    display: flex;
    flex-direction: row;
    padding-top: 150px;
}

nav {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 100%;
    z-index: 999;
    background-color: rgba(12, 12, 11, 0%);
    font-size: 20px;
    color: #437865;
    /*border: 3px solid red;*/
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: right;
    align-items: center;
}

nav li {
    margin: 0 5px;
}

nav a {
    font-family: "Montserrat", sans-serif;
    color: hsl(39, 1%, 85%);
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s, border 0.3s;
    position: relative; /* relative to the parent nav element */
    border: 1px solid hsla(39, 1%, 85%, 100%);
    /*background-color: hsl(36, 26%, 19%);*/
    background-color: rgba(100, 100, 100, 0.8);
    padding: 8px 15px;
}

nav a:hover {
    color: hsl(39, 1%, 65%);
    border: 1px solid hsla(39, 1%, 65%, 100%);
}

.name {
    font-family: "Montserrat", sans-serif;
    font-size: 26px;
    color: #e6e6e6;
    padding-top: 30px;
    padding-left: 30px;
    margin-right: 100px;
    /*border: 3px solid white;*/
}

.left-section, .right-section {
    flex: 1;
    padding-right: 50px;
    /*border: 1px solid white;*/
}

.left-section {
    padding-left: 100px;
}

.left-section a {
    color: #000000;
    font-size: 10px;
}

.left-section-services {
    flex: 1;
    padding-left: 80px;
    margin-top: 150px;
    /*border: 1px solid white;*/
}

.right-section-services {
    flex: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 150px;
    margin-right: 180px;
    border-bottom: 3px solid white;
}

h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 4.5rem;
    color: #e6e6e6;
}

h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 3.5rem;
    color: #e6e6e6;
}

h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    color: #e6e6e6;
}

h4 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;
    color: #e6e6e6;
}

p {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    color: #e6e6e6;
}

.chapter-section {
    /*background-color: rgba(255, 255, 255, 0.1);*/
    margin-top: 0px;
    padding: 0px;
}

.chapter-section h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 24px;
    color: #e6e6e6;
    margin-bottom: 20px;
    border-bottom: 2px solid #e6e6e6;
    padding: 5px;
    display: inline-block;
}

.chapter-section p {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    color: #e6e6e6;
    line-height: 1.6;
}

.call-to-action {
    margin-top: 300px;
}

button {
    border: 0;
    padding: 10px 30px;
    background-color: #FFFFFF;
}

button a {
    text-decoration: none;
    font-weight: 900;
}

button a:link {
    color: black;
}

button a:visited {
    color: gray;
}

button a:hover {
    color: green;
}

button a:active {
    color: aqua;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    width: 75vw;
    margin: 100px auto;
    gap: 25px;
    justify-content: center;
    /*border: 1px solid white;*/
}

.grid-img {
    flex: 1;
    /*border: 1px solid rgba(255, 255, 255, 0.1);*/
    margin: auto;
    padding: 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

figure {
    margin: 10px;
    padding: 0;
    position: relative;
    aspect-ratio: 16 / 9;
    /*border: 1px solid white;*/
}

figcaption {
    background-color: rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
    padding: 8px 0;
    text-transform: uppercase;
    font-size: 1vw;
    position: absolute;
    bottom: 10%;
    color: white;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

@media screen and (max-width: 1500px) {
    figcaption {
        font-size: 1.5vw;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr 1fr;
        width: 80vw;
    }
}

@media screen and (max-width: 1000px) {
    figcaption {
        font-size: 2vw;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        width: 85vw;
    }
}

@media screen and (max-width: 600px) {
    figcaption {
        font-size: 3vw;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        width: 90vw;
    }
}

.service {
    flex: 1;
    flex-basis: 45%;
}

.cta-services {
    text-align: right;
    margin-top: 20px;
    margin-right: 180px;
    margin-bottom: 100px;
}

.about-paragraphs {
    max-width: 600px;
}

.bottom-section-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inner {
    width: 70%;
}

.inner h3 {
    text-align: left;
}

form {
    display: flex;
    flex-direction: column;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    background-color: #1B1F24;
    padding: 25px
}

.form-left {
    flex: 1;
    width: 100%;
}

.form-right {
    flex: 1;
    width: 100%;
}

label {
    color: hsl(39, 1%, 85%);
    float: left;
    text-align: left;
    text-transform: uppercase;
}

input, textarea {
    width: 100%;
    height: 30px;
    margin-bottom: 10px;
}

#submit {
    float: right;
    text-align: center;
    margin-right: 0;
    width: 100px;
    height: 40px;
}

footer {
    position: fixed;
    top: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    width: 100vw;

}

/*footer {*/
/*    display: */
/*}*/

footer p {
    font-size: 0.75em;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

footer li {
    padding: 0 5px 15px 5px;
}

footer a {
    font-family: "Montserrat", sans-serif;
    color: hsl(39, 1%, 85%);
    font-size: 0.75em;
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: hsl(39, 1%, 65%);
}
