@charset "utf-8";

a:visited,
a:link,
a:active {
    color: black;
    text-decoration: none;
}

a[href^="tel:"] {
    text-decoration: inherit;
    color: inherit;
}

.close {
    width: 40px;
    height: 40px;
    opacity: 0.3;
}

.close:hover {
    opacity: 1;
}

.close:before,
.close:after {
    position: absolute;
    content: ' ';
    height: 40px;
    width: 3px;
    background-color: white;
}

.close:before {
    transform: rotate(45deg);
}

.close:after {
    transform: rotate(-45deg);
}

.form_input2::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: white;
}

.form_input2::-moz-placeholder {
    /* Firefox 19+ */
    color: white;
}

.form_input2:-ms-input-placeholder {
    /* IE 10+ */
    color: white;
}

.form_input2:-moz-placeholder {
    /* Firefox 18- */
    color: white;
}

#opis::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: #3B2774;
}

#opis::-moz-placeholder {
    /* Firefox 19+ */
    color: #3B2774;
}

#opis:-ms-input-placeholder {
    /* IE 10+ */
    color: #3B2774;
}

#opis:-moz-placeholder {
    /* Firefox 18- */
    color: #3B2774;
}

@media screen and (max-width: 4500px) and (min-width: 1101px) {

    html,
    body {
        width: 100%;
        height: 4484px;
        margin: 0px;
        padding: 0px;
    }

    body {
        background: url('../images/main_bg2.jpg');
        background-repeat: no-repeat;
        background-position: center top;
        
    }

    /* Use to form category "Where is code" - Paragon */
    #popup_wrapper {
        display: none;
        position: absolute;
        z-index: 55000;
        cursor: pointer;
        background: rgba(128, 128, 128, 0.74)
    }

    #popup_wrapper {
        width: 100%;
        height: 100%;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 55000;
        display: none;

    }

    #popup {
        width: 324px;
        position: fixed;
        top: calc(50% - 350px);
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        z-index: 10000000;
        display: block;
        cursor: pointer;
    }

    #popup > img {
        width: 324px;
    }

    #navigation {
        display: none;
    }

    #logo_1 {
        width: 275px;
        height: 73px;
        background: url('../images/logo_zabka.png');
        background-size: contain;
        background-repeat: no-repeat;
        float: left;
        margin-top: 0px;
        margin-left: 0px;
    }

    #nav_scrolled {
        width: 100%;
        height: 73px;
        left: 0;
        right: 0;
        margin: 0 auto;
        position: fixed;
        background: transparent linear-gradient(180deg, #604A98 0%, #7864A9 49%, #7965AA5E 100%) 0% 0% no-repeat padding-box;
        z-index: 10;
    }

    #nav_scrolled_inner {
        width: 1100px;
        height: 73px;
        margin: 0 auto;
    }

    #menu_scrolled {
        padding-left: 0px;
    }

    #nav_scrolled ul {
        float: left;
        margin-top: 18px;
        margin-left: 95px;
    }

    #nav_scrolled ul > li {
        display: inline-block;
        margin-left: 10px;
    }

    #nav_scrolled ul > li > a {
        padding: 12px;
        padding-bottom: 8px;
        display: block;
        font-family: "Congenial";
        font-size: 18px;
        text-decoration: none;
        color: white;
        cursor: pointer;
    }

    .menu-item {}

    .menu-item:hover {
        padding: 12px;
        color: #3B2774 !important;
        background: #9CDBF6;
        border-radius: 50px;
    }

    /* WAIT WRAPPER */
    #wait_wrapper {
        position: absolute;
        z-index: 55000;
    }

    #wait_wrapper {
        width: 100%;
        height: 100%;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 100;
        background: rgba(44, 44, 44, 0.7);
        display: none;
    }

    #wait_box {
        width: 518px;
        height: 238px;
        position: fixed;
        background: #7D69AC;
        border-radius: 20px;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        top: calc(50% - 259px);
        z-index: 10000000;
        display: block;
        color: white;
        font-family: "Congenial";
        font-size: 28px;
        text-decoration: none;
        text-align: center;
        padding-top: 50px;
    }

    #positive_wrapper {
        position: absolute;
        z-index: 55000;
        cursor: pointer;
    }

    #positive_wrapper {
        width: 100%;
        height: 100%;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 100;
        background: rgba(44, 44, 44, 0.7);
        display: none;
    }

    #positive_msg {
        width: 46%;
        max-width: 870px;
        min-width: 560px;
        height: auto;
        background: #7D69AC;
        border: 2px solid white;
        position: fixed;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        top: 125px;
        z-index: 10000000;
        display: block;
        cursor: pointer;
    }

    #positive_ok {
        width: 36px;
        height: 31px;
        float: right;
        margin-right: 0px;
        margin-top: 20px;
    }

    #positive_losowanie {
        width: 300px;
        margin: 0 auto;
    }

    #positive_title {
        height: auto;
        width: 100%;
        text-align: center;
        font-family: "Myriad Pro Bold";
        margin: 0 auto;
        color: white;
        font-size: 41px;
        margin-top: 63px;
    }

    #positive_text {
        width: 100%;
        font-family: "Myriad Pro Bold";
        color: white;
        font-size: 24px;
        text-align: center;
        margin-top: 40px;
        margin-bottom: 40px;
    }
    #code_wrapper {
        position: absolute;
        z-index: 55000;
    }

    #code_wrapper {
        width: 100%;
        height: 100%;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 9999;
        background: rgba(44, 44, 44, 0.7);
        display: none;
    }

    #code_msg {
        width: 718px;
        height: 538px;
        background: #7D69AC;
        position: fixed;
        border: 2px solid white;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        top: calc(50% - 265px);
        z-index: 10000000;
        display: block;
        display: none;
    }

    #code_ok {
        float: right;
        margin-right: 0px;
        margin-top: 15px;
        cursor: pointer;
    }

    #code_title {
        height: 65px;
        width: 671px;
        text-align: center;
        font-family: "Congenial";
        font-weight: 500;
        margin: 0 auto;
        color: white;
        font-size: 50px;
        text-transform: uppercase;
        margin-top: 100px;
        margin-bottom: 30px;
    }

    #code_text {
        width: 95%;
        font-family: "Congenial";
        font-weight: 500;
        color: white;
        font-size: 25px;
        text-align: center;
        margin: 0 auto;
        margin-top: 80px;
    }

    #email_check {
        width: 300px;
        height: 60px;
        background: none;
        color: white;
        font-size: 20px;
        border-width: 0 0 3px 0;
        border-color: white;
        border-radius: 0px;
        float: left;
        text-align: center;
        font-family: "Congenial";
        font-weight: 500;
        padding: 0px;
        outline: 0px;
        margin: 0px;
    }

    #paragon_check {
        width: 300px;
        height: 60px;
        background: none;
        color: white;
        font-size: 20px;
        border-width: 0 0 3px 0;
        border-color: white;
        border-radius: 0px;
        float: right;
        clear: none;
        text-align: center;
        font-family: "Congenial";
        font-weight: 500;
        padding: 0px;
        outline: 0px;
        margin: 0px;
    }

    #button_check {
        width: 256px;
        height: 50px;
        background: white;
        font-family: "Congenial";
        font-weight: 500;
        color: #7D69AC;
        border: 0px;
        font-size: 25px;
        cursor: pointer;
        margin-left: 210px;
        margin-top: 50px;
        margin-bottom: 0px;
        float: left;
    }

    #response {
        width: 500px;
        height: 100px;
        margin: 0 auto;
        font-family: "Congenial";
        font-weight: 500;
        color: white;
        font-size: 18px;
        line-height: 30px;
        cursor: auto;
        clear: both;
        padding-top: 20px;

    }

    #status {
        width: 120px;
        height: 38px;
        background: #91C9ED;
        color: #3B2774;
        font-family: "Congenial";
        font-weight: 500;
        border-radius: 50px;
        padding-top: 10px;
        font-size: 14px;
        position: fixed;
        text-align: center;
        right: 20px;
        top: 100px;
        z-index: 3;
        cursor: pointer;
    }

    /* Animated menu end */
    #home {
        width: 1100px;
        height: 760px;
        margin: 0 auto;
        margin-top: -930px;
    }

    #home_bg1 {
        width: 432px;
        height: auto;
        float: left;
        margin-left: 105px;
        margin-top: 150px;
    }

    #home_bg2 {
        width: 614px;
        height: auto;
        float: left;
        clear: both;
        margin-left: 15px;
        margin-top: 35px;
    }

    #join {
        display: inline-block;
        width: 230px;
        height: 60px;
        background: #9CDBF6;
        margin-left: 210px;
        color: #3B2774;
        float: left;
        clear: both;
        line-height: 65px;
        margin-top: 40px;
        font-family: 'Congenial';
        border-radius: 50px;
        text-align: center;
        font-size: 29px;
        cursor: pointer;
        position: relative;
    }

    #home_text2 {
        width: 430px;
        text-align: center;
        font-family: "Congenial";
        font-size: 18px;
        color: white;
        float: left;
        clear: both;
        margin-left: 110px;
        margin-top: 30px;
    }
    #top_box{
        width: 100%;
        height: 930px;
        position: relative;
        overflow-x: hidden;
    }
    #home_bg3 {
        width: 749px;
        height: auto;
        position: absolute;
        top: 625px;
        left: 50%;
        margin-left: 450px;
        transform: translate(-50%, -50%);
        z-index: 2;
    }
    #home_anim{
        width: 511px;
        height: 738px;
        float: right;
        clear: both;
        margin-top: -700px;
        margin-right: -5px;
    }
    #nagrody {
        width: 1100px;
        height: 750px;
        margin: 0 auto;
        padding-top: 73px;
    }

    #nagrody_title {
        font-family: "neue-kabel";
        font-size: 53px;
        color: white;
        width: 100%;
        text-align: center;
    }

    #nagrody_img1 {
        float: left;
        width: 933px;
        height: auto;
        margin-top: 40px;
        margin-left: 85px;
    }

    #nagrody_text1 {
        width: 100%;
        font-family: "neue-kabel";
        font-size: 34px;
        text-align: center;
        color: white;
        float: left;
        clear: both;
        margin-left: 0px;
        margin-top: 50px;
    }

    #nagrody_img2 {
        float: left;
        width: 391px;
        height: auto;
        margin-top: 40px;
        margin-left: 180px;
    }
    #nagrody_text2 {
        width: 340px;
        font-family: "neue-kabel";
        font-size: 39px;
        line-height: 43px;
        color: white;
        float: left;
        margin-left: 30px;
        margin-top: 35px;
    }
    #nagrody_anim{
        width: 659px;
        height: 340px;
        float: left;
        clear: both;
        margin-top: 20px;
        margin-left: 263px;
    }
    #zasady {
        width: 1100px;
        height: 730px;
        margin: 0 auto;
        padding-top: 73px;
    }

    #zasady_title {
        font-family: "Neue-kabel";
        font-size: 53px;
        color: white;
        float: left;
        clear: both;
        width: 100%;
        text-align: center;
    }
    #zasady_img1{
        float: left;
        clear: both;
        width: 537px;
        height: auto;
        margin-top: 40px;
        margin-left: 273px;
    }
    .zasady_box {
        width: 315px;
        height: auto;
        float: left;
        margin-left:200px;
        margin-top: 20px;
    }

    .box2 {
        width: 350px;
        margin-left: 46px;
    }

    .zasady_nr {
        width: 48px;
        height: 48px;
        background: #F7D790;
        border-radius: 50px;
        color: #3B2774;
        font-size: 25px;
        font-family: "Congenial";
        text-align: center;
        line-height: 52px;
        margin: 0 auto;
        margin-bottom: 20px;
    }

    .zasady_text {
        width: 100%;
        color: white;
        font-size: 19px;
        line-height: 27px;
        font-family: "neue-kabel";
        font-weight: bold;
        text-transform: uppercase;
        float: left;
        clear: both;
        text-align: center;
    }
    #join2{
        color: #F7D790;
    }
    #zasady_text1 {
        width: 900px;
        color: white;
        margin-left: 100px;
        margin-top: 30px;
        font-size: 16px;
        line-height: 23px;
        font-family: "neue-kabel";
        font-weight: bold;
        text-align: center;
        text-transform: uppercase;
        float: left;
        clear: both;
        text-align: center;
    }

    #rules_download {
        display: inline-block;
        width: 195px;
        height: 50px;
        background: #91C9ED;
        color: #3B2774;
        float: left;
        clear: both;
        line-height: 55px;
        margin-top: 40px;
        margin-left: 205px;
        font-family: 'Congenial';
        font-weight: 500;
        border-radius: 50px;
        text-align: center;
        font-size: 24px;
        cursor: pointer;
    }

    #products_download {
        display: inline-block;
        width: 480px;
        height: 50px;
        background: #91C9ED;
        color: #3B2774;
        float: left;
        line-height: 55px;
        margin-top: 40px;
        margin-left: 20px;
        font-family: 'Congenial';
        font-weight: 500;
        border-radius: 50px;
        text-align: center;
        font-size: 24px;
        cursor: pointer;
    }

    #wez-udzial {
        width: 1100px;
        height: 910px;
        margin: 0 auto;
        padding-top: 73px;
    }

    #wez-udzial_bg {
        width: 100%;
        color: white;
        text-align: center;
        font-size: 53px;
        font-family: "Neue-kabel";
    }

    #main_form {
        width: 1100px;
        height: auto;
        margin-top: 20px;
        float: left;
        margin-left: 0px;
    }

    #main_form2 {
        width: 980px;
        height: auto;
        font-family: "Congenial";
        font-weight: 500;
        color: white;
        font-size: 32px;
        padding-top: 150px;
        text-align: center;
        margin-left: 60px;
    }

    .label_form {
        width: auto;
        text-align: center;
        color: #8DAC51;
        font-size: 16px;
        background: transparent;
        font-family: "Myriad Pro Bold";
        float: left;
        clear: both;
        letter-spacing: -0.5px;
        position: relative;
        margin-left: 23px;
        z-index: 3;
        margin-top: -2px;
    }

    .form_input {
        width: 330px;
        height: 60px;
        font-family: "Neue-Kabel";
        font-size: 20px;
        background: white;
        outline: 0;
        border: 0px;
        border-radius: 50px;
        color: #3B2774;
        float: left;
        padding: 0px;
        padding-left: 20px;
        margin-top: 30px;
        margin-left: 0px;
    }

    #email,
    #code {
        margin-left: 25px;
    }

    @-webkit-keyframes autofill {
        to {
            color: #3B2774;
            font-family: "Neue-Kabel";
            background: transparent;
        }
    }

    input:-webkit-autofill {
        color: #3B2774;
        -webkit-animation-name: autofill;
        -webkit-animation-fill-mode: both;
    }

    ::-webkit-input-placeholder {
        /* Chrome/Opera/Safari */
        color: #3B2774;
    }

    ::-moz-placeholder {
        /* Firefox 19+ */
        color: #3B2774;
    }

    :-ms-input-placeholder {
        /* IE 10+ */
        color: #3B2774;
    }

    :-moz-placeholder {
        /* Firefox 18- */
        color: #3B2774;
    }


    #show_popup1 {
        width: 29px;
        height: 29px;
        background: url("../images/gdzie_jest_numer.png");
        margin-left: -43px;
        margin-top: 52px;
        display: block;
        float: left;
    }
    #opis_label {
        font-size: 25px;
        color: white;
        font-family: "Neue-Kabel";
        width: 100%;
        text-align: center;
        float: left;
        clear: both;
        margin-top: 40px;
    }

    #opis {
        width: 760px;
        height: 94px;
        float: left;
        clear: both;
        background: white;
        border-radius: 38px;
        padding: 20px;
        font-family: "Neue-Kabel";
        border:0px;
        margin-left: 150px;
        margin-top: 40px;
        font-size: 20px;
        color: #3B2774;
        resize: none;
        outline: 0;
    }

    #opis_max {
        width: 800px;
        text-align: center;
        font-size: 15px;
        color: white;
        font-family: "Neue-Kabel";
        float: left;
        clear: both;
        margin-left: 150px;
        text-align: right;
        margin-top: 10px;
    }

    #reg {
        float: left;
        clear: both;
        font-family: "Neue-Kabel";
        font-weight: 500;
        font-size: 18px;
        color: white;
        margin-top: 30px;

    }

    #rules_download2 {
        display: inline-block;
        border: 0px;
        cursor: pointer;
        font-family: "Neue-Kabel";
        font-weight: 500;
        font-size: 18px;
        margin-right: 5px;
        text-decoration: underline;
        float: left;
        clear: both;
        color: white;
    }

    .switch2 {
        position: relative;
        display: inline-block;
        width: 63px;
        height: 30px;
        float: left;
        margin-left: 0px;
    }

    .switch2 input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .slider2 {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #D5D5D5;
        -webkit-transition: .4s;
        transition: .4s;
    }

    .slider2:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 4px;
        top: 3px;
        background: white;
        background-repeat: no-repeat;
        background-position: center;
        -webkit-transition: .4s;
        transition: .4s;
        box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.5);
    }

    input:checked + .slider2 {
        background-color: #93CBF0;
    }


    input:checked + .slider2:before {
        -webkit-transform: translateX(21px);
        -ms-transform: translateX(21px);
        transform: translateX(21px);
        background: white;
        left: 15px;
        background-repeat: no-repeat;
        background-position: center;
    }

    .slider2.round2 {
        border-radius: 34px;
    }

    .slider2.round2:before {
        border-radius: 50%;
    }

    .data_box2 {
        width: 950px;
        height: auto;
        float: left;
        clear: both;
        margin-left: 0px;
        margin-top: 25px;
    }

    .data_label2 {
        width: 860px;
        color: white;
        font-size: 17px;
        line-height: 26px;
        font-family: "Congenial";
        font-weight: 500;
        float: left;
        margin-left: 20px;
        margin-top: 1px;
    }
    #shield_icon{
        width: 39px;
        height: 43px;
        background:url('../images/shield.png');
        margin-left: -60px;
        margin-top: 25px;
        float: inherit;
    }
    #shield {
        width: 1000px;
        height: auto;
        background:#7D6AAC;
        border-radius: 25px;
        padding: 20px;
        padding-left: 40px;
        float: left;
        clear: both;
        font-family: "Neue-Kabel";
        color: white;
        font-size: 16px;
        line-height: 17px;
        margin-top: 30px;
        margin-left: 20px;
    }

    #button_send {
        display: inline-block;
        width: 230px;
        height: 60px;
        background: #93CBF0;
        margin-left: 435px;
        color: #3B2774;
        float: left;
        clear: both;
        border: 0px;
        margin-top: 40px;
        font-family: 'Congenial';
        text-transform: uppercase;
        border-radius: 50px;
        padding-top: 5px;
        text-align: center;
        font-size: 29px;
        cursor: pointer;
        outline: 0;
    }

    #error {
        position: relative;
        width: 900px;
        color: red;
        background: white;
        height: 50px;
        margin-left: 80px;
        margin-top: 20px;
        text-align: center;
        vertical-align: middle;
        line-height: 50px;
        border: 3px solid red;
        font-family: "Myriad Pro Bold";
    }
    #gra {
        width: 1100px;
        height: 400px;
        margin: 0 auto;
        padding-top: 73px;
    }
    /* Modal */
