
:root {
    --collection-width: min(60vw, 700px, 100vh);
    --collection-height: calc(0.35 * var(--collection-width));
    --rules-middle-size-button-w: min(12vw, 120px);
    --intro-size: max(100vh, 100vw);
    --intro-content-width: 80vw;
    --intro-close-height: 10vh;
    --intro-video-bgr-height: min(60vh, 700px);
    --intro-video-bgr-width: calc(var(--intro-video-bgr-height) * 2.3);
    --intro-transition-duration: 0.8s;
    --intro-slide-width: min(1200px, 100vw);
    --intro-slide-img-min: min(800px, 100vw, 78vh);
    --intro-closebtn-width: min(17vh, 36vw);
    --intro-table-width: min(70vw, 700px);
    --intro-table-height: calc(var(--intro-table-width) * 0.8);
    --intro-font-size: min(20px, calc(var(--intro-video-bgr-height) * 0.07));
    --main-img-height: calc(var(--intro-slide-img-min) * 0.9);
    --slide-radio-button-size: min(10vw, 20px);
    --line-cell-width: min(4vw, 22px);
    --buy-image-width: min(50vw, 200px);
}
#external_clock * {
    text-shadow: 1px 1px 1px black;
}
/*.button_icon_image {*/
/*    width: 46px;*/
/*    background-color: #777777;*/
/*}*/
.no_bgr { background-color: transparent !important; }
.centered {
    text-align: center;
    justify-items: center;
}
.unique_font { font-family: "Roboto", sans-serif }
/*.fit_text {*/
/*    font-size: min(1.5cqh, 2cqw);*/
/*    place-self: center;*/
/*}*/
.row0 { grid-row: row0 }
.row1 { grid-row: row1 }
.row2 { grid-row: row2 }
.row3 { grid-row: row3 }
.start_col { grid-column: start_col }
.end_col { grid-column: end_col }
.column0 { grid-column: column0 }
.column1 { grid-column: column1 }
.column2 { grid-column: column2 }
.column3 { grid-column: column3 }
.column4 { grid-column: column4 }
.column5 { grid-column: column5 }
.column6 { grid-column: column6 }
.image_vw { width: 10vw }
.vertical_gap { height: 10px}

.image_column{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    row-gap: 5px;
}
.image_row{
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.image_column .item_m{
    width: 50%;
    height: 50%;
}
.inline_image {
    display: inline;
    max-width: 50px;
    height: auto;
}
.flex_line {
    justify-content: start;
    align-items: center;
}
/*rules*/
.paragraph_wrapper .text{
    margin: 0 1%;
}
.text_on_image {
    display: grid;
    justify-items: center;
    align-items: center;
}
.text_on_image > *{
    grid-area: 1 / 1;
    font-size: 1.7rem;
    text-align: center;
}
.text_on_image .text {
    margin-top: -1.5%;
}
#buyButtonImage {
    width: var(--buy-image-width);
    height: calc(var(--buy-image-width) * 0.46);
}
.buyButtonText {
    font-size: 1.3em;
}
.rules_multipliers_table{
    display: grid;
    grid-template-columns: [start] auto [column0] 20vw [column1] 16vw [end] auto;
    grid-template-rows: auto;
}
.rules_bonus_item_table{
    display: grid;
    align-items: center;
    grid-template-columns: [start] auto [column0] min(15vw, 130px) [gap] 5px [column1] min(50vw, 350px) [column2] min(10vw, 150px) [end] auto;
    grid-template-rows: auto;
}
.buy_bonus_image img {
    width: min(25vw, 180px);
}

/*#buy_button_text{*/
/*    text-align: center;*/
/*    color: #fefbd0;*/
/*    line-height: 100%;*/
/*    font-size: min(4cqw, 26px);*/
/*    margin: auto;*/
/*    text-shadow: 1px 1px #0a2708;*/
/*}*/
#bonus_payout_wrapper{
    display: flex;
    width: 100%;
    justify-content: center;
}
#bonus_payouts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: min(70vw, 500px);
    /*border: white 1px solid;*/
    padding: 2px;
}
#bonus_payouts * {
    border: white 1px solid;
    padding: 5px;
}

