﻿@font-face {
    font-family: "RG Text";
    src: url('../Content/fonts/rg_text_regular.otf') format("opentype");
}

@font-face {
    font-family: "RG Text";
    font-weight: bold;
    src: url('../Content/fonts/rg_text_bold.otf') format("opentype");
}

@font-face {
    font-family: "RG Text";
    font-style: italic;
    src: url('../Content/fonts/rg_text_italic.otf') format("opentype");
}

@font-face {
    font-family: "RG Title";
    src: url('../Content/fonts/rg_title_reg.otf') format("opentype");
}

@font-face {
    font-family: "RG Title";
    font-weight: bold;
    src: url('../Content/fonts/rg_title_bold.otf') format("opentype");
}

html {
    height: 100%;
}

body {
    height: 100%;
    font-family: RG Text, 'Helvetica', 'Verdana', sans-serif;
    margin: 0;
    line-height: 1em;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 100vh;
}

.header {
    flex: 0 0 auto;
    width: 100%;
    /*background: #FFF;*/
    background-color: #01503b;
    color: white;
    border-bottom: 1px solid #555;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header__title {
    font-weight: bold;
    font-size: 16px;
    font-family: RG Title, 'Helvetica', 'Verdana', sans-serif;
    margin-left: 10px;
    align-self: center;
    padding: 5px;
    flex-shrink: 0;
}

.header__logo {
    margin: 5px;
    margin-left: 20px;
    height: 30px;
    width: 30px;
    align-self: center;
}

.body-content {
    flex: 1 0 auto;
    margin-bottom: auto;
    max-height: calc(100vh-41px-34px);
}

.matchPoint-blink {
    animation: blinker 3s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.network {
    background-color: #aa3d16;
    color: white;
    margin: 5px;
    text-align: center;
    padding: 5px;
    font-size: 14px;
}

.password {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

    .password .userPassword {
        border-radius: 5px;
    }

    .password .enter {
        background-color: white;
        border-radius: 5px;
        padding-left: 1em;
        padding-right: 1em;
        margin: 1em;
    }

        .password .enter:hover {
            transition: transform .2s;
            transform: scale(0.9);
        }

    .password .wrong-password {
        color: #aa3d16;
    }

.footer {
    flex: 0 0 auto;
    font-weight: bold;
    /*background-color: #555;*/
    background-color: #01503b;
    /*color: lightgray;*/
    color: white;
    text-align: center;
    font-size: 16px;
    font-family: 'RG Title', 'Helvetica', 'Verdana', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

::-webkit-scrollbar {
    /*display: none;*/
}

.scroll {
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    align-self: center;
    flex-grow: 1;
}

.overall-message {
    white-space: nowrap;
    animation: floatText 35s linear infinite;
    transform: translateX(100%);
    /*font-size: 14px;*/
    font-size: 22px;
    /*color: #AA3D16;*/
    color: white;
    /*background-color: white;*/
    background-color: transparent;
    padding: 5px;
}

@keyframes floatText {
    to {
        transform: translateX(-100%);
    }
}

.date-time {
    font-size: 14px;
    font-family: 'RG Text', 'Helvetica', 'Verdana', sans-serif;
    padding-right: 20px;
    padding-left: 10px;
    align-self: center;
    flex-shrink: 0;
}

    .date-time .date {
        display: inline-block;
        margin-right: 20px;
    }

    .date-time .time {
        display: inline-block;
        /*color: rgba(170, 61, 22, 1.0);*/
    }

/* Dans le cas d'un petit écran, on change la façon d'afficher les données */
@media (max-width: 823px) {
    .header__title {
        font-size: 10px;
        margin-left: 0;
    }

    .header__logo {
        height: 15px;
        width: 15px;
        margin-left: 10px;
    }

    .date-time {
        font-size: 8px;
        padding-right: 10px;
        padding-left: 5px;
    }

        .date-time .date {
            margin-right: 10px;
        }

    .overall-message {
        /*font-size: 10px;*/
        font-size: 16px;
    }

    .footer {
        font-size: 10px;
        padding: 5px;
    }
}

table, th, td {
    border: 1px solid lightgrey;
    border-collapse: collapse;
}

.config-content {
    width: 100%;
    display: flex;
    overflow: auto;
    max-height: calc(100vh - 220px);
}

    .config-content .logs-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        margin: 10px;
    }

        .config-content .logs-wrapper .logs {
            flex: 1;
            white-space: pre;
            overflow-y: auto;
            max-height: 72vh;
            padding-right: 5px;
            padding-bottom: 5px;
        }

        .config-content .logs-wrapper .progress-bar-wrapper,
        .config-content .logs-wrapper .serverProgress-bar-wrapper {
            background-color: transparent;
            margin: 5px;
        }

            .config-content .logs-wrapper .progress-bar-wrapper .progress-bar {
                height: 24px;
                width: 1%;
                background-color: rgb(175, 63, 23);
                border-radius: 20px;
                transition: unset;
                max-width: 100%;
            }

            .config-content .logs-wrapper .serverProgress-bar-wrapper .serverProgress-bar {
                height: 12px;
                width: 1%;
                background-color: rgb(175, 63, 23);
                border-radius: 10px;
                transition: unset;
                max-width: 100%;
            }

.tab-config td {
    height: auto;
    padding-left: 5px;
    padding-right: 5px;
}

    .tab-config td .flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .tab-config td .flex span {
            margin-right: 5px;
        }

.tab-config .message-clear {
    text-align: center;
}

.tab-config .tab-liste-site,
.tab-config .tab-message-matrix {
    background-color: lightgray;
}

.tab-config .message-matrix {
    text-align: left;
    vertical-align: top;
    border: solid 1px darkgrey;
}

#connect-state:empty {
    content: "Not connected";
}

.input-nb-slots,
.input-num-journee,
.input-autonome {
    width: 50px;
    text-align: center;
}

.connected {
    color: green;
}

.not-connected {
    color: red;
}

.submit-config {
    margin: 10px;
}

.body-content-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
}

