@import url('https://fonts.googleapis.com/css?family=Josefin+Sans');
body {
    padding: 0px;
    margin: 0px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/websitebg.jpg") center center;
    background-size: cover;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: 'Josefin Sans', sans-serif;
}

#loading {
    width: 100vw;
    height: 100vh;
    position: fixed;
    background: rgb(255, 50, 50);
    z-index: 999;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

#spinner {
    animation: rotate 0.56s infinite linear;
    width: 50px;
    height: 50px;
    border: 12px solid #fff;
    border-bottom: 12px solid rgb(255, 50, 50);
    border-radius: 50%;
    margin: 0;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#box {
    width: 100vw;
    height: 100vh;
    z-index: 9;
    position: fixed;
    top: 0;
}

#box div {
    width: 16.66vw;
    height: 100%;
    display: inline-block;
}

.box1 {
    background: rgb(255, 50, 50);
}

.box2 {
    background: rgb(255, 50, 50);
    margin-left: -5px;
}

#menu {
    width: 100%;
    text-align: center;
    margin: 6vh 0px;
    display: none;
}

#menu a {
    margin: 0px 6%;
    font-size: 19px;
    color: #fff;
    text-decoration: underline;
}

#middle {
    width: 100vw;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    top: 0;
    text-align: center;
    z-index: 1;
    color: #fff;
    padding-bottom: 10vh;
}

#middle h1 {
    color: rgb(255, 50, 50);
    font-size: 70px;
    text-decoration: underline;
}

#projects {
    width: 10vw;
    height: 10vw;
    text-align: center;
    font-size: 25px;
    transform: rotate(-90deg);
    background: transparent;
    color: #fff;
    position: fixed;
    left: 0;
    bottom: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 4;
    transition: 0.4s ease-in-out;
    border-radius: 0px 0px 100px 100px;
}

#gallery {
    width: 10vw;
    height: 10vw;
    text-align: center;
    font-size: 25px;
    transform: rotate(90deg);
    background: transparent;
    color: #fff;
    position: fixed;
    right: 0;
    bottom: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 4;
    transition: 0.4s ease-in-out;
    border-radius: 0px 0px 100px 100px;
}

#contact {
    width: 10vw;
    height: 10vw;
    text-align: center;
    font-size: 25px;
    background: transparent;
    color: #fff;
    position: fixed;
    bottom: 0;
    left: 45vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 4;
    transition: 0.4s ease-in-out;
    border-radius: 100px 100px 0px 0px;
}

#about {
    width: 10vw;
    height: 10vw;
    text-align: center;
    font-size: 25px;
    background: transparent;
    color: #fff;
    position: fixed;
    top: 0;
    left: 45vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 4;
    transition: 0.4s ease-in-out;
    border-radius: 0px 0px 100px 100px;
}

#projects:hover {
    background: rgba(255, 50, 50, 0.9);
    cursor: pointer;
}

#gallery:hover {
    background: rgba(255, 50, 50, 0.9);
    cursor: pointer;
}

#contact:hover {
    background: rgba(255, 50, 50, 0.9);
    cursor: pointer;
}

#about:hover {
    background: rgba(255, 50, 50, 0.9);
    cursor: pointer;
}

#middle table {
    width: 30%;
    margin: 6vh auto;
}

#middle table tr td {
    text-align: center;
}

.linked-in {
    color: #fff;
    font-size: 35px;
    /*22px*/
    border-radius: 50%;
    transition: 0.4s ease-in-out;
    margin: 0px 8px;
    text-align: center;
}

.linked-in:hover {
    cursor: pointer;
    color: rgb(0, 191, 255);
    /*originally rgb(255, 50, 50);*/
}

.git {
    color: #fff;
    font-size: 35px;
    /*22px*/
    border-radius: 50%;
    transition: 0.4s ease-in-out;
    margin: 0px 8px;
    text-align: center;
}

.git:hover {
    cursor: pointer;
    color: rgb(255, 166, 76);
    /*originally rgb(255, 50, 50);*/
}