.auto_spin_turbo_wrapper{
    display: inline-grid;
    align-items: center;
    justify-items: center;
    grid-template-columns: [turbo_column] 20vw [spin_column] 25vw [auto_column] 20vw;
    grid-template-rows: [row1] auto [row2] auto [row3] auto;
    column-gap: 1vw;
    row-gap: 10px;
}
.auto_spin_turbo_wrapper .text { align-self: start }
.auto_column { grid-column: auto_column }
.spin_column { grid-column: spin_column }
.turbo_column { grid-column: turbo_column }

.menu_buttons_table {
    display: grid;
    align-items: center;
    justify-items: start;
    grid-template-columns: [start] 5px [button_column] 46px [button_describe_column] auto;
    column-gap: 5vw; row-gap: 10px
}
.button_column { grid-column: button_column }
.button_describe_column {
    grid-column: button_describe_column;
    text-align: left;
}
.middle_size_button_bgr {
    width: var(--rules-middle-size-button-w);
    height: var(--rules-middle-size-button-w);
}
#spin_bgr, #spin_button {
    width: min(24vw, 200px);
}

.about_wrapper{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2vw;
}
#logo_wrapper{
    display: flex;
    width: 100vw;
    height: 100vh;
}
#main_logo {
    width: min(50vw, 388px);
    height: auto;
}
.tabulated::before {
    content: '\00a0\00a0\00a0\00a0-\00a0';
}
.subtabulated::before {
    content:  '\00a0\00a0\00a0\00a0\00a0\00a0\00a0◦\00a0';
}

/*paytable*/
.aligned_left {
    justify-content: left;
}
#instant_win {
    width: min(50vw, 200px);
    margin: auto;
}

#all_payout_wrapper, #lines_wrapper{
    display: flex;
    flex-wrap: wrap;
    gap: 2vw;
    justify-content: center;
}
#all_payout_wrapper {
    row-gap: 5px;
    margin: 0 2%;
}
.payout_item{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2vw;
}
.flex_break {
    flex-basis: 100%;
    height: 0;
}
.bonus_item {
    height: auto;
    width: min(8vw, 80px);
}
.payout_image, .game_item, .game_item img {
    height: auto;
    width: min(15vw, 130px);
}
.payout_pair{
    text-wrap: nowrap;
}
.payout_index,
.payout_value{
    display: inline;
    margin-right: 5px;
    text-wrap: nowrap;
}

.line_item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.line_index {
    width: calc(var(--line-cell-width) * 1.1);
    text-align: right;
}
.line_grid{
    display: grid;
    grid-template-rows: [row0] auto [row1] auto [row2] auto [row3] auto;
    grid-template-columns: [column0] auto [column1] auto [column2] auto [column3] auto [column4] auto [column5] auto;
}
.line_cell {
    width: var(--line-cell-width);
    height: min(3vw, 20px);
    border-width: 2px;
    border-style: none solid solid none;
    border-color: #797979;
}
.line_cell.column0 { border-left-style: solid}
.line_cell.row0 { border-top-style: solid}
.line_cell.active{
    background-color: #4eb857;
}

/*intro*/
#intro_content {
    display: flex;
    position: relative;
    flex-flow: column;
    justify-content: space-evenly;
}
#intro_toggle_block {
    display: flex;
    width: calc(var(--intro-content-width) / 2 - var(--intro-closebtn-width) / 2);
    justify-content: right;
}
#intro_toggle_block > * {
    display: flex;
    align-items: center;
}
#intro_back, #intro_video_wrapper { position: absolute }
#intro_back img {
    height: var(--intro-size);
    width: var(--intro-size);
    margin-left: calc((100vw - var(--intro-size)) / 2);
    margin-top: calc((100vh - var(--intro-size)) / 2);
}
.intro_flex_item {
    width: var(--intro-content-width);
    display: flex;
    margin: 0 auto;
    justify-content: space-evenly;
}
.text_on_image {
    height: 210px;
    position: relative;
}

