/* Для всего документа */
html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

html {
    -ms-overflow-style: none;  /* IE 10+ */
    scrollbar-width: none;     /* Firefox */
}


.container_1 {
    padding: 20px 0;
}

.sandbox_field_wrapper {
    display: flex;
    flex-wrap: wrap;
    background: #3D3D3D;
    align-items: center;
    gap: -0px;
    height: 550px;
    padding:  0 20px 0 20px;
    border: 3px solid black;
}

.eval_red {
    position: relative;
    background: #BC2413;
    width: 28px;
    height: calc(550px - 75px * 2 - 20px);
    border: 3px solid black;
    flex-shrink: 0;
}

.eval_blue {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #296AD6;
    height: 50%;
    border-top: 3px solid black;
}

.eval_red_percentage {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    color: white;
    font-weight: bold;
    font-size: 13px;
}

.eval_blue_percentage {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translate(-50%, 100%);
    color: white;
    font-weight: bold;
    font-size: 13px;
}

.draft_info_wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    align-self: stretch;
    justify-content: center;
    padding: 0 20px;
    height: calc(550px - 6px);
}

.map_wrapper {
    top: 15px;
    /*height: calc(100% - 76px);*/
    width: 315px;
    overflow: hidden;
    background: #000;
}

.map_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid black;
    background: #000;
}

.team_wrapper {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 12px;
    width: fit-content;
    padding: 10px;
    border: 3px solid black;
}

.team_red_wrapper {
    background: #BC2413;
    transform: translateY(30%);
}

.team_blue_wrapper {
    background: #296AD6;
    transform: translateY(-30%);
}

.team_player {
    line-height: 0;
    font-size: 0;
    width: 55px;
    height: 55px;
    border: 3px solid black;
}

.team_player.next_pick_player {
    border: 3px solid white;
}

.player_img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.draft_info_final_score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    height: 50px;

    display: none;
    align-items: center;
    gap: 12px;

    padding: 0 18px;
    background: #296AD6;
    border-radius: 12px;

    color: #fff;
    white-space: nowrap;

    font-family: "Inter", sans-serif;
    font-weight: 600;
    letter-spacing: 0.4px;

    border: 3px solid #000;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.18),
        inset 0 0 10px rgba(255, 255, 255, 0.12);
}

.final_text {
    font-size: 18px;
    opacity: 0.95;
}

.final_percentage {
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.suggestions_wrapper {
    position: relative;
    flex-grow: 1;
    height: calc(100% - 70px);
}

.suggestions_wrapper_contents {
    position: relative;
    display: flex;
    flex-direction: column;
    /*gap: 20px;*/
    padding: 0;
    height: 100%;
    overflow-y: scroll;
    background: var(--bg-color);
    border: 3px solid black;
}

.suggestions_wrapper_contents::-webkit-scrollbar {
    width: 8px; /* ширина скролла */
}

.suggestions_wrapper_contents::-webkit-scrollbar-track {
    background: transparent; /* фон дорожки */
}

.suggestions_wrapper_contents::-webkit-scrollbar-thumb {
    background-color: #b8b8b8; /* сам ползунок */
    border-radius: 10px;
}

.fade {
    position: absolute;
    bottom: 1px;
    left: 3px;
    right: 3px;

    height: 40px;

    pointer-events: none;
    z-index: 2;

    background: linear-gradient(
        to bottom,
        rgba(31, 30, 30, 0),
        rgba(31, 30, 30, 1)
    );
}

.suggestion_row {
    padding: 8px;
    display: flex;
    gap: 16px;
}

.suggestion_row:hover {
    background: #282828;
    cursor: pointer;
}
 
.suggestion_img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border: 2px solid #F4F4F4;
}

.suggestion_confidence_wrapper {
    position: relative;
    align-self: stretch;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-grow: 1;
}

.suggestion_confidence {
    background: #F4F4F4;
    height: 100%;
}

.confidence_score {
    display: inline-block;
    margin-left: 8px;
    padding: 0;
    color: #eee;
    /*background: #F4F4F4;*/
    font-weight: bold;
}


/* ########### */
/*   Buttons   */
/* ########### */

.sandbox_field_buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.sandbox_select_container, .sandbox_button_container {
    position: relative;
    width: 200px;
}

.sandbox_button_container.icon_only {
    width: fit-content;
}

.sandbox_select_container::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #fff;
    pointer-events: none;
}

.sandbox_field_button {
    border: none;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    outline: none;
    
    display: inline-block;
    text-align: center;

    font-weight: 600;

    width: 100%;
    padding: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    background: #3D3D3D;
    
    /* transition: .2s; */
}

.sandbox_button_container.icon_only .sandbox_field_button {
    padding: 10px;
    font-size: 0;
}

.sandbox_field_button:hover {
    box-shadow: 0 0 12px rgba(180, 180, 180, 0.3);
}

.sandbox_field_button img {
    width: 24px;
    height: 24px;
}

.sandbox_button_container .sandbox_field_button.cur_turn {
    padding: 0;
    background: none;
    border-radius: 50%;
}

.sandbox_button_container .sandbox_field_button.cur_turn img {
    width: 44px;
    height: 44px;

}

.sandbox_field_button.cur_turn.turn_blue img.blue_coin{
    display: inline-block;
}

.sandbox_field_button.cur_turn.turn_blue img.red_coin{
    display: none;
}

