/* Background image */
html{
    background: url('../images/backgrounds/background_projects.jpg');
    height:100%;
    width:100%;
    background-repeat:no-repeat;
   background-size:cover;


}

/* Show all the projects in the center */
.projects_menu {
    position: absolute;
    top: 55px;
    left: 10%;
    width: 80%; 
    margin: 0 auto;
    padding: 20px;
    overflow: hidden;
    z-index: -1;
}

/* style projects boxes */
.module {
    position: relative;
    width: 48%;
    height: 300px;
    float: left;
    margin-right: 4%;
    margin-bottom: 4%;
    border: 2px solid black;
    -webkit-border-radius: 20px; 
    -moz-border-radius: 20px; 
    border-radius: 20px;
    background-size: cover;
    -webkit-box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.4);
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.4);
   -webkit-transition: opacity 0.4s ease-in;
    -moz-transition: opacity 0.4s ease-in;
    -o-transition: opacity 0.4s ease-in;
    transition: opacity 0.4s ease-in;
    opacity: 0;
}

/* image style in module */
.module img{
    width: 100%;
    height: 100%;
    -webkit-transition: all 0.4s ease-in-out 0.2s;
    -moz-transition: all 0.4s ease-in-out 0.2s;
    -o-transition: all 0.4s ease-in-out 0.2s;
    transition: all 0.4s ease-in-out 0.2s;
    opacity: 1;
    -webkit-border-radius: 20px; 
    -moz-border-radius: 20px; 
    border-radius: 20px;
}

/* mask style that show up on mouse hover */
.module div{
    width: 100%;
    height: 100%;
    text-align: center;
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
    background-color: rgba(50,50,50,0.8);
    opacity: 0;
    -ms-transform: scale(0) rotate(-180deg);
    -webkit-transform: scale(0) rotate(-180deg);
    transform: scale(0) rotate(-180deg);
    -webkit-transition: all 0.4s ease-in;
    -moz-transition: all 0.4s ease-in;
    -o-transition: all 0.4s ease-in;
    transition: all 0.4s ease-in;
    -webkit-border-radius: 15px; 
    -moz-border-radius: 15px; 
    border-radius: 15px;
}

