:root {
    --color: #628b82;
    --white: #ffffff;
    --color2: rgb(151, 194, 184);
    --dark: rgb(98, 139, 130);
}

html {
    -moz-user-select: -moz-none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    -webkit-touch-callout: none;
}

::selection {
    background: transparent;
    color: inherit;
}

::-moz-selection {
    background: transparent;
    color: inherit;
}

@font-face {
    font-family: NumerHIC;
    src: url('../fonts/numerhic.otf');
}

@font-face {
    font-family: icons;
    src: url('../fonts/icons.otf');
}

@font-face {
    font-family: Poppins;
    src: url('../fonts/Poppins/Poppins-Regular.woff');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cnt {
    display: flex;
    width: 100vw;
    min-height: 100vh;
    flex-direction: column;
    background: var(--white);
    font-family: Poppins;
}

@supports (height: 100dvh) {
    .cnt {
        min-height: 100dvh;
    }
}

@supports (height: 100svh) {
    .cnt {
        min-height: 100svh;
    }
}

.content {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center
}

.appBar {
    background: var(--white);
    //flex: 0 0 25px;
    font-family: NumerHIC;
}

.appBar h3 {
    font-weight: normal;
    margin-left: 1vw;
    margin-top: 1vh;
    font-size: min(5vh, 36px);
    color: var(--color);
}


.fullScreenbtn {
    position: absolute;
    top: 1vh;
    right: 0.5vw;
    font-family: icons;
    font-size: min(4vw, 30px);
    padding: 0.5%;
    z-index: 102;
    cursor: pointer;
    border-radius: 50%;
    width: min(6.2vw, 60px);
    height: min(6.2vw, 60px);
    background: var(--color2);
    border: none;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.fullScreenbtn:hover {
    background-color: var(--color);
}

.copyright {
    position: absolute;
    font-family: Poppins;
    font-size: min(2vw, 10px);
    color: var(--dark);
    bottom: 60px;
    right: 5px;
}

.navDrawer {
    flex: 0 0 auto;
    background: var(--color);
    opacity: 0.9;
    color: var(--white);
    width: 30vw;
    transition: all 0.4s ease-in-out;
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
}

.navDrawer.is-closed {
    margin-left: -30vw;
}

@media screen and (orientation:portrait) {
    .navDrawer {
        width: 50vw;
    }

    .navDrawer.is-closed {
        margin-left: -50vw;
    }

    .appBarBottom div button span {
        display: block;
    }

    .copyright {
        bottom: 80px;
    }
}

.navDrawer>div {
    visibility: hidden;
    display: none;
    padding: 0 2vw;
    font-family: Poppins;
    font-size: 1.1em;
}

.navDrawer>div.navChoice {
    visibility: visible;
    display: block;
}

.navDrawer.is-closed>button {
    display: block;
}

.navDrawer.is-closed>p {
    display: none;
}

.navDrawer h1 {
    font-size: 1.2em
}

.navDrawer #settings h3 {
    margin: 5px;
    padding: 5px;
}

.navDrawer>p {
    width: 108%;
    margin: 0;
    padding: 0;
    text-align: right;
    margin-block-start: 0;
    background-color: var(--color);
    border-radius: 0 5px 5px;
}

.navDrawer a.closebtn {
    color: #ffffff;
    font-size: min(4vw, 40px);
    padding: 0.5vw;
    text-decoration: none;
    visibility: visible
}

.navDrawer a.closebtn:hover {
    color: red;
}

.is-closed a.closebtn {
    visibility: hidden;
}

#appBarLogo {
    width: min(10vw, 100px);
    height: min(10vw, 100px);
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
}

.appBarBottom {
    display: flex;
}

.appBarBottom div {
    display: flex;
    flex-grow: 5;
    justify-content: space-around;
    background-color: var(--color);
    color: var(--white);
    z-index: 2;
}

.appBarBottom div button {
    background: transparent;
    color: var(--white);
    border: none;
    border-radius: 5px;
    margin: 0 0 5px 0;
    padding: 10px 5px 0;
    cursor: pointer;
    font-size: min(5vw, 30px);
    display: none;
    font-family: icons;
    margin-left: min(7vw, 100px);
}

@media (max-height: 400px) {
    .appBarBottom div button {
        font-size: min(5vw, 20px);
    }
}

.appBarBottom div button span {
    //display: block;
    font-size: min(2.5vw, 12px);
    font-family: Poppins;
}

.appBarBottom div button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 10px var(--white);
}

#planJeu {
    flex: 1 0 auto;
    display: flex;
    flex-direction: row
}

#rules {
    height: 80vh;
    overflow: auto;
}

#btnNew.blinking {
    background: red;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/***preloader***/
.loader {
    position: absolute;
    height: 100vh;
    width: 100vw;
    z-index: 101;
    display: flex;
    justify-content: center;
    align-items: center;

}

.loader>div {
    position: relative;
    background-color: white;
    padding: 2vw 2vw 4vw;
    border-radius: 20px;
    text-align: center;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    cursor:pointer;
}


.loader.fadeLoader {
    -webkit-animation: fadeOut 2s forwards;
    animation: fadeOut 2s forwards;
}

#preloader {
    visibility: hidden;
    opacity: 0;
    transition: opacity 250ms ease-in, visibility 0ms ease-in 250ms;
}

#preloader.show {
    visibility: visible;
    opacity: 1;
}

.loader #deco {
    position: absolute;
    width: 20vw;
    height: auto;
    max-width: 250px;
    left: -10%;
    top: -45%;
} 

.loader #clic {
    width: 10vw;
    height: 10vw;
    max-width: 300px;
    max-height: 300px;
    position: absolute;
}

.loader p {
    margin-top: 1%;
    font-family: Poppins;
    font-weight: normal;
    font-size: min(3vw, 30px);
    //color: var(--dark);

    // background: linear-gradient(to right, #ef5350, #f48fb1, #7e57c2, #2196f3, #26c6da, #43a047, #eeff41, #f9a825, #ff5722);
    background: #2A7B9B;
    background: #2A7B9B;
    background: linear-gradient(90deg, rgba(42, 123, 155, 1) 0%, rgba(60, 158, 171, 1) 50%, rgba(42, 199, 60, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

@-webkit-keyframes fadeOut {
    from {
        opacity: 1
    }

    to {
        opacity: 0
    }
}

@keyframes fadeOut {
    from {
        opacity: 1
    }

    to {
        opacity: 0;
        display: none;
    }
}
