:root {
    /* Background Colors: */
    --background-color: #000000;
    --header-background-color: #000000;
    --content-background-color: #000000;
    --sidebar-header-background-color: #000000;
    --sidebar-background-color: #000000;
    --footer-background-color: #000000;
    --box-shadow-color: #12173d;

    /* Text Colors: */
    --text-color: #ffffff;
    --sidebar-text-color: #ffffff;
    --link-color: orange;
    --link-color-hover: orangered;

    /* Text: */
    --font: "PixelMPlus12Reg";
    --header-font: "RomanceA";
    --header-font-two: "Yoster";
    --font-size: 18px;

    /* Other Settings: */
    --margin: 0 auto;
    --padding: 30px;
    --border: 2px solid #ffffff;
    --round-borders: 0px;
    --sidebar-width: 220px;
}

@font-face {
    font-family: "PixelMPlus12Reg";
    src: url("/fonts/PixelMplus10-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PixelMPlus12Bold";
    src: url("/fonts/PixelMplus10-Bold.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

/* From https://www.asterism-m.com/font/ */
@font-face {
    font-family: "RomanceA";
    src: url("/fonts/RomanceA.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

/* From https://www.1001fonts.com/users/codeman38/ */
@font-face {
    font-family: "Yoster";
    src: url("/fonts/Yoster.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

/*
* {
  cursor: url("/images/cranknight/SmallKnight.gif"), auto;
}*/

html {
    background-color: var(--background-color);
    background-image: url("/images/cranknight/WeaponPatternDark.png");
    background-repeat: repeat;
    background-attachment: fixed;
    image-rendering: pixelated;
    cursor: url("/images/cranknight/sword-1.png"), auto;
    image-rendering: -moz-crisp-edges;
    /* Firefox support */
    image-rendering: crisp-edges;
    /* Older browser support */
}

#container {
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: var(--font-size);
    color: var(--text-color);
    padding: var(--padding);
    margin: var(--margin);
    max-width: 1200px;
    background: orange;
}

/* These are the flex rows that make up the content below header and above footer */
#middle-container {
    display: flex;
    flex-direction: row;
    position: relative;
}

.flex-container {
    display: flex;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-row-wrap {
    display: flex;
    flex-flow: row wrap;
}

.align-center {
    text-align: center;
}

.fill-space {
    justify-content: space-between;
}

a:link,
a:visited {
    color: var(--link-color);
}

a:hover,
a:active {
    color: var(--link-color-hover);
}

ul {
    list-style: url("images/cranknight/SnailLower.gif") auto;
}

#play-list {
    list-style: url("images/cranknight/play.png") auto;
}

.gameplay-button-container>ul {
    list-style: url("images/cranknight/Snail.gif") auto;
    list-style-position: inside;
}

.gameplay-button {
    text-align: left;
    width: 80%;
    margin: 2px;
    border: var(--border);
    border-radius: var(--round-borders);
    background: orange;
    padding: 15px;
    font-family: var(--font);
    font-size: var(--font-size);
    color: var(--text-color);
}

.gameplay-button:hover {
    background: orangered;
}

.weapon-button-container {
    margin-top: 10px;
    display: flex;
    justify-content: space-evenly;
}

.weaponbutton {
    border: var(--border);
    border-radius: var(--round-borders);
    background: orange;
    padding-top: 5px;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    font-family: var(--font);
    font-size: var(--font-size);
    color: var(--text-color);
}

.enemybutton-container {
    margin: 10px;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}

.enemybutton {
    height: 70px;
    width: 70px;
    margin: 2px;
    border: var(--border);
    border-radius: var(--round-borders);
    background: orange;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    font-family: var(--font);
    font-size: var(--font-size);
    color: var(--text-color);
    padding: 0px;
}

.weaponbutton:hover,
.enemybutton:hover {
    background: orangered;
}

::selection {
    /* (Text highlighted by the user) */
    background: rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none;
}

.stats-container {
    display: flex;
    flex-direction: column;
    background: black;
}

.specific-stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-left: 10px;
    padding-right: 10px;
}

.specific-stat > img {
    height: 32px;
}

#monster-summary {
    border: var(--border);
    border-radius: var(--round-borders);
    background: orange;
    padding: 15px;
}

#monster-preview-container {
    position: relative;
    left: 0px;
    padding: 20px;
    margin: 20px;
    height: 200px;
}

#monster-preview {
    height: 100%;
}

#room-image {
    height: 186px;
    border: var(--border);
    border-radius: var(--round-borders);
}

/* -------------------------------------------------------- */
/* HEADER */
/* -------------------------------------------------------- */