/* style subtitle in mask */
.module div h2 {
    font-family: "Times New Roman", Times, serif;
    color: #fff;
    text-align: center;
    position: relative;
    font-size: 25px;
    padding: 15px;
    background: rgba(204, 0, 0, 0.6);
    margin: 30px 0 0 0;
    opacity: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    margin: 20px 0px 0px 0px;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

/* Style text in mask */
.module p {
    font-family: "Times New Roman", Times, serif;   
    font-size: 18px;
    position: relative;
    color: #fff;
    padding: 20px 20px 20px;
    text-align: center;
    opacity: 0;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

/* Style buttons in mask */
.module .info {
    display: inline-block;
    font-family: "Times New Roman", Times, serif;
    padding: 7px 10px;
    background: #fff;
    text-transform: uppercase;
    opacity: 0;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    -webkit-border-radius: 20px; 
    -moz-border-radius: 20px; 
    border-radius: 20px;
    cursor: pointer;
}

/* Link to web page button */
a.info{
    text-decoration: none;
    color: #000;
    float: right; 
    margin-right: 15%;
}

/* Source code Button */
span.info{
    float: left; 
    margin-left: 15%;
}

/* effect on mouse hover */
.module:hover div{ 
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; 
    filter: alpha(opacity=100); 
    opacity: 1; 
    -ms-transform: scale(1) rotate(0deg);
    -webkit-transform: scale(1) rotate(0deg);
    transform: scale(1) rotate(0deg);
    transition-delay: 0.2s;
}

/* Hide image on mouse hover */
.module:hover img{
    -ms-transform: scale(0); 
    -webkit-transform: scale(0); 
    transform: scale(0);  
   -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; 
    filter: alpha(opacity=0); 
    opacity: 0;
    transition-delay: 0s;
}

/* Increase size and shadow on hover */
.info:hover {
  -webkit-box-shadow: 10px 10px 10px rgba(0,0,0,0.8);
    -moz-box-shadow: 10px 10px 10px rgba(0,0,0,0.8);
    box-shadow: 10px 10px 10px rgba(0,0,0,0.8);
    border-bottom: 2px solid black;
    -ms-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

/* Change position on active */
.info:active {
   transform: translate(5px, 5px);
    -webkit-transform: translate(5px, 5px);
    -webkit-box-shadow: 5px 5px 5px rgba(0,0,0,0.8);
    -moz-box-shadow: 5px 5px 5px rgba(0,0,0,0.8);
    box-shadow: 5px 5px 5px rgba(0,0,0,0.8);
}

/* Show button in mask */
.module:hover a.info,
.module:hover span.info{
    opacity: 1;
}

/* Show subtitle and text in mask */
.module:hover h2,
.module:hover p{
    opacity: 1;
    transition-delay: 0.5s;
}

/* even boxes go to right */
.module:nth-child(even) {
    margin-right: 0;
}

/* Style Source code menu */
.source_code{
    position: fixed;
    top: 0px;
    bottom: 0px;
    left: 0px;
    width: 0%; 
    height: 0%;
    overflow-y: auto;
    background-color: rgba(0,0,0,0.9);
    display: block;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

/* Style title in source code */
.source_code h2{
    font-size: 40px;
    font-family: "Times New Roman", Times, serif;   
    color: white;       
    margin-left: 5%;
    margin-top: 1%;
    text-shadow: 0px 4px 3px rgba(0,0,0,0.4),
             0px 8px 13px rgba(0,0,0,0.1),
             0px 18px 23px rgba(0,0,0,0.1);
}

/* Style close button in source code */
.source_code img{
    position: absolute;
    top: 15px;
    float: right;
    right: 3%;
    height: 30px;
    width: 30px;
    cursor: pointer;
}

/* Increase size on hover */
.source_code img:hover{
    -ms-transform: scale(1.2);
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

/* Move position on active */
.source_code img:active {
    -ms-transform: translate(4px,4px);
    -webkit-transform: translate(4px,4px);
    transform: translate(4px,4px);
}

/* Source Code Menu */
.source_code ul{
    margin-left: 3%;
    list-style: none;
    border-right: 1px solid rgba(255,255,255,0.3);;
    width: 200px;
    height: auto;
    overflow-y: auto;
}

.source_code ul li{
    padding-top: 13px;
    padding-bottom: 13px; 
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.source_code ul li span{
    font-size: 30px;
    font-family: Tahoma, Geneva, sans-serif;
    color: white;
    cursor: pointer; 
}

.source_code ul li:hover{
        -webkit-box-shadow: 10px 0px 10px rgba(255,255,255,0.4), 10px 0px 10px rgba(255,255,255,0.4);
        -moz-box-shadow: 10px 0px 10px rgba(255,255,255,0.4), 10px 0px 10px rgba(255,255,255,0.4);
        box-shadow: 10px 0px 10px rgba(255,255,255,0.4), -10px 0px 10px rgba(255,255,255,0.4);
}

/* Increase font size on hover */
.source_code ul li span:hover{
    font-size: 32px;
}

/* Section to show the source code */
.code{
   position: absolute;
   top: 70px;
   left: 240px;
   right: 0px;
   bottom: 0px;
}

/* Show source code */
.code iframe{
    width: 100%;
    height: 0%;
    background-color: #EEEEEE;
    -webkit-transition: height 0.2s ease-in-out;
    -moz-transition: height 0.2s ease-in-out;
    -o-transition: height 0.2s ease-in-out;
    transition: height 0.2s ease-in-out;
    position: absolute;
    top: 0px;
}


/* Open mobile menu */
.open_menu{
    position: relative;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 30px;
    color: white;
    cursor: pointer;
    display: none;
    top: 10px;
    left: 10px;
}

/* Close mobile menu */
.close_menu{
    position: relative;
    font-size: 25px;
    color: white;
    cursor: pointer;
    display: none;
    top: 15px;
    left: 15px;
}
/* --------------------------------------------- Responsive CSS --------------------------------------------------------------*/

@media all and (max-width: 1024px) {
 
    /* Increase Size */
    .projects_menu {
        left: 5%;
        right: 5%;
        width: 90%; 
    }

    /* style projects boxes */
    .module {
        width: 48%;         
        height: 300px;
    }

    .module .info{
      font-size: 15px;
    }

     /* Decrease width */
    .source_code ul{
        width: 160px;
    }

    /* Decrease font size */
    .source_code ul li span{
        font-size: 25px;
    }

     /* Increase font size on hover */
    .source_code ul li span:hover{
        font-size: 27px;
    }

    /* Section to show the source code */
    .code{
        top: 60px;
        left: 190px;
   }

}

@media all and (max-width: 925px) {

    /* Increase Size */
    .projects_menu {
        width: 80%; 
    }

    /* style projects boxes */
    .module {
        width: 48%;         
        height: 300px;
    }

    /* Decrease width */
   .source_code ul{
        width: 140px;
    }

    /* Decrease font size */
    .source_code ul li span{
        font-size: 22px;
    }

    /* Increase font size on hover */
    .source_code ul li span:hover{
        font-size: 24px;
    }

    /* Section to show the source code */
    .code{
       left: 165px;
   }
}
/* -------------------------------------------- Mobile ------------------------------------------------------------------*/ 
@media all and (max-width: 768px) {
    

    
    #content{
        overflow-x: hidden;
    }

    /* Increase Size */
    .projects_menu {
        width: 100%; 
        margin: 0 auto;
    }

    .module {
        width: 90%;         
        height: 300px;
    }

    .module h2{
        font-size: 40px;                   
    }

    .open_menu{
        display: inline;
    }

    .source_code img{
        top: 15px;
        height: 30px;
        width: 30px;                   
    }

    .source_code ul{
        text-align: center;
        list-style: none;
        width:100%;
        border-right: none;
        max-height: 0px;
        margin-left: 0%;
        -webkit-transition: all 0.2s ease-in-out;
        -moz-transition: all 0.2s ease-in-out;
        -o-transition: all 0.2s ease-in-out;
        transition: all 0.2s ease-in-out;
    }

    .source_code ul li{
        padding-top: 8px;
        padding-bottom: 11px; 
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        left: 0px;
    }

    .source_code ul li span{
        font-size: 18px;
        font-family: Tahoma, Geneva, sans-serif;
        color: white;
        cursor: pointer; 
    }

    /* Increase font size on hover */
    .source_code_mobile_menu ul li span:hover{
        font-size: 22px;
    }

    .code{
       position: relative;
       top: 15px;
       left: 5px;
       right: 5px;
       border-bottom: 0px;
       height: 100%;
    }
}

@media all and (max-width: 600px) {

    .module {
        width: 90%;        
        height: 270px;
    }

    .module p { 
        font-size: 17px;
        padding: 5px 10px 10px;
    }

    .module .info{
      font-size: 15px;
    }

    .module span.info{
        float: left; 
        margin-left: 10%;
    }

    .module a.info{
        float: right; 
        margin-right: 10%;
    }

    .source_code h2{
        font-size: 30px;
    }
    .source_code img{
        top: 7px;
        height: 25px;
        width: 25px;
    }
}

@media all and (max-width: 400px) {

    .module {
        width: 90%;         
        height: 250px;
    }

    .module h2 {
        font-family: 'Abril Fatface', cursive;
        color: #fff;
        text-align: center;
        position: relative;
        font-size: 20px;
    }
    .module p { 
        font-size: 15px;
        padding: 5px 5px 10px;
    }

    .module .info{
        float: left; 
        margin-left: 5%;
        font-size: 10px;
    }

    .module a.info{
        float: right; 
        margin-right: 5%;
    }
    .source_code h2{
        font-size: 25px;
    }
     .source_code img{
        top: 7px;
        height: 15px;
        width: 15px;
    }
}