.sandbox_field_button.cur_turn.turn_red img.blue_coin{
    display: none;;
}

.sandbox_field_button.cur_turn.turn_red img.red_coin{
    display: inline-block;
}

.sandbox_field_select {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
}

.sandbox_field_select option {
    text-align: center;
    margin: 0;
    padding: 0;
}


/* ########### */
/*  selection  */
/* ########### */

.brawlers_search_wrapper {
    width: fit-content;
    margin: 14px auto 2px;
}

.brawler-search {
    margin: 0 auto;
    border: None;
    border-bottom: 1px solid #ddd;
    outline: None;
    padding: 8px 16px;
    font-size: 16px;
    color: #ddd;
    background: None;
}

.brawlers_selection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px; /* Минимальный отступ между иконками */
    padding: 10px;
    margin: 0 auto;
}

.brawler_option {
    position: relative;
    width: 55px;
    height: 55px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.brawler_option:not(.banned):not(.selected_blue):not(.selected_red):hover {
    transform: scale(1.05);
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.brawler_option.selected_blue::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 106, 214, 0.5); /* зеленый */
    border-radius: 8px;
    pointer-events: none;
}

.brawler_option.selected_red::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(188,36,19, 0.5); /* зеленый */
    border-radius: 8px;
    pointer-events: none;
}

.brawler_option.banned::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* зеленый */
    border-radius: 8px;
    pointer-events: none;
}

.brawler_option.banned,
.brawler_option.selected_blue,
.brawler_option.selected_red {
    cursor: not-allowed;
}

.brawler_option_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1210px) {
    .container_1 {
        padding: 0 0 20px 0;
        margin: 0;
    }
}

@media (max-width: 900px) {
    .sandbox_field_buttons {
        flex-wrap: wrap;
        width: 500px;
        justify-content: flex-start;
        margin: 0 auto;
    }

    #sfb1 {order: 6}
    #sfb2 {order: 2}
    #sfb3 {order: 1}
    #sfb4 {order: 3}
    #sfb5 {order: 4}
    #sfb6 {order: 5}

    #sfb5 {
        margin-left: 15px;
    }
}

@media (max-width: 650px) {
    .suggestions_wrapper {
        flex-basis: 100%;
        height: 370px;
    }

    .sandbox_field_wrapper {
        height: 540px;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: stretch;
        gap: 10px;
        padding: 0 10px;
    }

    .draft_info_wrapper {
        position: relative;
        flex-direction: row;
        padding: 10px 0;
        align-items: flex-start;
    }
    .team_red_wrapper.team_wrapper,
    .team_blue_wrapper.team_wrapper {
        transform: none;
        gap: 4px;
        padding: 4px;
        margin-bottom: 0px;
    }

    .team_blue_wrapper.team_wrapper {
        order: 1;
        border-right-width: 1px;
    }

    .team_red_wrapper.team_wrapper {
        order: 2;
        border-left-width: 2px;

    }

    .map_wrapper, .map_wrapper .map_img {
        display: none;
    }

    .team_red_wrapper.team_wrapper > .team_red_player.team_player:nth-child(1) { order: 3; }
    .team_red_wrapper.team_wrapper > .team_red_player.team_player:nth-child(2) { order: 2; }
    .team_red_wrapper.team_wrapper > .team_red_player.team_player:nth-child(3) { order: 1; }

    .team_player, .team_player.next_pick_player {
        border-width: 2px;
    }

    .suggestions_wrapper{
        height: 400px;
        margin-bottom: 12px;
    }

    .suggestion_row {
        padding: 8px;
        gap: 16px;
    }

    .team_player, .suggestion_img, .brawler_option {
        width: 52px;
        height: 52px;
    }


    .eval_red {
        position: absolute;
        left: 50%;
        top: 31px;
        transform: translateX(-50%) rotateZ(90deg);
        height: 250px;
        width: 26px;
    }

    .eval_red_percentage, .eval_blue_percentage {
        transform: rotateZ(-90deg);
    }

    .eval_red_percentage {
        right: 12px;
        top: -18px;
    }

    .eval_blue_percentage {
        left: -2px;
        bottom: -30px;
    }


    .draft_info_final_score {
        visibility: hidden;
    }
}

@media (max-width: 420px) {

    .map_wrapper {
        top: 15px;
        height: 357px;
        width: 287px;
        overflow: hidden;
        background: #000;
    }

    .eval_red {
        width: 26px;
        top: 29px;
    }

    .team_wrapper {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        gap: 12px;
        width: fit-content;
        padding: 10px;
        border: 3px solid black;
    }


    .suggestion_row {
        padding: 6px;
        gap: 12px;
    }

    .team_player, .suggestion_img, .brawler_option {
        width: 48px;
        height: 48px;
    }

}

@media (max-width: 355px) {
    .sandbox_field_wrapper {
        height: 530px;
    }

    .eval_red {
        height: 230px;
    }

    .team_red_wrapper.team_wrapper,
    .team_blue_wrapper.team_wrapper {
        padding: 2px;
        gap: 2px;
    }

    .team_player, .suggestion_img, .brawler_option {
        width: 44px;
        height: 44px;
    }

    .team_red_player.team_player {
        border-width: 0;
    }

    .team_blue_player.team_player {
        border-width: 0;
    }

    .team_player.next_pick_player {
       border-width: 2px;
    }

    .suggestion_row {
        padding: 5px;
        gap: 10px;
    }

}
