﻿@font-face {
    font-family: 'DSEG';
    src: url('/css/fonts/dseg7-classic-latin-700-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'STD';
    src: url('/css/fonts/minicart-font.woff') format('woff');
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    user-select: none;
    cursor: none;
}

#container {
    position: relative;
    width: 100%;
    height: 100%;
}

.main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'DSEG', monospace;
    font-size: min(18vw, 28vh);
    color: #00a7ff;
    -webkit-transition: color 500ms linear;
    -ms-transition: color 500ms linear;
    transition: color 500ms linear;
}

.secondary {
    position: absolute;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'DSEG', monospace;
    font-size: min(6vw, 7vh);
    color: #0a0;
    opacity: 0.9;
}

    .secondary.chrono {
        color: #525252;
    }
    .secondary.time {
        color: #00a7ff;
    }

.beforetimer {
    font-family: Arial;
    font-size: min(2vw, 3vh);
    padding-right: 24px;
    line-height: min(6vw, 7vh);
    vertical-align:top;
}
.running {
    color: #00FF55;
}

.fadeout {
    position: absolute;
    top: 3vh;
    left: 50%;
    transform: translateX(-50%);
    font-size: min(12vw, 14vh);
    font-family: 'STD', monospace;
    color: #FFF;
    opacity: 1;
    animation: fadeOut2s 2s ease-out forwards;
}
.warning1 {
    color: #ffaa00;
}

.warning2 {
    color: #ff3300;
}
.paused {
    opacity: 0.4;
    animation: blinkS 0.2s steps(1) infinite;
    color:lightgray;
}

body.overtime {
    background: #660000;
    animation: blinkB 1s steps(1) infinite;
}

.overtime {
    color: #ff00ff;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0.2;
    }
}
@keyframes blinkB {
    50% {
        background: #330000;
    }
}
@keyframes blinkS {
    50% {
        opacity: 0.3;
    }
}
@keyframes fadeOut2s {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

#timer-progress {

    position:absolute;
    top:4px;
    left:12px;
    right: 12px;
    height: 12px;
    margin: 20px auto 0;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    overflow: hidden;
}

#timer-progress-bar {
    height: 100%;
    width: 100%;
    background-color: transparent;
    transition: background-color 500ms,width 1s;
    -webkit-transition: background-color 500ms linear,width 1s linear;
    transition: background-color 500ms linear,width 1s linear;
}

#timer-progress-bar.active {
    background-color: limegreen;
}
#timer-progress-bar.alerte {
    background-color: #ffaa00;
}
    #timer-progress-bar.danger {
        background-color: #ff3300;
}

#help-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    padding: 16px;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
     border: 1px solid #333;
}
    #help-popup .letter {
        width:50px;
        display:inline-block;
        font-weight:700;
        color:blanchedalmond;
    }
    #help-popup hr {
        border: none;
        height: 1px;
        background-color: #333;
    }
        #help-popup.visible {
        opacity: 1;
        pointer-events: auto;
    }
