﻿@font-face {
    font-family: raceFont;
    src: url('../fonts/AlHurraTxtBold.ttf');
}

@font-face {
    font-family: AlHadari;
    src: url('../fonts/AlHadari.ttf');
}

@font-face {
    font-family: Abdo;
    src: url('../fonts/Abdo.ttf');
}

html {
    direction: rtl;
    font-size: 12pt;
}
/*        body:not(:root):fullscreen::backdrop {
            background: white !important;
        }
*/
body {
    background-color: #333;
    margin: 0;
    padding: 0;
    position: relative;
    transition: margin 0.5s;
}

    body::before {
        content: " ";
        background-image: url(../images/bg.png) !important;
        background-color: black;
        background-size: cover;
        /*position: absolute;*/
        position: fixed;
        width: 102%;
        height: 102%;
        left: -1%;
        top: -1%;
        z-index: -1;
        opacity: 0.1;
    }

.play-area {
    position: relative;
}

.app-logo {
    margin: -10px 0px;
    height: 100%;
}

.play-area.start::before {
    content: " ";
    background-image: url(../images/logo-2.png) !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: -1;
    position: fixed;
    filter: drop-shadow(0px 0px 18px gold);
    z-index: 9999;
    animation: move 3s forwards;
    width: 70vw;
    height: 70vh;
    top: 0;
    left: 0;
    translate: -50% -50%;
    margin-left: 50vw;
    margin-top: 50vh;
}
@keyframes move{
    0% {
        transform: scale(0);
        top: -100vh;
        left: 0;
    }
    30% {
        transform: scale(1);
        top: 0;
        left: 0;
    }
    60% {
        transform: scale(0.5);
        top: 0;
        left: 0;
    }


    100% {
        transform: scale(0) rotateY(360deg);
        top: -50vh;
        left: 50vw;
        /*        width: 0vw;
        height: 0vh;
*/
    }
}
.body-content {
    padding: 0;
}

th {
    text-align: start;
}

.top-title {
    font-family: Abdo;
    text-align: center;
    background: linear-gradient(45deg, gold, darkgoldenrod, gold);
    margin: 0px;
    padding: 0.2em;
    padding-bottom: 0;
    font-size: 400%;
    text-shadow: 0 0 5px yellow, 0 0 5px yellow, 0 0 5px yellow, 0 0 5px yellow, 0 0 5px yellow, 2px 2px 2px black, 2px 2px 2px black, 2px 2px 4px black;
    display: flex;
    justify-content: space-between;
    height: 6rem;
}

    .top-title > span {
        width: 30%;
    }

        .top-title > span:nth-child(2) {
            width: 40%;
        }

tr.highlight:not(.dead) {
    background-color: yellow;
}

tr.dead {
    text-decoration: line-through;
    color: darkred;
}

.status-vote {
    background-color: magenta;
    color: white;
}

.status-kill {
    background-color: red;
    color: white;
}

td.commands {
    width: 5em;
    text-align: center;
    white-space: nowrap;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #eeeeee;
}

    .table tr:nth-child(2n) td {
        background-color: #ffffff44;
    }

    .table td {
        border: 1px solid #ccc;
        padding: 0.3em 0.5em;
    }

input.input {
    padding: 0.5em 1em;
    border-radius: 4px;
    border: 1px solid #555;
    width: 100%;
}

    input.input:focus {
        box-shadow: 0 0 4px blue;
    }

/*.btn {
    padding: 0.7em 1em;
    border-radius: 4px;
    border: 1px solid #333;
    box-shadow: 2px 2px 4px;
    cursor: pointer;
}*/

.container {
    max-width: unset !important;
    overflow: clip;
}

.tab-pane {
    min-height: 400px;
}

.group {
    display: flex;
    white-space: nowrap;
}

.small {
    font-size: 70%;
}

.final-stauts {
    font-size: 20pt;
    text-align: center;
}

.enterPlayers .input-group {
    display: flex;
}

.playerIndex {
    padding: 0 0.5em;
    border: 1px solid #aaa;
    background: #eee;
    text-align: center;
}

    .playerIndex hr {
        border: none;
        border-top: 1px solid black;
        margin: 0.3em 0;
    }