.programme {
    overflow: auto;
    max-height: calc(100vh - 50px);
    scroll-snap-type: x mandatory;
}

    .programme .fill {
        position: relative;
        margin-top: -1px;
    }

    .programme th {
        position: sticky;
        top: 0;
        z-index: 9;
        box-shadow: 0 6px 6px -5px rgba(0, 0, 0, 0.4);
    }

th {
    color: white;
    background-color: #1F975A;
    padding: 5px;
}

td {
    overflow: hidden;
}

.site-header {
    width: 200px;
}

.site-header-grey {
    width: 200px;
    background-color: darkgrey;
}

.site-header-orange {
    background-color: #D45220;
}

.site-header .site-header-label,
.site-header-grey .site-header-label {
    display: inline;
    margin-left: 20px;
}

.site-header-time {
    font-weight: normal;
    display: inline;
    float: right;
    margin-right: 20px;
}

.tab-slots {
    position: relative;
    padding: 0;
    scroll-snap-align: start;
}

.nb-sets-a-jouer {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 5px;
    font-weight: bold;
    font-size: 70%;
    text-shadow: 0px 0px 3px white;
}

.slot {
    width: 200px;
    display: flex;
    flex-direction: column;
    align-content: space-between;
    position: relative;
}

.slot-overlay {
    position: absolute;
    width: 99%;
    height: 99%;
    background-color: white;
    color: rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.overlay-message {
    font-weight: bold;
    text-align: center;
    margin-top: 10%;
}

.slot .slot-header {
    display: flex;
    font-size: 11px;
    /*color: grey;*/
    color: white;
    position: relative;
    background-color: #1F975A;
}

    .slot .slot-header .slot-code-match {
        text-align: left;
        padding-left: 5px;
        clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%, 0 0);
        flex: 1 0 35%;
        position: absolute;
        min-width: 40%;
    }

        .slot .slot-header .slot-code-match.white-background {
            background-color: white;
        }

        .slot .slot-header .slot-code-match.red {
            background-color: #D90D2E;
            color: white;
        }

        .slot .slot-header .slot-code-match.blue {
            background-color: #1366E2;
            color: white;
        }

        .slot .slot-header .slot-code-match.orange {
            /*background-color: #AA3D16;*/
            background-color: #D45220;
            color: white;
        }

    .slot .slot-header .slot-moved-from-to {
        text-align: center;
        color: white;
        background-color: dimgrey;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%, 0 0);
        position: relative;
        padding-left: 10px;
        flex: 1 0 38%;
        margin-left: 32%;
    }

    .slot .slot-header .slot-moved-from-to-empty {
        visibility: hidden;
        flex: 1 0 38%;
        margin-left: 32%;
    }

    .slot .slot-header .slot-time {
        text-align: right;
        padding: 0 5px;
        /*color: darkgrey;*/
        color: white;
        float: right;
        flex: 0 0 27%;
    }

    .slot .slot-header .slot-time-actif {
        text-align: right;
        padding: 0 5px;
        /*color: rgba(170, 61, 22, 1.0);*/
        float: right;
        flex: 0 0 27%;
    }

    .slot .slot-header .slot-time-not-before {
        text-align: right;
        padding: 0 5px;
        color: white;
        background-color: dimgrey;
        float: right;
        margin-left: -1px;
        padding-left: 1px;
        flex: 0 0 27%;
    }

