:root {
    --primaryBackgroundColor: #d70317;
    --primaryBorderColor: #d70317;
    --primaryColor: #ffffff;
    --primaryHoverColor: #d70317;
    --secondaryBackgroundColor: #ffffff;
    --secondaryBorderColor: #d70317;
    --secondaryBorderColorNoDark: #d70317;
    --secondaryColor: #d70317;
    --secondaryHoverColor: #333333;
    --thirdBackgroundColor: rgba(255, 255, 255, .7);
    --color7: #999999;
    --color-neutral-dark: #2b2b2b;
    --color-neutral-dim: #666;
    --color-neutral-medium: #888;
    --color-max-dark: #000000;
    --color-max-light: #fff;
    --color-max-light-trans: #FFFFFFB5;
    --color-gold: #8F6B00;
}


@media (prefers-color-scheme: dark) {
    :root {
        --primaryBackgroundColor: #e0b9bb;
        --primaryBorderColor: #e0b9bb;
        --primaryColor: #0d0d0d;
        --primaryHoverColor: #e0b9bb;
        --secondaryBackgroundColor: #1c1c1c;
        --secondaryBorderColor: #e0b9bb;
        --secondaryBorderColorNoDark: #d70317;
        --secondaryColor: #e0b9bb;
        --secondaryHoverColor: #f0f0f0;
        --color-background-dark: #1c1c1c;
        --thirdBackgroundColor: rgba(0, 0, 0, .7);
        --color7: #787878;
        --color-neutral-dark: #d4d4d4;
        --color-neutral-dim: #999999;
        --color-neutral-medium: #787878;
        --color-max-dark: #ffffff;
        --color-max-light: #000;
        --color-max-light-trans: #FFFFFFB5;
        --color-gold: #C2B067;
    }
}

body {
    overflow: hidden;
    font-family: sans-serif;
}

#onlineGame {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

div#infobar > div {
    display: inline-block;
    margin: 0 5px 9px 0;
    font-size: .8em;
}

#gameTime, #bestTime {
    isplay: flex;
    align-items: center;
}

#gameTime span:first-of-type,
#bestTime span:first-of-type {
    background-color: var(--primaryBackgroundColor);
    padding: .15em .4em;
    border: 2px solid var(--primaryBackgroundColor);
    border-radius: 5px 0 0 5px;
    color: var(--primaryColor);
    font-size: 13px;
}

#gameTime #gameTimeValue,
#bestTime #bestTimeValue {
    background-color: var(--primaryColor);
    padding: .15em .4em;
    border: 2px solid var(--primaryBackgroundColor);
    border-radius: 0 5px 5px 0;
    color: var(--color-max-dark);
    text-align: right;
    font-size: 13px;
}

#bestTime span:first-of-type {
    background-color: var(--color-gold);
    border: 2px solid var(--color-gold);
    color: var(--color-max-light);

}

#bestTime #bestTimeValue {
    border-color: var(--color-gold);
}

#spielfeld {
    position: relative;
    width: 100%;
    -webkit-user-select: none;
    /*noinspection CssInvalidPropertyValue*/
    -moz-user-select: -moz-none;
    -ms-user-select: none;
    user-select: none;
}

#game_overlay {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--thirdBackgroundColor);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#game_overlay > div {
    display: none;
    flex-wrap: wrap;
    align-content: center;
    flex-direction: column;
    text-align: center;
    background-color: var(--color-max-light-trans);
    border: 2px solid var(--primaryBackgroundColor);
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
    padding: 0 3em 0.25em 3em;
    max-width: 340px;
    color: #000;
}

@media (max-width: 640px) {
    #game_overlay #end_game {
        padding: 0;
    }

}

.dialog h2 {
    margin: 10% auto 5% auto;
    font-size: 2em;
    line-height: 1.2em;

}

.dialog div, .dialog p {
    margin: 5px 10px;
    line-height: 1.4em;
}

#start_game h2 {
    margin-top: 15%;
}



