* {
	/* apply a natural box layout model to all elements
    http://www.paulirish.com/2012/box-sizing-border-box-ftw/
    */
	-webkit-box-sizing: border-box;
	 box-sizing: border-box;
}
html {
    background-color: #232323;
    max-width: 100%;
}
body{
    background-color: #232323;
    width: 90%;
    padding: 20px 10px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    color: #d1d1d1;
}

/**********************************************
                    HEADER
**********************************************/
/* logo image */
picture img{
    width: 70%;
}
li.part {
    position: relative;
}
label.menu {
    position: absolute;
    right: 0px;
    top: -50px;
}
nav ul li ul.submenu li {
    display: inline-block;
    list-style: none;
    text-align: center;
}
.submenu {
    padding-top: 15px;
}
.submenu li a {
    list-style: none;
    color: #d1d1d1;
    text-decoration: none;
    padding: 5px;
    font-size: .7em;
    font-weight: bold;
}
.submenu li a:hover {
    color:#57b9e7;
}
.submenu .active a {
    color:#57b9e7;
}
li.part input {
    display: none;
}
/* mobile menu */
.menu {
	display:  inline-block;
	width: 30px;
	height: 30px;
	margin: 10px;
}
.menu span {
	margin: 0 auto;
	position: relative;
	top: 12px;
}
.menu span:before, .menu span:after {
	position: absolute;
	content: '';
}
.menu span, .menu span:before, .menu span:after {
	width: 30px;
	height: 4px;
	background-color: #d1d1d1;
	display: block;
}
.menu span:before {
	margin-top: -12px;
}
.menu span:after {
	margin-top: 12px;
}
input:checked ~ .mobile span {
	-webkit-transition-duration: 0s; transition-duration: 0s;
	-webkit-transition-delay: 0.2s; transition-delay: 0.2s;
}
input:checked ~ .mobile span {
	background-color: rgba(0,0,0,0.0);
	-webkit-transition-delay: 0.2s; transition-delay: 0.2s;
}
input:checked ~ .mobile span:before {
	-webkit-transition-property: margin, -webkit-transform; transition-property: margin, transform;
	-webkit-transition-duration: 0.2s; transition-duration: 0.2s;
	-webkit-transition-delay: 0.2s, 0s; transition-delay: 0.2s, 0s;
}
input:checked ~ .mobile span:before {
	margin-top: 0;
	-webkit-transform: rotate(45deg); transform: rotate(45deg);
	-webkit-transition-delay: 0s, 0.2s; transition-delay: 0s, 0.2s;
}
input:checked ~ .mobile span:after {
	-webkit-transition-property: margin, -webkit-transform; transition-property: margin, transform;
	-webkit-transition-duration: 0.2s; transition-duration: 0.2s;
	-webkit-transition-delay: 0.2s, 0s; transition-delay: 0.2s, 0s;
}
input:checked ~ .mobile span:after {
	margin-top: 0;
	-webkit-transform: rotate(-45deg); transform: rotate(-45deg);
	-webkit-transition-delay: 0s, 0.2s; transition-delay: 0s, 0.2s;
}
ul.submenu {
    visibility: hidden;
}
input:checked ~ ul.submenu {
    visibility: visible;
}
/**********************************************
                    Main
**********************************************/
main{
    clear: both;
    padding-bottom: 300px;
    padding-top: 150px;
}

#toTop {
	background-color: transparent;
	border: none;
	position: fixed;
	bottom: 80px;
	right: 30px;
	z-index: 9;
	cursor: pointer;
	display: none;
	opacity: .8;
}
#toTop:hover {
	background-color: #f68c22;
}
#toTop i {
    color: #57b9e7;
}
.blue {
    background-color: #57b9e7;
    width: 98%;
    height: 2px;
    margin-bottom: 15px;
}
h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75em;
    padding-bottom: 15px;
    clear:both;
    font-weight: 100;
}
#home h2 {
    font-size: .87em;
    font-weight: 100;
    margin-bottom: 40px;
    line-height: 1.4em;
}
a.about {
    border: 1px solid #57b9e7;
    color: #57b9e7;
    font-weight: bold;
    border-radius: 5px;
    height: 30px;
    width: 40px;
    text-decoration: none;
    padding: 5px 10px 5px 10px;
    margin-bottom: 40px;
}
a.about:hover{
    background-color: #57b9e7;
    color:#232323;
}
#home main .fas {
    padding-left: 30px;
}
a.about:hover .fas {
    color:#232323;
}
/**********************************************
                    Modal Styling
**********************************************/
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 150px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}
/* Add Animation */
@-webkit-keyframes animatetop {
from {top:-300px; opacity:0} 
to {top:0; opacity:1}
}
  