.modal {
    position: relative;
    width: 1060px;
    height: 440px;
    background: #7B5EA7;
    border-radius: 16px;
    margin-left: 20px;
    overflow: hidden;
}

/* Board image container */
.modal-board {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s ease;
}

.board-img {
    position: absolute;
    height: 165%;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    object-fit: contain;
    transition: all 0.6s ease;
    filter: blur(0);
}

/* Text content - State 1 */
.modal-content {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 5;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.modal-title {
    color: white;
    font-size: 32px;
    line-height: 42px;
    font-family: "Neue-Kabel";
    margin-bottom: 0px;
    text-transform: uppercase;
}

.modal-disclaimer {
    color: white;
    font-size: 19px;
    line-height: 22px;
    font-family: "Neue-Kabel";
    margin-bottom: 28px;
}

/* Buttons */
.btn {
    border: none;
    cursor: pointer;
    font-size: 24px;
    font-family: "Congenial";
    text-transform: uppercase;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-play {
    background: #9CDBF6;
    color: #3B2774;
    padding: 14px 40px;
    padding-bottom: 10px;
    align-self: flex-start;
}

/* Game state - State 2 */
.modal-game {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease 0.2s;
}

.btn-dice {
    background: #9CDBF6;
    color: #3B2774;
    font-family: "Congenial";
    padding: 16px 50px;
    padding-bottom: 12px;
    font-size: 24px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ====== PLAYING STATE ====== */

.modal.playing .board-img {
    right: auto;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    height: 165%;
    filter: blur(5px);
}

.modal.playing .modal-content {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-30px);
}

.modal.playing .modal-game {
    opacity: 1;
    pointer-events: auto;
}
    /* Lottie wrapper */
.lottie-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lottie-wrapper.active {
    opacity: 1;
    pointer-events: auto;
}

.lottie-container {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lottie-container svg {
    max-height: 100% !important;
    max-width: 100% !important;
    margin-top: -80px;
}

.btn-close-card {
    background: #8ED8D2;
    color: #3a3a6a;
    padding: 12px 40px;
    padding-bottom: 10px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.btn-close-card.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hide dice button while animating */
.modal.animating .modal-game {
    opacity: 0;
    pointer-events: none;
}
    #modal-kostki{
        width: 179px;
        height: 289px;
        float: left;
        clear: both;
    }
    #kontakt {
        width: 1100px;
        height: 400px;
        margin: 0 auto;
        padding-top: 73px;
    }

    #kontakt_title {
        display: block;
        color: white;
        font-family: "Neue-Kabel";
        font-size: 53px;
        float: left;
        width: 100%;
        text-align: center;
    }

    #kontakt_company {
        display: block;
        color: white;
        font-family: "Congenial";
        font-size: 26px;
        line-height: 37px;
        float: left;
        width: 100%;
        text-align: center;
        margin-top: 30px;
    }

    .kontakt_box {
        width: 217px;
        height: 219px;
        background: white;
        border-radius: 36px;
        float: left;
        margin-left: 40px;
        margin-top: 50px;
    }

    #box1 {
        margin-left: 184px;
    }

    #kontakt_icon1 {
        width: 132px;
        height: 122px;
        float: left;
        clear: both;
        margin-left: 42.5px;
        margin-top: 26px;
    }

    #kontakt_icon2 {
        width: 106px;
        height: 114px;
        float: left;
        clear: both;
        margin-left: 55.5px;
        margin-top: 26px;
    }

    #kontakt_icon3 {
        width: 170.5px;
        height: 114px;
        float: left;
        clear: both;
        margin-left: 23px;
        margin-top: 41px;
    }

    #kontakt_phone {
        width: 100%;
        text-align: center;
        display: block;
        color: #3B2774;
        font-family: "Congenial";
        font-size: 20px;
        line-height: 30px;
        float: left;
        clear: both;
        margin-top: -10px;
    }

    #foot_email {
        width: 100%;
        text-align: center;
        display: block;
        color: #3B2774;
        font-family: "Congenial";
        font-size: 20px;
        line-height: 30px;
        cursor: pointer;
        float: left;
        clear: both;
        margin-top: -2px;
        margin-left: 0px;
    }

    #foot_link {
        width: 100%;
        text-align: center;
        display: block;
        color: #3B2774;
        font-family: "Congenial";
        font-weight: 500;
        font-size: 20px;
        line-height: 30px;
        cursor: pointer;
        float: left;
        clear: both;
        margin-top: 0px;
    }

    #kontakt_address {
        width: 100%;
        text-align: center;
        display: block;
        color: #3B2774;
        font-family: "Congenial";
        font-weight: 500;
        font-size: 20px;
        line-height: 30px;
        text-align: center;
        float: left;
        clear: both;
        margin-top: -17px;
        margin-left: 0px;
    }
    #kontakt_logo {
        width: 124px;
        height: 60px;
        float: left;
        clear: both;
        background: url('../images/logo_milka.png');
        background-repeat: no-repeat;
        background-size: contain;
        margin-top: 45px;
    }

    #kontakt_cookies {
        font-family: "Congenial";
        font-size: 22px;
        color: white;
        float: left;
        margin-top: 0px;
        margin-left: 125px;
    }

    #kontakt_polityka {
        font-family: "Congenial";
        font-size: 22px;
        color: white;
        float: left;
        margin-top: 0px;
        margin-left: 100px;
    }

    #kontakt_back {
        width: 140px;
        height: 50px;
        float: right;
        background: url('../images/arrow.png');
        background-repeat: no-repeat;
        background-position: 125px;
        border: 2px solid white;
        display: block;
        border-radius: 50px;
        color: white;
        font-size: 22px;
        font-family: "Congenial";
        line-height: 55px;
        padding-left: 20px;
        margin-top: 55px;
        cursor: pointer;
    }
    #error_wrapper {
        position: absolute;
        z-index: 55001;
        cursor: pointer;
    }

    #error_wrapper {
        width: 100%;
        height: 100%;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 55002;
        background: rgba(44, 44, 44, 0.7);
        display: none;
    }

    #errors {
        width: 700px;
        background: #c40e0e;
        border: 5px solid white;
        height: auto;
        position: fixed;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        top: 50px;
        z-index: 10000000;
        display: block;
        cursor: pointer;
    }

    #errors h1 {
        padding-left: 30px;
        font-family: "Myriad Pro Bold";
        color: white;
    }

    #errors ul {
        font-family: "Myriad Pro Bold";
        font-size: 18px;
        color: white;
    }

    #errors ul li {
        margin-top: 15px;
        list-style-type: disc;
    }

    #errors_ok {
        background: white;
        width: 150px;
        height: 50px;
        color: #c40e0e;
        font-family: "Myriad Pro Bold";
        font-size: 20px;
        text-align: center;
        vertical-align: middle;
        line-height: 50px;
        margin-left: 525px;
        margin-bottom: 25px;
    }
}