.slot-service {
    min-width: 15px;
    font-weight: bold;
    display: inline-block;
    padding-left: 4px;
    padding-right: 4px;
    color: rgba(255, 246, 1, 1);
}

.slot-team {
    display: inline-block;
    padding-top: 1px;
}

.slot .slot-top,
.slot .slot-bottom {
    display: flex;
    align-items: center;
    height: 2.2em;
}

.slot-player {
    min-height: 1em;
    white-space: nowrap;
    display: flex;
}

.slot-player-green {
    color: white !important;
    background-color: rgba(0, 80, 60, 1.0);
}

.slot-player-orange {
    color: white;
    /*background-color: rgba(170, 61, 22, 1.0);*/
    background-color: #D45220;
}

.slot-player-grey {
    color: rgba(192, 192, 192, 1.0);
    background-color: dimgrey;
}

.slot-player-single {
    min-height: 2.2em;
    display: flex;
    align-items: center;
}

.slot-player-label {
    display: inline;
    font-weight: bold;
    white-space: nowrap;
}

.slot-player-nat {
    /*color: grey;*/
    color: rgba(192, 192, 192, 1.0);
    display: inline;
    font-size: 11px;
    margin-left: 4px;
}

.slot-player-green .slot-player-nat,
.slot-player-orange .slot-player-nat {
    color: white;
}

.text-half-white .slot-player-nat {
    /*color: rgba(255, 255, 255, 0.5);*/
    color: #3CA573;
}

.slot .slot-middle {
    min-height: 2.2em;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: -1px;
    margin-bottom: -1px;
    padding-top: 1px;
    padding-bottom: 1px;
}

.slot-middle-over {
    color: rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    z-index: 2;
    position: absolute;
    width: 100%;
    height: 102%;
}

.slot-middle-over-grey {
    color: rgba(192, 192, 192, 1.0);
    background-color: rgba(128, 128, 128, 0.8);
}

.slot-over-message {
    display: inline-block;
    white-space: nowrap;
    padding-top: 0.7em;
    padding-bottom: 0.6em;
}

.message-wrap {
    white-space: normal;
    padding-top: 0;
    padding-bottom: 0;
    width: 60%;
    -webkit-animation: blinker 2s linear infinite;
    -moz-animation: blinker 2s linear infinite;
    animation: blinker 2s linear infinite;
}

.message-orange {
    color: rgba(170, 61, 22, 1.0);
}

.slot-score {
    display: flex;
    font-weight: bold;
    min-height: 2.1em;
}

.slot-score-set-done {
    color: white;
    padding-left: 2px;
    padding-right: 2px;
    margin: -1px;
    margin-bottom: -2px;
    padding: 1px;
    padding-bottom: 2px;
}