.letter {
    width: 1.25em;
    display: inline-block;
    text-align: center;
    padding: 0em;
    color: transparent;
    background-color: #bbb;
    border-left: 4px solid black;
    font-size: 400%;
    font-weight: bold;
    user-select: none;
    transition: all 1.5s;
    height: 2em;
    vertical-align: bottom;
}

    /*    .letter:last-child {
        border: none;
    }
*/
    .letter.found {
        color: black;
        background-color: #fff;
    }

    .letter:not(.found) .front span:first-child {
        display: none;
    }

    .letter:not(.found) span.found-test {
        color: darkred;
        display: block;
    }

.letters button.btn[title]:not([title=''])::after {
    content: "*";
    color: green;
    font-size: 40%;
    position: absolute;
    left: 0;
}

.word {
    margin: 1em;
    outline: 5px solid black;
    border-radius: 0.2em;
    box-shadow: 5px 5px 15px black;
    white-space: nowrap;
}

.words {
    text-align: center;
    display: flex;
    flex-flow: wrap;
    align-items: center;
    justify-content: center;
    /*background-color: #ccc;*/
    padding: 0.5em;
    font-family: raceFont;
    max-height: 80vh;
    overflow: clip;
}

.btn.btn-xs {
    font-size: small;
    padding: 0.3em 0.4em 0em 0.5em;
}

.letters {
    display: grid;
    grid-template-columns: repeat(28, 1fr);
    padding: 4px;
    gap: 0.1em;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000;
    transition: all 1s cubic-bezier(0, 0, 0.2, 1);
}

    .letters[disabled] {
        opacity: 0.5;
        pointer-events: none;
        background-color: darkred;
    }

    .letters .btn {
        font-size: 200%;
        padding: 0;
        width: 100%;
        height: 1.5em;
        position: relative;
        transition: all 0.3s;
        box-shadow: none;
        font-family: Calibri;
        user-select: none;
    }

        .letters .btn:not([disabled]):hover {
            background-color: gold;
        }

        .letters .btn:not([disabled]):active {
            background-color: goldenrod;
        }

        .letters .btn.selected {
            outline: 0.1px dotted yellow;
            color: red;
        }

    .letters.two-rows {
        grid-template-columns: repeat(14, 1fr);
    }

        .letters.two-rows .btn {
            font-size: 400%;
        }

    .letters .btn > span {
        /*font-size: 150%;*/
    }

    .letters .btn small {
        font-size: 30%;
        display: block;
        text-align: end;
        height: 0;
        color: red;
        font-weight: bold;
        position: absolute;
        bottom: 1.20em;
        left: 0.25em;
    }

.main-game {
    display: grid;
    grid-template-columns: 1fr 4fr;
    height: calc(100vh - 7rem);
}

    .main-game .sidebar {
        padding: 0em 1em;
        border-left: 3px solid #000;
        background-color: #fff6;
        display: flex;
        flex-direction: column;
    }

        .main-game .sidebar .teams {
            flex-grow: 1;
        }

.team > * {
    transition: all 0.3s;
}

.team {
    padding-bottom: 1em;
    /*opacity:0.6;*/
}

    .team .team-name {
        text-align: start;
        font-weight: bold;
        font-size: 200%;
        font-family: Alhadari;
        filter: drop-shadow(0px 0px 1px black)drop-shadow(0px 0px 1px black) drop-shadow(0px 0px 1px black) drop-shadow(0px 0px 1px black) drop-shadow(0px 0px 1px white) drop-shadow(0px 0px 1px white) drop-shadow(0px 0px 1px white);
    }

    .team .total-score {
        float: left;
        font-size: 70%;
    }

    .team .team-score {
        font-size: 200%;
        padding: 0.2em;
        border: 4px solid;
        border-radius: 9px;
        text-shadow: 0 0 2px white, 0 0 3px white, 0 0 5px black;
        font-weight: bold;
        position: relative;
    }

        .team .team-score:before {
            background: #aaac;
            content: " ";
            display: block;
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            z-index: -1;
        }

.add-mark {
    position: absolute;
    left: 8px;
    top: -4px;
    font-size: 70%;
    font-weight: normal;
    display: none;
}

    .add-mark:before {
        content: "+";
    }
/*                .team .team-score span {
                    color: white !important;
                }
*/
.team.team-active {
    font-size: 150%;
    opacity: 1;
}

    .team.team-active .add-mark {
        display: inline-block;
        color: black;
        font-family: Abdo;
    }

    .team.team-active .team-score {
        box-shadow: 0 0 3px #0009, inset 0 0 3px #0009, 0px 0px 15px, 0px 0px 15px, 0px 0px 15px, 0px 0px 15px, inset 0 0 15px, inset 0 0 10px;
    }