@keyframes animatetop {
from {top:-300px; opacity:0}
to {top:0; opacity:1}
}
  
/* The Close Button */
.close {
    color: #d1d1d1;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding-right: 5px;
}
  
.close:hover,
.close:focus {
    color: #57b9e7;
    text-decoration: none;
    cursor: pointer;
}
/* Model Header Styling */
.white {
    border-bottom: 2px solid #23326a;
}
.white h3{
    color: #23326a;
    font-family: 'Poppins', sans-serif;
    font-size: 2em;
    padding-top: 9px;
    padding-left: 5px;
}
.solid {
    background-color: #23326a;
  min-width: 15%;
  color: #23326a;
  min-height: 42px;
  position: absolute;
  right: 0px;
  top: 0;
}
.dblue h3 {
    color: #fefefe;
    background-color: #23326a;
    font-size: 2em;
    font-family: 'Poppins', sans-serif;
    max-width: 55%;
    padding-left: 5px;
}
/* Modal Body Styling */
.modal-body {
    padding: 10px 5px;
}
.modal-body h4 {
    background-color: #23326a;
    color: #fefefe;
    padding: 2px;
    margin-top: 15px;
}
.modal-body p {
    font-size: .8em;
    line-height: 1.4;
    color: #23326a;
}
.modal-body h5 {
    color: #23326a;
    padding-top: 10px;
    font-size: .9em;
}
.modal-body ul {
    list-style-position: inside;
}
.modal-body ul li {
    font-size: .8em;
    line-height: 1.4;
    color: #23326a;
    font-style: italic;
}
.med-blue {
    background-color: #214695;
    min-height: 150px;
}
.med-blue h6 {
    color: #fefefe;
    padding: 15px 0px 0px 15px;    
}
.med-blue p {
    font-size: .85em;
    color: #fefefe;
    padding: 5px 0px 0px 15px;
}
.lite-blue {
    background-color: #2da9e1;
    padding-bottom: 20px;
}
.lite-blue h6 {
    color: #fefefe;
    padding: 15px 0px 0px 15px;
}
.lite-blue ul {
    list-style-position: inside;
}
.lite-blue ul li {
    font-size: .85em;
    color: #fefefe;
    padding: 5px 0px 0px 15px;
}
.sky-blue {
    background-color: #57b9e7;
}
.sky-blue h6 {
    color: #fefefe;
    padding: 15px 0px 0px 15px;
}
.sky-blue img {
    padding: 15px 0px 15px 70px;
}
.modal-footer {
    padding: 10px;
    min-height: 100px;
    text-align: center;
    padding-top: 40px;
}
.modal-footer a .fas {
    padding-left: 30px;
}
.modal-footer a.about:hover{
    background-color: #57b9e7;
    color:#fefefe;
}
#home main .fas {
    padding-left: 30px;
}
.modal-footer a.about:hover .fas {
    color:#fefefe;
}
/**********************************************
                    About Page
**********************************************/
#about main {
    padding-top: 40px;
    padding-bottom: 150px;
}
#about main h1 {
    font-size: 1.25em;
}
#about main article p {
    padding-bottom: 15px;
    font-size: .875em;
    line-height: 1.4;
}
#about main article p:nth-of-type(3){
    padding-bottom: 60px;
}
#about figure img {
    width: 100%;
}
#about h2 {
    font-size: 1.5em;
    color:#57b9e7;
    font-family: 'Poppins', sans-serif;
    padding-bottom: 20px;
    font-weight: 200;
    padding-top: 20px;
}
#about article a {
    border: 1px solid #57b9e7;
    color: #57b9e7;
    font-weight: bold;
    border-radius: 5px;
    height: 30px;
    width: 40px;
    text-decoration: none;
    padding: 5px 10px 5px 10px;
    font-family: 'Poppins', sans-serif;
}
#about article .fas {
    color: #57b9e7;
    padding-left: 60px;
}
#about article a:hover {
    background-color: #57b9e7;
    color:#232323;
}
#about article a:hover .fas {
    color:#232323;
}
#about article ul li {
    padding-bottom: 40px;
    list-style: none;
}
/**********************************************
                    Portfolio Page
**********************************************/
#portfolio main {
    clear:both;
    padding-top: 100px;
    padding-bottom: 30px;
}
#portfolio .container {
    position: relative;
    width: 100%;
    border: 1px solid #d1d1d1;
    margin-top: 40px;
}
#portfolio .image {
    opacity: 1;
    display: block;
    width: 100%;
    height: auto;
    transition: .5s ease;
    backface-visibility: hidden;
} 
#portfolio .middle {
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
    width: fit-content;
}
#portfolio .middle a {
    border: 1px solid #57b9e7;
    color: #57b9e7;
    border-radius: 5px;
    height: 30px;
    width: 40px;
    text-decoration: none;
    padding: 5px 10px 5px 10px;
    font-family: 'Poppins', sans-serif;
    margin-top: 15px;
}
#portfolio .middle a .fas {
    padding-left: 15px;
}
#portfolio .container:hover .image {
    opacity: 0.3;
}
#portfolio .container:hover .middle {
    opacity: 1;
} 
#portfolio .text {
    color: #57b9e7;
    font-size: 16px;
    padding: 8px 16px 30px;
    font-weight: bold;
}
#portfolio .middle a:hover {
    background-color: #57b9e7;
    color:#232323;
}
#portfolio .middle a:hover .fas {
    color:#232323;
}
/**********************************************
           Project Page
**********************************************/
#project main {
    clear:both;
    padding-top: 60px;
    padding-bottom: 30px;
}
#project .container {
    position: relative;
    width: 100%;
    margin-top: 40px;
}
#project .image {
    opacity: 1;
    display: block;
    width: 100%;
    height: auto;
    transition: .5s ease;
    backface-visibility: hidden;
} 
#project h1 {
    font-size: 1.375em;
    color: #d1d1d1;
}
#project .breadcrumbs li {
    list-style: none;
    display: inline;
}
#project .breadcrumbs li a {
    text-decoration: none;
    color: #d1d1d1;
    font-size: .85em;
}
#project .breadcrumbs li:nth-of-type(2)::before {
    content: " • ";
    color: #d1d1d1;
}
#project .breadcrumbs li a:hover {
    color: #57b9e7;
}
#project .breadcrumbs .active a {
    color: #57b9e7;
}
#project article {
    padding-bottom: 40px;
}
#project h2 {
    color: #57b9e7;
    padding-top: 40px;
    font-size: 1.25em;
    font-family: 'Poppins', sans-serif;
    font-weight: 200;
}
#project p {
    padding-top: 15px;
    font-size: .85em;
    line-height: 1.4;
}
#project main article ul {
    padding-top: 20px;
}
#project main article ul li {
    list-style: none;
    font-size: .85em;
    line-height: 1.4;
}
#project main article a {
    border: 1px solid #57b9e7;
    color: #57b9e7;
    border-radius: 5px;
    height: 30px;
    width: 40px;
    text-decoration: none;
    padding: 5px 10px 5px 10px;
    font-family: 'Poppins', sans-serif;
}
#project main article p:last-of-type {
    padding-bottom: 60px;
}
#project main article a .fas {
    padding-left: 15px;
}
#project main article a:hover {
    background-color: #57b9e7;
    color:#232323;
}
#project main article a:hover .fas {
    color:#232323;
}
#project figure {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    padding-top: 30px;
}
#project figure figcaption{
    font-size: 1.25em;
    padding-bottom: 15px;
}
#project figure a {
    width: 50%;
}
#project figure img {
    width: 100%;
}
#project figure a:hover {
    opacity: .6;
}
/**********************************************
                    Contact Page
**********************************************/
#contact main {
    padding-top: 60px;
    padding-bottom: 100px;
    min-height: 650px;
}
#contact h1 {
    font-size: 1.375em;
    color: #d1d1d1;
}
#contact main p {
    line-height: 1.4;
}
#contact main form {
    padding-top: 40px;
}
#contact .contactform label {
    display: none;
}
#contact .contactform input {
    background-color:#232323;
    border: 1px solid #707070;
    margin: 5px 0 10px 0;
    font-size: 1.125em;
    width: 100%;
    padding: 5px;
    color: #d1d1d1;
}
#contact textarea {
    background-color: #232323;
    padding: 5px;
    border: 1px solid #707070;
    font-family: 'Poppins' sans-serif;
    color: #d1d1d1;
    font-size: 1.125em;
    width: 100%;
}
#contact textarea:focus {
    outline-color: #57b9e7;
}
#contact .contactform .submit {
    border: 1px solid #57b9e7;
    color: #57b9e7;
    border-radius: 5px;
}
#contact .contactform .submit:hover {
    background-color: #57b9e7;
    color: #232323;
}
#contact .contactform input:focus {
    border: 1px solid #57b9e7;
    outline-color: #57b9e7;
}
/**********************************************
                    Footer
**********************************************/
footer {
    clear:both;
}
footer .blue {
    margin-top: 30px;
    width: 98%;
}
small {
    margin-top: 80px;
    clear: both;
    font-size: .65em;
}
/**********************************************
                    404 page
**********************************************/
#error main p {
    padding-bottom: 40px;
    line-height: 1.4;
}
#error a.about {
    border: 1px solid #57b9e7;
    color: #57b9e7;
    font-weight: bold;
    border-radius: 5px;
    height: 30px;
    width: 40px;
    text-decoration: none;
    padding: 5px 10px 5px 10px;
    margin-bottom: 40px;
}
#error a.about:hover{
    background-color: #57b9e7;
    color:#232323;
}
#error main .fas {
    padding-left: 30px;
}
#error a.about:hover .fas {
    color:#232323;
}
/**********************************************
                    Media Queries
**********************************************/
@media only screen and (min-width: 768px) {
    picture img {
        width: 30%;
    }
    #home main .blue {
        width: 70%;
    }
    #home main {
        padding-bottom: 150px;
        min-height: 650px;
    }
    #home h1 {
        font-size: 2.75em;
    }
    #about main h1 {
        font-size: 2.25em;
    }
    #about figure img {
        width: 40%;
    }
    #about main .blue {
        margin-bottom: 45px;
    }
    #portfolio main {
        padding-top: 40px;
    }
    #portfolio .projects {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }
    #portfolio .container {
       max-width: 40%;
    }
    #project figure {
        justify-content: space-evenly;
    }
    #project figure a {
        width: 30%;
    }
    #project .container {
        width: 50%;
    }
    #contact .contactform input {
        width: 60%;
    }
    #contact .contactform textarea {
        width: 60%;
    }
    .modal-body {
        float: right;
        width: 70%;
        padding-left: 15px;
        position: relative;
        top: -150px;
    }
    .med-blue, .lite-blue, .sky-blue {
        width: 30%;
    }
    .dblue  {
        max-width: 30%;
    }
    .dblue h3 {
        max-width: 100%;
        min-height: 150px;
    }
    .modal-footer {
        clear: both;
    }
}
/****** END OF MEDIA QUERY min-width: 768px  ***************************/