@media screen and (max-width: 1100px) and (min-width: 200px) {

    html,
    body {
        width: 100%;
        height: 4980px;
        margin: 0px;
        padding: 0px;
    }

    body {
        background: url('../images/mobile_bg2.jpg');
        background-repeat: no-repeat;
        background-position: center top;
    }

    a[href^=tel] {
        text-decoration: inherit;
        color: inherit;
    }

    /* Use to form category "Where is code" - Paragon */
    #popup_wrapper {
        display: none;
        position: absolute;
        z-index: 55000;
        cursor: pointer;
        background: rgba(128, 128, 128, 0.74)
    }

    #popup_wrapper {
        width: 100%;
        height: 100%;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 100;
        display: none;

    }

    #popup {
        width: 320px;
        height: 500px;
        position: fixed;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        top: calc(50% - 225px);
        z-index: 10000000;
        display: block;
        cursor: pointer;
    }

    #popup > img {
        width: 320px;
    }

    /* Wait wrapper */
    #wait_wrapper {
        position: absolute;
        z-index: 55000;
        cursor: pointer;
    }

    #wait_wrapper {
        width: 100%;
        height: 100%;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 100;
        background: rgba(44, 44, 44, 0.7);
        display: none;

    }

    #wait_box {
        width: 80%;
        height: 230px;
        background: #7D69AC;
        position: fixed;
        border-radius: 20px;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        top: calc(50% - 115px);
        z-index: 10000000;
        display: block;
        cursor: pointer;
        font-family: "Congenial";
        color: white;
        font-size: 26px;
        text-align: center;
        padding-top: 50px;
    }

    #positive_wrapper {
        position: absolute;
        z-index: 55000;
        cursor: pointer;
    }

    #positive_wrapper {
        width: 100%;
        height: 100%;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 999999;
        background: rgba(44, 44, 44, 0.7);
        display: none;
    }

    #positive_msg {
        width: 80%;
        height: auto;
        background: #7D69AC;
        border: 2px solid white;
        position: fixed;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        top: calc(50% - 245px);
        z-index: 10000000;
        display: block;
        cursor: pointer;
    }

    #positive_ok {
        width: 54px;
        height: 53px;
        float: right;
        margin-right: -20px;
        margin-top: 10px;
    }

    #positive_losowanie {
        width: 300px;
        margin: 0 auto;
    }

    #positive_title {
        height: auto;
        width: 671px;
        text-align: center;
        font-family: "Congenial";
        font-weight: 500;
        margin: 0 auto;
        color: white;
        font-size: 30px;
        margin-top: 50px;
    }

    #positive_text {
        width: 100%;
        font-family: "Congenial";
        font-weight: 500;
        color: white;
        font-size: 20px;
        text-align: center;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    #nav_scrolled {
        display: none;
    }

    /* Errors wrapper */
    #error_wrapper {
        position: absolute;
        z-index: 55000;
        cursor: pointer;
    }

    #error_wrapper {
        width: 100%;
        height: 100%;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 100;
        background: rgba(44, 44, 44, 0.7);
        display: none;

    }

    #errors {
        width: 310px;
        background: #bb0b20;
        border: 5px solid white;
        height: auto;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        position: fixed;
        top: calc(35% - 125px);
        z-index: 10000000;
        display: block;
        cursor: pointer;
    }

    #errors h1 {
        padding-left: 30px;
        font-family: "Myriad Pro Bold";
        font-size: 18px;
        color: white;
    }

    #errors ul {
        font-family: "Myriad Pro Bold";
        font-size: 15px;
        color: white;
    }

    #errors ul li {
        margin-top: 15px;
        list-style-type: disc;
    }

    #errors_ok {
        background: white;
        width: 150px;
        height: 50px;
        color: #bb0b20;
        font-family: "Myriad Pro Bold";
        font-size: 20px;
        text-align: center;
        vertical-align: middle;
        line-height: 50px;
        margin-left: 135px;
        margin-bottom: 15px;
    }

    #status {
        width: 72px;
        height: 21px;
        background: #91C9ED;
        color: #3B2774;
        font-family: "Congenial";
        border-radius: 50px;
        padding-top: 7px;
        font-size: 8px;
        text-align: center;
        position: fixed;
        right: 5px;
        top: 60px;
        z-index: 3;
        cursor: pointer;
    }
    #logo_1_mobile {
        width: 160px;
        height: 45px;
        background: url('../images/logo_zabka.png');
        background-size: contain;
        background-repeat: no-repeat;
        float: left;
        margin-top: 0px;
        margin-left: 0px;
    }
    /* Errors END*/
    #burger {
        display: none;
    }

    #burger + #nav_cross {
        position: fixed;
        top: 5px;
        right: 5px;
        height: 46px;
        width: 46px;
        z-index: 5;
        border-radius: 50px;
        background: #93CBF0;
    }

    #burger + #nav_cross .cross {
        position: absolute;
        width: 20px;
        height: 3px;
        top: 22px;
        left: 13px;
        display: block;
        background: #3B2774;
        transition: .5s;
    }

    #burger + #nav_cross .cross:first-child {
        top: 16px;
    }

    #burger + #nav_cross .cross:last-child {
        top: 28px;
    }

    #nav_cross:hover {
        cursor: pointer;
    }

    #burger:checked + #nav_cross .cross {
        opacity: 0;
        top: 48%;
    }

    #burger:checked + #nav_cross .cross:first-child {
        opacity: 1;
        transform: rotate(405deg);
    }

    #burger:checked + #nav_cross .cross:last-child {
        opacity: 1;
        transform: rotate(-405deg);
    }

    #burger ~ nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: transparent linear-gradient(180deg, #604A98 0%, #7864A9 49%, #7965AA5E 100%) 0% 0% no-repeat padding-box;
        z-index: 3;
        transition: .5s;
        transition-delay: .5s;
        overflow: hidden;
    }

    #burger ~ nav > ul {
        list-style: none;
        text-align: center;
        position: absolute;
        top: 15%;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        padding: 0px;
    }

    #burger ~ nav > ul > li {
        opacity: 0;
        transition: .5s;
        transition-delay: 0s;
        cursor: pointer;
    }

    #burger ~ nav > ul > li > a {
        text-decoration: none;
        text-transform: uppercase;
        color: white;
        font-weight: 800;
        font-size: 20px;
        font-family: "Myriad Pro Bold";
        display: block;
        padding: 15px;
    }

    #burger:checked ~ nav {

        background: transparent linear-gradient(180deg, #604A98 0%, #7864A9 49%, #7965AA5E 100%) 0% 0% no-repeat padding-box;
        height: 100%;
        transition-delay: 0s;
    }

    #burger:checked ~ nav > ul > li {
        opacity: 1;
        transition-delay: .5s;
    }

    #menu_click {
        display: none;
    }

    /* Animated menu end */
    #home {
        width: 320px;
        height: 740px;
        margin: 0 auto;
        margin-top: 0px;
    }

    #home_bg1 {
        width: 199px;
        height: auto;
        float: left;
        margin-left: 60px;
        margin-top: 80px;
    }

    #home_bg2 {
        width: 281px;
        height: auto;
        float: left;
        clear: both;
        margin-left: 20px;
        margin-top: 20px;
    }

    #join {
        display: inline-block;
        width: 160px;
        height: 40px;
        background: #9CDBF6;
        margin-left: 80px;
        color: #3B2774;
        float: left;
        clear: both;
        line-height: 43px;
        margin-top: 20px;
        font-family: 'Congenial';
        border-radius: 50px;
        text-align: center;
        font-size: 20px;
        cursor: pointer;
        position: relative;
    }

    #home_text2 {
        width: 280px;
        text-align: center;
        font-family: "Congenial";
        font-size: 18px;
        color: white;
        float: left;
        clear: both;
        margin-left: 20px;
        margin-top: 330px;
    }
    #home_bg3 {
        width: 300px;
        height: auto;
        position: absolute;
        top: 570px;
        left: 50%;
        margin-left: 10px;
        transform: translate(-50%, -50%);
        z-index: 2;
    }
    #home_anim{
        width: 219px;
        height: 290px;
        float: left;
        clear: both;
        margin-top: -400px;
        margin-right: 0px;
    }
    #nagrody {
        width: 320px;
        height: 360px;
        margin: 0 auto;
        padding-top: 60px;
    }

    #nagrody_title {
        font-family: "neue-kabel";
        font-size: 30px;
        color: white;
        width: 100%;
        text-align: center;
    }

    #nagrody_img1 {
        float: left;
        width: 290px;
        height: auto;
        margin-top: 25px;
        margin-left: 15px;
    }

    #nagrody_text1 {
        width: 100%;
        font-family: "neue-kabel";
        font-size: 22px;
        text-align: center;
        color: white;
        float: left;
        clear: both;
        margin-left: 0px;
        margin-top: 20px;
    }

    #nagrody_img2 {
        float: left;
        width: 152px;
        height: auto;
        margin-top: 20px;
        margin-left: 84px;
    }
    #nagrody_text2 {
        width: 320px;
        font-family: "neue-kabel";
        font-size: 17px;
        line-height: 19px;
        color: white;
        float: left;
        text-align: center;
        margin-left: 0px;
        margin-top: 10px;
    }
    #nagrody_anim{
        width: 320px;
        height: 166px;
        float: left;
        clear: both;
        margin-top: 5px;
        margin-left: 0px;
    }
    #zasady {
        width: 320px;
        height: 680px;
        margin: 0 auto;
        padding-top: 60px;
    }

    #zasady_title {
        font-family: "Neue-kabel";
        font-size: 30px;
        color: white;
        float: left;
        clear: both;
        width: 100%;
        text-align: center;
    }
    #zasady_img1{
        float: left;
        clear: both;
        width: 244px;
        height: auto;
        margin-top: 15px;
        margin-left: 38px;
    }
    .zasady_box {
        width: 266px;
        height: auto;
        float: left;
        margin-left:27px;
        margin-top: 20px;
    }

    .box2 {
        width: 300px;
        margin-left: 10px;
    }

    .zasady_nr {
        width: 48px;
        height: 48px;
        background: #F7D790;
        border-radius: 50px;
        color: #3B2774;
        font-size: 25px;
        font-family: "Congenial";
        text-align: center;
        line-height: 52px;
        margin: 0 auto;
        margin-bottom: 10px;
    }

    .zasady_text {
        width: 100%;
        color: white;
        font-size: 16px;
        line-height: 23px;
        font-family: "neue-kabel";
        font-weight: bold;
        text-transform: uppercase;
        float: left;
        clear: both;
        text-align: center;
    }
    #join2{
        color: #F7D790;
    }
    #zasady_text1 {
        width: 280px;
        color: white;
        margin-left: 20px;
        margin-top: 16px;
        font-size: 14px;
        line-height: 17px;
        font-family: "neue-kabel";
        font-weight: bold;
        text-align: center;
        text-transform: uppercase;
        float: left;
        clear: both;
        text-align: center;
    }

    #rules_download {
        display: inline-block;
        width: 120px;
        height: 30px;
        background: #91C9ED;
        color: #3B2774;
        float: left;
        clear: both;
        line-height: 34px;
        margin-top: 20px;
        margin-left: 100px;
        font-family: 'Congenial';
        font-weight: 500;
        border-radius: 50px;
        text-align: center;
        font-size: 14px;
        cursor: pointer;
    }

    #products_download {
        display: inline-block;
        width: 290px;
        height: 30px;
        background: #91C9ED;
        color: #3B2774;
        float: left;
        line-height: 34px;
        margin-top: 15px;
        margin-left: 15px;
        font-family: 'Congenial';
        font-weight: 500;
        border-radius: 50px;
        text-align: center;
        font-size: 14px;
        cursor: pointer;
    }

    #wez-udzial {
        width: 320px;
        height: 1330px;
        margin: 0 auto;
        padding-top: 60px;
    }

    #wez-udzial_bg {
        width: 100%;
        color: white;
        text-align: center;
        font-size: 30px;
        font-family: "Neue-kabel";
    }

    #main_form {
        width: 320px;
        height: auto;
        margin-top: 0px;
        float: left;
        margin-left: 0px;
    }

    #main_form2 {
        width: 320px;
        height: auto;
        font-family: "Congenial";
        font-weight: 500;
        color: white;
        font-size: 32px;
        padding-top: 150px;
        text-align: center;
        margin-left: 0px;
    }

    .label_form {
        width: auto;
        text-align: center;
        color: #8DAC51;
        font-size: 16px;
        background: transparent;
        font-family: "Myriad Pro Bold";
        float: left;
        clear: both;
        letter-spacing: -0.5px;
        position: relative;
        margin-left: 23px;
        z-index: 3;
        margin-top: -2px;
    }

    .form_input {
        width: 270px;
        height: 60px;
        font-family: "Neue-Kabel";
        font-size: 16px;
        background: white;
        outline: 0;
        border: 0px;
        border-radius: 50px;
        color: #3B2774;
        float: left;
        padding: 0px;
        padding-left: 20px;
        margin-top: 20px;
        margin-left: 15px;
    }

    @-webkit-keyframes autofill {
        to {
            color: #3B2774;
            font-family: "Neue-Kabel";
            background: transparent;
        }
    }

    input:-webkit-autofill {
        color: #3B2774;
        -webkit-animation-name: autofill;
        -webkit-animation-fill-mode: both;
    }

    ::-webkit-input-placeholder {
        /* Chrome/Opera/Safari */
        color: #3B2774;
    }

    ::-moz-placeholder {
        /* Firefox 19+ */
        color: #3B2774;
    }

    :-ms-input-placeholder {
        /* IE 10+ */
        color: #3B2774;
    }

    :-moz-placeholder {
        /* Firefox 18- */
        color: #3B2774;
    }


    #show_popup1 {
        width: 29px;
        height: 29px;
        background: url("../images/gdzie_jest_numer.png");
        margin-left: -43px;
        margin-top: 52px;
        display: block;
        float: left;
    }
    #opis_label {
        font-size: 20px;
        color: white;
        font-family: "Neue-Kabel";
        width: 80%;
        margin-left: 10%;
        text-align: center;
        float: left;
        clear: both;
        margin-top: 30px;
    }

    #opis {
        width: 250px;
        height: 136px;
        float: left;
        clear: both;
        background: white;
        border-radius: 38px;
        padding: 20px;
        font-family: "Neue-Kabel";
        border:0px;
        margin-left: 15px;
        margin-top: 30px;
        font-size: 16px;
        color: #3B2774;
        resize: none;
        outline: 0;
    }

    #opis_max {
        width: 290px;
        text-align: center;
        font-size: 15px;
        color: white;
        font-family: "Neue-Kabel";
        float: left;
        clear: both;
        margin-left: 15px;
        margin-top: 10px;
    }

    #reg {
        float: left;
        clear: both;
        font-family: "Neue-Kabel";
        font-weight: 500;
        font-size: 15px;
        color: white;
        margin-top: 20px;
        margin-left: 15px;

    }

    #rules_download2 {
        display: inline-block;
        border: 0px;
        cursor: pointer;
        font-family: "Neue-Kabel";
        font-weight: 500;
        font-size: 15px;
        margin-right: 5px;
        text-decoration: underline;
        float: left;
        clear: both;
        color: white;
    }

    .switch2 {
        position: relative;
        display: inline-block;
        width: 63px;
        height: 30px;
        float: left;
        margin-left: 0px;
    }

    .switch2 input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .slider2 {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #D5D5D5;
        -webkit-transition: .4s;
        transition: .4s;
    }

    .slider2:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 4px;
        top: 3px;
        background: white;
        background-repeat: no-repeat;
        background-position: center;
        -webkit-transition: .4s;
        transition: .4s;
        box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.5);
    }

    input:checked + .slider2 {
        background-color: #93CBF0;
    }


    input:checked + .slider2:before {
        -webkit-transform: translateX(21px);
        -ms-transform: translateX(21px);
        transform: translateX(21px);
        background: white;
        left: 15px;
        background-repeat: no-repeat;
        background-position: center;
    }

    .slider2.round2 {
        border-radius: 34px;
    }

    .slider2.round2:before {
        border-radius: 50%;
    }

    .data_box2 {
        width: 300px;
        height: auto;
        float: left;
        clear: both;
        margin-left: 15px;
        margin-top: 15px;
    }

    .data_label2 {
        width: 210px;
        color: white;
        font-size: 15px;
        line-height: 17px;
        font-family: "Congenial";
        font-weight: 500;
        float: left;
        margin-left: 20px;
        margin-top: 1px;
    }
    #shield_icon{
        width: 39px;
        height: 43px;
        background:url('../images/shield.png');
        margin-left: 100px;
        margin-top: -60px;
        float: inherit;
    }
    #shield {
        width: 240px;
        height: auto;
        background:#7D6AAC;
        border-radius: 25px;
        padding: 20px;
        padding-top: 40px;
        float: left;
        clear: both;
        font-family: "Neue-Kabel";
        color: white;
        font-size: 14px;
        line-height: 14px;
        margin-top: 30px;
        margin-left: 20px;
    }

    #button_send {
        display: inline-block;
        width: 180px;
        height: 45px;
        background: #93CBF0;
        margin-left: 70px;
        color: #3B2774;
        float: left;
        clear: both;
        border: 0px;
        margin-top: 20px;
        font-family: 'Congenial';
        text-transform: uppercase;
        border-radius: 50px;
        padding-top: 7px;
        text-align: center;
        font-size: 22px;
        cursor: pointer;
        outline: 0;
    }

    #error {
        position: relative;
        width: 900px;
        color: red;
        background: white;
        height: 50px;
        margin-left: 80px;
        margin-top: 20px;
        text-align: center;
        vertical-align: middle;
        line-height: 50px;
        border: 3px solid red;
        font-family: "Myriad Pro Bold";
    }
    #gra{
        width: 320px;
        height: 570px;
        margin: 0 auto;
        padding-top: 60px;
    }

