/*Master styles*/
body{
    font-family: 'Happy Monkey', cursive;
    margin:0px;
    background-color: honeydew;
   
}

.container{
    display: grid;
    grid-template-columns:1fr ;
}

.title{
    text-align: center;
    font-weight: bold;
    color: teal;
    font-size: 2em;
}
/*nav styles */
.nav-wrapper{
    display: flex;
    justify-content: space-between;
    padding: 38px;
}

.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: #8e8e8e;
    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;
}


/*Portfolio styles*/
.portfolio-items-wrapper{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.portfolio-item-wrapper{
    position: relative;
}

.portfolio-img-background{
    height: 300px;
    widows: 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%;
    padding-left: 220px;
}

.img-text-wrapper .subtitle{
    transition: 1s;
    color: transparent;
    font-weight: 600;
    margin: 10px 52px 10px 0;
    
}

.img-text-wrapper:hover .subtitle{
    font-weight: 800;
    color:white;
    font-weight: bold;
}

.img-darken{
    transition: 1s;
    filter: brightness(70%);
}

.active{
    color: white;
}

/*About page styles*/

.two-column-wrapper{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.profile-image-wrapper img{
    width: 100%;
    height: 80%;
    
}

.profile-content-wrapper{
    padding: 30px;
}

.profile-content-wrapper h1{
    color: lightseagreen;
}

/*Footer styles*/
.footer-item{
    text-align: center;
    margin-top: 20px;
}

/*Second page*/

.form-text h2{
    text-align: center;
}

input[type=text], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
  }
  
  input[type=submit] {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  input[type=submit]:hover {
    background-color: #45a049;
  }
  
  .content-form {
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 20px;
    width: 50%;
    margin-left: 25%;
  }

  iframe{
      margin-left:30%;
  }

  @media (min-width: 320px) and (max-width: 480px){

body{
    background-color:whitesmoke;
}

    .container{
        display: flex;
        display: block;
        align-items: center;
    }

    .title{
        position: relative;
        top: 30px;
        
    }
    .nav-wrapper{
        text-align: center;
        
    }
    .right-side{
        display: none;
    }

    /*Portfolio */

    .portfolio-items-wrapper{
        display: grid;
        grid-template-columns: 1fr ;
    }
    .portfolio-img-background{
        width: 100%;
        background-size: cover;
    }

    .img-text-wrapper {
        position: relative;
    }
    .img-text-wrapper .subtitle{
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%)
    }

    .footer-item{
       background-color: lightgray;
    }
    footer{
        margin-top: 50%;
    }

    /*second page*/

    div.content-form{
        display: block;
        text-align: center;  
        margin-left: 20%;
    }

    form{
        display: inline-block;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
       

}

/*about page*/

.two-column-wrapper{
    display: grid;
    grid-template-columns: 1fr;
}

.profile-content-wrapper {
   line-height: 25px;
}

/*location*/

.map-responsive {
    position: relative;
    padding-bottom: 75%; 
    height: 0;
    overflow: hidden;
    margin-right:20%;
}
.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}
}

@media (min-width: 481px) and (max-width: 767px){

    /*nav-style*/
    .nav-wrapper .left-side{
        display: flex;
        display: block;
        justify-content: center;
        margin-left: 45%;
    }

    .nav-wrapper .right-side{
        display: none;
    }
    /*Portfolio */

    .content-wrapper{
        width: 100%;
    }

    .portfolio-img-background{
        width: 100%;
    }
    .img-text-wrapper .subtitle{
        color: white;
        position: absolute;
        left: 30%;
        margin-top: 80%;
    }

    /*about*/

    .content-wrapper{
        text-align: justify;
        width: 100%;
    }

    .two-column-wrapper{
        display: block;
        margin:0 auto;
    }
    /*location*/

    .map-responsive{
        position: relative;
        padding-bottom: 56.25%;
        padding-top: 35px;
        height: 0;
        overflow: hidden;
    }

    .map-responsive iframe{
    position: absolute;
    top:0;
    left: 0;
    width: 50%;
    height: 100%;
    }

    /*footer*/

    footer{
        margin-top: 50%;
        background-color: lightgray;
    }
}


