html {
    font-family: Kanit;
    font-size: calc(14px + 8 * ((100vw - 500px)/ 1500));
    font-weight: 200;
}

html, body, main {
    height: 100%;
    margin: 0;
    background-color: black;
    overflow-y: hidden;
}

img, div, section {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
}

header {
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3;
}

nav {
    margin-top: 1.1rem;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    opacity: 0;
    transition: opacity 2s ease;
}

.nav-stop {
    transform: rotate(45deg);
    cursor: pointer;
}

.nav-stop span {
    display: block;
    line-height: 1;
}

.nav-conn {
    flex: 1;
    height: 1px;
    border-bottom: 0.05rem solid orange;
}

.pos {
    color: orange;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width:100%;
    color: white;
    opacity: 0;
    transition: opacity 2s ease;
}

main {
    opacity: 0;
    transition: opacity 2s ease;
}

.parallax {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.parallax-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image {
    position: absolute;
    z-index: 2;
    transition: transform 2s ease;
}

.stop {
    cursor: pointer;
}

#far {
    background-color: black;
    height: 100%;
    width: 410%;
    z-index: 1;
    background-image: url('images/background.svg');
    background-size: 56.47rem 42.35rem;
}

#earth {
    width: 20rem;
    height: 20rem;
}

#moon {
    width: 10rem;
    height: 10rem;
    right: 100%;
    bottom: 100%;
}

#jupiter {
    width: 60rem;
    height: auto;
    transform: translateX(190vw);
}

#io {
    width: 1.5rem;
    height: 1.5rem;
    right: 10vw;
    bottom: 10vw;
    transform: translateX(240vw);
}

#saturn {
    width: 35rem;
    height: auto;
    transform: translateX(190vw);
}

#titan {
    width: 1.5rem;
    height: 1.5rem;
    left: 5vw;
    bottom: 5vw;
    transform: translateX(240vw);
}

#uranus {
    width: 15rem;
    height: 15rem;
    transform: translateX(190vw);
}

#neptune {
    width: 10rem;
    height: 10rem;
    transform: translateX(190vw);
}

#bennu {
    width: 30rem;
    height: auto;
    transform: translateX(190vw);
}

#ast-2 {
    width: 10rem;
    height: auto;
    bottom: 10vw;
    right: 5vw;
    transform: translateX(240vw);
}

#ast-3 {
    width: 10rem;
    height: auto;
    top: 5vw;
    right: 13vw;
    transform: translateX(240vw);
}

#ast-4 {
    width: 10rem;
    height: auto;
    top: 15vw;
    right: 17vw;
    transform: translateX(240vw);
}

#galaxy {
    width: 40rem;
    height: auto;
    transform: translateX(190vw);
}

.tooltip-wrapper {
    position: absolute;
    z-index: 5;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    pointer-events: none;
}

.tooltip-background {
    margin-top: 3rem;
    opacity: 0;
    width: 90%;
    animation-duration: 2s;
    /* animation-delay: 1.5s; */
    transform-origin: top;
}

.tooltip {
    color: white;
    font-size: 1.2rem;
    margin: 0 5%;
}

.content-wrapper {
    position: absolute;
    z-index: 5;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.content-background {
    position: relative;
    background-color: white;
    width: 97%;
    border-radius: 10px;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4.5rem;
    margin-bottom: 2%;
    animation-duration: 1s;
    transform-origin: top;
    pointer-events: initial;
    overflow-y: hidden;
}

.content {
    width: 90%;
    padding-bottom: 1rem;
    overflow-y: scroll;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

::-webkit-scrollbar {
  display: none;
}

.close {
    position: absolute;
    top: 2%;
    right: 4%;
    z-index: 1;
    cursor: pointer;
}

.close span {
    font-size: 1.7rem;
    text-decoration: underline;
    color: orange;
}

.content-header, .content-subheader {
    border-bottom: 0.4rem solid #4a7890;
    background-color: white;
    width: 98%;
    align-items: center;
    border-radius: 5px;
}

.content-header h2 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-left: 1%;
}

.content-subheader {
    border-bottom: 0.2rem solid orange;
}

.content-subheader h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 1% 1%;
}

.content {
    font-size: 1.2rem;
    background-color: white;
    opacity: 1;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 5%;
    padding-right: 5%;
    max-height: 90%;
}