.slot-score-set {
    padding-left: 2px;
}

.slot-score-jeu {
    /*color: rgba(170, 61, 22, 1.0);*/
    color: #D45220;
    padding-left: 6px;
    padding-right: 2px;
}

.slot-score-value {
    margin-left: 2px;
    margin-right: 2px;
    padding-right: 5px;
}

.sup {
    position: relative;
    top: -0.5rem;
    left: -0.25rem;
    font-size: xx-small;
    line-height: 0;
}

.slot-score-set-done .slot-score-value {
    margin-left: 2px;
    margin-right: 2px;
    padding-right: 8px;
}

.slot-score-value-less {
    margin-left: 2px;
    margin-right: 2px;
    padding-left: 1px;
    padding-right: 1px;
    color: rgba(255, 255, 255, 0.1);
}

.game-end {
    width: 15px;
    margin-left: 5px;
}

    .game-end .end-point {
        /*background-color: rgba(170, 61, 22, 1.0);*/
        background-color: #D45220;
        width: 100%;
        height: 22%;
        margin: 2px;
    }

    .game-end .end-point-grey {
        background-color: lightgrey;
        width: 100%;
        height: 22%;
        margin: 2px;
    }

    .game-end .no-end-point {
        background-color: white;
        width: 100%;
        height: 22%;
        margin: 2px;
    }