#helpText {
    font-size: 16px;
    line-height: 140%;
}

.gameButton {
    display: inline-block;
    background-color: var(--primaryBackgroundColor);
    cursor: pointer;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border: 1px solid var(--primaryBorderColor);
    border-radius: 5px;
    line-height: 1em;
    color: var(--primaryColor);
    padding: 0.2em 0.5em;
    margin: 2em auto;
    min-width: 105px;
}

.gameButton:hover {
    background-color: var(--primaryHoverColor);
    border-color: var(--primaryHoverColor);
}

.gameButton, input {
    margin: 1em 2em 2em 2em;
    font-size: 1em;
}

@media (min-width: 340px) {
    .gameButton, input {
        font-size: 1.2em;
    }
}
@media (min-width: 860px) {
    .gameButton, input {
        font-size: 1.4em;
    }
}
.gameButton:focus {
    outline: 1px solid var(--secondaryBorderColorNoDark);
    outline-offset: 1px;
}

.gameButton.selected {
    background-color: var(--primaryColor);
    color: var(--primaryHoverColor);
}

.gameButton.selected:hover {
    background-color: var(--primaryColor);
    color: var(--primaryHoverColor);
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: .25; }
    100% { opacity: 1; }
}

.blinking {
    animation: blink 1s infinite;
}


@media (max-width: 400px) {
    body #settings {
        font-size: 80%;
    }
    #game_overlay > div {
        font-size: 90%;
    }
}

.hide {
    display: none;
}

.disable-interaction {
    pointer-events: none;
    user-select: none!important;
}


#credit {
    margin-top: 10px;
    color: var(--color-neutral-dim);
    font-size: .9em;
}

.imgSet {
    position: absolute;
    width: 25%;
    height: 25%;
    cursor: pointer;
    perspective: 1000px;
}

.imgSet:hover, .imgSet:focus {
    border: none;
    outline: none;
}

.imgSet:hover .cover, .imgSet:focus .cover {
    filter: brightness(90%);
}

@media (prefers-color-scheme: dark) {
    .imgSet:hover .cover, .imgSet:focus .cover {
        filter: brightness(150%);
    }
}

.imgSet:focus .foto{
    filter: brightness(80%);
}


[data-client="elt"] .imgSet:hover .cover, [data-client="elt"] .imgSet:focus .cover{
    filter: brightness(120%);
}

[data-client="eut"] .imgSet:hover .cover, [data-client="eut"] .imgSet:focus .cover{
    filter: brightness(130%);
}


.imgSet.flipped {
    cursor: not-allowed;
}

.imgSet img {
    position: absolute;
    width: 100%;
    height: auto;
    border: 1px #999 solid;
    backface-visibility: hidden;
    transition: transform 0.5s ease-in-out;
}

[data-client="elt"] .imgSet img {
    border: 1px #222 solid;
}

[data-client="eut"] .imgSet img {
    border: 1px #fff solid;
}

/* Startpositionen */
.foto {
    transform: rotateX(-180deg);
}

.cover {
    transform: rotateX(0deg);
}

/* Animation durch CSS-Klasse */
.imgSet.flipped .cover {
    transform: rotateX(180deg);
}

.imgSet.flipped .foto {
    transform: rotateX(0deg);
}





.hide {
    transform: rotateX(90deg) !important;
    transition: all .2s ease-out !important;
}

.hideCursor * {
    cursor: none;
}

.sp0 { left: 0 }
.sp1 { left: 25% }
.sp2 { left: 50% }
.sp3 { left: 75% }

.z0 { top: 0 }
.z1 { top: 25% }
.z2 { top: 50% }
.z3 { top: 75% }

#spielfeld.cursorNone * {
    cursor: none
}

#spielfeld img {
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-drag: none;
}

.hiddenElement {
    display: none !important;
}

/* Path: src/css/online.css */

/*Darkmode*/
@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--color-background-dark);
        color:var(--secondaryHoverColor);
    }

}



