div {
    box-sizing: border-box;
}

/*responsive menu*/

.navbar {
    background-color: #128399;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
    font-family: oxanium, sans-serif;
    font-weight: 400;
    position: fixed;
    top: 0;
    left: 0;
    min-height: 35px;
    z-index: 10;
    box-shadow: 0px 5px 22px -5px rgba(71,71,71,1);
}

.navbar-links {
    background-color: #128399;
}

li {
    list-style: none;
}

.navbar-links ul {
    margin: 0;
    padding: 0 10px 0 10px;
    display: flex;
}

.navbar-links li {
    list-style: none;
}

.navbar-links ul li a {
    text-decoration: none;
    color: #fff;
    padding: 10px;
    display: block;
    font-family: oxanium, sans-serif;
    font-weight: 400;
}

.myName {
    display: flex;
    position: absolute;
    right: 10px;
    padding: 5px;
    font-family: oxanium, sans-serif;
    color: #fff;
    font-weight: 600;
    font-size: 25px;
}

.toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.toggle i {
    color: #fff;
    position: absolute;
    right: 5px;
    font-size: 28px;
}

.homeAvatar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.avatar {
    max-width: 300px;
    border-radius: 50%;
}

figure {
    margin: 10px 20px 0 0;
}

figcaption {
    font-size: 0.6rem;
    text-align: center;
    color: darkslategray;
}

figcaption a {
    text-decoration: none;
    color: darkslategray;
    font-weight: 500;
}

figcaption a:hover {
    text-decoration: none;
    color: #128399;
}

/*Project grid*/

.boxes {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;

}

.boxes li {
    margin-left: auto;
    margin-right: auto;
    margin-top: 25px;
    padding: 0px;
    width: calc(100% - 25px);
    max-width: 1000px;
    height: 300px;
    border-radius: 5px;
    box-shadow: 7px 4px 22px -5px rgba(71,71,71,1);
}

.projectWebPage {
    padding-right: 25px;
}

.project {
    display: grid;
    height: 100%;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    margin: 0px;
    padding: 0px;
}

.erBox {
    background-color: #128399;
    background-image: url(images/combs.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: soft-light;    
}

.erBox img {
    max-height: 225px;
    max-width: 320px;
    justify-self: center;
    margin: auto;
}

.dyrtBox {
    background-color: #128399;
    background-image: url(images/trees.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: soft-light;    
}

.dyrtBox img {
    max-height: 225px;
    max-width: 320px;
    justify-self: center;
    margin: auto;
}

.dyrtBEBox {
    background-color: #128399;
    background-image: url(images/sand2.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: soft-light;  
}

.dyrtBEBox img {
    max-height: 225px;
    max-width: 300px;
    justify-self: center;
    margin: auto;
}

.starrySkiesBox {
    background-color: #128399;
    background-image: url(images/23-04-20\ Star\ trails.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: soft-light;     
}

.starrySkiesBox img {
    max-height: 225px;
    max-width: 320px;
    justify-self: center;
    margin: auto;
}

.natEventsBox {
    background-color: #128399;
    background-image: url(images/lightning.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: luminosity;    
}

.natEventsBox img {
    max-height: 225px;
    max-width: 320px;
    justify-self: center;
    margin: auto;
}

.ctBox {
    background-color: #128399;
    background-image: url(images/soup.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: soft-light;    
}

.ctBox img {
    max-height: 225px;
    max-width: 320px;
    justify-self: center;
    margin: auto;
}

.boxes li:hover {
    background-blend-mode: multiply;
}

.text_link {
    text-decoration: none;
    color: rgb(31, 53, 53);
    font-weight: 700;
}

.text_link:hover {
    color: #128399;
}

ul a {
    list-style: none;
    text-decoration: none;
    font-family: oxanium, sans-serif;
    color: #fff;
    text-align: center;
}

#projectTitle {
    display: block;
    margin: auto;
    padding: 10px 10px 10px 20px;
    font-size: 1.5rem;
    text-align: left;
    color: #fff;
}

p.rightp {
    display: block;
    padding: 0px 10px 10px 20px;
    font-size: 0.9rem;
    text-align: left;
    max-width: 500px;
}

.skills_wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/*One page*/

html, body {
    height: 100%;
    width: 100%;
    min-width: 400px;
    min-height: 800px;
    margin: 0;
    font-family: oxanium, sans-serif;
}

.section {
    min-height: calc(100% - 75px);
    width: calc(100% - 30px);
    margin: 0;
    padding: 15px;
}

#home {
    background-color: #29fff4;
    padding-top: 60px;
}

#about {
    background-color: #bcc7d6;
    background-image: url(images/Cloud\ inversion..jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: overlay, soft-light;
    padding-top: 60px;
}

#work {
    background-color: #9cd9de;
    padding-top: 60px;
}

#contact {
    background-color: #b8ebff;
    position: relative;
    padding-top: 60px;
}

.section h1 {
    margin: 0;
}

.welcome {
    text-align: left;
    padding-top: 10vh;
    padding-left: 25px;
    padding-right: 25px;
    font-family: oxanium, sans-serif;
    font-weight: 400;
    color: darkslategrey;
    font-size: 8vh;
    font-size: 8vw;
}

#home h2 {
    font-family: oxanium, sans-serif;
    font-weight: 400;
    color: slategray;
    padding-left: 25px;
    padding-right: 25px;
}

#home h3 {
    font-family: oxanium, sans-serif;
    font-weight: 300;
    color: slategray;
    padding-left: 25px;
    padding-right: 25px;
}