#header-container {
    height: fit-content !important;
    justify-content: center;
    margin: auto;
}

#header-container>a>img {
    object-fit: cover;
    margin-top: auto;
    margin-bottom: auto;
    height: 232px;
}

header {
    border: var(--border);
    border-radius: var(--round-borders);
    /*border-image: url("/images/medievalborder.png") 10 round;*/
    background: var(--header-background-color);
    /*box-shadow: 4px 4px var(--box-shadow-color);*/
}

h1 {
    text-align: center;
    font-size: 4em;
    font-family: var(--header-font);
    padding: 0px;
    margin: 10px;
}

h2 {
    font-family: var(--header-font-two);
}

/* -------------------------------------------------------- */
/* SIDEBARS */
/* -------------------------------------------------------- */

.sidebar {
    background: var(--sidebar-background-color);
    padding: var(--padding);
    color: var(--sidebar-text-color);
    width: var(--sidebar-width);
    margin-top: 10px;
    /*box-shadow: 4px 4px var(--box-shadow-color);*/
    border: var(--border);
    border-radius: var(--round-borders);
    /*border-image: url("/images/medievalborder.png") 10 round;*/
    max-height: 350px;
    overflow: auto;
}

.sidebar>.sidebar-heading {
    border: var(--border);
    text-align: center;
    padding: 10px;
    margin: 0px;
    font-size: 1.5em;
    background-color: var(--sidebar-header-background-color);
    color: #ffffff;
    font-family: var(--header-font-two);
}

/* -------------------------------------------------------- */
/* CONTENT */
/* -------------------------------------------------------- */

.main-content {
    flex-grow: 1;
    padding: var(--padding);
    background: var(--content-background-color);
    margin-top: 10px;
    margin-left: 10px;
    border: var(--border);
    border-radius: var(--round-borders);
    position: relative;
}

#playdate-container {
    position: relative;
    text-align: center;
    height: 504px;
}

#playdate {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}

#gameplaygif {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*
#gameplaygif:hover {
    -webkit-transform:scale(2);
    transform:scale(2);
}
*/

.youtube {
    background: var(--content-background-color);
    border: var(--border);
    border-radius: var(--round-borders);
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.store-badge {
    height: 100px;
    margin: 2px;
    border: var(--border);
    border-radius: var(--round-borders);
    background: orange;
    padding: 15px;
    display: inline-block;
}

.store-badge:hover {
    background: orangered;
}

.store-badge>img {
    height: 98px;
}

/* -------------------------------------------------------- */
/* FOOTER */
/* -------------------------------------------------------- */

footer {
    display: flex;
    justify-content: center;
    border: var(--border);
    border-radius: var(--round-borders);
    /*border-image: url("/images/medievalborder.png") 10 round;*/
    padding: var(--padding);
    background: var(--footer-background-color);
    margin-top: 10px;
    overflow: hidden;
    font-size: 0.9em;
    /*box-shadow: 4px 4px var(--box-shadow-color);*/
}

/* Trying to get mobile working */
@media only screen and (max-width: 990px) {
    .flex {
        margin-top: 0px;
    }
}

@media only screen and (max-width: 990px) {

    .sidebar,
    body,
    #container {
        width: auto;
        padding: 10px;
    }

    #middle-container {
        flex-direction: column;
    }

    #room-image {
        height: 124px;
    }

    .main-content {
        margin-left: 0;
        margin-right: 0;
    }

    #primary-nav ul {
        font-size: 1.1em;
    }
}

@media only screen and (max-width: 700px) {

    .grid-container-right,
    .grid-container-left {
        grid-template-columns: auto !important;
        width: 100% !important;
    }

    .grid-container-right {
        display: flex !important;
        flex-direction: column-reverse !important;
    }

    h1 {
        font-size: 2em;
        height: auto;
    }

    #header-container {
        height: fit-content !important;
        justify-content: center;
    }

    #header-container>a>img {
        height: 60px;
    }

    #playdate-container {
        height: 252px;
    }

    #playdate {
        height: 252px;
        top: 50%;
        left: 60%;
        transform: translate(-50%, -50%);
    }

    #gameplaygif {
        height: 252px;
        top: 50%;
        left: 60%;
        transform: translate(-50%, -50%);
    }

    #monster-summary {
        flex-flow: column;
        justify-content: center;
    }

    #room-image {
        height: 93px;
    }

    .gameplay-button-container>ul {
        padding-left: 0px;
    }

    .store-badge {
        height: 50px;
    }

    .store-badge>img {
        height: 49px;
    }

    .desktop-only {
        display: none;
    }
}