* {
    box-sizing: border-box;
}

@font-face {
    font-family: "alarm clock";
    src: url("../fonts/alarm\ clock.ttf");
    src: url("../fonts/alarm\ clock.ttf") format("woff"), url("../fonts/alarm\ clock.ttf") format("opentype"), url("../fonts/alarm\ clock.ttf") format("truetype"), url("../fonts/alarm\ clock.ttf") format("svg");
    font-family: "azonix";
    src: url(../fonts/Azonix.otf)format("opentype");
}

html {
    scroll-behavior: smooth;
    min-width: 771px;
}

:root{
    --main-color: #393f4d;
    --yellow: #feda6a;
    --silver: #d4d4dc;
    --dark-slate: #1d1e22;
    --azonix: "azonix";
}

body {
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    font: 20px/1.5 "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    background: none repeat scroll 0 0 #ffff;
}

.sk-spinner-pulse {
    width: 60px;
    height: 60px;
    background-color: orange;
    border-radius: 100%;
    -webkit-animation: sk-pulseScaleOut 1s infinite ease-in-out;
    animation: sk-pulseScaleOut 1s infinite ease-in-out;
}

@-webkit-keyframes sk-pulseScaleOut {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes sk-pulseScaleOut {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 0;
    }
}

.grid {
    display: grid;
    grid-template-areas: "nav nav nav " "about about about" "section section section"
}

.heroimage {
    grid-area: heroimage;
    background-image: url(../images/motherboard.jpg);
    width: 100%;
    height: 90vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
}

#particles-js {
    width: 100%;
    height: 90vh;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

.heroitems {
    width: 100%;
    position: absolute;
    min-height: 550px;
    height: 50vh;
    /* text-align: center !important; */
    display: table-cell;
    vertical-align: middle;
    margin: auto;
    z-index: 2;
    top: 30%;
    color: white;
    font-family: "azonix";
}

img {
    content: "";
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.button {
    border-top: 2px solid;
    color: white;
}

.button:hover {
    text-decoration: none;
    color: var(--yellow);
    -webkit-transition: color 1s;
}

.heroitems h1 {
    font-size: 3em;
    opacity: .8;
}

.heroitems p {
    font-size: 1.4em;
    opacity: .8;
}

.nav {
    grid-area: nav;
    display: flex;
    align-items: center;
    width: 80%;
    z-index: 22;
}

.nav ul {
    display: flex;
    justify-content: space-between space-evenly;
    text-align: center;
    width: 100%;
}

.nav ul li {
    opacity: .5;
    list-style-type: none;
    display: inline-block;
    border: 1.5px;
    border-radius: 10%;
    margin: 2%;
    background: var(--silver);
    text-align: center;
    width: 100%;
    box-shadow: 5px 5px var(--main-color);
    -webkit-transition: all 1s;
}

.nav ul li a {
    color: #575151;
    margin: .5em 1em;
    align-items: center;
    margin: 0 2em;
    padding: 5px 15px;
    display: block;
    text-decoration: none;
    font-weight: bold;
}

.menu li:hover {
    transition: all 1s;
    background-color: var(--yellow);
    opacity: 1;
}

.menu li:after {
    transition: all 1s;
    background-color: var(--main-color);
}

.section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    grid-area: section;
    margin: 2em;
}

.secRight {
    display: block;
    width: 40%;
    color: var(--dark-slate);
    border: 1px solid var(--silver);
    background-color: #fff;
    opacity: .5;
    padding: 1em;
    float: right;
    -webkit-transition: all 1s ease-in-out;
    margin-bottom: 2em;
    margin-left: 2em;
}

.secRight h1, .secRight p {
    text-align: center;
    position: relative;
}

.secLeftt h1, .secLeft p {
    text-align: center;
    position: relative;
}

.back video {
    width: 100%;
    height: auto;
}

.secLeft {
    display: block;
    width: 40%;
    color: var(--dark-slate);
    border: 1px solid var(--silver);
    background-color: #fff;
    opacity: .5;
    padding: 1em;
    margin-right: 2em;
    -webkit-transition: all 1s;
}

.secLeft h1, .secRight h1 {
    font-family: var(--azonix);
    text-align: center;
    text-decoration: underline;
}

.secLeft:hover {
    transition: all 1s;
    opacity: 1;
    margin: .3em;
}

.p1:hover, .p2:hover {
    cursor: pointer;
}

.secLeft:hover .p1 {
    transition: all 1s;
    color: var(--yellow);
    text-shadow: 2px 2px rgba(0, 0, 0, 0.5);
}

.secRight:hover .p2 {
    transition: all 1s;
    color: var(--yellow);
    text-shadow: 2px 2px rgba(0, 0, 0, 0.5);
}

.secRight:hover {
    transition: all 1s ease-in-out;
    opacity: 1;
    margin: .3em;
}

/* GAllERY SECTION */

section .casual {
    display: flex;
    flex-direction: row;
    width: 100%;
}

