body {
    background-image: url("background.avif");
    background-size: cover;
    background-attachment: fixed;
    font-family: "Jetbrains Mono", monospace;
    color: rgb(255, 255, 255);
    height: 100vh;
}

a {
    color: #9be4f0;
}

tr {
    > td:first-child {
        text-align: right;
        border-width: 0 5px 0 0;
        border-color: transparent;
        border-style: solid;
    }
}

.padded {
    padding: 10px;
}

.button-row {
    display: flex;
}

.button {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    border: 1px #565b96 solid;
    background-color: #7078c4;
    border-radius: 5px;
    margin: 5px 5px;
    padding: 5px 20px;
    transition:
        0.05s,
        background-color 0.25s,
        border-color 0.25s;

    img {
        width: 22px;
        height: 22px;
    }
}

.button:hover {
    border-color: #3846db;
    background-color: #6571e0;
    transition:
        0.05s,
        border-color 0s,
        background-color 0s;
}

.button:active {
    transform: translate(0px, 2px);
}

.wrapper {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.col1 {
    flex: 1;
}

.col2 {
    flex: 2;
}

.half-wrapper {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.icon-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.icon-text-col1 {
    display: flex;
    justify-content: center;

    > img, > video, > a > img {
        display: block;
        margin: auto;
        max-height: 396px;
        width: auto;
        max-width: 100%;
        justify-self: unset;
    }
}

@container window-content (width >= 500px) {
    .icon-text-wrapper {
        flex-direction: row;
        justify-content: center;

        .icon-text-col1 {
            display: flex;
            flex: 1;
            justify-content: center;
            > img, > video, > a > img {
                height: auto;
                width: auto;
            }
        }

        .icon-text-col2 {
            flex: 2;
        }
    }
}

.image-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-text-col1 {
    display: flex;
    justify-content: center;

    > img, > a > img {
        max-height: 396px;
        justify-self: unset;
        max-width: 100%;
    }
}

@container window-content (width >= 900px) {
    .image-text-wrapper {
        flex-direction: row;
        justify-content: center;

        .icon-text-col1 {
            display: flex;
            flex: 2;
            justify-content: center;
            > img, > video, > a > img {
                width: 100%;
                height: auto;
            }
        }

        .image-text-col2 {
            flex: 1;
        }
    }
}

.sidebar-links {
    columns: 2 400px;
}

.sidebar-interests {
    columns: 6 150px;
}

.box {
    border: 1px #3a3f63 solid;
    border-radius: 5px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    background-color: #4f5483;
    box-shadow: 0px 0px 10px 0px #00000080;
}

.window-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-bottom: 5px;
    img {
        width: 22px;
        height: 22px;
    }
    span {
        flex-grow: 1;
        text-align: center;
    }
}
.window-bar button:last-child {
    filter: invert(1);
    width: 22px;
    height: 22px;
    border-width: 0;
    background-color: transparent;
    background-image: url("./icons/actions/22/go-up.svg");
    padding: 0;
}
.window-bar button:last-child:hover {
    border-radius: 100%;
    background-color: white;
    filter: invert(0);
}

.window-content {
    border: 1px #3a3f63 solid;
    padding: 10px;
    flex-grow: 1;
    background-color: #6169a5;
    container-type: inline-size;
    container-name: window-content;
    > video, > img, > a > img {
        width: auto;
        max-height: 200px;
    }
}

.centered {
    display: flex;
    justify-content: center;
}

@media screen and (width >=800px) {
    .wrapper {
        flex-direction: row;
    }

    .half-wrapper {
        flex-direction: row;
    }

    .half-col1 {
        flex: 1;
    }

    .half-col2 {
        flex: 1;
    }
}

.nav-wrapper {
    display: flex;
    gap: 10px;
    flex-direction: column;
}
.nav-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    order: 1;
}
.nav-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    order: 2;
}

@media screen and (width >=1300px) {
    .nav-wrapper {
        flex-direction: row;
    }

    .nav-sidebar {
        flex: 1;
        order: unset;
    }

    .nav-content {
        flex: 3;
        order: unset;
    }

    .window-content {
        > video, > img, > a > img {
            width: 100%;
            max-height: none;
        }
    }
}