/* CORE */

body {
    margin: 0px;
    padding: 0px;
}

p {
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: "Bangers", system-ui;
    font-weight: 400;
    font-style: normal;
}

h3 {
    color: white;
    font-size: 2.2rem;
    text-align: center;
    margin: 4px 0px;
}

h4 {
    color: white;
    font-size: 1.6rem;
    text-align: center;
    margin: 4px 0px;
}

/* SPLASH COVER */

.splash-screen {
    display: grid;
    place-items: center;
    width: 100%;
    margin: 0;
    min-height: 100vh;
    height: 100dvh;
    background-color: black;
    background-position: center center;
    background-size: cover;
    border: 5px solid black;
    box-sizing: border-box;
}

/* BASE - PORTRAIT PHONE */

.splash-screen {
    min-height: 92vh;
    height: 92dvh;
    position: relative;
}

body.debug .splash-screen::after {
    content: "Base (min-width: 0px)";
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    color: black;
    opacity: 1;
    background-color: white;
    padding: 5px 10px;
    border-radius: 5px;
    pointer-events: none;
    z-index: 999;
}

/* 600px */

@media (min-width: 600px) {
    .splash-screen {
        min-height: 92vh;
        height: 92dvh;
    }

    body.debug .splash-screen::after {
        content: "(min-width: 600px)";
    }
}

/* 800px */

@media (min-width: 800px) {
    .splash-screen {
        min-height: 92vh;
        height: 92dvh;
    }
    
    body.debug .splash-screen::after {
        content: "(min-width: 800px)";
    }
}

/* 1000px */

@media (min-width: 1000px) {
    .splash-screen {
        min-height: 95vh;
        height: 95dvh;
    }
    
    body.debug .splash-screen::after {
        content: "(min-width: 1000px)";
    }
}


/* 1200px */

@media (min-width: 1200px) {
    .splash-screen {
        min-height: 95vh;
        height: 95dvh;
    }

    body.debug .splash-screen::after {
        content: "(min-width: 1200px)";
    }
}

/* 1400px */

@media (min-width: 1400px) {
    .splash-screen {
        min-height: 95vh;
        height: 95dvh;
    }

    body.debug .splash-screen::after {
        content: "(min-width: 1200px)";
    }
}

/* 1600px */

@media (min-width: 1600px) {
    .splash-screen {
        min-height: 95vh;
        height: 95dvh;
    }

    body.debug .splash-screen::after {
        content: "(min-width: 1600px)";
    }
}

/* 2000px */

@media (min-width: 2000px) {
    .splash-screen {
        min-height: 100vh;
        height: 100dvh;
    }

    body.debug .splash-screen::after {
        content: "(min-width: 2000px)";
    }
}

/* SPLASH */

.splash-intro {
    display: grid;
    place-items: center;
    background-color: black;
    text-align: center;
    padding: 20px;
    width: min(80vw, 560px);
    min-height: 30dvh;
    height: auto;
    box-sizing: border-box;
}

.splash-header {
    font-size: calc(1.6rem + 1.2dvw);
    color: #1a83e6;
    margin-top: 0px;
}

.splash-subheader {
    font-size: calc(1.2rem + 1dvw);
    color: #fbc000;
}

.splash-link a {
    font-size: calc(0.8rem + 0.4dvw);
    color: white;
    text-align: center;
    text-decoration: none;
}

/* COMIC PANEL - BANNER STYLE */

.about-section {
    width: 100%;
    padding: 4dvh 0;
    background-color: #e3e3e3;
    background-image: url("https://www.transparenttextures.com/patterns/hexellence.png");
}

.about-comic {
    position: relative;
    max-width: 1800px;
    margin: 0 auto;
    padding: 40px;
}

/* MAIN YELLOW BANNER */
.comic-body {
    background: linear-gradient(135deg, #ffd800 0%, #ffb800 100%);
    border: 4px solid black;
    padding: 50px 40px;
    border-radius: 6px;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.6);
    text-align: center;
}

.comic-body p {
    color: #1f1f1f;
    max-width: 70ch;
    margin: 0 auto;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.7;
}

/* UPPER LEFT TITLE */

.comic-title {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    color: #7a0000;
    font-family: "Bangers", system-ui;
    padding: 8px 18px;
    font-size: 2.0rem;
    border: 3px solid black;
    transform: skewX(-12deg);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.6);
    letter-spacing: 0.08em;
}

/* Un-skew text */

.comic-title {
    transform-origin: left;
}

.comic-title span {
    display: inline-block;
    transform: skewX(12deg);
}

/* LOWER RIGHT NAME */
.comic-credit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #e6e6e6;
    color: #7a0000;
    font-family: "Bangers", system-ui;
    padding: 6px 18px;
    font-size: 1.8rem;
    border: 3px solid black;
    transform: skewX(-12deg);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.6);
    letter-spacing: 0.08em;
}

/* MOBILE PADDING */
@media (max-width: 599px) {
    .about-comic {
        padding: 20px;
    }
}

/* LARGE SCREENS MAX 50% */

@media (min-width: 600px) {
    .about-comic {
        max-width: 50%;
    }
}

@media (min-width: 1200px) {
    .about-comic {
        max-width: 50%;
    }
}

/* GAME - PAGE */

.games-section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 4dvh 0;
    background-color: #e3e3e3;
    background-image: url("https://www.transparenttextures.com/patterns/hexellence.png");
}

