html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    background-color: #000;
    background-image: url('../img/bg.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: #fff;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    text-shadow: 1px 1px 2px #0004;
    font-size: 11pt;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

main {
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 16px;
    margin: auto;
    background-color: #fff2;
    border-radius: 8px;
    box-shadow: 5px 5px 20px #0002;
    border: 1px solid #fff3;
    box-sizing: border-box;
}

code {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

a {
    color: #fff;
}

a:hover,
.github-links a:hover > img {
    opacity: 80%;
}

a:active,
.github-links a:active > img {
    opacity: 70%;
}

hr {
    border: none;
    border-top: 1px solid #fff5;
    width: 100%;
}

.logo {
    height: 160px;
    margin: 0 0 -24px 0;
}

.github-links {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 2em 0 16px 0;
}

.github-links a {
    display: block;
    text-decoration: none;
}

.github-links img {
    filter: drop-shadow(1px 1px 2px #0004);
    height: 64px;
}

@media (max-width: 1024px) {
    body {
        font-size: 10pt;
    }

    .logo {
        height: 140px;
    }

    main {
        max-width: 90%;
        padding: 20px;
    }
}

@media (max-width: 832px) {
    main {
        border-radius: 8px;
        border-left: 1px solid #fff3;
        border-right: 1px solid #fff3;
        padding: 16px;
    }

    .logo {
        height: 120px;
        margin: 0 0 -16px 0;
    }

    .github-links {
        flex-direction: column;
        align-items: center;
    }

    .github-links img {
        height: 48px;
        margin: 8px 0;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 9pt;
    }

    main {
        padding: 8px;
        width: 100%;
        margin: 16px;
        max-width: calc(100% - 32px);
    }

    .logo {
        height: 100px;
    }

    .github-links img {
        height: 40px;
    }
}
