:root {
    --wrapperBg: #16325b;
    --wrapperBorder: #1b3861;
    --gameBg: #1F3C66;
    --gameTxt: #fff;
    --accentBg: #f14100;
    --btn_border_bg: #fff;
    --btn_bg: #f14100;
    --btn_txt: #fff;
    --btn_bg_shadow: #CC3000;
    --btn_width: 44em;
    --btn_height: 10em;

    --popup_border_bg: #fff;
    --popup_bg: #FFB700;
    --popup_txt_heading: #fff;
    --popup_txt_heading_shadow: #16325b;
    --popup_txt: #16325b;
    --popup_bg_shadow: #D19000;
    --popup_width: 600px;

    --snake: #EF6100;
    --snake2: #F14100;
    --snake3: #dd6a40;
    --tongue: #F14100;
    --eyes: #555;
    --eyes2: #222;

    --grass: #57a842;
    --grass2: #75C760;

}
* {
    box-sizing: border-box;
}

body {
    margin: 0;
}


html{
    overscroll-behavior: none;
    height: 100%;
}

body {
    overscroll-behavior: none;
    overflow: hidden;
    height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

@font-face {
    font-family: 'Fixedsys';
    src: url(e7330cfc625905d3e7fe.eot);
    src: url(e7330cfc625905d3e7fe.eot?#iefix) format('embedded-opentype'),
        url(4e7741c1cbec0115f727.woff2) format('woff2'),
        url(dc38fbfeb5d47f98a214.woff) format('woff'),
        url(f11090604f2ea30e8a9c.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.snake_game_wrapper {
    background: var(--wrapperBg);
    background-image: linear-gradient(var(--wrapperBorder) 1px, transparent 1px), linear-gradient(90deg, var(--wrapperBorder) 1px, transparent 1px);
    background-size: 38px 18px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.snake_deco_wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.snake_deco_img {
    font-size: calc(30px + (80 - 30) * ((100vw - 1200px) / (1600 - 1200)));
    position: absolute;
    width: 1em;
    height: 1em;
    background-size: contain;
}

.snake_deco_img-cherry {
    background-image: url(235912246cf10d13e034.png);
    top: 0.5em;
    left: 0.5em;
}

.snake_deco_img-bomb {
    background-image: url(738f6ac09e0d55db2c3b.png);
}

.snake_deco_img-ball {
    background-image: url(acbe31924cc88213470c.png);
    top: 50%;
    left: 0.5em;
    transform: translate(50%, -50%);
    width: 0.8em;
    height: 0.8em;
}

.snake_deco_img-lemon {
    background-image: url(8f9c8cc2f22be86573cc.png);
    bottom: 0.5em;
    left: 0.5em;
}

.snake_deco_img-coin {
    background-image: url(9f54a1cd0b31307d3496.png);
    top: 0.5em;
    right: 0.5em;
}

.snake_deco_img-bball {
    background-image: url(49d1ebd700544cc929bc.png);
    top: 50%;
    right: 0.5em;
    transform: translate(-50%, -50%);
    width: 0.8em;
    height: 0.8em;
}

.snake_deco_img-strawberry {
    background-image: url(1854e81594f8de66ef7d.png);
    bottom: 50px;
    right: 50px;
}

.snake_game_main {
    width: calc(100% - 480px);
    height: calc(100% - 80px);
    background-color: var(--gameBg);
    color: var(--gameTxt);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    position: relative;
}

.snake_game_configs_wrapper {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
}

.snake_game_configs_wrapper>i {
    width: 39px;
    height: 39px;
    display: block;
    margin-right: 26px;
}

.snake_game_configs_wrapper>i:last-child {
    margin-right: 0;
}

.snake_game_configs_wrapper>i>svg {
    fill: currentColor;
    transition: all 0.3s;
    cursor: pointer;
}

.snake_game_configs_wrapper>i:hover>svg,
.snake_game_configs_wrapper>i.active>svg {
    fill: var(--accentBg)
}

/*logo*/

.snake_btn {
    font-family: 'Fixedsys';
    position: relative;
    width: var(--btn_width);
    height: var(--btn_height);
    font-size: 10px;
    font-size: calc(6px + (10 - 6) * ((100vw - 600px) / (1600 - 600)));
    flex-shrink: 0;
    transform: translateY(0);
    cursor: pointer;
    transition: all 0.3s;
}

.snake_btn:hover, 
.snake_btn:active{
    transform: translateY(2px);
} 


.snake_btn-score {
    font-size: 5px;
    --btn_width: 20em;
    --btn_height: 10em;
    --btn_border_bg: #1D1D1B;
    --btn_bg: #FFB700;
    --btn_txt: #000;
    --btn_bg_shadow: #E29C00;
}

.snake_btn-popup-score {
    font-size: 5px;
    --btn_width: 24em;
    --btn_height: 10em;
    --btn_border_bg: #fff;
    --btn_bg: #254D88;
    --btn_txt: #fff;
    --btn_bg_shadow: #16325B;
}


.snake_btn-popup {
    font-size: 8px;
    --btn_width: 44em;
    --btn_height: 10em;
    --btn_border_bg: #fff;
    --btn_bg: #f14100;
    --btn_txt: #fff;
    --btn_bg_shadow: #CC3000;
}


.snake_btn>.snake_btn_outline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: calc(100% - 4em);
    background-color: var(--btn_border_bg)
}

.snake_btn>.snake_btn_outline::before {
    content: '';
    width: calc(100% + 2em);
    height: calc(100% - 2em);
    display: block;
    background-color: inherit;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.snake_btn>.snake_btn_outline::after {
    content: '';
    width: calc(100% + 4em);
    height: calc(100% - 4em);
    display: block;
    background-color: inherit;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.snake_btn>.snake_btn_fill {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: calc(100% - 2em);
    width: calc(100% - 4em);
    background-color: var(--btn_bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.snake_btn>.snake_btn_fill::before {
    content: '';
    height: calc(100% - 2em);
    width: calc(100% + 2em);
    display: block;
    background-color: inherit;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.snake_btn>.snake_btn_shadow {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, -1em);
    height: 1em;
    width: calc(100% - 4em);
    background-color: var(--btn_bg_shadow);
    z-index: 1;
}

.snake_btn>.snake_btn_shadow::before {
    content: '';
    width: 1em;
    height: calc(100% + 4em);
    display: block;
    background-color: inherit;
    position: absolute;
    right: -1em;
    bottom: 1em;
}

.snake_btn>.snake_btn_shadow::after {
    content: '';
    width: 1em;
    height: calc(100% + 3em);
    display: block;
    background-color: inherit;
    position: absolute;
    right: 0em;
    bottom: 1em;
}

.snake_btn>.snake_btn_fill>span {
    z-index: 2;
    font-size: 4em;
    color: var(--btn_txt);
    text-transform: uppercase;
}

.snake_logo {
    width: 132px;
    height: 36px;
    background-color: #fff;
}

/*modal*/
.snake_modal h1 {
    margin: 0;
    font-size: 5em;
    font-family: 'Fixedsys';
    text-align: center;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--popup_txt_heading);
    text-shadow: 0.1em 0.1em 0 var(--popup_txt_heading_shadow);
}

.snake_modal h2 {
    margin: 0;
    font-size: 3em;
    font-family: 'Fixedsys';
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--popup_txt_heading);
    text-shadow: 0.1em 0.1em 0 var(--popup_txt_heading_shadow);
    /**/
    display: flex;
    flex-grow: 1;
    align-items: center;
}

.snake_modal::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    height: 1em;
    left: 0;
    width: 100%;
    background-color: var(--popup_bg_shadow);
}

.snake_modal ul{
    margin: 0;
    padding: 0;
}

.snake_modal_scroll{
    height: calc(100% - 142px);
    overflow-y: auto;
}



.snake_modal li{
    list-style: none;
}

.snake_modal h6 {
    margin: 1em 0;
    font-size: 2.5em;
    font-family: 'Fixedsys';
    font-weight: 600;
}

.snake_imgs {
    display: flex;
    gap: 0.5em;
}

.snake_imgs [class^='snake_deco_img-'], .snake_imgs [class*=' snake_deco_img-']{
    width: 4em;
    height: 4em;
    background-size: contain;
    top: auto;
    left: auto;
    background-repeat: no-repeat;
    transform: translate(0);
}

.snake_imgs img{
    width: 4em;
    height: 4em;
}

.snake_modal p {
    margin: .5em 0;
    font-size: 2em;
    font-family: 'Fixedsys';
    font-weight: 400;
}

.snake_modal {
    font-size: 10px;
    width: 600px;
    height: calc(100% - 34vh);
    position: absolute;
    top: 54vh;
    left: 50%;
    transform: translate(-50%, -50%);
    border-top: 1em solid var(--popup_border_bg);
    border-bottom: 1em solid var(--popup_border_bg);
    background-color: var(--popup_bg);
    color: var(--popup_txt);
    padding-top: 1em;
    padding-bottom: 1em;
    z-index: 1;
}

.snake_modal-wide {
    --popup_width: 900px;
}

.snake_modal_corner {
    position: absolute;
    width: 1em;
    height: 1em;
    background-color: var(--popup_border_bg);
}

.snake_modal_corner-tl {
    top: 0;
    left: -1em;
}

.snake_modal_corner-tr {
    top: 0;
    right: -1em;
}

.snake_modal_corner-bl {
    bottom: 0;
    left: -1em;
}

.snake_modal_corner-br {
    bottom: 0;
    right: -1em;
}

.snake_modal .snake_modal_content {
    width: calc(100% + 4em);
    height: 100%;
    background-color: var(--popup_bg);
    transform: translateX(-2em);
    border-left: 1em solid var(--popup_border_bg);
    border-right: 1em solid var(--popup_border_bg);
    padding: 3em;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.snake_modal .snake_modal_content::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    height: 100%;
    right: 0;
    width: 1em;
    background-color: var(--popup_bg_shadow);
}

.snake_modal .snake_modal_content::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    height: calc(100% - 2em);
    right: 1em;
    width: 1em;
    background-color: var(--popup_bg_shadow);
}

.snake_provider_logo {
    content: '';
    background-image: url(53fa8b9a82169625bb57.svg);
    width: 9.4em;
    height: 1.8em;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 3.5em;
}

.snake_main_logo {
    content: '';
    background-image: url(492e8e7f9601f7acbe88.png);
    width: 66.5em;
    height: 12.5em;
    font-size: calc(3px + (10 - 3) * ((100vw - 300px) / (1600 - 300)));
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    margin-bottom: 8em;
}

.snake_main_logo.ro {
    background-image: url(88c22fe051c92742b967.svg);
}

.snake_main_text {
    font-family: 'Fixedsys';
    width: 80%;
    font-size: calc(18px + (42 - 18) * ((100vw - 300px) / (1600 - 300)));
    margin: 0;
    margin-bottom: 5%;
    text-align: center;
}

.snake_main_text.main_info {
    margin-bottom: 3.5%;
}

/*header*/
.snake_game_header {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 85px;
}

.snake_game_logo {
    width: calc(100% - 150px);
    height: 36px;
    background-image: url(492e8e7f9601f7acbe88.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

.snake_game_logo.ro {
    background-image: url(88c22fe051c92742b967.svg);
}

.snake_game_header>.snake_game_logo {
    flex-shrink: 0;
}

.snake_game_score_wrapper {
    display: flex;
    align-items: center;
}

.snake_game_fire {
    background-image: url(e3881025e47e46813ada.png);
    width: 30px;
    height: 50px;
    background-size: 60px 50px;
    background-repeat: no-repeat;
    background-position: 0px top;
    animation: snake_fire_animation 0.4s steps(2) infinite;
}

@keyframes snake_fire_animation {
    0% {
        background-position: 0px top;
    }

    100% {
        background-position: -60px top;
    }
}

.snake_game_score {
    position: relative;
    margin-left: 50px;
}

.snake_game_score::before {
    content: '';
    display: block;
    background-image: url(60a60710d68fe849ff18.png);
    width: 50px;
    height: 50px;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
}

.snake_modal_content .snake_btn-popup-score {
    margin-bottom: 6em;
}

.snake_modal_content .snake_btn-popup {
    margin-bottom: 6em;
}

.snake_modal_close {
    width: 34px;
    height: 34px;
    display: block;
    position: absolute;
    top: 10px;
    right: 20px;
    transform: translateY(0);
    transition: all 0.3s;
    cursor: pointer;
}

.snake_modal_close:hover{
    transform: translateY(2px);
}

.snake_btn_close_outline {
    fill: var(--popup_border_bg);
}

.snake_btn_close_fill {
    fill: var(--popup_txt);
}

.snake_game_canvas_wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 200px);
    height: calc(100% - 200px);
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.snake_game_canvas_wrapper::after{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    background-color: var(--grass);
    z-index: -1;

}

.snake_game_canvas_wrapper>canvas {
    display: block;
    width: 100%;
    height: 100%;
    /* width: 100%;
    height: 100%; */
    /* border: 15px solid #15c760; */
}

.hidden {
    display: none;
}

.show {
    display: block;
}

.team {
    width: 30px;
    height: 30px;
    position: fixed;
    top: 0;
}

.snake_mr_top_auto{
    margin-top: auto;
}

@media only screen and (max-width: 1600px) {
    .snake_game_main {
        width: calc(100% - 200px);
        height: calc(100% - 50px);
    }
}

@media only screen and (max-width: 1200px) {
    .snake_game_main {
        width: calc(100% - 100px);
        height: calc(100% - 100px);
    }
    .snake_deco_wrapper {
        display: none;
    }
    
}

@media only screen and (max-width: 800px) {
    .snake_deco_wrapper {
        display: none;
    }
    .snake_game_main {
        width: 100vw;
        height: 100%;
    }
    .snake_game_configs_wrapper {
        left: 50%;
        transform: translateX(-50%);
    }
    .snake_modal {
        width: calc(100% - 80px);
    }
    .snake_main_logo {
        margin-bottom: 25em;
    }
    .snake_main_text{
        margin-bottom: 4.5em;
    }
    .snake_main_text.main_info {
        margin-bottom: 1.4em;
    }

    .snake_provider_logo {
        margin-bottom: 8em;
    }

}

@media only screen and (max-width: 599px) {
    .snake_btn-popup {
        font-size: 6px;
        width: 43em;
    }
    .snake_btn {
        font-size: .25rem;
    }
    .snake_btn-score{
        font-size: 5px;
    }
    .snake_deco_wrapper {
        display: none;
    }
    .snake_modal {
        width: calc(100% - 100px);
        font-size: 6px;
        top: 150px;
        transform: translate(-50%, 0);
        height: calc(100% - 340px);
    }
    
    .snake_main_logo {
        margin-bottom: 17em;
    }

    .snake_game_canvas_wrapper {
        width: calc(100% - 100px);
        height: calc(100% - 190px);
        top: 100px;
        transform: translate(-50%, 0);
    }
    .snake_game_header {
        padding: 0 36px;
    }

    .snake_main_text {
        text-transform: lowercase;
    }

}

@media only screen and (max-width: 500px) {
    
    .snake_game_configs_wrapper{
        left: 50%;
        transform: translateX(-50%);
    }
    
}

@media only screen and (max-width: 415px) {

    .snake_modal {
        top: 265px;
        height: calc(100% - 565px);
    }

}

@media only screen and (max-width: 376px) {

    .snake_modal {
        top: 160px;
        height: calc(100% - 355px);
    }

}

/* width */
::-webkit-scrollbar {
    width: 10px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.2);
  }
  
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: var(--popup_bg_shadow);
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: var(--btn_bg);
  }

  .snake_game_canvas_change_orientation{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--wrapperBg);
    background-image: linear-gradient(var(--wrapperBorder) 1px, transparent 1px), linear-gradient(90deg, var(--wrapperBorder) 1px, transparent 1px);
    align-items: center;
    color: #fff;
    font-size: 30px;
    font-family: 'Fixedsys';
    justify-content: center;
    z-index: 10;
  }

  @media (min-width: 320px) and (max-width: 900px) and (orientation: landscape) {
    .snake_game_canvas_change_orientation{
        display: flex;
      }
  }
