/* FONTS */
@font-face {
    font-family: 'Inconsolata';
    src: url('fonts/Inconsolata-VariableFont_wdth,wght.ttf');
    font-weight: 600;
}

@font-face {
    font-family: 'Fira Code';
    src: url('fonts/FiraCode-VariableFont_wght.ttf');
    font-weight: 500;
}


/*##########################################################*/
/*BODY*/
body {
    background: #292a2d;
    font-family: 'Inconsolata', 'Fira Code';
    font-size: 16pt;
    color: #EEE;
    margin: 0em;

    @media (max-width: 48em) {
        font-size: 14pt;
    }
}

/*##########################################################*/
/*HEADER*/
header {
    z-index: 1;
    display: flex;
    position: fixed;
    width: 100%;
    line-height: 3.5em;
    background: #151617;
    box-shadow:  0em 0.16em 0.8em 0em rgba(0,0,0,0.55);
    font-size: 1.2em;

    & a {
        color: inherit;
        text-decoration: none;
    }

    & .title {
        margin-left: 3em;
        font-weight: bold;
        font-size: 1.6em;
        text-shadow: 0em 0em 0.2em rgba(175, 175, 175, 0.5);

        @media (max-width: 48em) {
            margin-left: auto;
            margin-right: auto;
        }
    }

    & .menu {
        margin-left: auto;
        margin-right: 3em;

        & a {
            margin-right: 2em;

            &:last-child {
                margin-right: 0; /* No margin for the last menu item */
            }

            &:hover {
                transform: scale(1.02);
                text-shadow: 0em 0em 1em rgba(175, 175, 175, 0.9);
            }
        }
    }

    & .mobile-menu {
        display: none;
        flex-shrink: 0;

        & summary {
            list-style: none;
            cursor: pointer;
            user-select: none;
        }

        & summary::-webkit-details-marker {
            display: none;
        }
    }

    @media (max-width: 48em) {
        & > .menu {
            display: none;
        }

        & .mobile-menu {
            display: block;
            margin-left: auto;
            margin-right: 2em;
            position: relative;

            & > div {
                position: absolute;
                right: 0;
                top: 100%;
                background: #151617;
                padding: 0.5em 1em;
                box-shadow: 0em 0.16em 0.8em 0em rgba(0,0,0,0.55);

                & a {
                    display: block;
                    white-space: nowrap;
                }
            }
        }
    }
}

/*##########################################################*/
/*IMG*/
img {
    max-width: 100%;
    margin: auto;

    &.center-fit {
        max-height: 100vh;
    }

    &.shadow{
        box-shadow: 0em 0.16em 0.8em 0em rgba(0,0,0,0.55);
    }
}

a {
    text-decoration: none;
    color: #8e2b3d;
}

/*##########################################################*/
/* content */
.banner {
    width: 100%;
    aspect-ratio: 5.7 / 1;
    overflow: hidden;

    & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    @media (max-width: 48em) {
        aspect-ratio: 2 / 1;
        object-fit: cover;
        object-position: center;
    }
}

.content {
    display: block;
    padding-top: 5.5em;
    margin: 0 auto;
    width: 60%;

    &.no-header-offset {
        padding-top: 1em;
    }

    @media (max-width: 48em) {
        width: 85%;
    }

    & h1 {
        font-size: 1.8em;

        @media (max-width: 48em) {
            font-size: 1.6em;
        }
    }
}

/*##########################################################*/
/*ARTICLE*/
article {
    padding: 1em 0em;
    border-bottom: .15em dashed #505050;

    & img {
        width: 20em;
        height: 10em;
        object-fit: cover;
        object-position: 0% 20%;
        transition: transform 0.15s ease;

        &:hover {
            transform: scale(1.02);
            box-shadow: 0em 0.16em 0.8em 0em rgba(0,0,0,0.55);
        }
    }

    & h1 {
        color:#c21734;
    }

    & .publish-date {
        opacity: 0.5;
        margin-bottom: 0.5em;
    }

    & .readmore {
        margin-top: 0.5em;
    }
}

/*##########################################################*/
/*Image*/
.thumbnail {
    cursor: pointer;
}

.image_view {
    display: none;

    & img {
        max-width: 80%;
        max-height: 80%;
    }

    & a {
        position: absolute;
        top: 20px;
        right: 35px;
        color: #fff;
        font-size: 40px;
        font-weight: bold;

        &:hover, &:focus {
            color: #bbb;
        }
    }

    &:target {
        display: flex;
        position: fixed;
        inset: 0px 0px 0px 0px;
        justify-content: center;
        align-items: center;
        z-index: 1;
        background-color: rgba(0, 0, 0, 0.8);
    }
}

/*##########################################################*/
/*TTRPG*/
.ttrpg {
    text-align: center;

    & img {
        width: 30em;
        height: 15em;

        &:hover{
            transform: scale(1.02);
            box-shadow: 0em 0.16em 0.8em 0em rgba(0,0,0,0.55);
        }
    }

    & h2 {
        color: #a80000;
    }

    & div:has(a img) {
        justify-content: center;
    }

    & .grafana {
        width: 100%;

        & iframe {
            display: block;
            width: 100%;
            aspect-ratio: 2 / 1;
            border: 0;
        }
    }
}

/*##########################################################*/
/*FOOTER*/
footer {
    position: relative;
    width: 100%;
    bottom: 0;

    opacity: 0.5;
    text-align: center;
}

.center {
    margin: auto;
}

.welcome {
    text-align: center;
}

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