h1 {
    font-family: oxanium, sans-serif;
    font-weight: 300;
    color: darkslategray;
    font-size: 10vw;
    padding: 25px 10px 10px 25px;

}

.rightp {
    color: #fff;
}

button {
    margin: 0px 0px 10px 20px;
    padding: 0.2rem;
    background-color: #fff;
    border: none;
    border-radius: 0.1rem;
    box-shadow: 10px 10px 39px -16px rgba(71,71,71,1);
}

.googleButton {
    background: url(https://play.google.com/intl/en_gb/badges/static/images/badges/en_badge_web_generic.png);
    background-image: url(https://play.google.com/intl/en_gb/badges/static/images/badges/en_badge_web_generic.png);
    border: 0px;
    height: 40px;
    background-repeat: no-repeat;
    background-size: auto 40px;
    width: 100px;
    margin: 0;
    color: rgba(0, 0, 0, 0);
}

button:hover {
    background-color: #9cd9de;
}

button a {
    color: darkslategray;
    font-weight: 600;
}

.about_container {
    max-width: 1000px;
    margin: auto;
}

#about p {
    font-family: oxanium, sans-serif;
    font-weight: 400;
    font-size: 23px;
    color: rgb(31, 53, 53);
    padding-left: 25px;
    padding-right: 25px;
    text-align: center;
}

#about ul {
    list-style: none;
    text-decoration: none;
    font-family: oxanium, sans-serif;
    color: rgb(31, 53, 53);
    text-align: center;
    font-size: 23px;
    padding: 0px 25px 0px 25px;
}

hr {
    border-style: solid;
    border-width: .5px;
    color: rgb(31, 53, 53);
    margin-left: 25px;
    margin-right: 25px;
}

footer {
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: darkslategray;
}

/*icons*/

#home .icons {
    padding-left: 15px;
    font-size: 18px;
    display: flex;
}

#home i {
    color: #128399;
    padding: 10px;
    margin-left: 0;
}

#about i {
    color: rgb(31, 53, 53);
    padding: 10px;
}

#about .icons {
    padding-bottom: 25px;
    padding-top: 25px;
    text-align: center;
    font-size: 18px;
}

#contact .icons {
    padding-bottom: 25px;
    padding-top: 25px;
    text-align: center;
    font-size: 18px;
}

#contact i {
    color:  #128399;
    padding: 10px;
}

/*contact form*/

.container {
	max-width:400px;
	width: calc(100% - 25px);
	margin: 0 auto;
	position:relative;
}

