/* Core Styles */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #333;
    color: #fff;
    font-size: 1.1em;
    line-height: 1.5;
    text-align: center;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

h1, h2, h3 {
    margin: 0;
    padding: 1em 0;
}

p {
    margin: 0;
    padding: 1em 0;
}

.btn {
    display: inline-block;
    background: #333;
    color: #fff;
    text-decoration: none;
    padding: 1em 2em;
    border: 1px solid #666;
    margin: .5em 0;
}

.btn:hover {
    background: #eaeaea;
    color: #333;
}

.wrapper {
    background: #ffffff;
    overflow: auto;
}

.container {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: 1800px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Header Showcase */

#showcase {
    min-height: 450px;
    color: #fff;
    text-align: center;
}

#section-z {
    width: 100%;
    min-height: 63px;
    color: #fff;
    text-align: center;
}


#section-z .h-image {
    position: absolute;
    background: #fff url(images/logos/logo_280x63.jpg);
    background-position: center;
    background-repeat: no-repeat;
    /*background-size: cover;*/
    width: 100%;
    height: 63px;
    z-index: -1;
    /*opacity: 0.8;*/
}


#section-y {
    min-height: 450px;
    color: #fff;
    text-align: center;
}

#section-y .bg-image {
    position: absolute;
    background: #333 url(images/logos/380x380_wheel.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 450px;
    z-index: -1;
    opacity: 0.4;
}
#section-y h1 {
    padding-top: 100px;
    padding-bottom: 0;

}

#section-y .content-wrap, 
#section-a .content-wrap {
    padding: 0 1.5em;
}



/* Nav styles */

#section-x {
    min-height: 25px;
    background-color: #fff;
    text-align: center;
}

.nav-wrapper {
    display:flex;
    justify-content: space-between;
    padding: 18px;
}

.left-side {
    display: flex;
}

.nav-wrapper > .left-side > div {
    margin-right: 20px;
    font-size: 0.9em;
    text-transform: uppercase;
}

.nav-link-wrapper {
    height: 22px;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.5s;
}

.nav-link-wrapper a {
    color: #8a8a8a;
    text-decoration: none;
    transition: color 0.5s;
}

.nav-link-wrapper:hover {
    border-bottom: 1px solid black;
}

.nav-link-wrapper a:hover {
    color: black;
}

.active-nav-link {
    border-bottom: 1px solid black;
}

.active-nav-link a {
    color: black !important;
}


/* Section A */
#section-a {
    background: #eaeaea;
    color: #333;
    padding-bottom: 2em;
}

/* Section B */

#section-b {
    padding: 2em 1em 1em;
}

#section-b ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#section-b li {
    margin-bottom: 1em;
    background: #fff;
    color: #333;
}

.card-content {
    padding: 1.5em;
}

/* Section C */

#section-c {
    background: #fff;
    color: #333;
    padding: 2em;
}

/* Section D / Boxes */

#section-d .box {
    padding: 2em;
    color: #fff;
}

#section-d .box:first-child {
    background: #2690d4;
}

#section-e {
    background: #eaeaea;
    color: #333;
    padding-bottom: 2em;
}
/* Portfolio styles */

.portfolio-items-wrapper {
    display: grid;
    grid-template-columns: 1fr;
}

.portfolio-item-wrapper {
    position: relative;
}

    .portfolio-img-background {
    height: 300px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.img-text-wrapper {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    padding-left: 70px;
    padding-right: 40px;
}

.logo-wrapper img {
    width: 60%;
    margin-bottom: 40px;
}

.img-text-wrapper .subtitle {
    transition: 1s;
    font-weight: 300;
    color: transparent;
}
.img-text-wrapper:hover .subtitle {
    font-weight: 300;
    color: lightseagreen;
}

.img-darken {
    transition: 1s;
    filter: brightness(10%);
}

/* Flex box fixed size container */

.fixed-size-container {
    max-width: 500px;
    margin: 10px auto 0 auto;
    background-color: #ffffff;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

.fixed-size {
    width: 450px;
    height: 200px;
}


/* Footer */

#main-footer {
    padding: 2em;
    background: #000;
    color: #fff;
    text-align: center;
}

#main-footer a {
    color: #2690d4;
    text-decoration: none;
}

/* Media Queries */

@media(min-width:450px) {
#section-z {
min-height: 80px;
}
#section-z .h-image {
    background: #fff url(images/logos/logo_350x79.jpg);
    background-repeat: no-repeat;
    background-position: center;
    height: 80px;    
}
.portfolio-img-background {
    height: 400px;
    
}
}
/* For the photos from phone up to ipad */
@media(min-width:560px) {
    .portfolio-img-background {
        height: 500px;
        
    }  
}

@media(min-width:700px) {   
    .grid {
        display: grid;
        grid-template-columns: 1fr repeat(2, minmax(auto, 25em)) 1fr;
    }

    #section-z {
        min-height: 113px;
        }
        #section-z .h-image {
            background: #fff url(images/logos/logo_500x113.jpg);
            background-repeat: no-repeat;
            background-position: center;
            height: 113px;    
        }
    #section-a .content-text {
        columns: 2;
        column-gap: 2em;
    }

    #section-a .content-text p {
        padding-top: 0;
    }

    .content-wrap,
    #section-b ul {
        grid-column:2/4;
    }


.box, #main-footer div {
    grid-column: span 2;
}

#section-b ul {
    display: flex;
    justify-content: space-around;
}

#section-b li {
    width: 31%;
}

}   
@media(max-width: 780px)  {
    #section-x {
        display: none;
    }
    #section-e {
        display: none;
    }
}
@media(min-width: 780px) {
    .portfolio-items-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr; }
        .portfolio-img-background {
            height: 300px;
            width: 100%;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }   
        #section-y {
            display: none;
        }
}

@media(min-width: 1000px) {
    #section-z {
        min-height: 158px;
        }
        #section-z .h-image {
            background: #fff url(images/logos/logo_700x158.jpg);
            background-repeat: no-repeat;
            background-position: center;
            height: 158px;    
        } 
        .portfolio-items-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr; }
            .portfolio-img-background {
                height: 400px;
                width: 100%;
                background-size: cover;
                background-position: center;
                background-repeat: no-repeat;
            }   

}

@media(min-width: 1100px)   {
    .portfolio-items-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr; }
        .portfolio-img-background {
            height: 350px;
            width: 100%;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;  
}
}
@media(min-width: 1300px) {
    #section-z {
        min-height: 225px;
        }
        #section-z .h-image {
            background: #fff url(images/logos/logo_1000x225.jpg);
            background-repeat: no-repeat;
            background-position: center;
            height: 225px;    
        } 
        .portfolio-items-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr; }
            .portfolio-img-background {
                height: 450px;
                width: 100%;
                background-size: cover;
                background-position: center;
                background-repeat: no-repeat;
            } 
}
/* slide in menu */
.overlay {
  height: 0%;
  width: 100%;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0, 0.9);
  overflow-y: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top: 25%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
  color: #f1f1f1;
}

.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}

@media screen and (max-height: 450px) {
  .overlay {overflow-y: auto;}
  .overlay a {font-size: 20px}
  .overlay .closebtn {
  font-size: 40px;
  top: 15px;
  right: 35px;
  }
}
