@font-face {
    font-family: main;
    src: url(Montserrat-VariableFont_wght.ttf);
}

@font-face {
    font-family: lobster;
    src: url(Montserrat-VariableFont_wght.ttf);
}

@font-face {
    font-family: mono;
    src: url(UbuntuMono-Regular.ttf);
}

:root {
    --navFont: 18px;
    --homeFont: 51px;
    --font: 18px;
    --mainBg: #fff;
    --heading: 40px;
    --headingSmall: 20px;
    --headingSmaller: 30px;
    --headingHigh: 50px;
    --footer: #cde;
    --padding: 200px;
    --navHeight: 60px;
    --bigger: 20px;
    --smaller: 14px;

    --max-width: 1500px
}

::selection {
    color: #000;
    background: #9bf;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    font-family: main, sans-serif;
    /* background-color: var(--mainBg); */
    margin: 0;
    position: relative;
    z-index: 1;
    overflow-x: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.all-holder {
    width: var(--max-width);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: -100;
}

.all-holder::before, .all-holder::after {
    content: '';
    position: absolute;
    top: 0;
    max-width: 100vw;
    width: calc((100vw - var(--max-width)) / 2);
    height: 100%;
    background-color: #f0f9ff;
    z-index: 1;
    box-shadow: 0 0 20px #0003;
}

.all-holder::before {
    left: calc((100vw - var(--max-width)) * -.5);
}

.all-holder::after {
    right: calc((100vw - var(--max-width)) * -.5);
}

label {
    font-weight: bold;
    font-style: italic;
}

.topnav {
    max-width: 100vw;
    width: var(--max-width);
    height: var(--navHeight);
    display: flex;
    align-items: center;
    background-image: linear-gradient(#fff, #fffd);
    padding-left: 30px;
    position: fixed;
    top: 0;
    left: 50%;
    backdrop-filter: blur(3px);
    z-index: 2;
    box-shadow: 0 0 90px #0004;
    transform: translateX(-50%);
}

.gap {
    margin-bottom: 100px;
}

.nav {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: var(--navFont);
}

.nav a {
    text-align: center;
    text-decoration: none;
    color: #036;
    position: relative;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    overflow: hidden;
    background-color: #cdf5;
    transition: .1s;
}

.nav a:hover {
    color: #000;
}

.nav a::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    height: 0;
    transition: .3s;
    z-index: -1;
    opacity: .5;
}

.nav a:hover::before {
    width: 100%;
    height: 100%;
    background-color: #cdf;
    opacity: 1;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 70%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 2px;
    transition: .1s;
    z-index: -1;
    opacity: 0;
    background-color: #037;
    border-radius: 5px;
}

.nav a:hover::after, .nav a.active::after {
    top: 80%;
    opacity: .5;
}

.title {
    height: 100%;
}

.title img {
    padding: 15% 0;
    height: 100%;
    margin-right: 30px;
}

.main {
    width: 100%;
    padding: 90px var(--padding) var(--padding) var(--padding);
    font-size: var(--font);
    display: flex;
    flex-direction: column;
}

.main::before {
    content: '';
    position: absolute;
    top: 100vh;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: -2;
}

iframe {
    width: 100%;
    border-radius: 10px;
}

.main.real::before {
    top: 0;
}

a.norm {
    font-family: mono, monospace, sans-serif;
    color: #07b;
    text-decoration: none;
    position: relative;
}

a.norm::before {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: #07b;
    transition: .1s;
    z-index: 1;
    border-radius: 2px;
}

a.norm:hover::before {
    left: 0;
    right: auto;
    width: 100%
}

.profile {
    width: 300px;
    height: 300px;
    flex: 1 0 auto;
    object-fit: cover;
    box-shadow: 1px 2px 3px #0006;
    border-radius: 100%;
    border: 10px #9bf solid;
    float: right;

    opacity: 1;
    transform: translateY(0);
    transition: .5s;
}

.profile.hidden {
    opacity: 0;
    transform: translateY(10px) scale(.9);
}

.blob {
    box-shadow: .5px 1px 2px #0005;
    padding: 10px;
    width: fit-content;
}

.blob, b, .desc {
    border-radius: 5px;
    background-color: #bdf;
    display: block;
    font-weight: normal;

    opacity: 1;
    transform: translateY(0) scale(1);
    transition: .3s;
}

.desc {
    padding: 10px 15px;
    margin: 10px 0;
    overflow: hidden;
}

.desc.hidden, b.hidden, .blob.hidden {
    opacity: 0;
    transform: translateY(10px) scale(.9);
}

.desc h3 {
    width: fit-content;
    margin: 5px 0;
    font-weight: normal;
}

.desc img {
    margin: 20px;
    width: 200px;
    height: 200px;
    object-fit: cover;
    float: right;
    border-radius: 10px;
}

b {
    width: 100%;
    padding: 5px;
    z-index: -2;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

b i {
    font-style: normal;
    padding: 5px;
    background-color: #fff;
    border-radius: 3px;
    display: inline-block;
    width: 130px;
    text-align: center;
    margin-right: 10px;
    height: 100%;
    flex: 1 0 auto;
}

b .bigger {
    padding: 5px;
    font-size: var(--bigger);
}

span.new {
    margin-left: 7px;
    padding: 2px 3px;
    font-size: 15px;
    color: #fff;
    font-family: mono, monospace;
    font-weight: bold;
    border-radius: 4px;
    background-color: #5b2;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.quote {
    border-left: 3px solid #bbb;
    padding: 10px 20px;
    color: #222
}

.home {
    position: relative;
    width: 100%;
    height: 100vh;
    user-select: none;
    display: flex;
    font-weight: bold;
    font-size: var(--homeFont);
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #cdf;
    z-index: -2;
}

.home img.logo {
    width: 7vw;
    filter: drop-shadow(1px 2px 50px #fff3);
    position: relative;
}

.home img.background {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: -2;
    opacity: .3;
}

.home h1 {
    font-size: var(--homeFont);
    margin: 0;
    text-align: center;
}

.bubble {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 100%;
    z-index: -1;
}

#c1, #c2 {
    position: fixed;
    width: 50vw;
    height: 50vw;
    z-index: -2;
}

#c1 {
    transform: translate(-60vw, -50vw);
    background-color: #7ae6;
}

#c2 {
    transform: translate(10vw, 0);
    background-color: #fff6;
}