.games-section h2 {
    font-size: 2.6rem;
    line-height: 2.4rem;
    text-align: center;
    margin: 0px;
    color: #246dd2;
}

/* ALL CARDS */

.active-games > *,
.future-games > *,
.worldbuilding > *,
.platforms > * {
    min-width: 0;
}

.game-container {
    background-color: black;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 350px;
}

.game-subcontainer h3,
.game-subcontainer h4 {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;

    line-height: 1.1;
    min-height: 2.6rem;   /* one title row */
    margin: 4px 0;
}

.game-container,
.worldbuilding .container,
.platforms .container {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 20px;
    text-align: center;
    width: 100%;
}

.worldbuilding .container,
.platforms .container {
    border-radius: 15px;
    padding: 30px;
}

.worldbuilding .container {
    min-height: 325px;
}

.platforms .container {
    min-height: 275px;
}

@media (max-width: 600px) {
    .game-container,
    :is(.worldbuilding, .platforms) .container {
        margin: 20px 0;
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .game-container {
        padding: 10px;
    }
}

/* SUB-CARDS / SUB-CONTAINERS */

.game-container .game-subcontainer {
    border: 2px solid white;
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-subcontainer p {
    background-color: white;
    color: black;
    opacity: .7;
    border-radius: 5px;
    padding: 10px;
    min-height: 75px;
    margin: 0;
    margin-top: auto; 
    margin-bottom: 8px;
}

/* ALL BUTTON FOOTERS */

.game-buttons {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* ALL BUTTONS */

.primary-button,
.secondary-button,
.other-button {
    border-radius: 4px;
    box-shadow: 4px 4px 6px 1px RGBA(0,0,0,0.8);
    display: inline-block;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 2px;
    max-width: 200px;
    min-width: 200px;
    padding: 6px 12px;
    text-align: center;
    transition: all 0.2s;
    white-space: nowrap;
}

.other-button {
    display: block;
    margin-left: 40px;
    margin-right: 40px;
}

/* THEMING - BUTTON THEMING */

.primary-button, .secondary-button, .other-button {
    background-color: silver;
}

.primary-button {
    background-color: #444444;
    color: silver;
}

.secondary-button {
    background-color: #1a5bb5;
    color: silver;
}

:is(.primary-button, .secondary-button, .other-button):hover {
    filter:brightness(0.8) saturate(1.1);
    box-shadow: 3px 3px 3px 1px RGBA(0,0,0,0.9);
    transition: all 0.2s;
}

/* THEMING - WORLDBUILDING & PLATFORMS */

/* FLAG CSS SELECTOR NESTING / FIREFOX / SOME MOBILE */

:is(.worldbuilding, .platforms) .container p {
    margin-top: 4px;
    margin-bottom: 12px;
}

/* FLAG CSS SELECTOR NESTING / FIREFOX / SOME MOBILE */

:is(.worldbuilding, .platforms) .container.darkred {
    background-color: #640c00;
}

:is(.worldbuilding, .platforms) .container.darkred h3,
:is(.worldbuilding, .platforms) .container.darkred p {
    color: white;
}

:is(.worldbuilding, .platforms) .container.darkred .other-button {
    background-color: #961c0c;
    color: white;
}

/* FLAG CSS SELECTOR NESTING / FIREFOX / SOME MOBILE */

:is(.worldbuilding, .platforms) .container.gold {
    background-color: #d1a754;
}

:is(.worldbuilding, .platforms) .container.gold h3,
:is(.worldbuilding, .platforms) .container.gold p {
    color: black;
}

:is(.worldbuilding, .platforms) .container.gold .other-button {
    background-color: #e8be6c;
    color: black;
}

/* FLAG CSS SELECTOR NESTING / FIREFOX / SOME MOBILE */

:is(.worldbuilding, .platforms) .container.blue {
    background-color: #1a5bb5;
}

:is(.worldbuilding, .platforms) .container.blue h3,
:is(.worldbuilding, .platforms) .container.blue p {
    color: white;
}

:is(.worldbuilding, .platforms) .container.blue .other-button {
    background-color: #0e4086;
    color: white;
}

/* FLAG CSS SELECTOR NESTING / FIREFOX / SOME MOBILE */

:is(.worldbuilding, .platforms) .container.black {
    background-color: #000000;
}

:is(.worldbuilding, .platforms) .container.black h3 {
    color: #d1a754;
}

:is(.worldbuilding, .platforms) .container.black p {
    color: white;
}

:is(.worldbuilding, .platforms) .container.black .other-button {
    background-color: #d1a754;
    color: black;
}


/* BASE & RESPONSIVE BREAKPOINTS */

/* BASE LAYOUT - MOBILE FIRST */

.active-games,
.future-games,
.worldbuilding,
.platforms {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
    max-width: 1800px;
    margin: 0 auto;
}

/* Tablet */
@media (min-width: 600px) {
    .active-games,
    .future-games,
    .worldbuilding,
    .platforms {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
        padding: 4dvh 48px;
    }
}

/* Large tablet / small laptop */

@media (min-width: 1200px) {
    .active-games,
    .future-games,
    .worldbuilding,
    .platforms {
        grid-template-columns: repeat(3, 1fr);
        gap: 72px;
        padding: 4dvh 64px;
    }
}