.voyager-facts-wrapper {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.voyager-facts {
    font-style: italic;
    border-left: 3px solid orange;
    padding-left: 0.5rem;
    margin-left: 0.5rem;
    border-radius: 10px;
}

.voyager-facts span {
    font-weight: 400;
    text-decoration: underline;
}

.voyager-facts ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.voyager-facts ul li {
    background-color: #e4efe4;
    padding: 0.5rem;
    margin: 0.5rem;
    border-radius: 5px;
}

.voyager {
    position: fixed;
    z-index: 3;
    opacity: 0;
    transition: opacity 2s ease 1s;
    top: 50%;
    left: 50%;
    height: 10rem;
    width: 10rem;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    transform-origin: bottom;
    pointer-events: none;
}

.voyager-loading {
    transition: opacity 2s ease 1s;
    height: 4rem;
    width: 4rem;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    transform-origin: bottom;
    pointer-events: none;
}

.opaque {
    opacity: 1;
}

.bob {
    animation-name: bob;
    animation-timing-function: cubic-bezier(0.35, 0.4, 0.15, 0.76);
    animation-timing-function: ease-in-out;
}

.leave {
    animation-name: leave-top;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
}

.enter {
    animation-name: enter-top;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
}

.stop-1 #earth {
    transform: translateX(-190vw);
}

.stop-1 #moon {
    transform: translateX(-290vw);
}

.stop-1 #jupiter {
    transform: translateX(0vw);
}

.stop-1 #io {
    transform: translateX(-25vw);
}

.stop-2 #earth, .stop-2 #moon,
.stop-2 #jupiter {
    transform: translateX(-190vw);
}

.stop-2 #io {
    transform: translateX(-290vw);
}

.stop-2 #saturn {
    transform: translateX(0vw);
}

.stop-2 #titan {
    transform: translateX(25vw);
}

.stop-3 #earth, .stop-3 #moon,
.stop-3 #jupiter, .stop-3 #io,
.stop-3 #saturn {
    transform: translateX(-190vw);
}

.stop-3 #titan {
    transform: translateX(-290vw);
}

.stop-3 #uranus {
    transform: translateX(0vw);
}

.stop-4 #earth, .stop-4 #moon,
.stop-4 #jupiter, .stop-4 #io,
.stop-4 #saturn, .stop-4 #titan,
.stop-4 #uranus {
    transform: translateX(-190vw);
}

.stop-4 #neptune {
    transform: translateX(0vw);
}

.stop-5 #earth, .stop-5 #moon,
.stop-5 #jupiter, .stop-5 #io,
.stop-5 #saturn, .stop-5 #titan,
.stop-5 #uranus,
.stop-5 #neptune {
    transform: translateX(-190vw);
}

.stop-5 #bennu, .stop-5 #ast-4 {
    transform: translateX(0vw);
}

.stop-5 #ast-2 {
    transform: translateX(35vw);
}

.stop-5 #ast-3 {
    transform: translateX(50vw);
}

.stop-6 #earth, .stop-6 #moon,
.stop-6 #jupiter, .stop-6 #io,
.stop-6 #saturn, .stop-6 #titan,
.stop-6 #uranus,
.stop-6 #neptune,
.stop-6 #bennu {
    transform: translateX(-190vw);
}

.stop-6 #ast-2, .stop-6 #ast-3, .stop-6 #ast-4 {
    transform: translateX(-290vw);
}

.stop-6 #galaxy {
    transform: translateX(0vw);
}

.stop-1 #far {
    transform: translateX(-25vw);
}

.stop-2 #far {
    transform: translateX(-50vw);
}

.stop-3 #far {
    transform: translateX(-75vw);
}

.stop-4 #far {
    transform: translateX(-100vw);
}

.stop-5 #far {
    transform: translateX(-125vw);
}

.stop-6 #far {
    transform: translateX(-150vw);
}