#c3 {
    top: 0;
    left: 50vw;
    width: 350px;
    height: 350px;
    background-color: #9bf5;
}

#c4 {
    position: absolute;
    top: 100%;
    left: 15%;
    width: 10vw;
    height: 10vw;
    background-color: #fff;
    transition: .1s;
    z-index: 0;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

#c4:hover {
    transform: translate(-50%, calc(-50% - 10px));
    cursor: pointer;
}

#c4 svg {
    width: 30%;
    transform: translateY(-90%);
    fill: #5bd;
    animation-name: bob;
    animation-duration: .7s;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(.59,-0.01,.5,.99)
}

#c5 {
    top: -3vw;
    left: -15vw;
    width: 250px;
    height: 250px;
    background-color: #9bf5;
}

#c6 {
    top: -3vw;
    right: -15vw;
    width: 250px;
    height: 250px;
    background-color: #9bf5;
}

.main h1 {
    font-size: var(--heading);
    margin-top: 10px;
    margin-bottom: 0;
    font-weight: normal;
}

h1 i {
    font-size: var(--headingHigh);
    font-weight: normal;
    font-style: normal;
    margin: 0;
    color: #18c;
    font-family: lobster, main, sans-serif;
}

h4 {
    font-size: var(--headingSmaller);
    margin: 15px 0;
    font-weight: normal;
}

h5 {
    font-size: var(--headingSmall);
    margin: 15px 0;
    font-weight: normal;
}

.box {
    padding-bottom: 100px;
    position: relative
}

.box.right {
    text-align: right;
}

.book {
    padding: 20px;
    width: fit-content;
    align-self: center;
    background-color: #18c;
    border: none;
    border-radius: 50px;
    font-size: var(--navFont);
    font-family: main, sans-serif;
    color: #fff;
    font-weight: bold;
    box-shadow: 1px 2px 4px #0006;
    transition: .2s;
    text-decoration: none;
    text-align: center;
}

