/* ========== Default styles ========== */
nav,
header,
footer {
    display: block;
}

body {
    margin: 0;
    height: 100%;
    min-height: 100%;
    line-height: 1;
    /* font-family: Futura,Trebuchet MS,Arial,sans-serif; */
    font-family: assistant, monospace, sans-serif;
    letter-spacing: 2px;
    /* font-size: 10px; */

    /* background: #e0e0e0; */
    /* background: #404049; */
    /* background: #313841; */
    /* background: #6a7179; */
    background: #161422;
}

a {
    text-decoration: none;
    color: #ee3377;
}

a:hover {
    text-decoration: none;
    color: #f76c9f;

}


/* === explicit color classes === */

.black {
    color: #000;
}

.white {
    color: #fff;
}

.magenta {
    color: #ee3377;
}

/* testing importing of fonts */
@font-face {
    font-family: assistant;
    src: url(fonts/Assistant-Regular.ttf);
}

div ul {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    width: 100%;
    text-align: center;
    padding: 0;
}

div ul li {
    vertical-align: middle;
    margin: 20px;
    min-width: 270px;
    display: inline-block;
}

div ul li hr {
    border-top: 3px;
    border-left: 3px;
    border-right: 3px;
}

.container {
    width: 100%;
    margin: auto;
    padding-top: 2%;
    padding-bottom: 2%;
}

.footer-bar {
    background: #000;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 40px;
    padding-top: 5px;
}

#page-header {
    background: white;
    padding-top: calc(1% + 30px);
    padding-bottom: 10px;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    height: 100%;

}

.project {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;

    flex: 1 1;
    max-width: 800px;
    min-width: 700px;
    /* height: 750px; */
    margin: 20px;
    box-sizing: border-box;
}

.project-img {
    flex: 0 1;
    width: 300px;
    height: 300px;
    box-sizing: border-box;
    margin: 10px;
    justify-content: space-evenly;
}


.img-video-link-container {
    position: relative;
    text-align: center;
    margin: 10px;
    width: 300px;
    height: 300px;
}

.img-video-link-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -75%);
    font-size: 26px;
    color: #fff;
    transition: 1s;
    background-color: #0000006b;
    padding: 8px;
}

.video-link-img {
    transition: .5s;
    width: 300px;
    height: 300px;
    margin: 0;
    box-sizing: border-box;
}

.img-video-link-container:hover .img-video-link-text {
    transition: 1s;
    color: #ffffff;
    background-color: #ffffff00;
}

.img-video-link-container:hover .video-link-img {
    transition: .5s;
    opacity: .25;
}


.project-description {
    width: 95%;
}

.project-header {
    color: #fff;
    letter-spacing: 5px;
    font-size: 20px;
    text-align: left;
    padding-left: 10px;
}

#section-2 {
    background: #161422;
    padding: 0px;
}

#section-3 {
    background: white;
}

/*  about section */
#section-4 {
    background: #161422;
    width: 50%;
    left: 50%;
    padding: 0px;
}

