@font-face {
    font-family: MarioParty;
    src: url(/assets/Mario-Party-Hudson-Font.ttf);
}

* {
    font-family: "Ubuntu", sans-serif !important;
    box-sizing: border-box !important;
}

a,
a:visited,
h1,
h2,
h3,
ul,
li {
    color: white !important;
}

body:has(.all_black) {
    background: #cf112c !important;
}

body:has(.all_black) #header {
    background: #211c15 !important;
}

#header {
    display: block;
    width: 100%;
    width: 100vw;
    height: 5em;
    position: absolute;
    top: 0;
    left: 0;
    border-bottom: 4px solid #dedede;
    padding-top: 20px;
    background: #181818;
    text-align: right;
}
#header * {
    font-size: 24px;
    color: white;
    padding: 0em 0.75em;
    font-weight: 400;
    display: -moz-inline-block;
    display: inline-block;
    text-decoration: none;
    list-style-type: none !important;
    border: none !important;
}
#header li small {
    font-size: 12px !important;
}
#header ul {
    width: 100%;
    position: absolute;
    right: 1em;
    bottom: calc(50% - 0.7em);
    padding: 0px !important;
    margin: 0px !important;
    vertical-align: middle;
}

#header li {
    width: auto !important;
    vertical-align: middle;
}
#header a {
    border-bottom: 3px solid transparent !important;
    transition: 0.25s;
}
#header a:hover {
    border-bottom: 3px solid white !important;
    transition: 0.25s;
}
@keyframes borderfade {
    0% {
        border-bottom: 3px solid transparent !important;
    }
    100% {
        border-bottom: 3px solid white !important;
    }
}

#header .logo {
    position: absolute;
    width: 4.5em;
    left: 0em;
    bottom: calc(50% - 0.7em);
}

#header .logo img {
    width: 100%;
}

.content {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    margin: 100px auto;
    color: white;
    font-size: 110%;
}

.content:has(img[alt="Comic"]),
.content:has(.gm4html5_div_class) {
    width: 30%;
}

.content:has(img[alt="Comic"].wide_shot) {
    width: 50%;
}

.content img:not(.logo) {
    width: 100%;
}

.bites,
.mainissues {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-auto-rows: 74px;
    max-width: 740px;
}

.bites.recent {
    padding-top: 128px;
    position: relative;
}

.bites.recent .preview:first-child {
    margin-right: 25px;
    clear: both;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.bites.recent .preview:first-child img {
    width: 128px !important;
    height: 128px !important;
    filter: blur(1px);
}

.bites.recent .preview:first-child .number {
    font-size: 2em;
}

.preview {
    display: inline-block;
    position: relative;
    overflow: visible;
    margin: auto 5px 25px 5px;
}

.preview a {
    z-index: 998;
}

.preview:not(:first-child) img {
    max-width: 64px;
    max-height: 64px;
}

.mainissues .preview img {
    width: 128px;
    height: 170px;
}

.preview .number {
    font-family: "MarioParty" !important;
    position: absolute;
    color: orangered;
    top: 0.05em;
    right: 0.05em;
    text-shadow:
        -0.1em -0.1em 0 black,
        0.1em -0.1em 0 black,
        -0.1em 0.1em 0 black,
        0.1em 0.1em 0 black;
    font-size: 1.5em;
    z-index: 999;
    pointer-events: none !important;
}

.preview .number.big {
    font-size: 4em !important;
}

nav {
    display: block;
    clear: both;
}

nav .btn {
    background: #111;
    padding: 0.5em;
    margin: 0.5em;
    border-radius: 5px;
    text-decoration: none;
}

nav .btn.disabled {
    opacity: 0.5;
}

nav .back {
    float: left;
}

nav .next {
    float: right;
}

@media only screen and (orientation: portrait) {
    #header {
        height: 7vh;
    }
    #header * {
        font-size: 4vw !important;
    }

    #header .logo {
        display: block;
        bottom: 50%;
        transform: translate(0, 50%);
    }

    #header .logo img {
        width: 14vw !important;
    }

    .content {
        width: 100vw !important;
        display: block;
        position: relative;
        margin: 10vh auto;
        color: white;
        font-size: 90%;
    }
    .btn {
        font-size: 4vw !important;
    }
}

@supports (-webkit-text-stroke: 0.1em black) {
    .preview .number {
        text-shadow: none !important;
        -webkit-text-stroke: 0.05em black;
    }
}

@supports (-webkit-background-clip: text) {
    .preview .number {
        background: -webkit-linear-gradient(orangered, darkred);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

div.gm4html5_div_class,
div.mike_game {
    margin: 0px;
    padding: 0px;
    border: 0px;
    height: auto;
}
div.gm4html5_div_class canvas,
div.mike_game canvas {
    width: 100%;
}