.haa::after {
    content: "ـ";
    font-size: 0;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 2em;
    padding: 1em;
}

    .categories-list fieldset {
        border: double;
        border: double;
        background: #eee;
        padding: 1em;
    }

        .categories-list fieldset legend {
        }

            .categories-list fieldset legend input {
                font-weight: bold;
                font-size: 120%;
                width: 200px
            }

.categories-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 2em;
    gap: 2em;
}

    .categories-select .btn {
        font-family: Abdo;
        font-size: 500%;
        transition: all 0.3s;
        position: relative;
    }

        .categories-select .btn:hover {
            background-color: goldenrod;
            color: yellow;
        }

            .categories-select .btn:hover i {
                color: white;
            }

        .categories-select .btn small {
            display: block;
            line-height: 1;
            font-size: 10pt;
            margin-top: -1em;
            position: absolute;
            bottom: 1em;
            left: 0;
            right: 0;
        }

            .categories-select .btn small i {
                opacity: 0.5;
                color: darkgoldenrod;
                padding: 0px 3px;
            }

                .categories-select .btn small i.active {
                    opacity: 1;
                }

.check::before {
    color: green;
    content: "\2714"
}


.teams div .input-group {
    margin: 0.5em 0em;
}

.teams .btn-color {
    width: 2.4em;
    margin: 0px;
    padding: 0;
    overflow: hidden;
}

.uncheck::before {
    color: red;
    content: "\2718"
}

.wheel-container {
    text-align: center;
    filter: drop-shadow(0px 0px 2px black);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #333c;
    z-index: 99;
    animation: fade .7s;
}

@keyframes fade {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

.wheel {
    overflow: hidden;
    position: relative;
    padding: 1em;
}

    .wheel svg {
        height: calc(100% - 6rem);
        font-family: Abdo;
        /*direction: ltr;*/
        transition: transform 3s cubic-bezier(.25,.25,.0,1.0), filter 0.3s ease-in;
        filter: drop-shadow(0px 0px 10px white);
    }

        .wheel svg:hover {
            stroke-width: 0;
            filter: drop-shadow(0px 0px 10px white) drop-shadow(0px 0px 10px gold);
        }

        .wheel svg text {
            stroke-width: 0;
            filter: drop-shadow(0px 0px 1px white);
        }


#screen-settings {
    direction: ltr;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
    border: 2px solid gray;
    padding: 1em;
}

    #screen-settings input {
        width: 4em;
    }

.tabs {
    background-color: #fff5;
    padding: 1em;
}

.btn-color {
    height: 2.4em;
    border: none;
}

h2 {
    font-family: 'Abdo';
}

footer {
    display: none;
}

.nav-tabs {
    font-family: 'AlHadari';
    font-size: 25pt;
}

button.nav-link {
    color: darkgoldenrod;
}

.gear {
    text-shadow: none;
    position: relative;
}

    .gear > span {
        transition: all 0.5s;
        top: -100px;
        left: 0;
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .gear:hover > span {
        opacity: 1;
        top: 0px;
        pointer-events: all;
    }


.wheel svg g {
    stroke-width: 2px;
    stroke: #000;
    transform: translate(100px, 100px);
    transition: all 0.3s;
}

    .wheel svg g.selected text {
        fill: darkred;
    }

    .wheel svg g.selected path.path {
        stroke-dasharray: 30;
        animation: dash 5s linear infinite;
        stroke: darkred;
        stroke-linecap: round;
        filter: drop-shadow(0px 0px 6px red);
    }

@keyframes dash {
    to {
        stroke-dashoffset: 1000;
    }
}


.words.flipping .letter:not(.found) {
    animation: flip 2s;
}

@keyframes flip {
    0% {
        transform: scaleX(0)
    }

    25% {
        transform: scaleX(-1)
    }

    50% {
        transform: scaleX(0)
    }

    75% {
        transform: scaleX(1)
    }

    100% {
        transform: scaleX(0)
    }
}



span.letter-container {
    position: relative;
}

    span.letter-container:not(.disabled):hover span.variants {
        bottom: 6em;
        visibility: visible;
    }

span.variants {
    position: absolute;
    bottom: 0em;
    left: 0;
    right: 0;
    background: darkred;
    display: flex;
    flex-wrap: wrap;
    transition: all 0.3s;
    z-index: -1;
    visibility: hidden;
}

    span.variants button {
        flex: 1;
    }


center, div[style='height: 65px;'], div[style='height: 65px;'] + div, div[style='height: 65px;'] + div + div {
    display: none !important;
}