/* Modal */
.modal {
    position: relative;
    width: 320px;
    height: 550px;
    background: #7B5EA7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    
}

/* Board image container */
.modal-board {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s ease;
}

.board-img {
    position: absolute;
    height: 100%;
    right: -36%;
    top: 10%;
    transform: translateY(-50%);
    object-fit: contain;
    transition: all 0.6s ease;
    filter: blur(0);
}

/* Text content - State 1 */
.modal-content {
    position: absolute;
    left: 0;
    top: 55%;
    bottom: 0;
    width: 100%;
    padding: 0px 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 5;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.modal-title {
    color: white;
    font-size: 20px;
    line-height: 27px;
    font-family: "Neue-Kabel";
    margin-bottom: -10px;
    text-align: center;
    text-transform: uppercase;
}

.modal-disclaimer {
    color: white;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    font-family: "Neue-Kabel";
    margin-bottom: 5px;
}

/* Buttons */
.btn {
    border: none;
    cursor: pointer;
    font-size: 24px;
    font-family: "Congenial";
    text-transform: uppercase;
    border-radius: 50px;
    margin: 0 auto;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-play {
    background: #9CDBF6;
    color: #3B2774;
    padding: 14px 40px;
    padding-bottom: 10px;
    align-self: flex-start;
}

/* Game state - State 2 */
.modal-game {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease 0.2s;
}

.btn-dice {
    background: #9CDBF6;
    color: #3B2774;
    font-family: "Congenial";
    padding: 16px 50px;
    padding-bottom: 12px;
    font-size: 24px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ====== PLAYING STATE ====== */

.modal.playing .board-img {
    filter: blur(5px);
}

.modal.playing .modal-content {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-30px);
}

.modal.playing .modal-game {
    opacity: 1;
    pointer-events: auto;
}
    /* Lottie wrapper */
.lottie-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lottie-wrapper.active {
    opacity: 1;
    pointer-events: auto;
}

.lottie-container {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lottie-container svg {
    max-height: 100% !important;
    max-width: 100% !important;
    margin-top: -80px;
}

.btn-close-card {
    background: #8ED8D2;
    color: #3a3a6a;
    padding: 12px 40px;
    padding-bottom: 10px;
    margin-bottom: 40px;
    opacity: 0;
    font-size: 20px;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.btn-close-card.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hide dice button while animating */
.modal.animating .modal-game {
    opacity: 0;
    pointer-events: none;
}
    #modal-kostki{
        width: 179px;
        height: 289px;
        float: left;
        clear: both;
    }
    #kontakt {
        width: 320px;
        height: 400px;
        margin: 0 auto;
        padding-top: 60px;
    }

    #kontakt_title {
        display: block;
        color: white;
        font-family: "Congenial";
        font-weight: 800;
        font-size: 30px;
        float: left;
        width: 100%;
        text-align: center;
    }

    #kontakt_company {
        display: block;
        color: white;
        font-family: "Congenial";
        font-size: 18px;
        line-height: 21px;
        float: left;
        width: 90%;
        margin-left: 5%;
        text-align: center;
        margin-top: 30px;
        margin-bottom: 10px;
    }

    .kontakt_box {
        width: 180px;
        height: 180px;
        float: left;
        margin-left: 70px;
        margin-top: 20px;
        background: white;
        border-radius: 36px;
        box-shadow: 0px 2px 16px rgba(24,9,60,0.6);
    }

    #kontakt_icon1 {
        width: 130px;
        float: left;
        clear: both;
        margin-left: 25px;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    #kontakt_icon2 {
        width: 100px;
        float: left;
        clear: both;
        margin-left: 40px;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    #kontakt_icon3 {
        width: 160px;
        float: left;
        clear: both;
        margin-left: 10px;
        margin-bottom: 0px;
        margin-top: 20px;
    }

    #kontakt_phone {
        width: 100%;
        text-align: center;
        display: block;
        color: #3B2774;
        font-family: "Congenial";
        font-size: 15px;
        line-height: 20px;
        float: left;
        clear: both;
        margin-top: -31px;
    }

    #foot_email {
        width: 100%;
        text-align: center;
        display: block;
        color: #3B2774;
        font-family: "Congenial";
        font-size: 15px;
        line-height: 20px;
        float: left;
        clear: both;
        margin-top: -21px;
    }

    #foot_link {
        width: 100%;
        text-align: center;
        display: block;
        color: #3B2774;
        font-family: "Congenial";
        font-size: 15px;
        line-height: 20px;
        float: left;
        clear: both;
    }

    #kontakt_address {
        width: 100%;
        text-align: center;
        display: block;
        color: #3B2774;
        font-family: "Congenial";
        font-size: 15px;
        line-height: 20px;
        float: left;
        clear: both;
        margin-top: -10px;
    }
    #kontakt_logo {
        width: 124px;
        height: 60px;
        float: left;
        clear: both;
        background: url('../images/logo_milka.png');
        background-repeat: no-repeat;
        background-size: contain;
        margin-top: 70px;
        margin-left: 98px;
    }

    #kontakt_cookies {
        font-family: "Congenial";
        font-size: 22px;
        color: white;
        float: left;
        margin-top: 0px;
        margin-left: 0px;
    }

    #kontakt_polityka {
        font-family: "Congenial";
        font-size: 22px;
        color: white;
        float: left;
        margin-top: 0px;
        margin-left: 0px;
    }

    #kontakt_back {
        width: 140px;
        height: 50px;
        float: left;
        background: url('../images/arrow.png');
        background-repeat: no-repeat;
        background-position: 125px;
        border: 2px solid white;
        display: block;
        border-radius: 50px;
        color: white;
        font-size: 22px;
        font-family: "Congenial";
        line-height: 55px;
        padding-left: 20px;
        margin-left: 78px;
        margin-top: 35px;
        cursor: pointer;
    }
}

