* {
    box-sizing: border-box;
    vertical-align: top;
    line-height: 1.625;
    letter-spacing: .0125rem;

    background-repeat: no-repeat;
    background-position: center;

    margin: 0;
    padding: 0;

    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.1rem;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: url(images/background-min.jpg);
    background-size: contain;
    background-repeat: repeat;
    background-attachment: fixed;
    background-blend-mode: hue;
    background-color: #2a2231e8;
    backdrop-filter: blur(5px);

    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.scrollable {
    display: flex;
    flex-flow: row;
    gap: 1rem;
    overflow-x: auto;
    justify-content: flex-start;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 0;
    max-width: 100%;
}

.scrollable > * {
    scroll-snap-align: center;
}
.scrollable::-webkit-scrollbar {
    display: none
}

@media screen and (min-width: 768px) {
    .scrollable{
        flex-flow: row wrap;
    }
}

a {
    color: inherit;
}

picture img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .4s ease-in-out;

    background-color: #00ff7b0f;
    background-image: linear-gradient( to top left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) calc(50% - 1px), rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) calc(50% + 1px), rgba(0, 0, 0, 0) 100% ), linear-gradient( to top right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) calc(50% - 1px), rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) calc(50% + 1px), rgba(0, 0, 0, 0) 100% );
}

body > * {
    width: min(1200px, 100%);
    margin: auto;
}

body > nav{
    width: min(100%, 50rem);
    display: flex;
    flex-direction: column;
    gap: .5rem;
    justify-content: center;
    color: rgb(198 198 223);
    padding-top: 2rem;
}

body > nav ul{
    display: flex;
    gap: 1rem;
    padding-inline: 1rem;
}

body > nav ul:first-of-type{
    justify-content: flex-end;
    font-size: .8em;
}

body > nav ul li{
    display: flex;
}

@media screen and (min-width: 768px) {
    body > nav{
        flex-direction: row-reverse;
        justify-content: space-between;
    }
    body > nav ul:first-of-type{
        justify-content: flex-end;
        font-size: inherit;
    }
}


body > header > *{
    color: #ffffffd6;
    padding: 0 1rem;
    display: block;
}

body > header h1{
    font-size: 2rem;
    line-height: 1;
}
body > header span{
    font-size: .8em;
}


body > section {
    display: flex;
    flex-flow: row wrap;
    gap: 3rem 2rem;
}

body > section div {
    padding: 2rem;
    flex: 1 1 30rem;
    background: #00000070;
    border-radius: 0.25rem;
    border-top-left-radius: 2rem;
    position: relative;
    color: #f1f8ff;
}

body > section div:first-of-type, body > section div:last-of-type {
    min-width: 100%;
}

body > section div h3{
    display: inline-block;
    background: #3c2f47f2;
    color: white;
    font-size: 2rem;
    line-height: 1;
    padding: 0.5rem 2rem;
    position: absolute;
    top: -1rem;
    left: 1.5rem;
}

body > section p + label{
    color: gray;
    text-decoration: underline;
 }

 body > section div p + label ~ p{
    display: none;
 }

 body > article {
    display: flex;
    flex-direction: column;
    gap: 2rem;
 }

 body > ul {
    display: flex;
    gap: 2rem;
    padding: 2rem !important;
    justify-content: center;
    background-color: #00ff7b0a;
 }

 @media screen and (min-width: 768px) {
    body > ul.scrollable {
        display: grid;
        grid-template-columns: repeat( auto-fit, 15rem);
        justify-content: center;
        gap: 2rem;
    }
 }

 body > ul li {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 50%;
    flex: 0 0 min(15rem, 83%);
    aspect-ratio: 1;
    text-align: center;
    justify-content: center;
    background-color: rgb(243 242 241 / 13%);
    color: rgb(205 205 205 / 13%);
    transition: all .2s ease-in-out;
    overflow: hidden;
}

@supports (hover){
    body > ul li:hover {
        scale: 1.1;
    }
}

body > ul li img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body > ul li a {
    text-decoration: none;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #00000070;
    color: white;
    transition: all .2s ease-in-out .15s;
}

body > ul li a {
    color: orange;
    background-color: #000000b3;
}

main{
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

main h2{
    font-size: 1.25rem;
    font-weight: 400;
    font-family: monospace;
    letter-spacing: 0;
    color: #000000;
    background-color: #f4edfe;
    padding: 0 1rem;
}

main h2 sub{
    vertical-align: baseline;
    opacity: .5;
    font-weight: 400;
}

main h3{
    font-size: 1.05rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    line-height: 1;
    background-color: #80808017;
    padding: 0.25rem 1rem;
    border-top-left-radius: 2rem;
    color: #b1ffb1;
}
main h3 sup{
    font-size: .7em;
}

main > section > article{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: rgb(28 1 222 / 19%);
    padding: 1rem;
    background-image: linear-gradient(271deg, #372d40, transparent)
}

main > section > article + article{
    margin-top: 2rem;
}

main > section > article > div > div{
    position: relative;
    box-shadow: 0 0 4px 0px #383649;
    border-radius: 0.5rem .5rem 0 0;
    overflow: hidden;
    background-color: #2f2546;
    min-width: min(25rem, 83%);
    max-width: 25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    color: #fff3de;
}

main > section > article > div > div picture{
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

main > section > article > div > div:hover img{
    transform: translate(-50%, -50%) scale(1.2);
}

main > section > article > div > div footer{
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

main > section > article > div > div a, main > section > article > div > div span{
    color: inherit;
    text-transform: lowercase;
}

a.github{
    margin: 0 0 0 auto;
    display: block;
    line-height: 1;
    font-size: .7em;
    color: rgb(161, 159, 157);
    text-decoration: underline;
}

a.no-github{
    text-decoration: line-through;
    cursor: not-allowed;
}

main > section > article > div > div footer span{
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

main > section > article > div > div footer h4{
    padding: 0.25em 0;
    line-height: 1;
    font-size: .7em;
    color: #887d92;
    border-bottom: 1px solid #d3d3d359;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body > footer {
    background: radial-gradient(#3e3e3e, transparent);
    padding: 1rem;
}

body > footer > div {
    max-width: 30rem;
    height: 15rem;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.25rem;
    background: #2a22319e;
    margin: auto;
    color: #fffffff7;
}

body > footer > div header {
    font-size: 1rem;
    color: #00ff7bc2;
}

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

    body > section p + label{
        color: gray;
        text-decoration: underline;
     }
    
     body > section div p + label ~ p{
        display: none;
     }
}