.insta {
    color: #fff;
    font-size: 35px;
    /*22px*/
    border-radius: 50%;
    transition: 0.4s ease-in-out;
    margin: 0px 8px;
    text-align: center;
}

.insta:hover {
    cursor: pointer;
    color: rgb(147, 112, 219);
    /*originally rgb(255, 50, 50);*/
}

.container {
    width: 90vw;
    height: 90vh;
    padding: 5vh 5vw;
    background: rgb(255, 50, 50);
    color: #fff;
    z-index: 9;
    position: fixed;
    max-height: 100vh;
    overflow-y: auto;
    display: none;
}

.container div {
    font-size: 25px;
    margin: 20px 0px;
    transition: 0.4s ease-in-out;
}

.container div:hover {
    cursor: pointer;
}

.container section {
    margin: 8vh 0px;
}


/*Timeline CSS begin*/

.timelineinfo,
.timeline-block,
.timeline-block-left,
.timeline-block-right,
.marker,
.timeline-content {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
}

.timelineinfo {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.timelineinfo:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -1px;
    width: 2px;
    height: 100%;
    background: #CCD1D9;
    z-index: 1
}

.timeline-block {
    width: -webkit-calc(50% + 8px);
    width: -moz-calc(50% + 8px);
    width: calc(50% + 8px);
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    justify-content: space-between;
    clear: both;
}

.timeline-block-right {
    float: right;
}

.timeline-block-left {
    float: left;
    direction: rtl
}

.marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #F5F7FA;
    background: black;
    margin-top: 10px;
    z-index: 9999
}

.timeline-content {
    width: 95%;
    padding: 0 15px;
    color: white
}

.timeline-content h3 {
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 25px;
    font-weight: 500
}

.timeline-content span {
    font-size: 15px;
    color: #000000;
}

.timeline-content p {
    font-size: 14px;
    line-height: 1.5em;
    word-spacing: 1px;
    color: #e5e5e5;
}

@media screen and (max-width: 768px) {
    .timelineinfo:before {
        left: 8px;
        width: 2px;
    }
    .timeline-block {
        width: 100%;
        margin-bottom: 30px;
    }
    .timeline-block-right {
        float: none;
    }
    .timeline-block-left {
        float: none;
        direction: ltr;
    }
}


/*Timeline CSS End*/


/*Resume Button after Timeline*/

.butn button {
    background: black;
    color: #fff;
    border: none;
    position: relative;
    height: 90px;
    font-size: 1.6em;
    padding: 0 2em;
    cursor: pointer;
    transition: 800ms ease all;
    outline: none;
}

.butn button:hover {
    background: white;
    color: black;
}

.butn button:before,
.butn button:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 3px;
    width: 0;
    background: grey;
    transition: 400ms ease all;
}

.butn button:after {
    right: inherit;
    top: inherit;
    left: 0;
    bottom: 0;
}

.butn button:hover:before,
.butn button:hover:after {
    width: 100%;
    transition: 800ms ease all;
}


/*End of resume button*/


/*---------------------Gallery Begin-----------------------*/

.galleryitems {
    box-sizing: border-box;
    margin: 0;
    display: relative;
}

.row>.column {
    padding-right: 8px;
    padding-bottom: 8px;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

.column {
    float: left;
    width: 20%;
}


/* The Modal (background) */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 50px;
    /*was 100px*/
    left: 20;
    /*was 0*/
    top: 0;
    width: 90%;
    height: 90%;
    overflow: auto;
    background-color: black;
}


/* Modal Content */

.modal-content {
    position: block;
    background-color: black;
    margin: auto;
    /*padding: 20px;*/
    height: 90%;
    width: 90%;
    max-width: 1200px;
}


/* The Close Button */

.close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

.mySlides {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-left: 4.8vw;
    padding-right: 4.9vw;
    width: 79vw;
    /*will control where picture stands in container*/
}

.cursor {
    cursor: pointer;
}


/* Next & previous buttons */

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}


/* Position the "next button" to the right */

.next {
    right: 16px;
    border-radius: 3px 0 0 3px;
}


/* On hover, add a black background color with a little bit see-through */

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* Number text (1/3 etc) */