/* ======= hard edge gradient (pseduo depth) ====== */
#gradient-1 {
    padding-top: 1%;
    padding-bottom: 1%;

    background: -webkit-linear-gradient(#ffffff, #a29eb9);
    background: -o-linear-gradient(#ffffff, #a29eb9);
    background: -moz-linear-gradient(#ffffff, #a29eb9);
    background: linear-gradient(#ffffff, #a29eb9);
}

#gradient-2 {
    padding-top: 1%;
    padding-bottom: 1%;

    background: -webkit-linear-gradient(#908ca7, #4e4b61);
    background: -o-linear-gradient(#908ca7, #4e4b61);
    background: -moz-linear-gradient(#908ca7, #4e4b61);
    background: linear-gradient(#908ca7, #4e4b61);
}

#gradient-3 {
    padding-top: 1%;
    padding-bottom: 1%;

    background: -webkit-linear-gradient(#424055, #161422);
    background: -o-linear-gradient(#424055, #161422);
    background: -moz-linear-gradient(#424055, #161422);
    background: linear-gradient(#424055, #161422);
}


/* ====== text tag overrides ====== */
.page-title {
    letter-spacing: 6px;
    font-size: 50px;
    text-align: center;
}

.sub-page-title {
    letter-spacing: 5px;
    font-size: 20px;
    text-align: center;
}

.large-header {
    letter-spacing: 5px;
    font-size: 50px;
    text-align: left;
}

.medium-header {
    letter-spacing: 5px;
    font-size: 20px;
    text-align: left;
    padding-top: 5px;
}

.h2-type-1 {
    /* font-family: assistant; */
    color: #fff;
    letter-spacing: 5px;
    font-size: 30px;
    text-align: left;
    padding-left: 30px;
    padding-bottom: 10px;
}

/* .h2-type-1:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1em;
    border-top: 1px solid white;
    z-index: -1;
} */

.h2-type-2 {
    /* font-family: assistant; */
    color: #fff;
    letter-spacing: 5px;
    font-size: 25px;
    text-align: left;
}


.h4-type-1 {
    color: #fff;
    letter-spacing: 5px;
    font-size: 16px;
    text-align: center;
}

.cc-text {
    color: #fff;
    letter-spacing: 2px;
    font-size: 12px;
    padding: 5px;
    text-align: center;
    opacity: .5;
}

p {
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 2px;
}

.centered-text {
    text-align: center;
    /* overflow-wrap: break-word; */
}

.spacer {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

.spacer-big {
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
}

.link-icon {
    width: 30px;
    height: 30px;
    padding: 5px;
    border-radius: 100%;
    /* position: absolute; */
}

.link-tag {
    position: relative;
    border-radius: 100%;
    display: inline-block;
    filter: grayscale(1) brightness(300%);
    transition: filter .4s cubic-bezier(0, 0.77, 1, 0.99);
}

.link-tag:hover {
    filter: unset;

}



/* ========== Nav bar ========== */
nav {
    position: fixed;
    width: 100%;
    margin: 0;
    background-color: black;
    text-align: center;
    z-index: 1;
}

nav ul {
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: inline-block;
}

ul.topnav li {
    list-style: none;
    float: left;
}

ul.topnav li a {
    display: block;
    text-decoration: none;
    min-height: 14px;
    padding: 14px;
    color: #e0e0e0;
    text-transform: uppercase;
}

.nav-button {
    color: white;
    transition: background .5s ease;
}

.nav-button:hover {
    color: #ee3377;
}

ul.topnav li.dropdown-icon {
    display: none;
}

/* ========== navbar mobile optemization =========== */
/* ========== strictly mobile optemization ========= */
@media screen and (max-width: 680px) {
    ul.topnav li:not(:nth-child(1)) {
        display: none;
    }

    ul.topnav li.dropdown-icon {
        display: block;
    }

    ul.topnav.responsive li.dropdown-icon ul.topnav.responsive {
        position: relative;
    }

    ul.topnav.responsive li {
        display: inline;
        float: none;
    }

    ul.topnav.responsive li a {
        display: block;
        text-align: center;
    }


    /* ================= for projects ================== */
    .project {
        flex: 1 1;
        /* border: 2px solid white; */
        /* flex-basis: 600px; */
        max-width: 680px;
        min-width: 300px;
        box-sizing: border-box;
        height: fit-content;
        margin: 20px;
    }



}


/* ================= input form styles ================= */

.custom-input {
    display: block;
    position: relative;
    font-size: 16px;
    padding-top: 20px;
    margin-bottom: 5px;
}

.custom-input input,
.custom-input textarea {
    border: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    background: #ffffff67;
    width: 220px;
    padding: 16px;
    border-radius: 3px;
}

.custom-input textarea {
    height: 60px;
    resize: none;
}

.custom-input input+.placeholder {
    cursor: text;
    position: absolute;
    left: 32px;
    top: calc(50% + 10px);
    transform: translateY(-50%);
    color: #dadadaaf;
    transition: top 0.3s ease, font-size 0.3s ease, color 0.3s ease;
}

.custom-input textarea+.placeholder {
    cursor: text;
    position: absolute;
    left: 32px;
    top: 40px;
    transform: translateY(-50%);
    color: #dadadaaf;
    transition: top 0.3s ease, font-size 0.3s ease, color 0.3s ease;
}

.custom-input input:valid+.placeholder,
.custom-input input:focus+.placeholder,
.custom-input textarea:valid+.placeholder,
.custom-input textarea:focus+.placeholder {
    top: 7px;
    font-size: 10px;
    color: #ee3377;
}

button[type=submit] {
    /* outline: thin; */
    padding: 4px;
    padding-left: 30px;
    padding-right: 30px;
    margin-top: 20px;
    border-radius: 4px;
    border-width: 1px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    background: none;
    color: #fff;
    border-color: #999;
}

button[type=submit]:hover {
    color: #ee3377;
}

/* =============== Container for the orbiting circles animation ============== */
#orbit-container {
    position: sticky;
    height: 550px;
    width: 100%;
    margin-bottom: 200px;
}

.orbital-0 {
    position: absolute;
    height: 45px;
    width: 45px;
    border-radius: 100%;
    /* background: radial-gradient(#ee3377, #161422 80%); */
    background: radial-gradient(#bd8918, #c9be20 80%);
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
}

/* ---------- inner orbital's orbit is 1st and so on ---------- */
#orbit-1 {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 1px #555258 solid;
    border-radius: 100%;
    -webkit-animation: revolve 10s linear infinite;
    animation: revolve 16s linear infinite;

    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
}

/* ============= orbital 1 size, position, and color =========== */
.orbital-1 {
    position: absolute;
    top: 80px;
    left: -8px;
    height: 16px;
    width: 16px;
    border-radius: 100%;
    /* background-color: #5a7979; */
    background: radial-gradient(#5a7979, #7e7e7e 99%);
}

#orbit-2 {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px #555258 solid;
    border-radius: 100%;
    -webkit-animation: revolve 20s linear infinite;
    animation: revolve 32s linear infinite;

    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
}

.orbital-2 {
    position: absolute;
    top: 160px;
    left: -12px;
    height: 24px;
    width: 24px;
    border-radius: 100%;
    /* background-color: #a03f07; */
    background: radial-gradient(#a07861, #365e3a 99%);
}

#orbit-3 {
    position: absolute;
    width: 480px;
    height: 480px;
    border: 1px #555258 solid;
    border-radius: 100%;
    -webkit-animation: revolve 10s linear infinite;
    animation: revolve 48s linear infinite;

    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
}

.orbital-3 {
    position: absolute;
    top: 240px;
    left: -12px;
    height: 24px;
    width: 24px;
    border-radius: 100%;
    /* background-color: #274075; */
    background: radial-gradient(#274075 40%, #035c15);
}

#orbit-4 {
    position: absolute;
    top: 0;
    bottom: -23px;
    left: -36px;
    margin: auto;

    width: 70px;
    height: 70px;
    border: 1px #555258 solid;
    border-radius: 100%;
    -webkit-animation: revolve 10s linear infinite;
    animation: revolve 30s linear infinite;
}

.orbital-4 {
    position: absolute;
    top: 35px;
    left: -5px;
    height: 10px;
    width: 10px;
    border-radius: 100%;
    background-color: #e0e0e0;
}

#orbit-5 {
    position: absolute;
    width: 640px;
    height: 640px;
    border: 1px #555258 solid;
    border-radius: 100%;
    -webkit-animation: revolve 10s linear infinite;
    animation: revolve 64s linear infinite;

    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
}

.orbital-5 {
    position: absolute;
    top: 320px;
    left: -8px;
    height: 16px;
    width: 16px;
    border-radius: 100%;
    /* background-color: #274075; */
    background: radial-gradient(#68280f 30%, #5e1111);
}

@media screen and (max-width: 680px) {

    /* ===== should make better fix than this ===== */
    /* ===== should also put this elsewhere ===== */
    #orbit-5,
    #orbit-4,
    #orbit-3,
    #orbit-2 {
        display: none;
    }

    .orbital-5,
    .orbital-4,
    .orbital-3,
    .orbital-2 {
        display: none;
    }

    .orbital-0 {
        height: 30px;
        width: 30px;
        background: radial-gradient(#274075 40%, #035c15);
    }

    .orbital-1 {
        height: 10px;
        width: 10px;
        left: -5px;
        background: #e0e0e0;
    }


}

div.planet-link {
    position: relative;
}

.planet-link a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-decoration: none;
    z-index: 1;
}

/* .tooltip {
    position: fixed;
    display: none;
}

.tooltip:hover {
    display: inline-block;
} */

/* .tooltip .tooltip-content{
    display: none;
    position: absolute;
    background-color: #fff;
    padding: 1em;
}

.tooltip:hover .tooltip-content{
    display: block;
  } */

/* ============= Animation ============ */
@-webkit-keyframes revolve {
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* 
  @-webkit-keyframes revolve {
      100% {
        -webkit-transform: rotate(-360deg);
        -moz-transform: rotate(-360deg);
        -ms-transform: rotate(-360deg);
        -o-transform: rotate(-360deg);
        transform: rotate(-360deg);
      }
      0% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
      }
  } */







/* === tiny screen optimization === */
@media screen and (max-width: 320px) {

    /* === other optimization === */
    .page-title {
        font-size: 30px;
    }

    .sub-page-title {
        font-size: 15px;
    }

    div ul li {
        margin: 0;
    }



    /* ================= for projects ================== */
    .project {
        max-width: 320px;
        min-width: 240px;
        margin: 10px;
    }

    .project-img {
        width: 200px;
        height: 200px;
    }

    .video-link-img {
        width: 200px;
        height: 200px;

    }

    .img-video-link-container {
        width: 200px;
        height: 200px;

    }


}