.book:hover {
    background-color: #49d;
    cursor: pointer;
    transform: scale(1.05);
}

.copyright {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-family: mono, monospace, sans-serif;
    width: 100%;
    padding: 20px;
    background-color: var(--footer);
    z-index: 2;
}

.copyright a {
    padding: 0 5px;
}

.copyright a {
    width: fit-content;
    color: #000;
    text-decoration: none;
    position: relative;
    z-index: 1;
    border-radius: 3px;
    overflow: hidden;
}

.copyright a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    width: 100%;
    height: 0;
    transition: .1s;
    z-index: -1;
}

.copyright a:hover::before {
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
    height: 100%
}

.side {
    position: absolute;
    bottom: 5px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
    font-size: var(--smaller);
    z-index: 3;
}

.side .icons {
    width: 100%;
    height: 35px;
    justify-content: end;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.side .icons img {
    height: 100%;
}

.side .icons img:hover {
    transform: scale(1.05);
    filter: contrast(.8) brightness(1.2);
}

.side .icons img:active {
    transform: scale(.95);
}

.fancy {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.fancy.right {
    justify-content: end;
}

.fancy div {
    display: flex;
    width: fit-content;
    overflow: hidden;
}

.fancy span {
    display: inline-block;
    transition: .5s cubic-bezier(.56,.09,.35,1.1);
    transform: translateY(0);
    opacity: 1;
}

.fancy span.hidden {
    transition-duration: 0s;
    transform: translateY(50%);
    opacity: 0;
}

@media screen and (min-width: 700px) and (max-width: 900px) {
    :root {
        --padding: 100px;
        --homeFont: 40px;
    }

    #c4 {
        width: 15vw;
        height: 15vw
    }

    .profile {
        width: 250px;
        height: 250px
    }

    #homeContent img {
        width: 15vw
    }
}

@media screen and (min-width: 265px) and (max-width: 700px) {
    :root {
        --padding: 50px;
        --homeFont: 30px;
        --smaller: 11px
    }

    .copyright {
        padding-bottom: 50px;
    }

    .profile {
        width: 150px;
        height: 150px
    }

    .nav {
        height: 100%;
        flex-wrap: wrap;
    }

    .nav a {
        padding: 0;
        flex: 1 1 auto;
    }

    .title img {
        flex: 0 1 auto;
        width: 0;
        margin: 0
    }

    .topnav {
        padding: 0;
    }

    #homeContent img {
        width: 20vw
    }

    #c4 {
        width: 20vw;
        height: 20vw
    }

    #c5 {
        width: 200px;
        height: 200px
    }

    .desc img {
        width: 50%;
        height: 200px;
        object-fit: cover;
        border-radius: 10px;
        filter: grayscale(10%) drop-shadow(1px 2px 2px #0005)
    }
}

@media screen and (max-width: 500px) and (min-width: 265px) {
    .desc img {
        margin: 15px 0 20px 0;
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 10px;
        filter: grayscale(10%) drop-shadow(1px 2px 2px #0005)
    }

    .copyright {
        padding-bottom: 100px;
    }
}

@media screen and (max-width: 265px) {
    :root {
        --padding: 5px;
        --homeFont: 30px;
        --heading: 30px;
        --headingHigh: 30px;
        --smaller: 10px
    }

    .copyright {
        padding-bottom: 100px;
    }

    .profile {
        width: 100px;
        height: 100px
    }

    .nav {
        height: 100%;
        flex-wrap: wrap;
    }

    .nav a {
        height: 50%;
        padding: 0;
        flex: 1 1 auto;
    }

    .title img {
        flex: 0 1 auto;
        width: 0;
        margin: 0
    }

    .topnav {
        padding: 0;
    }

    #homeContent img {
        width: 20vw
    }

    #c4 {
        width: 20vw;
        height: 20vw
    }

    #c5 {
        width: 200px;
        height: 200px
    }

    .desc img {
        margin: 15px 0 20px 0;
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 10px;
        filter: grayscale(10%) drop-shadow(1px 2px 2px #0005)
    }
}

@keyframes bob {
    0% {transform: translateY(-110%)};
    50% {transform: translateY(-80%)}
    100% {transform: translateY(-110%)}
}

* {
    box-sizing: border-box;
}