* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Jura", sans-serif;

}

/* Colors come from theme.css tokens (dark wine). Blue/red stay for the two teams. */
body {
    background: url('../images/brand/portal-bg.svg') center / cover no-repeat, var(--background, #12050C);
    color: var(--foreground, #F2DACE);
    overflow: hidden;
}

/* header css */
header {
    position: relative;
    padding: 0.8rem;
    align-items: center;

    /* height: 90px; */
    height: 8vh;

    &::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgba(124, 14, 68, .5), rgba(38, 9, 27, .92));
        border-bottom: 1px solid var(--border);
        top: 0;
        left: 0;
    }

    .sidebar-toggle {
        i {
            /* font-size: 2em; */
            font-size: 100%;
        }
    }
}

.img-logo {
    width: 4%;
    /* width: 20%; */
    left: 48vw;
    position: relative;
    z-index: 1;
}

/* display content  */

/* btn styling */
.link-page .orange-border {
    border: 1px solid var(--primary);
    background: var(--primary);
    border-radius: var(--radius);
}

.btn-style {
    display: inline-block;
    cursor: pointer;
    border-radius: var(--radius);

    .btn.disabled,
    .btn:disabled,
    fieldset:disabled .btn {
        background: var(--surface-2);
        color: var(--muted-foreground);
    }

    /* unselected option */
    &.white-border {
        border: 1px solid var(--border);
        position: relative;
        overflow: visible;
        background: var(--surface);

        .main-btn {
            background-color: var(--surface);
            color: var(--muted-foreground);
        }

        &:hover .main-btn {
            color: var(--foreground);
            background-color: var(--surface-2);
        }
    }

    /* selected option */
    &.green-border {
        border: 1px solid var(--accent);
        background: var(--secondary);
        box-shadow: 0 0 0 3px rgba(212, 154, 154, .18);

        .main-btn {
            background-color: var(--secondary);
            color: var(--foreground);
        }
    }

    .main-btn {
        background-color: var(--primary);
        min-width: 199px;
        padding: 10px;
        border: 0;
        color: var(--foreground);
        border-radius: calc(var(--radius) - 1px);
        transition: background-color .2s, color .2s;

        &:hover {
            background-color: var(--primary-hover);
        }

        &:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }
    }
}

/* text color */

.text-blue {
    color: #0094EE;
}

.text-red {
    color: #E91D3C;
}

.text-yellow {
    color: var(--accent) !important;
}

.header-main-div {
    font-size: 1.5vh;
}

.sidebar-toggle {
    font-size: 2em !important;
}

.border-yellow {
    border-color: var(--accent) !important;
}

.bg-dark-color {
    background: var(--background);
}

/* home */
.main-bg {
    min-height: calc(100vh - 90px);

    .top-header-strip {
        height: 6vh;
        font-size: 1.5vh;
    }

    .mid-select-player {
        height: 70vh;
    }

    &.enter-teams .container {
        background: rgba(53, 16, 42, .78);
        border: 1px solid var(--border);
        border-radius: calc(var(--radius) * 2);
        backdrop-filter: blur(10px);
        box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
        overflow: hidden;
        padding: 3rem;
        position: relative;
        display: flex;
        height: 80vh;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        /* faint mascot art behind the card, from the HD master (the waiting screen has its own glow) */
        &:not(.waiting-container)::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url('../images/brand/mascots-2200.webp') center 30% / min(70%, 900px) auto no-repeat;
            opacity: .1;
            pointer-events: none;
        }

        form,
        .top-position {
            z-index: 1;
            position: relative;
        }




    }

    .input-box {
        border-radius: var(--radius);
        overflow: hidden;
    }

    .blue-team {
        .input-box {
            border: 1px solid #0087D9;
            background: #0087D9;
        }
    }

    .red-team {
        .input-box {
            border: 1px solid #E91D3C;
            background: #E91D3C;
        }
    }

    input {
        background-color: var(--background);
        padding: 12px 18px;
        border: 0;
        color: var(--foreground);
        border-radius: calc(var(--radius) - 1px);

        &::placeholder {
            color: #B9909D;
            font-size: 13px;
        }
    }


    .left-graphic-img {
        width: 575px;
        object-fit: cover;
    }
}

/* create link page */
.icon-box {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    cursor: pointer;
    font-size: 14px;
}

