﻿/* Visilex.Swipe (Views/Question/swipe.cshtml) – ausgelagert aus der Ansicht; Klasse .swipe-card statt .card (Konflikt mit Bootstrap) */
html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

a {
    text-decoration: none;
}

.red {
    background-color: red !important
}

.green {
    background-color: green !important
}

.circle-stack {
    position: relative;
    display: inline-block;
    width: 3vh;
    height: 3vh;
    background-color: #e0e0e0;
    box-shadow: 1px 1px 20px #808080;
    color: white;
    margin: 0;
    border-radius: 50%;
    opacity: 1.0
}


.circle-stack-content {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 2.4vh;
    font-family: Calibri light, arial;
    transform: translateX(-50%) translateY(-50%);
    font-weight: normal;
    text-shadow: 1px 1px 2px white;
}


#board {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: rgb(255, 240, 230);
}

.swipe-card a {
    color: black;
}

.alive {
    color: black;
}

.dead {
    color: #808080;
    background-color: #e0e0e0;
    opacity: 0.5;
    transform: scale(0.5) rotate(45deg)
}

.life {
    transition: all 700ms ease-out
}

.swipe-card {
    width: 100%;
    height: 84%;
    position: absolute;
    top: 66%;
    left: 50%;
    /* border-radius: 1%; */
    border: 1px solid black;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.5);
    background-color: white;
    transform: translateX(-50%) translateY(-50%) scale(0.5);
    text-align: center;
    font-family: Calibri light, arial;
    box-sizing: border-box;
    padding-left: 1em;
    padding-right: 1em;
    font-weight: bold;
    color: black;
    font-size: 4.5vw;
    flex-direction: column;
    display: flex;
    justify-content: center; /* align horizontal */
    align-items: center; /* align vertical */
    z-index: 1;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .swipe-card.info {
        background-color: wheat;
        overflow: auto;
        font-size: 3vw;
        text-align: left;
        font-weight: lighter;
    }


        .swipe-card.info div {
            margin-bottom: 0.2em;
        }

            .swipe-card.info div.explain {
                font-size: 90%;
                border: 2px dashed black;
                padding: 10px;
                box-sizing: border-box;
                background-color: #e0e0e0;
                margin-bottom: 0.2em;
            }

#question {
    width: 100%;
    height: 16%;
    position: absolute;
    top: 0px;
    left: 50%;
    background-color: black;
    transform: translateX(-50%) scale(1.0);
    text-align: center;
    font-family: Calibri light, arial;
    transition: all 500ms ease-out;
    padding-left: 1vw;
    padding-right: 1vw;
    box-sizing: border-box;
    color: white;
    font-size: 3vw;
    display: flex;
    justify-content: center; /* align horizontal */
    align-items: center; /* align vertical */
    z-index: 0;
}

#infoitem {
    transition: all 100ms ease-in;
    top: 40%;
    height: 20%;
    width: 10%;
    left: 40%;
    text-align: center;
    display: flex;
    background-color: transparent;
    z-index: 5;
    justify-content: center; /* align horizontal */
    align-items: center; /* align vertical */
    color: black;
    text-shadow: 1px 2px 4px white;
    font-size: 20vh;
    opacity: 0.0;
    display: none;
    position: absolute;
}

#question a {
    color: white
}

#continues {
    position: absolute;
    left: 5px;
    bottom: 5px;
    height: auto;
    background-color: transparent;
    padding: 0;
    border: 0;
    margin: 0;
    z-index: 3;
}

#counter {
    position: absolute;
    right: 5px;
    bottom: 5px;
    background-color: transparent;
    padding: 0;
    border: 0;
    margin: 0;
    z-index: 3;
    font-family: Calibri light, arial;
    text-shadow: 1px 1px 3px #808080;
    color: darkgreen;
    font-size: 2.5vh;
    text-align: right;
    padding-right: 10px;
}


#timer {
    position: absolute;
    left: 0;
    bottom: auto;
    background-color: dodgerblue;
    padding: 0;
    border: 0;
    margin: 0;
    z-index: 3;
    height: 10px;
    top: 16%;
    width: 100%;
    transition: all 1s linear;
}








.flip-card {
    background-color: transparent;
    width: 300px;
    height: 200px;
    border: 1px solid #f1f1f1;
    perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-card-inner {
    width: 100%;
    height: 100%;
    transition: all 0.8s;
    transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
    transform: rotateX(180deg);
}

/* Position the front and back side */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
    background-color: #bbb;
    color: black;
}

/* Style the back side */
.flip-card-back {
    background-color: dodgerblue;
    color: white;
    transform: rotateX(180deg);
}


/* Dunkles Farbschema */
[data-bs-theme=dark] #board {
    background-color: #1f1b18;
}

[data-bs-theme=dark] .swipe-card {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
}

[data-bs-theme=dark] .swipe-card a,
[data-bs-theme=dark] .alive {
    color: var(--bs-body-color);
}

[data-bs-theme=dark] .swipe-card.info {
    background-color: #3b3326;
}

[data-bs-theme=dark] .swipe-card.info div.explain {
    background-color: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color);
}

[data-bs-theme=dark] #infoitem {
    color: var(--bs-body-color);
    text-shadow: 1px 2px 4px #000;
}

[data-bs-theme=dark] .circle-stack {
    background-color: #495057;
    box-shadow: 1px 1px 20px #000;
}

[data-bs-theme=dark] .circle-stack-content {
    text-shadow: 1px 1px 2px #000;
}

[data-bs-theme=dark] .dead {
    color: #6c757d;
    background-color: #343a40;
}

.swipe-loading {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
}
