@font-face {
    font-family: 'Bravura';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('./sil-open-fonts/bravura/bravura-latin-400-normal.woff2') format('woff2');
    /*src: url('./files/bravura-latin-400-normal.woff') format('woff')*/
}

@font-face {
    font-family: 'StevesGamesFont';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('fonts/StevesGamesFont.woff2') format('woff2');
}

/* BLAZOR SPECIFIC */
.page {
    /*position: relative;*/
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    overflow-y: auto;
}

.main {
    flex: 1;
}

#app, #app > div {
    height: 100%;
    width: 100%;
}

.gameharness, .gameharness > div {
    height: 100%;
    overflow-y: clip;
}

#descriptionheader {
    display: none;
}

#descriptionparagraph {
    display: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* END BLAZOR SPECIFIC */

:root {
    --headerheight: 0px;
    --footerheight: 20px;
    --headerheightraw: 0;
    --footerheightraw: 20;
}

@media (orientation:landscape) {
    html, body {
        flex-direction: row !important;
        width: 100%;
    }

    footer {
        margin-top: 0px !important;
        margin-left: auto;
        width: var(--footerheight) !important;
        height: auto !important;
        border-top: none !important;
    }

    .copyrightNotice {
        width: var(--footerheight) !important;
        height: 100% !important;
        display: flex !important;
    }

        .copyrightNotice > div {
            /*text-orientation: sideways !important;
            writing-mode: sideways-lr !important;*/
            writing-mode: vertical-rl;
            text-orientation: sideways;
            transform: rotate(-180deg);
        }
}

html, body {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0px;
    font-family: 'StevesGamesFont', 'Helvetica neue', Helvetica, Arial, sans-serif;
    background-color: #222222;
    color: #FFFFFF;
    overscroll-behavior: contain;
    overflow-x: hidden;
}

footer {
    margin-top: auto;
    width: 100%;
    background-color: #040466;
    height: var(--footerheight);
    flex: 0 0 var(--footerheight);
}

.copyrightNotice {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 11px;
    margin-top: 0px;
    height: var(--footerheight);
    display: flex;
}

    .copyrightNotice > div {
        max-width: 600px;
        margin-right: auto;
        margin-left: auto;
        margin-top: auto;
        margin-bottom: auto;
        /*font-size: 1em;*/
        /*color: #CCCCCC;*/
    }

.sggame {
    min-width: 10px;
    min-height: 10px;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -moz-user-select: none;
    overscroll-behavior: contain;
    touch-action: none;
}

.loadingText {
    position: absolute;
    top: calc((100vh / 2) - 66px);
    left: calc((100vw / 2) - 61px);
    font-size: 2em;
}

/* flex styling*/

.flexcol {
    display: flex;
    flex-direction: column;
}

.flexrow {
    display: flex;
    flex-direction: row;
}

.flexinline {
    display: inline-flex;
}

/*X Margin styles*/

.xauto {
    margin-left: auto;
    margin-right: auto;
}

.x1 {
    margin-left: .25rem;
    margin-right: .25rem;
}

.x2 {
    margin-left: .5rem;
    margin-right: .5rem;
}

.x3 {
    margin-left: 1rem;
    margin-right: 1rem;
}

.x4 {
    margin-left: 2rem;
    margin-right: 2rem;
}

.xs1 {
    margin-left: .25rem;
}

.xs2 {
    margin-left: .5rem;
}

.xs3 {
    margin-left: 1rem;
}

.xs4 {
    margin-left: 2rem;
}

.xe1 {
    margin-right: .25rem;
}

.xe2 {
    margin-right: .5rem;
}

.xe3 {
    margin-right: 1rem;
}

.xe4 {
    margin-right: 2rem;
}

/*Y Margin styles*/

.yauto {
    margin-top: auto;
    margin-bottom: auto;
}

.y1 {
    margin-top: .25rem;
    margin-bottom: .25rem;
}

.y2 {
    margin-top: .5rem;
    margin-bottom: .5rem;
}

.y3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.y4 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.yt1 {
    margin-top: .25rem;
}

.yt2 {
    margin-top: .5rem;
}

.yt3 {
    margin-top: 1rem;
}

.yt4 {
    margin-top: 2rem;
}

.yb1 {
    margin-bottom: .25rem;
}

.yb2 {
    margin-bottom: .5rem;
}

.yb3 {
    margin-bottom: 1rem;
}

.yb4 {
    margin-bottom: 2rem;
}

/* h styles */

.h1 {
    font-size: 2.5rem;
}

.h2 {
    font-size: 2rem;
}

.h3 {
    font-size: 1.5rem;
}

.h4 {
    font-size: 1.25rem;
}

.h5 {
    font-size: 1rem;
}


/* text align styles */
.tcenter {
    text-align: center;
}

/* scroll bar styles */

body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background-color: #444444; /* or add it to the track */
}

/* Add a thumb */
body::-webkit-scrollbar-thumb {
    /*background: #444444;*/
    background: #888888;
    border-radius: 8px;
}

.sgscrollbar::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: #444444; /* or add it to the track */
}

/* Add a thumb */
.sgscrollbar::-webkit-scrollbar-thumb {
    background: #888888;
}