#intro_content .text_on_image img {
    height: 100%;
    width: min(100%, 460px);
}
#intro_content_block {
    gap: 10px;
    display: flex;
    flex-flow: column;
    width: 100vw;
    align-items: center;
}
.main_width {
    display: grid;
    grid-template-rows: [row0] 100%;
    grid-template-columns: [column0] 100%;
    width: var(--intro-table-width);
    height: auto;
}
.main_width .image {
    width: 100%;
    height: auto;
}
/*#first_frame, #second_frame {*/
/*    border-color: white;*/
/*    border-width: 4px;*/
/*    border-style: solid;*/
/*}*/
#first_frame {
    width: calc(var(--intro-table-width) * 0.95);
    height: calc(var(--intro-table-height) * 0.93);
    -webkit-animation: outer_glow 3s linear infinite;
    animation: outer_glow 3s linear infinite;
}
@-webkit-keyframes outer_glow {
    0% {
        -webkit-box-shadow:0 0 20px 8px rgba(37,196,255,0.78);
    }
    50% {
        -webkit-box-shadow:0 0 20px 8px rgba(37,196,255,0.1);
    }
    100% {
        -webkit-box-shadow:0 0 20px 8px rgba(37,196,255,0.78);
    }
}

@keyframes outer_glow {
    0% {
        box-shadow: 0 0 20px 8px rgba(37,196,255,0.78);
    }
    50% {
        box-shadow: 0 0 20px 8px rgba(37,196,255,0.1);
    }
    100% {
        box-shadow: 0 0 20px 8px rgba(37,196,255,0.78);
    }
}
#second_frame {
    width: calc(var(--intro-table-width) * 0.89);
    height: calc(var(--intro-table-height) * 0.86);
    -webkit-animation: inner_glow 2s linear infinite;
    animation: inner_glow 2s linear infinite;
}

@-webkit-keyframes inner_glow {
    0% {
        -webkit-box-shadow: inset 0 0 43px 18px rgba(0,78,255,1);
    }
    50% {
        -webkit-box-shadow: inset 0 0 43px 12px rgba(0,78,255,0.6);
    }
    100% {
        -webkit-box-shadow: inset 0 0 43px 18px rgba(0,78,255,1);
    }
}

@keyframes inner_glow {
    0% {
        box-shadow: inset 0 0 43px 18px rgba(0,78,255,1);
    }
    50% {
        box-shadow: inset 0 0 43px 12px rgba(0,78,255,0.6);
    }
    100% {
        box-shadow: inset 0 0 43px 18px rgba(0,78,255,1);
    }
}

.intro_image_and_text_wrapper, .intro_text_table {
    display: grid;
    justify-items: center;
}
.intro_image_and_text_wrapper {
    width: var(--intro-table-width);
    height: var(--intro-table-height);
    grid-template-columns: [column0] auto;
    grid-template-rows: [row0] auto;
    align-items: center;
}
#intro_main_image{
    width: var(--intro-table-width);
    height: var(--intro-table-height);
}
#intro_respin_image{
    width: calc(var(--intro-table-width) * 0.15);
    height: auto;
    transform: translateX(calc(var(--intro-table-width) * -0.22)) translateY(-15%);
    animation: respin 3s linear infinite;
}
@keyframes respin {
    0% {
        transform: translateX(calc(var(--intro-table-width) * -0.22)) translateY(-25%);
        opacity: 1;
    }
    15% { opacity: 0.5 }
    30% {
        transform: translateX(calc(var(--intro-table-width) * -0.22)) translateY(15%);
        opacity: 0;
    }
    100% {
        transform: translateX(calc(var(--intro-table-width) * -0.22)) translateY(-25%);
        opacity: 0;
    }
}
.intro_text_table {
    width: 85%;
    height: 95%;
    grid-template-columns: [column0]  50% [column1] auto;
    grid-template-rows: [gap_row] 60% [row0] auto;
    align-items: start;
}
.intro_text_table .row0{
    align-self: center;
}
.intro_text_table .text {
    text-align: center;
    text-transform: uppercase;
    font-family: "Roboto", sans-serif;
    font-size: min(2cqh, 1.8cqw);
    color: white;
}
.intro_header {
    font-size: min(2.3cqh, 2.3cqw) !important;
}