@media only screen and (min-width: 1024px) {
    picture img {
        width: 20%;
    }
    ul.submenu{
        visibility: visible;
        position: relative;
        left: 400px;
        top: -40px;
        width: 60%;
    }
    label.menu {
        display: none;
        position: relative;
    }
    .submenu li {
        width: 20%;
    }
    .submenu li a {
        font-size: 1em;
    }
    #home main {
        padding-bottom: 250px;
    }
    #about main {
        clear: both;
        padding-bottom: 450px;
    }
    #about h2 {
        padding-top: 0px;
    }
    #about figure img {
        width: 100%;
    }
    #about figure {
        width: 40%;
        float: left;
    }
    #about article {
        padding: 0px 30px 30px 30px;
        float: left;
        width: 50%;
    }
    #portfolio .container {
        max-width: 24%;
    }
    #portfolio main {
        padding-bottom: 220px;
    }
    #project .container {
        width: 40%;
        float: left;
    }
    #project article {
        float: left;
        width: 60%;
        padding: 30px;
    }
    #project figure a {
        width: 20%;
    }
    #project h2 {
        clear: both;
    }
    #contact .contact {
        width: 50%;
    }
    #about footer {
        padding-top: 40px;
    }
    .modal-content {
        width: 70%;
    }
}

/****** END OF MEDIA QUERY min-width: 1024px  ***************************/

@media only screen and (min-width: 1440px) {
    ul.submenu {
        left: 500px;
    }
    .modal-content {
        width: 60%;
    }

}

/****** END OF MEDIA QUERY min-width: 1440px  ***************************/
@media only screen and (min-width: 2560px) {

}