.icon-pause {
    color: rgba(170, 61, 22, 1.0);
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.icon-called,
.icon-warmingUp,
.icon-wait {
    margin-left: 5px;
}

/* @keyframes duration | easing-function | delay | iteration-count | direction | fill-mode | play-state | name */
.icon-warmingUp {
    -webkit-animation: spin 1s linear infinite forwards;
    -moz-animation: spin 1s linear infinite forwards;
    animation: spin 1s linear infinite forwards;
}

.icon-wait {
    -webkit-animation: spin 2s cubic-bezier(0,0,0,1) infinite forwards;
    -moz-animation: spin 2s cubic-bezier(0,0,0,1) infinite forwards;
    animation: spin 2s cubic-bezier(0,0,0,1) infinite forwards;
}

.icon-closed {
    -webkit-animation: 0.5s ease-in 3s quarterSpin 1 forwards;
    -moz-animation: 0.5s ease-in 3s quarterSpin 1 forwards;
    animation: 0.5s ease-in 3s quarterSpin 1 forwards;
}

.icon-change.left {
    -webkit-animation: 2s ease-in 1s leftFade infinite forwards;
    -moz-animation: 2s ease-in 1s leftFade infinite forwards;
    animation: 2s ease-in 1s leftFade infinite forwards;
}

.icon-change.right {
    -webkit-animation: 2s ease-in 1s rightFade infinite forwards;
    -moz-animation: 2s ease-in 1s rightFade infinite forwards;
    animation: 2s ease-in 1s rightFade infinite forwards;
}

.icon-called {
    -webkit-animation: zoomInNout 2s linear infinite forwards;
    -moz-animation: zoomInNout 2s linear infinite forwards;
    animation: zoomInNout 2s linear infinite forwards;
}

@-moz-keyframes spin {
    100% {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-moz-keyframes quarterSpin {
    100% {
        -moz-transform: rotate(-90deg);
    }
}

@-webkit-keyframes quarterSpin {
    100% {
        -webkit-transform: rotate(-90deg);
    }
}

@keyframes quarterSpin {
    100% {
        -webkit-transform: rotate(-90deg);
        transform: rotate(-90deg);
    }
}

@-moz-keyframes leftFade {
    80% {
        -moz-transform: translate(0%);
        opacity: 1;
    }

    90% {
        -moz-transform: translate(-100%);
        opacity: 0;
    }

    100% {
        -moz-transform: translate(0%);
        opacity: 1;
    }
}

@-webkit-keyframes leftFade {
    80% {
        -webkit-transform: translate(0%);
        opacity: 1;
    }

    90% {
        -webkit-transform: translate(-100%);
        opacity: 0;
    }

    100% {
        -webkit-transform: translate(0%);
        opacity: 1;
    }
}

@keyframes leftFade {
    80% {
        -webkit-transform: translate(0%);
        transform: translate(0%);
        opacity: 1;
    }

    90% {
        -webkit-transform: translate(-100%);
        transform: translate(-100%);
        opacity: 0;
    }

    100% {
        -webkit-transform: translate(0%);
        transform: translate(0%);
        opacity: 1;
    }
}

@-moz-keyframes rightFade {
    80% {
        -moz-transform: translate(0%);
        opacity: 1;
    }

    90% {
        -moz-transform: translate(100%);
        opacity: 0;
    }

    100% {
        -moz-transform: translate(0%);
        opacity: 1;
    }
}

@-webkit-keyframes rightFade {
    80% {
        -webkit-transform: translate(0%);
        opacity: 1;
    }

    90% {
        -webkit-transform: translate(100%);
        opacity: 0;
    }

    100% {
        -webkit-transform: translate(0%);
        opacity: 1;
    }
}

@keyframes rightFade {
    80% {
        -webkit-transform: translate(0%);
        transform: translate(0%);
        opacity: 1;
    }

    90% {
        -webkit-transform: translate(100%);
        transform: translate(100%);
        opacity: 0;
    }

    100% {
        -webkit-transform: translate(0%);
        transform: translate(0%);
        opacity: 1;
    }
}

@keyframes zoomInNout {
    0% {
        transform: scale(1,1);
    }

    50% {
        transform: scale(1.2,1.2);
    }

    100% {
        transform: scale(1,1);
    }
}

.icon-wait,
.icon-closed {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10%;
}

.icon-moved-to {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.icon-change {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.slot-score-set-done:first-child,
.slot-score-set:first-child {
    padding-left: 20px;
}

.slot-retOrDef {
    width: 20px;
    font-weight: normal;
    font-size: 80%;
    padding: 1px;
    margin-bottom: -1px;
    padding-bottom: 1px;
}

.slot-retOrDef-TeamB {
    position: relative;
    top: 2.2ex;
}

.text-half-white {
    /*color: rgba(255, 255, 255, 0.5) !important;*/
    color: #3CA573 !important;
}

.text-green {
    color: rgba(0, 80, 60, 1.0) !important;
}

.text-half-green {
    color: rgba(0, 80, 60, 0.5) !important;
}

.orange-background {
    /*background-color: rgba(170, 61, 22, 1.0) !important;*/
    background-color: #D45220 !important;
    margin: -1px;
    padding: 1px;
}

.green-background {
    color: white !important;
    background-color: rgba(0, 80, 60, 1.0) !important;
    margin: -1px;
    margin-bottom: -2px;
    padding: 1px;
    padding-bottom: 2px;
}

.white-background {
    background-color: rgba(128, 168, 158, 0.5);
}

.grey-background {
    background-color: dimgrey !important;
}

.light-grey-background {
    background-color: rgba(0, 0, 0, 0.3) !important;
}

.refresh {
    background-color: rgba(0, 80, 60, 1.0);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
    padding: 20px;
    border: 2px solid rgba(0, 80, 60, 1.0);
    border-radius: 20px;
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out, font-size 0.5s ease-in-out;
    cursor: pointer;
}

    .refresh.error {
        background-color: rgba(170, 61, 22, 1.0);
        border-color: rgba(170, 61, 22, 1.0);
    }

    .refresh:hover,
    .refresh.active {
        background-color: white;
        border-color: rgba(0, 80, 60, 1.0);
        color: rgba(0, 80, 60, 1.0);
        font-size: 150%;
    }


.restart {
    background-color: rgba(170, 61, 22, 1.0);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px;
    padding: 10px;
    border: 2px solid rgba(170, 61, 22, 1.0);
    border-radius: 20px;
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out, font-size 0.5s ease-in-out;
    cursor: pointer;
}

    .restart:hover {
        background-color: white;
        color: rgba(170, 61, 22, 1.0);
        font-size: 150%;
    }