/* select player css */
.padding-y-axis{
    padding: 3% 0;
}
.select-player {
    height: calc(100vh - 8vh);

    .default-img {
        /* width: 50px; */
        width: 20%;
    }

    .selected-players-box {
        height: calc(100% / 5.33);

        &.margin-bottom {
            margin-bottom: 10%;
        }
    }

    .selected-players-box.small {
        width: 50%;
        align-self: center;
    }

    .active-img {
        width: 100% !important;
        /* height: 100%; */
        height: 13vh;
        object-fit: cover;
        display: block;
        /*        object-position: center;*/
        object-position: top;
    }

    .left-player-side,
    .right-player-side {
        /* width: 300px; */
        width: 15%;
        /* height: calc(100vh - 286.33px); */
        position: relative;

        .left-side-player-container,.right-side-player-container {
            padding: 5%;
        }

        &::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: rgba(53, 16, 42, .84);
            top: 0;
            left: 0;
        }
    }

    .all-players-container {
        width: calc(100% - 30%);
        /* height: calc(100vh - 286.33px); */
        background: rgba(38, 9, 27, .62);
        position: relative;

        &::before {
            content: '';
            position: absolute;
            width: 100%;
            /* height: 34px; */
            height: 7%;
            left: 0;
            background: var(--background);
            bottom: 100%;
            clip-path: polygon(3% 0%, 97% 0%, 100% 100%, 0% 100%);
        }
    }

    .bottom-player-side {
        position: relative;
        /* height: 150.33px; */
        height: calc(100% - 76vh);

        &::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: rgba(53, 16, 42, .84);
            top: 0;
            left: 0;
        }

        .player-box {
            width: calc(100% / 5);
            /* max-height: 118.33px; */
            /* height: 100%; */
            height: 13vh;
            overflow: hidden;

            &.margin-left {
                margin-left: 10%;
            }
            &.margin-right {
                margin-right: 10%;
            }
        }

        .left-bar {
            padding: 1% 1.2%;

            .player-box {
                transform: skewX(348deg);

                .default-img {
                    width: 35%;
                }
            }
        }

        .right-bar {
            padding: 1% 1.2%;

            .player-box {
                transform: skewX(12deg);

                .default-img {
                    width: 35%;
                }
            }
        }
    }
}

.blue-side,
.red-side {
    width: 50%;
    height: 100%;
    padding: 0% 2%;
    display: flex;
    align-items: center;
}

.blue-side {
    background: rgba(0, 148, 238, 1);
}

.red-side {
    background: rgba(190, 32, 56, 1);
}

.filter-img {
    width: 15%;
    cursor: pointer;
}

.center-selector-player {
    /*    height: calc(100% - 74px);*/
    /* height: calc(100% - 84px); */
    min-height: calc(100% - 85.94px);
    max-height: calc(100% - 51.59px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* height: 54vh; */
}

.all-players-box {
    /* min-height: 250px;
    max-height: calc(100% - 40px); */
    height: 46vh;

    overflow-y: auto;

    &::-webkit-scrollbar {
        width: 5px;
        position: absolute;
        right: 0;
    }



    &::-webkit-scrollbar-thumb {
        background: var(--secondary);
        border-radius: 4px;
        position: absolute;
        right: 0;
    }

    .players-img {
        width: 110px;
        height: 110px;
        cursor: pointer;

        &.active {

            img {
                filter: grayscale(1);
            }

        }

        &.lock {

            img {
                filter: grayscale(1);
            }

        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
    }
}

.highlighter {
    position: relative;
}
.team-name {
    font-size: 2em;
    height: fit-content;
}
.team-name-blue {
    margin-left: unset !important;
}
.team-name-red {
    margin-right: unset !important;
}
.highlighter::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 10%;
    top: 0;
    left: 0;
}

.left-player-side .highlighter::before,
.left-bar .highlighter::before {
    background-color: #0094ee;
}

.right-player-side .highlighter::before,
.right-bar .highlighter::before {
    background-color: #be2038;
}

.form-control:focus {
    background: var(--background);
    color: var(--foreground);
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(170, 94, 122, .3);
}

/* responsive */
@media screen and (max-width:1100px) {
    .players-img {
        width: 70px !important;
        height: 70px !important;
    }

    /* .left-player-side,
    .right-player-side {
        width: 200px !important;
    } */

    /* .all-players-container {
        width: calc(100vw - 400px) !important;
    } */
}

@media screen and (max-width:576px) {
    .left-graphic-img {
        width: 70% !important;
    }
}

.wrap-text {
    word-wrap: break-word;
    word-break: break-all;
}

/* waiting modal */
/*#waitingModal {*/
.modal {
    .modal-content {
        background: none;
        border: 1px solid var(--border);
        border-radius: calc(var(--radius) * 2);
        overflow: hidden;

        &::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(53, 16, 42, .82);
            backdrop-filter: blur(12px);
        }
    }
}

#newDraftModal .modal-dialog {
    max-width: 535px !important;
}
#exportModal .modal-dialog {
    max-width: 600px !important;
}

#exportModal .main-btn {
    min-width: 220px !important;
}

#ban_div .main-btn {
    min-width: 90px !important;
    align-items: center;
}

#importBtn .main-btn {
    min-width: 100px !important;
    align-items: center;
}

