:root {
    --text-color: #373D3F;
    --text-white: #ffffff;
    --link-color: #ffffff;
    --link-hover: #3D7DD9;
  }

body {
    padding: 0;
    margin: 0;
}
*{
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
}

h1, figure, p {
    margin: 0 auto;
}

h1 {
    font-weight: 400;
}

p {
    margin: 1em auto;
}

a {
    text-decoration: none;
    padding: .5rem 0;
    display: block;
}

a:hover {
    transition: all .3s;
    color: var(--link-hover);
}

svg {
    margin: 1rem 0 ;
}

/* ul {
    margin: 0;
    padding: 0;
} */

ul::after {
    content: '';
    display: block;
    clear: both;
}

.text-center {
    text-align: center;
}

/* nav start */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1rem;
}
nav {
    font-weight: 300;
    padding: 0 1em;
}

nav li a {
    padding: 1rem 1.5rem;
}

ul.site-menu li {
    text-transform: capitalize;
}

ul.site-menu li {
    display: block;
    float: left;
    font-weight: 400;
}

@media (max-width: 600px){
    svg {
        max-width: 120px;
    }
    nav {
        display: none;
    }
}

/* nav ends */

#sapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.slider {
    max-width: 1200px;
    max-height: 400px;
    display: flex;
    border: 1px solid #707070;
    margin-bottom: 4rem;
}
.slider-img {
    flex: 1;
    overflow: hidden;
}
.slider-img img {
    object-fit: cover;
    width: 100%;
}
.slider-caption {
    padding: 1rem;
    background-color: white;
    width: 400px;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.grid-products {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, 120px);
    grid-auto-rows: 120px;
    margin:2rem 0 4rem 0;
}

.grid-products .product {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #707070;
    text-align: center;
}

.grid-products .product:hover {
    transform: scale(1.02);
    cursor: pointer;

    -webkit-box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0); 
    box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0);
}

.know-how * {
    color: var(--text-white);
}

.know-how {
    background: #000428;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to bottom, #004e92, #000428);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to bottom, #004e92, #000428); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

    padding: 2rem 0;
}
.gallery {
    display: flex;
    margin: 2rem 0 1rem;
}

.gallery-item {
    background-color: white;
    width: 250px;
    height: 300px;
    border: 1px solid #707070;
    margin: .25rem;
    transition: all .3s;
}
.gallery-item:hover {
    transform: scale(1.02);
    cursor: pointer;

    -webkit-box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0); 
    box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0);
}
.gallery-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: center;
}

/* contacts */

.intro > h1, .intro > p {
    text-align: center;
}
.contact-form__container {
    padding-top: 4rem;
    margin: 0 auto;
    display: flex;
    max-width: 1024px;
    justify-content: center;
}

.company-details {
    flex: 1;
}
.contact-form {
    flex: 2;
}
input, textarea {
    background-color: #f6f6f6;
    border: 1px solid #707070;
    color: #707070;
    font-family: 'Open Sans', sans-serif;
    padding: .2rem .5rem;
    margin: 4px 2px;
}
input:nth-of-type(1){
    width: 33%;
}
input:nth-of-type(2){
    width: 59%;
}
input:nth-of-type(3){
    width: 56%;
}
input:nth-of-type(4){
    width: 36%;
}
input:nth-of-type(5){
    width: 16%;
}
input:nth-of-type(6){
    width: 76%;
}
input:nth-of-type(7){
    width: 46%;
}
input:nth-of-type(8){
    width: 46%;
}
textarea {
    width: 93%;
    min-height: 120px;
}

input:focus-visible, textarea:focus-visible {
    outline: 1px solid #3D7DD9;
}

#post-form:hover {
    cursor: pointer;
    color: black;
    -webkit-box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0); 
    box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0);
}

.map {
    max-width: 1024px;
    padding: 4rem 0;
    margin: 0 auto;
}

@media (max-width: 600px){
    .map {
    max-width: 400px;
    padding: 4rem 0;
    margin: 0 auto;
    }
    .gmap_canvas, .mapouter {
        width: auto;
    }
    .map iframe {
        width: auto;
    }
    .contact-form__container {
        padding: 2rem;
    }
    .contact-form {
        flex: 1;
    }
    input {
        width: 100% !important;
    }
}

/* footer */

footer {
    font-weight: 600;
    padding: 0 1em;
    background-color: #f6f6f6;
}

footer .container {
    max-width: 1440px;
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    justify-content: space-between;
}		

footer li {
    display: block;
    float: left;
}
footer li a {
    padding: .5rem;
}

@media (max-width: 600px) {
    header {
        padding-bottom: 0;
    }

    .slider {
        flex-direction: column;
        margin-bottom: 0;
    }
    .slider-caption {
        width: auto;
    }
    .container {
        padding: 2rem 2rem 0;
    }

    .grid-products {
        grid-template-columns: repeat(2, 120px);
    }

    .know-how {
        padding: 2rem;
    }
    .gallery {
        flex-wrap: wrap;
        justify-content: center;
    }

    .gallery-item {
        height: 250px;
    }

    .gallery-item img {
        object-fit: contain;
    }

    footer .container{
        flex-direction: column;
        text-align: center;
    }
    ul {
    display: flex;
    justify-content: center;
    }
}

/* About page */

div.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
    text-align: left;
    flex: 1;
}