@media screen and (max-width: 1100px) and (min-width: 720px) {

    /* CODE WRAPPER */
    #code_wrapper {
        position: absolute;
        z-index: 55000;
    }

    #code_wrapper {
        width: 100%;
        height: 100%;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 9999;
        background: rgba(44, 44, 44, 0.7);
        display: none;
    }

    #code_msg {
        width: 718px;
        height: 538px;
        background: #7D69AC;
        position: fixed;
        border: 2px solid white;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        top: calc(50% - 265px);
        z-index: 10000000;
        display: block;
        display: none;
    }

    #code_ok {
        float: right;
        margin-right: 0px;
        margin-top: 15px;
        cursor: pointer;
    }

    #code_title {
        height: 65px;
        width: 671px;
        text-align: center;
        font-family: "Congenial";
        font-weight: 500;
        margin: 0 auto;
        color: white;
        font-size: 25px;
        text-transform: uppercase;
        margin-top: 70px;
        margin-bottom: 0px;
    }

    #code_text {
        width: 95%;
        font-family: "Congenial";
        font-weight: 500;
        color: white;
        font-size: 25px;
        text-align: center;
        margin: 0 auto;
        margin-top: 0px;
    }

    .label_form2 {
        width: 300px;
        color: white;
        font-size: 17px;
        font-family: "Myriad Pro Bold";
        float: left;
        clear: both;
        text-align: center;
        margin-top: 10px;
        margin-left: 27%;
    }

    #email_check {
        width: 300px;
        height: 60px;
        background: none;
        color: white;
        font-size: 20px;
        border-width: 0 0 3px 0;
        border-color: white;
        border-radius: 0px;
        float: left;
        clear: both;
        text-align: center;
        padding: 0px;
        outline: 0px;
        font-family: "Congenial";
        font-weight: 500;
        margin-left: 27%;
    }

    #paragon_check {
        width: 300px;
        height: 60px;
        background: none;
        color: white;
        font-size: 20px;
        border-width: 0 0 3px 0;
        border-color: white;
        border-radius: 0px;
        float: left;
        clear: both;
        text-align: center;
        padding: 0px;
        outline: 0px;
        font-family: "Congenial";
        font-weight: 500;
        margin-left: 27%;
    }

    #button_check {
        width: 256px;
        height: 50px;
        background: white;
        font-family: "Congenial";
        font-weight: 500;
        color: #7D69AC;
        border: 0px;
        font-size: 25px;
        cursor: pointer;
        margin-left: 210px;
        margin-top: 40px;
        margin-bottom: 0px;
        float: left;
    }

    #response {
        width: 500px;
        height: 100px;
        margin: 0 auto;
        font-family: "Congenial";
        font-weight: 500;
        color: white;
        font-size: 18px;
        line-height: 30px;
        cursor: auto;
        clear: both;
        padding-top: 20px;

    }
}