#filterImportCharacterButton {
    min-width: 120px !important;
}

/* setting sidebar */
.sidebar-setting {
    position: fixed;
    width: 400px;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 1;
    transform: translateX(-100%);
    transition: all .5s ease-in-out;

    &.show {
        transform: translateX(0%);
    }

    .close-sidebar {
        cursor: pointer;
    }

    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(53, 16, 42, .86);
        border-right: 1px solid var(--border);
        backdrop-filter: blur(12px);
    }

    .sidebar-top-header {
        border-bottom: 1px solid var(--border);
    }
}

.filter-img.highlight {
    filter: drop-shadow(0 0 6px var(--accent));
}

/* Spactator Waiting screen Start  */
/*.waiting-page {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-evenly !important;
}*/

.vs {
    color: white;
    position: relative;
    width: 400px;
    text-shadow: 0 0 10px var(--secondary), 0 0 24px var(--primary);
}

.waiting-container::before {
    content: '';
    background: url(../images/brand/vs-glow.png), linear-gradient(292deg, rgba(124, 14, 68, .35), transparent);
    position: absolute;
    opacity: 1;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    top: 0%;
    left: 0;
    background-size: 40%;
    background-position: 49% 29%;
}

.vs img {
    z-index: 2;
    position: relative;
}

.player.red {
    color: var(--team-red);
    z-index: 2;
}

.player.red .btn {
    background-color: var(--team-red);
}

.player.blue {
    color: var(--team-blue);
    z-index: 2;
}

.player.blue .btn {
    background-color: var(--team-blue);
}

.player-name-div {
    font-size: 50px;
    font-weight: 800;
    margin-bottom: 130px;
    margin-top: -15px;
}

.waiting-container {
    background: url('../images/brand/portal-bg.svg') center / cover no-repeat, var(--background) !important;
}

@media screen and (max-width:1024px) {
    .waiting-container::before {
        background-position: 49% 24vh;
    }

    .vs {
        width: 30vh;
    }
}

@media screen and (max-width:768px) {
    .waiting-container::before {
        background-position: 49% 21vh;
    }

}

.green-btn {
    background-color: #3D9F00 !important;
}

/* Spactator Waiting screen End  */

.timer-section {
    line-height: 2.5em;
    font-size: 1.5vh;
}

.timer-section #countdown {
    /* font-size: 30px; */
    font-size: 3em;
}

.timer-section #countdown_title {
    /* font-size: 20px; */
    font-size: 2em;
}

/* Upload Container Start */
.upload-container {
    text-align: center;
}

.upload-box {
    border: 2px dashed var(--accent);
    padding: 50px;
    border-radius: 10px;
    position: relative;
    /* width: 400px;
    height: 300px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(38, 9, 27, .6);
    margin-top: 25px;
    cursor: pointer;
}

.upload-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.upload-box p {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: #fff;
}

.browse {
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
}

/* Upload Container End */

/* Player Name CSS Start */
/* .selected-player-name-div {
    position: absolute;
    width: 100%;
    bottom: 5px;
    right: 5px;
    color: #fff;
    font-size: 13px;
    text-shadow: 0 0 2px #000;
}

.selected-players-box {
    position: relative;
} */
/* Player Name CSS End */

.red_import {
    border: 2px solid #ff000075;
}

.blue_import {
    border: 2px solid #0000ff8c;
}

.red_import.blue_import {
    border-image: linear-gradient(to right, #0000ff8c, #ff000075) 1;
}

.dropdown-item:focus,
.dropdown-item:hover {
    background-color: var(--primary);
    color: var(--foreground);
}

.dropdown-menu.show {
    background: var(--surface);
    border: 1px solid var(--border);
}

.dropdown-item {
    color: var(--foreground);
}

.loader {
    height: 19px;
}

.red_import,
.blue_import {
    position: relative;

    .cross {
        /* &::after,&::before {
            content: '';
            position: absolute;
            width: 153px;
            height: 2px;
            top: 53px;
        }
        &::after {
            transform: rotate(45deg);
            left: -23px;
        }
        &::before {
            transform: rotate(135deg);
            right: -23px;
        } */
        /* width: 30px; */
        /* height: 23px; */
        position: absolute;
        /* background: #787878; */
        color: #787878;
        /* border-radius: 50%; */
        top: 5px;
        right: 5px;
        font-size: 20px;
    }
}

.blue_import.baned-active .cross,
.blue_import.baned .cross {
    color: #0000ff8c;
}

.red_import.baned-active .cross,
.red_import.baned .cross {
    color: #ff000075;
}

.red_import.blue_import .cross {
    display: none;
}

.buttons-section .main-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.buttons-section {
    font-size: 1.5vh;
}

.buttons-section Button {
    font-size: 1.3em;
    min-width: 11vw !important;
    height: 4.5vh;
}