/* variables and some custom assets */
:root {
    --container-margin: 5px;
}

/* defaults */
body {
    background-image: url("../res/assets/bg0-nhal.png");
    font-family: Arial, Helvetica, sans-serif;
}

header {
    text-align: center;
    display: flex;
    justify-content: center;
}

header h1 {
    margin: .3em;
}

a {
    text-decoration: none;
    color: #b80000;
}

a[target="_blank"]::after {
    margin-left: 2px;
    content: url("../res/assets/ext_lnk.svg");
}

a[target="_blank"]:hover {
    text-decoration: underline;
}

.nav-header a:hover {
    text-decoration: underline;
}

.nav-header li {
    display: inline-block;
    margin: .5em;
}

.nav-header ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.container {
    background-image: url("../res/assets/bg1-nhal.png");
    border-style: double;
    border-color: #fa3c3c;
    margin: var(--container-margin);
    color: #af1515;
}

.page-category {
    background-color: #ca4343;
    color: #ffaaaa;
    text-align: center;
}

.page-button {
    text-align: center;
    margin: 5px auto;
}

.page-button a {
    color: #800000;
}

.page-button a:active {
    color: #b03939;
}

.commontable {
    width: 95%;
    margin: 8px auto;
}

.commontable th, td {
    width: 50%;
    border: 1px solid;
    padding: 2px;
}

.entrycollection h4 {
    text-align: center;
    margin: 0px auto;
    padding-top: 5px;
}

/* mobile */
@media (min-width: 375px) {
    .main {
        font-size: 0.7em;
    }

    .page-category {
        border-top-left-radius: 3px;
        border-top-right-radius: 3px;
    }

    .nav-header {
        width: 100%;
    }
}

/* desktop */
@media (min-width: 780px) {
    @keyframes tilt-loop {
        from    { transform: rotate(3deg); }
        to      { transform: rotate(-3deg); }
    }

    .main {
        display: flex;
        justify-content: center;
        font-size: 1em;
    }

    .content {
        width: 780px;
        height: 480px;
        display: inline-block;
    }

    .navbar {
        width: 200px;
    }

    .page-category {
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        width: 180px;
    }

    .page-button {
        width: 180px;
    }

    .page-button:hover {
        animation-name: tilt-loop;
        animation-duration: 1s;
        animation-iteration-count: infinite;
        animation-direction: alternate;
    }

    .page-button a:hover {
        color: #c00000;
        font-style: italic;
    }

    .entrycollection {
        width: 720px;
    }

    .nav-header {
        width: 720px;
    }
}