section .head {
    display: flex;
    justify-content: center;
}

section .hike {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-bottom: 2em;
}

.card {
    margin: .5em;
}

.text-center {
    visibility: hidden;
}

/* END OF GALLERY */

/* THanks.php */

.thanks {
    top: 1em;
    text-align: center;
}

.thanks h1, .thanks p {
    color: var(--yellow) !important;
    opacity: 1;
    text-shadow: 2px 2px rgba(0, 0, 0, 0.5);
}

/* About me section */

.about {
    grid-area: about;
    padding: 2em 0;
    padding-bottom: 0;
}

/* End of About me */

/* banner photos(3) */

.banner {
    display: flex;
    width: 100%;
}

.banner-photo {
    width: 30%;
    height: auto;
    display: inline-block;
    position: relative;
    overflow: hidden;
    padding: 0 1em;
}

figure img {
    max-width: 100%;
    height: auto;
}

.banner-body {
    padding: 30px;
    text-align: center;
    font-family: sans-serif;
}

.banner-headingR {
    border-right: 2px solid;
    border-bottom: 2px solid;
    font-family: "azonix"
}

.banner-headingL {
    border-left: 2px solid;
    border-bottom: 2px solid;
    font-family: "azonix"
}

.fas {
    font-size: 3em;
    padding: 0.5em;
}

#toggle, .label {
    display: none;
}

/* Contact form */

.contact {
    display: flex;
    margin-bottom: 2em;
}

/* User Form */

.contact .containerF {
    background-image: url(../images/code.jpg);
    box-shadow: 2px 2px rgba(0, 0, 0, 0.5);
    border-radius: 5%;
    float: right;
    margin-left: 3%;
    margin-top: 2em;
}

 .text-center {
    visibility: hidden;
} 

.containerF form {
    opacity: .9;
}

form h2 {
    margin-top: 1em;
    color: var(--yellow);
    text-align: center;
    text-shadow: 2px 2px rgba(0, 0, 0, 0.5);
}

.contact h2 {
    font-family: "azonix";
}

.contact p {
    text-shadow: 1px 1px rgba(0, 0, 0, 0.5);
}

.space h1 img {
    filter: grayscale(80%);
    width: 10%;
    height: 10%;
}

.space h1 {
    margin: 0 1.5em;
    padding: .5em 1em;
    font-family: "azonix";
    color: var(--yellow);
    background-color: white;
    box-shadow: 2px 2px rgba(0, 0, 0, 0.5);
    text-shadow: 2px 2px rgba(0, 0, 0, 0.5)
}

.contactMe input[type="text"] {
    display: flex;
    flex-direction: column;
    margin: 0em 2.5em;
}

.contactMe input[type="email"], .contactMe textarea, .contactMe input[type="submit"] {
    display: flex;
    flex-direction: column;
    margin: 1em 2.5em;
}

.containerI {
    width: 60%;
    float: right;
}

.containerI p {
    background-color: var(--yellow);
    color: whitesmoke;
    width: 50%;
    box-shadow: 2px 2px rgba(0, 0, 0, 0.5);
    padding: .25em;
    margin: auto;
}

.box {
    text-align: center;
}

.box h2 {
    text-decoration: underline;
}

/* Footer */

footer {
    width: 100%;
    padding: 2.6em;
    text-align: center;
    background-image: url(../images/illusion.jpg);
    color: white;
    font-family: var(--azonix)
}

@media(max-width:992px) {
    .grid {
        text-align: center;
        flex-direction: column;
        padding-top: 1.5em;
        background-color: transparent;
    }
    .containerF {
        display: none;
    }
    .text-center {
        visibility: visible;
       
    }
    .text-center a{
        font-family: var(--azonix);
        text-shadow: 1px 1px rgba(0, 0, 0, 0.5);
        background-color: var(--yellow);
    }

    
    .heroimage {
        height: 100vh;
    }
    #particles-js {
        height: 100vh;
    }
    .nav ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        display: none;
        width: 75%;
        top: 3em;
        background: rgba(0, 0, 0, 0.5);
    }
    .nav ul li {
        width: 75%;
    }
    .label {
        display: flex;
        cursor: pointer;
        float: right;
        color: var(--yellow);
    }
    #toggle:checked+.menu {
        display: block;
    }
    .menu a {
        display: block;
        margin: 0;
    }
    .fa-align-justify {
        font-size: 26px;
        line-height: 70px;
        display: none;
        width: 30px;
        padding-left: 150px;
        position: fixed;
        top: 0;
        right: .25;
    }
    .banner-headingL, .banner-headingR {
        border: none;
    }
    .banner-photo {
        align-items: center;
    }
    .contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .section {
        flex-direction: column;
    }
    section .casual {
        flex-direction: column;
        width: 65%;
    }
    section .hike {
        flex-direction: column;
        width: 65%;
    }
}

@media(max-width:770px) {
    .banner {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    .more {
        display: none;
    }
    .pic {
        width: 70%;
    }
}