a {
    text-decoration: none;
    color: white;
}

a:hover:not(.fa, .fab, .fas) {
    text-decoration: revert;
}

body {
    color: white;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 0;
    padding: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    height: 100vh;
    height: 100dvh;
    scroll-snap-points-y: repeat(100vh);
    scroll-snap-type: y mandatory;
}

body>main {
    background-image: url("../uploads/code_mobile_op.avif");
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body>main,
body>section {
    scroll-snap-align: center;
    width: 100%;
    height: 100vh;
}

body>section#home {
    background-color: #0d1117;
}

div.container {
    position: relative;
    max-width: 400px;
    width: 90%;
    aspect-ratio: 1 / 1;
}

div.container a {
    visibility: hidden;
}

div.container:active a,
div.container:hover a {
    visibility: visible;
    animation: disable-pointer-events 200ms;
}

div.container img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: white;
    display: block;
    transition: .5s ease;
    backface-visibility: hidden;
}

div.container:active img,
div.container:hover img {
    opacity: 0.3;
    filter: grayscale(100%);
}

div.container:active div.middle,
div.container:hover div.middle {
    opacity: 1;
}

div.middle {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

div.text {
    border-radius: 5px;
    border: 1px white solid;
    background-color: #0d1117;
    color: white;
    font-size: 16px;
    padding: 16px 32px;
}

div#nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    background-image: conic-gradient(black, darkblue, #560bad, black);
    border: 1px white solid;
    bottom: 25px;
    right: 25px;
    width: 60px;
    aspect-ratio: 1 / 1;
    border-radius: 100%;
}

div#nav i {
    font-size: 2rem;
}

h1,
h2,
h3 {
    text-align: center;
}

h1 {
    margin-bottom: 0;
}

h3 {
    padding: 0 5%;
}

header {
    margin-bottom: 2%;
}

html {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    scroll-behavior: smooth;
}

li#github>div {
    display: none;
}

li#github>ul {
    height: 20px;
    margin: 16px;
}

li#github>ul>li:last-child {
    height: 0px;
    position: relative;
    left: 43%;
    bottom: 20px;
}

main>div {
    padding: 0 10px;
    background-color: #0d1117;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    border: 1px white solid;
    margin: 10vw 5vw;
    border-radius: 5px;
}

main>div>header>picture {
    display: flex;
    justify-content: center;
    margin-bottom: 8%;
}

main>div>hr {
    width: 60%;
}

main>div>ul {
    width: 80%;
    margin: 2em 0 2em 10%;
    border: 1px white solid;
    border-radius: 6px;
}

main>div>ul>li {
    text-align: center;
    white-space: nowrap;
}

main>div>ul>li:not(:first-child) {
    height: 20px;
    padding: 16px 0;
    text-align: left;
    padding-left: calc(50% - 8px);
    overflow: hidden;
}

main>div>ul>li:not(:first-child) i {
    transition: transform 1s ease-in-out;
}

main>div>ul>li:not(:first-child):hover a,
main>div>ul>li:not(:first-child):active a {
    opacity: 1;
}

main>div>ul>li:not(:last-child) {
    border-bottom: 1px white solid;
}

main>div>ul>li:not(:first-child) a {
    pointer-events: none;
    opacity: 0;
    text-decoration: underline;
    transition: opacity 1s ease-in;
}

main>div>ul>li:not(:first-child):hover i,
main>div>ul>li:not(:first-child):active i {
    transform: translate(-46%);
}

picture#profile>img {
    border-radius: 100%;
    width: 10em;
}

section#home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

section#home>div {
    margin: 0 5%;
}

section#home>div a {
    text-decoration: revert;
}

section#home h2 {
    margin-top: 35px;
}

ul {
    padding: 0;
    list-style: none;
}

@media (orientation: landscape) and (width < 768px) {
    body {
        scroll-snap-type: initial;
    }

    body>main,
    body>section {
        height: 100vw;
    }

    div#nav {
        display: none;
    }

    h3 {
        margin-top: 0;
    }

    li#github>ul,
    main>div>ul>li:not(:first-child) {
        height: 10px;
    }

    main>div>header>picture {
        margin-bottom: 4%;
    }
}

@media screen and (min-width:768px) {

    body {
        font-family: monospace, monospace;
    }

    body>main {
        background-image: url("../uploads/code.avif");
    }

    div#nav {
        bottom: 50px;
        right: 50px;
        width: 100px;
    }

    main>div {
        padding: 10px;
        width: 50%;
        margin-left: 25%;
    }

}

@media screen and (min-width:1024px) {}

@media screen and (min-width:1250px) {

    header {
	    margin-bottom: 0;
    }

    main > div > header > picture {
        margin-bottom: 0;
    }

    main > div > ul {
          margin: 1em 0 1em 10%;
    }

    div.container:hover div.middle {
        opacity: 1;
    }

    div.container img {
        opacity: 1;
    }

    div.container img:hover {
        opacity: 0.3;
        filter: grayscale(100%);
    }

    div.middle {
        transition: .5s ease, filter .5s;
        text-align: center;
    }

    div#nav {
        width: 60px;
    }

    main>div {
        width: 30%;
        margin-left: 35%;
    }
}

@media (pointer: coarse) {
    main>div>ul>li:not(:first-child) a.link {
        pointer-events: all;
    }
}

@media (pointer: fine) {
    main>div>ul>li:hover a {
        pointer-events: all;
    }
}

@keyframes disable-pointer-events {
    0% {
        visibility: hidden;
    }

    50% {
        visibility: hidden;
    }

    100% {
        visibility: visible;
    }
}
