* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    color: auto;
    background-color: #00000060;
}

body {
    background-color: #000000;
    color: white;
    font-family: sans-serif;
    font-size: 1.1em;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    --blur: 8px;
}

.wrapper {
    display: block;
    max-width: 750px;
    margin: 50px auto;
}

img {
    width: 30px;
    vertical-align: middle;
}

header, section {
    padding: 30px;
    background-color: #48538e98;
    border: 3px solid #ffffff20;
    border-radius: 8px;
    margin: 30px 0;
    backdrop-filter: blur(var(--blur));
    box-shadow: 0px 4px 10px 1px #00000050;
}

header {
    display: grid;
    grid-gap: 20px;
}

header .bottom {
    display: grid;
    grid-gap: 20px;
}

header .top {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

header .head {
    display: flex;
    gap: 20px;
    align-items: center;
}

header .head img {
    border-radius: 50%;
    width: 65px;
}

header .top .icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
}

section .part {
    margin-top: 20px;
}

section h1 {
    text-align: center;
}

h1 {
    font-size: 2em;
}
h2 {
    font-size: 1.25em;
}

label {
    user-select: none;
}

.bio h3 {
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 3px solid #5a649d;
    box-sizing: border-box;
}

p {
    line-height: 150%;
}

a {
    color: inherit;
    text-underline-offset: 3px;
}
a:hover {
    text-decoration: none;
}

label:has(input[type="checkbox"]) {
    display: flex;
    justify-content: center;
    gap: 10px;
    vertical-align: middle;
    accent-color: #48538e98;
}
input[type="checkbox"] {
    transform: scale(1.4);
    vertical-align: middle;
}

header .head h2 {
    font-size: 1.4em;
    font-weight: normal;
    font-family: monospace;
}

header .bottom .compatible-roles {
    padding: 20px;
    background-color: #30375b;
    border: 1px solid #ffffff30;
    font-family: monospace;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

header .bottom p {
    text-align: center;
}

header .bottom .flexed {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.icons a {
    transition: 0.2s;
}
.icons a:hover {
    transform: scale(1.1);
}
.icons a:has([alt="Telegram"]):hover img {
    filter: brightness(0) saturate(100%) invert(43%) sepia(81%) saturate(2265%) hue-rotate(176deg) brightness(108%) contrast(102%);
}
.icons a:has([alt="Twitch"]):hover img {
    filter: brightness(0) saturate(100%) invert(48%) sepia(72%) saturate(672%) hue-rotate(215deg) brightness(100%) contrast(103%);
}
.icons a:has([alt="Discord"]):hover img {
    filter: brightness(0) saturate(100%) invert(56%) sepia(22%) saturate(1007%) hue-rotate(189deg) brightness(93%) contrast(90%);
}

.billion-idea {
    color: gold;
    font-weight: bold;
}

ul {
    margin-left: 20px;
}
ul li {
    margin: 5px 0;
}

.looking-for-work {
    background-color: #488e5a98;
}
.looking-for-work h2 {
    margin-bottom: 20px;
}

.projects h1 {
    text-align: center;
}

.project-banner {
    padding: 30px;
    border: 3px solid #ffffff20;
    border-radius: 8px;
    margin: 30px 0;
    backdrop-filter: blur(var(--blur));
    box-shadow: 0px 4px 10px 1px #00000050;
}

.project-banner h1 {
    display: flex;
    gap: 15px;
    align-items: center;
    text-align: left;
    font-size: 1.7em;
    margin-bottom: 20px;
}
.project-banner h1 img {
    vertical-align: middle;
    border-radius: 50%;
    width: 50px;
    border: 4px solid #ffffff20;
}

.link-button {
    text-align: right;
    margin-top: 20px;
}
.link-button a {
    display: inline-block;
    font-weight: bold;
    font-size: 1.1em;
    opacity: 0.9;
    transition: 0.3s;
}
.link-button a:hover {
    opacity: 1;
    transform: translate(10px, 0);
}

footer p {
    text-align: center;
}

@media only screen and (max-width: 600px) {
    .wrapper {
        width: auto;
        margin: 0;
        margin-bottom: 20px;
    }

    header, section, .project-banner {
        width: calc(100% -20px);
        margin: 20px;
    }

    header .top {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        padding: 0;
    }

    header .top .icons {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    header .head {
        box-sizing: border-box;
    }

    header .bottom .flexed {
        flex-direction: column;
        gap: 10px;
        box-sizing: border-box;
    }

    h1, h2, h3, p {
        width: 100%;
    }

    .project-banner h1 {
        font-size: clamp(2px, 1.7em, 6vw);
    }

    .link-button {
        text-align: center;
    }

    .looking-for-work li > img {
        display: none;
    }
}