.arrows-container {
    position: absolute;
    top: 0;
    z-index: 6;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.arrows {
    display: flex;
    cursor: pointer;
}

.arrow {
    opacity: 0;
    display: inline-block;
}

.blink {
    pointer-events: initial;
}

.blink .arrow {
    animation: blinkz 2s infinite;
}

.right-arrows {
    margin-right: 3%;
}

.left-arrows {
    margin-left: 3%;
}

.right-arrows .arrow:nth-child(2) {
    animation-delay: 0.2s
}

.left-arrows .arrow:nth-child(1) {
    animation-delay: 0.2s
}

.arrows div {
    width: 2rem;
}

.arrows img {
    height: 100%;
    width: 100%;
}

.img-blk {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding-top: 0.75rem;
}

.img-blk.column {
    flex-direction: column;
}

.img-blk.column.unalign {
    align-items: initial;
}

.img-blk img {
    width: 100%;
    height: auto;
}

.img-blk-row {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.img-wrp, .img-wrp-img {
    position: relative;
    max-width: 16rem;
    flex: 1;
    border: 2px solid #fff;
    border-radius: 5px;
    border-collapse: collapse;
    font-size: 0;
}

.img-wrp-img {
    max-width: 7rem;
    border: none;
}

.wrap {
    flex-wrap: wrap;
    flex: 1;
}

.img-wrp-asg, .img-wrp-ppl, .img-wrp-topcard, .img-wrp-resume {
    display: flex;
    align-items: center;
    box-shadow: 0px 0px 30px #D7DBDD;
    border-radius: 5px;
    border: 1px solid lightgray;
    margin: 1%;
}

.img-wrp-skills {
    display: flex;
    align-items: center;
    border-radius: 5px;
    border: 1px solid lightgray;
    margin: 1%;
    padding: 10px;
    background-color: #ebeffe;
}

.img-wrp-resume {
    flex-basis: 100%;
}

.img-wrp-asg {
    cursor: pointer;
}

.img-wrp-ppl {
    flex-direction: column;
    align-items: initial;
}

.img-wrp-asg:hover, .img-wrp-ppl:hover {
    box-shadow: none;
}

.img-wrp-content {
    min-width: 16rem;
    text-align: center;
}

.img-wrp-ppl .img-wrp-content {
    min-width: 0;
    text-align: initial;
    margin: 3%;
}

.img-wrp-topcard .img-wrp-content, .img-wrp-resume .img-wrp-content {
    flex: 1;
    min-width: 0;
    padding: 0 1rem;
}

.img-wrp-topcard .img-wrp-img, .img-wrp-resume .img-wrp-img {
    flex: 2;
    max-width: 15rem;
}

.img-wrp-img img {
    max-width: 15rem;
}

.img-wrp-content p {
    margin: 0;
    margin-bottom: 0;
}

.img-wrp-content span {
    font-weight: 400;
}

.img-wrp img, .img-wrp-img, .img-wrp-img img {
    border-radius: 5px;
}

.img-oly {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: 0;
    transition: opacity linear 0.25s;
    border-radius: 5px;
}

.img-oly-btn {
    position: absolute;
    top: 0;
    margin: 0.5rem;
    padding: 0.3rem;
    background-color: #000;
    border-radius: 1rem;
    transition: opacity linear 0.25s;
}

.img-oly-btn svg {
    width: 0.8rem;
    height: 0.8rem;
    fill: #fff;
}

.img-oly-text {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    height: 100%;
    width: 100%;
    font-size: 0.75rem;
    color: white;
    opacity: 0;
    transition: opacity linear 0.25s;
    border-radius: 5px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.img-oly-text > div {
    text-align: center;
}

.img-wrp:hover .img-oly, .img-wrp:hover .img-oly-text,
.img-wrp-ppl:hover .img-oly, .img-wrp-ppl:hover .img-oly-text {
    opacity: 0.5;
}

.img-wrp:hover .img-oly-text,
.img-wrp-ppl:hover .img-oly-text {
    opacity: 1;
}

.img-wrp:hover .img-oly-btn,
.img-wrp-ppl:hover .img-oly-btn {
    opacity: 0;
}

.resume-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.bold {
    font-weight: bold;
}

.italics {
    font-style: italic;
}

.font-left {
    text-align: left;
}

.hidden {
    display: none;
}

@keyframes bob {
    0%   { transform: translateY(0) translateX(0) scale(1); }
    50%  { transform: translateY(-15%) translateX(12%) scale(1); }
    100% { transform: translateY(0) translateX(0) scale(1); }
}

@keyframes bob-2 {
    0%   { transform: translateY(0) translateX(0) scale(1); }
    25%  { transform: translateY(-10%) translateX(-10%) scale(0.9); }
    50%  { transform: translateY(-20%) translateX(-2%) scale(0.9); }
    75%  { transform: translateY(-10%) translateX(-10%) scale(0.9); }
    100% { transform: translateY(0) translateX(0) scale(1); }
}

@keyframes enter-top {
    0% { 
        opacity: 0.01;
        transform: translateY(-20%);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes leave-top {
    0% { 
        opacity: 1;
        transform: translateY(0);
    }
    100% { 
        opacity: 0.01;
        transform: translateY(-20%);
    }
}

@keyframes blinkz {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80%, 100% {
        opacity: 0;
    }
}


/* from https://css-tricks.com/snippets/css/shake-css-keyframe-animation/ */

.stop-5 #bennu:hover {
  animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}

@media only screen and (max-width: 949px) {
    .img-blk-row {
        display: block;
    }

    .img-wrp, .img-wrp-resume .img-wrp-img {
        max-width: initial;
    }

    .img-wrp-resume {
        flex-direction: column;
        align-items: center;
    }
    
    .saturn .img-wrp-resume {
        width: 23rem;
    }
    
    .uranus .img-wrp-resume {
        max-width: 30rem;
    }

    .img-blk-row.wrap {
        display: flex;
        flex-wrap: wrap;
    }

    .img-blk-row.wrap .img-wrp {
        min-width: 11rem;
    }

    .img-blk.column.unalign {
        align-items: center;
    }
}
