a {
    color: lightblue;
}

a:visited {
    color: lightcyan;
}

body {
    background-color: black;
    color: white;
    font-family: sans-serif;
    margin: 0;
    overflow: hidden;
}

body:not(.view-start) #view-start, body:not(.view-scan) #view-scan, body:not(.view-listen) #view-listen {
    display: none;
}

button {
    font-size: 1em;
}

html {
    font-size: 36px;
}

section {
    display: block;
    height: 100vh;
    width: 100vw;
}

.error {
    color: red;
}

#nocamera {
    display: none;
}

.scan-region-highlight {
    left: 50% !important;
    position: fixed !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.scan-region-highlight::before {
    content: 'Scannez le code QR au dos de la carte :';
    display: inline-block;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 2px black;
    translate: 0 -100%;
    width: 100%;
}

.scanerr .scan-region-highlight::before {
    content: 'Carte inconnue';
}

#nextcard {
    position: fixed;
    z-index: 1;
}

#player {
    border: none;
    height: 100%;
    position: fixed;
    width: 100%;
}

#reader {
    height: auto;
    left: 50%;
    min-height: 100vh;
    min-width: 100vw;
    position: fixed;
    top: 50%;
    translate: -50% -50%;
    width: auto;
    z-index: -1;
}

#view-start {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

@media (min-width: 1080px) {
    html {
        font-size: 20px;
    }
}

@media (prefers-color-scheme: light) {
    a {
        color: blue;
    }

    a:visited {
        color: blueviolet;
    }

    body {
        background-color: white;
        color: black;
    }

    #view-scan p {
        text-shadow: 0 0 2px white;
    }
}
