* {
    transition: all 0.125s ease;
}

body[data-theme="light"] {
    background: url("bglight.png") no-repeat center fixed;
    background-size: cover;
    color: hsl(240, 100%, 5%);

    main {
        background-color: rgba(255, 255, 255, 0.5);
        border: 1px solid hsl(240, 1%, 85%);
        backdrop-filter: blur(15px);
    }

    a {
        color: hsl(240, 100%, 5%);

        .icon {
            filter: brightness(0);
        }
    }

    .e {
        background-color: hsl(0, 0%, 90%);
        border: 1px solid hsl(240, 1%, 85%);
    }

    .switch {
        background-color: #fff;
        border: 1px solid hsl(0, 0%, 95%);
    }
}

body[data-theme="dark"] {
    background: url("bgdark.png") no-repeat center fixed;
    background-size: cover;
    color: hsl(240, 100%, 95%);

    main {
        background-color: rgb(0, 0, 0, 0.5);
        border: 1px solid hsl(240, 1%, 15%);
        backdrop-filter: blur(15px);
    }

    a {
        color: hsl(240, 100%, 95%);

        .icon {
            filter: brightness(0) invert(1);
        }
    }

    .e {
        background-color: hsl(0, 0%, 10%);
        border: 1px solid hsl(240, 1%, 15%);
    }

    .switch {
        background-color: #000;
        border: 1px solid hsl(0, 0%, 5%);
    }
}

body {
    font-family: Arial;
    text-align: center;
    justify-items: center;
}

main {
    padding: 1em;
    border-radius: 1em;
    width: fit-content;
    max-width: calc(100vw - 4em);
}

.about {
    max-width: 600px;
    margin: auto;
    text-align: left;
}

a {
    text-decoration: none;
}

.console {
    background-color: hsl(195, 5%, 15%);
    font-family: monospace;
    padding: 1em;
    border: 1px solid hsl(195, 5%, 30%);
    color: white;
    border-radius: 1em;
    width: fit-content;
    max-width: calc(100% - 2em);
    overflow-x: auto;
    text-align: left;
    margin: auto;
}

pre {
    margin: 0;
}

.flexrow {
    display: flex;
    flex-direction: row;
    gap: 1em;
}

.bi {
    color: #3daee9;
    font-weight: 750;
}

.ci {
    color: #16a085;
    font-weight: 750;
}

.gi {
    color: #1cdc9a;
    font-weight: 750;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1em;
    width: 100%;
}

.e {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    word-break: break-word;
    gap: 1em;
    padding: 1em;
    border-radius: 1em;
}

.e img {
    width: 100%;
    max-width: 500px;
    border-radius: 0.5em;
    box-shadow: 0 0 0.5em black;
}

.t {
    font-size: 2em;
    font-weight: 1000;
}

.o {
    opacity: 50%;
}

#switch {
    background: none;
    border: none;
    width: 100%;
    height: 100%;
    padding: 0;
    font-size: 2rem;
}

.switch {
    position: fixed;
    bottom: 1em;
    right: 1em;
    aspect-ratio: 1;
    width: 3rem;
    border-radius: 50%;
}