#intro_bottom_buttons_block {
    height: calc(var(--intro-close-height)* 1.4);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 97%;
    pointer-events: none;
}
#intro_toggle_left_gap  { width: 40% }
#intro_button_close {
    display: block;
    width: 100vw;
    height: 15vh;
    position: absolute;
    bottom: 0;
}
#intro_toggle_button {
    margin: auto 10px;
    pointer-events: auto;
}
#intro_image_play_btn {
    cursor: pointer;
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
}
.tap_anywhere_text {
    padding: 15px;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.6);
    pointer-events: none;
    color: white;
    text-align: center;
    max-width: 60vw;
}
/* #intro_image_play_btn img {
    width: var(--intro-closebtn-width);
    height: auto;
} */
.donot_text {
    font-size: max(14px, min(2vh, 2vw));
    color: white;
}

.intro_slide_item_title {
    font-size: 4vh;
    color: beige;
    text-align: center;
    text-shadow: 2px 4px black;
}

#intro_slides_wrapper {
    margin: auto;
    height: calc(var(--intro-video-bgr-height) * 0.2);
    /* pointer-events: none; */
    color: #4eb857;
}
.intro_slide_item {
    opacity: 0;
    /*position: absolute;*/
    /*top: 0;*/
    /*margin-left: calc( 0vw - 100vw - var(--intro-slide-width));*/
    /*width: var(--intro-slide-width);*/
    /*height: var(--main-img-height);*/
    /*display: grid;*/
    /*grid-template-columns: [column0] 100%;*/
    /*grid-template-rows: [row0] 100%;*/
    /*justify-items: center;*/
    /*align-items: center;*/
}
.intro_text_wrapper{
    width: calc(var(--intro-video-bgr-width) * 0.8);
    height: var(--intro-video-bgr-height);
}
.intro_slide_item.active {
    opacity: 1;
    /*margin-left:  calc(0px - var(--intro-slide-width) / 2);*/
    transition: all .4s;
}
.port.image img {
    width: 0;
    height: 0;
}
#intro_slide_buttons {
    display: flex;
    height: var(--slide-radio-button-size);
    justify-content: center;
    gap: min(60px, 10vw);
    margin-bottom: 5px;
    position: relative;
}
.slide_radio_button {
    width: var(--slide-radio-button-size);
    height: var(--slide-radio-button-size);
    display: grid;
    grid-template-columns: [column0] 100%;
    grid-template-rows: [row0] 100%;
    margin-top: auto;
    cursor: pointer;
    background-color: rgba(128, 128, 128, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}
.slide_radio_button * {
    grid-column: column0;
    grid-row: row0;
}
.slide_radio_button.active {
    cursor: default;
    background-color: rgba(128, 128, 128, 0.6); /* Трохи темніший фон */
    border: 5px solid #ffffff;
}


@media only screen and (max-width: 1200px) {
    :root {
        --intro-content-width: 94vw;
    }
}
@media only screen and (max-width: 1100px) {

}
@media only screen and (max-width: 720px) {
    #all_payout_wrapper { gap: 1vw }
}
/*@media only screen and (max-width: 600px) {*/
/*    :root {*/
/*        --intro-close-height: 16vh;*/
/*    }*/
/*    #intro_toggle_block {*/
/*        width: 90vw;*/
/*        justify-content: center;*/
/*    }*/
/*    #intro_image_play_btn { margin: auto }*/
/*    #intro_bottom_buttons_block { flex-flow: column }*/
/*    #intro_bottom_buttons_block > * { height: calc(var(--intro-close-height) / 2) }*/
/*    .intro_flex_item { width: auto }*/
/*}*/
@media only screen and (max-width: 500px) {
    :root {
        --intro-font-size: min(2.5cqh, 4cqw);
    }
    .text_on_image .text { font-size: 16px }
}
@media only screen and (max-width: 450px) {
    #all_payout_wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 10px;
    }
    .payout_index { min-width: 8vw; }
}
@media only screen and (max-aspect-ratio: 4 / 3) {
    :root{
        --intro-video-bgr-width: min(94vw, 800px);
        --intro-video-bgr-height: calc(0.44 * var(--intro-video-bgr-width));
    }
    #intro_video_wrapper {
        margin-top: calc((100vh - var(--intro-video-bgr-height)) / 2);
    }
}
/*@media screen and (orientation: landscape) and (min-aspect-ratio: 5 / 3) {*/
/*@media screen and (orientation: landscape) {*/
/*    :root{*/
/*        --intro-table-width: calc(100vh - var(--intro-close-height));*/
/*    }*/