.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    /* padding: 8px 12px;*/
    position: absolute;
    top: 0;
}

img {
    margin-bottom: -4px;
}

.caption-container {
    text-align: center;
    background-color: black;
    /* padding: 2px 16px;*/
    color: white;
    width: 89.7vw;
}

.demo {
    opacity: 0.6;
}

.active,
.demo:hover {
    opacity: 1;
}

img.hover-shadow {
    transition: 0.3s;
}

.hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}


/*------------------------------End of Gallery------------------------------------*/

.project_grid {
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

.project_cell {
    background: blue;
    color: white;
    width: 400px;
    height: 350px;
}

.project_cell:hover {
    opacity: 0.3;
}

.project_cell:nth-child(even) {
    background: lightblue;
}

#used div {
    font-size: 14px !important;
    display: inline-block;
    padding: 8px 10px;
    border: 2px solid #fff;
    margin: 0px 10px;
    border-radius: 50px;
}

#used:hover {
    cursor: text;
}

#used div:hover {
    cursor: text;
}

.container h1 {
    font-size: 60px;
    text-decoration: underline;
}

.container p {
    font-size: 21px;
}

.btn_one {
    font-size: 18px;
    font-family: 'Josefin Sans', sans-serif;
    color: #fff;
    background: transparent;
    border: 3px solid #fff;
    padding: 8px 40px;
    border-radius: 80px;
    font-weight: bold;
    margin: 2vh 10px;
    transition: 0.4s ease-in-out;
}

.btn_one:hover {
    cursor: pointer;
    color: rgb(255, 50, 50);
    background: #fff;
}

.btn_two {
    font-size: 18px;
    font-family: 'Josefin Sans', sans-serif;
    color: rgb(255, 50, 50);
    background: #fff;
    border: 3px solid #fff;
    padding: 8px 40px;
    border-radius: 80px;
    font-weight: bold;
    margin: 2vh 10px;
    transition: 0.4s ease-in-out;
}

.btn_two:hover {
    cursor: pointer;
    padding: 8px 60px;
}

.container form input {
    width: 46%;
    margin: 20px 1%;
    background: transparent;
    border: 0px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.5);
    padding: 8px 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    transition: 0.4s ease-in-out;
    color: #fff;
    font-weight: bold;
}

.container form textarea {
    width: 96%;
    margin: 20px 1%;
    padding: 8px 10px;
    border: 0px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.5);
    padding: 8px 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    background: transparent;
    resize: none;
    transition: 0.4s ease-in-out;
    color: #fff;
    font-weight: bold;
}

.container form input:focus {
    outline: none;
    border-bottom: 3px solid rgba(255, 255, 255, 1);
}

.container form textarea:focus {
    outline: none;
    border-bottom: 3px solid rgba(255, 255, 255, 1);
}

::placeholder {
    color: #fff;
}

#footer {
    color: #fff;
    width: 92vw;
    padding: 5vh 4vw;
    text-align: right;
    position: fixed;
    z-index: 1;
    bottom: 0;
    font-size: 16px;
    font-weight: bold;
}

#footer a {
    color: rgb(255, 50, 50);
}

#particles-js {
    position: fixed;
    width: 100vw;
    height: 100vh;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: #fff;
}

::-webkit-scrollbar-thumb {
    background: rgb(255, 50, 50);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 50, 50, 0.8);
}

::selection {
    color: #fff;
    background: rgb(255, 50, 50);
}

@media (max-width: 800px) {
    #projects {
        display: none;
    }
    #contact {
        display: none;
    }
    #gallery {
        display: none;
    }
    #about {
        display: none;
    }
    #footer {
        text-align: center;
    }
    #middle {
        width: 90vw;
        padding: 0px 5vw;
    }
    #middle table {
        width: 80%;
    }
    .container form input {
        width: 90%;
    }
    .container form textarea {
        width: 90%;
    }
    #menu {
        display: inline-block;
    }
    #onlywide {
        display: none !important;
    }
    .box2 {
        margin-left: 0px !important;
    }
    #box div {
        width: 100%;
    }
}