input {
    font-family: oxanium, sans-serif;
}

#contact input[type="text"], #contact input[type="email"], #contact input[type="tel"], #contact input[type="url"], #contact textarea, #contact button[type="submit"] { font:400 12px/16px "Open Sans", Helvetica, Arial, sans-serif; }

fieldset {
    border: medium none !important;
	margin: 0 0 10px;
	width: 100%;
	padding: 0;
	max-width: 100%;
}

#contact input[type="text"], #contact input[type="email"], #contact input[type="tel"], #contact input[type="url"], #contact textarea {
	width:calc(100% - 20px);
	border:1px solid #CCC;
	background:#FFF;
	margin:0 0 5px;
    padding:10px;
    font-family: oxanium, sans-serif;
    font-size: 15px;
}

#contact input[type="text"]:hover, #contact input[type="email"]:hover, #contact input[type="tel"]:hover, #contact input[type="url"]:hover, #contact textarea:hover {
	-webkit-transition:border-color 0.3s ease-in-out;
	-moz-transition:border-color 0.3s ease-in-out;
	transition:border-color 0.3s ease-in-out;
	border:1px solid #AAA;
}

#contact textarea {
	height:100px;
	width: calc(100% - 20px);
    resize:none;
}

#contact button[type="submit"] {
	cursor:pointer;
	width:100%;
	border:none;
	background: #128399;
	color:#FFF;
	margin:0 0 5px;
	padding:10px;
	font-size:15px;
}

#contact button[type="submit"]:hover {
	background:#09C;
	-webkit-transition:background 0.3s ease-in-out;
	-moz-transition:background 0.3s ease-in-out;
	transition:background-color 0.3s ease-in-out;
}

#contact button[type="submit"]:active { box-shadow:inset 0 1px 3px rgba(0, 0, 0, 0.5); }

#contact input:focus, #contact textarea:focus {
	outline:0;
	border:1px solid #999;
}

::-webkit-input-placeholder {
    color:#888;
}

:-moz-placeholder {
    color:#888;
}

::-moz-placeholder {
    color:#888;
}

:-ms-input-placeholder {
    color:#888;
}

/*media queries*/

@media (min-width: 1200px) {
    h1 {
        font-size: 6vw;
    }
}

@media (max-width: 800px) {

    .projectWebPage {
        display: none;
        overflow: hidden;
    }

    .project {
        grid-template-columns: repeat(2, 1fr);
        overflow: hidden;
    }

    .boxes li {
        background-blend-mode: multiply;
    }

    p.rightp {
        font-size: .9rem;
        width: 300px;
    }
}

@media (max-width: 550px) {

    .avatar {
        max-width: 150px;
        border-radius: 50%;
    }

    .boxes {
        display: grid;
        grid-template-columns: auto;
        grid-template-rows: repeat(2, 1fr);
        width: 100%;
        margin: 0px;
        padding: 0px;
    }

    .boxes li {
        margin-left: auto;
        margin-right: auto;
        margin-top: 25px;
        padding: 0px;
        width: calc(100% - 25px);
        max-width: 500px;
        height: 250px;
    }

    p.rightp {
        display: block;
        padding: 0px 10px 10px 20px;
        font-size: .8rem;
        text-align: left;
        width: 180px;
    }

    .toggle {
        display: flex;
    }

    .myName {
        position: absolute;
        left: 5px;
        width: 120px;
        font-size: 15px;
        padding: .6rem;
    }

    .navbar-links {
        display: none;
        width: 100%;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        min-height: 35px;
    }

    .navbar-links ul {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .navbar-links.active {
        display: flex;
    }

    .aboutp {
        font-size: 15px !important;
    }

    #about ul {
        font-size: 12px;
    }

    #projectTitle {
        font-size: 1.5rem;
    }

    .projectMobile {
        padding-right: 10px;
        overflow: hidden;
    }
    
    .project {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
    }

    img.projectMobile {
        max-width: 100px;
    }

    .project span {
        max-width: 200px;
    }

}