/*    .main_width {*/
/*        width: var(--intro-table-width);*/
/*        height: var(--intro-table-width);*/
/*    }*/
/*    .intro_image_and_text_wrapper, .main_width .image {*/
/*        width: var(--intro-table-width);*/
/*        height: var(--intro-table-width);*/
/*    }*/
/*}*/
@media screen and (orientation: portrait) {
    :root {
        --intro-table-width: 95vw;
        --intro-close-height: 14vh;
        --intro-video-bgr-height: calc((100vh - var(--intro-close-height)* 1.5) * 0.7);
        --intro-video-bgr-width: calc(var(--intro-video-bgr-height) * 0.75);
    }
    .name_logo_wrapper{
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: initial !important;
    }
    #dummy_name{
        display: none !important;
    }
    #intro_bottom_buttons_block {
        height: calc(var(--intro-close-height) * 1.8);
    }
    .land.image img {
        width: 0;
        height: 0;
    }
    .intro_text_wrapper, .port.image, .port.image img {
        height: var(--intro-video-bgr-height);
        width: var(--intro-video-bgr-width);
    }
    /*.intro_slide_item {*/
    /*    top: 10vh;*/
    /*    align-items: start;*/
    /*}*/
    .intro_text_descriptions {
        flex-direction: column;
        height: 50%;
        justify-content: space-between;
    }
    .intro_title, .intro_text{
        width: 90vw;
    }
    .intro_title {
        margin-top: 1vh;
    }
    #intro_toggle_block {
        width: 90vw;
        justify-content: center;
    }
    #intro_image_play_btn { margin: auto }
    #intro_bottom_buttons_block {
        flex-flow: column;
        width: 100%;
    }
    #intro_toggle_left_gap{ display: none }
    #intro_bottom_buttons_block > * { height: calc(var(--intro-close-height) / 2) }
    .intro_flex_item { width: auto }
}

/* HISTORY */
.text_matrix .matrix__item,
.matrix__item_img {
    width: 80px;
    height: 80px;
}
.collection__item,
.line-symbol,
.transfer-symbol {
    width: 42px;
    height: 42px;
}
.text_matrix {
    margin-top: calc((1vh + 240px) * -1);
}
.value.multiplier_value {
    font-weight: 900;
    color: #c04fe0;
}
.bonus_cards {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}
.bonus_card {
    position: relative;
    width: 48px;
    height: 68px;
    border-radius: 6px;
    border: 3px solid transparent;
    background: #fff;
    box-sizing: border-box;
    filter: brightness(0.6);
}
.bonus_card.black { color: #111; }
.bonus_card.red { color: #b0101c; }
.bonus_card.win {
    filter: none;
    border-color: #4caf50;
}
.bonus_card__corner {
    position: absolute;
    top: 2px;
    left: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
.bonus_card__rank {
    font-size: 13px;
    font-weight: 900;
}
.bonus_card__suit_small svg {
    width: 9px;
    height: 9px;
}
.bonus_card__suit svg {
    position: absolute;
    right: 5px;
    bottom: 6px;
    width: 24px;
    height: 24px;
}