@media screen and (max-width: 719px) and (min-width: 200px) {

    /* CODE WRAPPER */
    #code_wrapper {
        position: absolute;
        z-index: 55000;
    }

    #code_wrapper {
        width: 100%;
        height: 100%;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 999999;
        background: rgba(44, 44, 44, 0.7);
        display: none;
    }

    #code_msg {
        width: 90%;
        height: 430px;
        background: #7D69AC;
        border: 2px solid white;
        position: fixed;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        top: 15px;
        z-index: 10000000;
        display: block;
        display: none;
    }

    #code_ok {
        width: 20px;
        height: 53px;
        float: right;
        margin-right: 2px;
        margin-top: 2px;
        cursor: pointer;
    }

    #code_title {
        height: 35px;
        width: 280px;
        text-align: center;
        font-family: "Congenial";
        font-weight: 500;
        margin: 0 auto;
        color: white;
        font-size: 20px;
        text-transform: uppercase;
        margin-top: 60px;
    }

    #code_text {
        width: 290px;
        font-family: "Congenial";
        font-weight: 500;
        color: white;
        font-size: 25px;
        text-align: center;
        margin: 0 auto;
        margin-top: 20px;
    }

    .label_form2 {
        width: 100%;
        color: white;
        font-size: 15px;
        font-family: "Myriad Pro Bold";
        float: left;
        clear: both;
        text-align: center;
        margin-top: 10px;
    }

    #email_check {
        width: 250px;
        height: 40px;
        background: none;
        color: white;
        border-width: 0 0 3px 0;
        border-color: white;
        border-radius: 0px;
        margin-left: 20px;
        margin-top: 0px;
        text-align: center;
        font-size: 20px;
        float: left;
        clear: both;
        padding: 0px;
        margin-bottom: 0px;
        font-family: "Myriad Pro Bold";
        outline: 0;
    }

    #paragon_check {
        width: 250px;
        height: 40px;
        background: none;
        color: white;
        border-width: 0 0 3px 0;
        border-color: white;
        border-radius: 0px;
        margin-left: 20px;
        margin-top: 40px;
        font-size: 20px;
        text-align: center;
        padding: 0px;
        float: left;
        font-family: "Myriad Pro Bold";
        clear: both;
        outline: 0;
    }

    #button_check {
        width: 256px;
        height: 50px;
        background: white;
        font-family: "Congenial";
        font-weight: 500;
        color: #7D69AC;
        border: 0px;
        font-size: 25px;
        cursor: pointer;
        margin-left: 17px;
        margin-top: 25px;
        margin-bottom: 15px;
        float: left;
    }

    #response {
        width: 95%;
        height: 80px;
        margin: 0 auto;
        margin-top: 5px;
        font-family: "Congenial";
        font-weight: 500;
        color: white;
        font-size: 11px;
        line-height: 20px;
        cursor: auto;
        clear: both;
    }

    /* CODE WRAPPER END */
    #positive_wrapper {
        position: absolute;
        z-index: 55000;
        cursor: pointer;
    }

    #positive_wrapper {
        width: 100%;
        height: 100%;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 999999;
        background: rgba(44, 44, 44, 0.7);
        display: none;
    }

    #positive_msg {
        width: 90%;
        height: auto;
        background: #7D69AC;
        border: 2px solid white;
        position: fixed;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        top: calc(50% - 245px);
        z-index: 10000000;
        display: block;
        cursor: pointer;
    }

    #positive_ok {
        width: 54px;
        height: 53px;
        float: right;
        margin-right: -20px;
        margin-top: 15px;
    }

    #positive_losowanie {
        width: 290px;
        margin: 0 auto;
        clear: both;
    }

    #positive_title {
        height: auto;
        width: 300px;
        text-align: center;
        font-family: "Congenial";
        font-weight: 500;
        margin: 0 auto;
        color: white;
        font-size: 20px;
        margin-top: 60px;
    }

    #positive_text {
        width: 300px;
        font-family: "Congenial";
        font-weight: 500;
        color: white;
        font-size: 15px;
        text-align: center;
        margin: 0 auto;
        margin-top: 30px;
        margin-bottom: 30px;
    }
}
