:root {
    --main_color: #512314; /* Marrone - BK */
    --avana: #F5EBDC; /* bg-avana - BK */
    --arancione: #FF8732; /* arancione - BK */
    --fondo-chiaro: #F8F5F0; /* ondo-chiaro---bk */
    --rosso: #D72300; /* rosso-bk */
    --giallo: #ffaa00;
    --verde: #198737; /* verde-bk */
    --unnamed-color-000000de: #000000DE;
}

@font-face {
    font-family: 'Flame';
    src: url('fonts/Flame-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Flame-Sans';
    src: url('fonts/FlameSans-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Flame-Bold';
    src: url('fonts/Flame-Bold.woff') format('woff');
}

html {
    /* 62.5% of 16px browser font size is 10px */
    font-size: 62.5%;
}


body {
    font-family: 'Flame';
    font-style: normal;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.7rem;
    background-color: var(--rosso);
    min-height: 100vh;
    height: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    touch-action: manipulation;
    /* per disattivare zoom su mobile */
    -webkit-touch-callout: none !important;
}

body.body-overlayed {
    background-image: url('/assets/img/02_BACKGROUND_CartellaChiusa.jpg');
}

body.body-reward {
    background-image: none;
    background-color: var(--avana);
}

a {
    color: var(--arancione);
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-select: none;
    /* disable selection/Copy of UIWebView */
    -webkit-touch-callout: none;
    /* disable the IOS popup when long-press on a link */
}

h2 {
    font-weight: 700;
    font-size: 1.7rem;
    text-align: center;
    color: #fff;
}

h1 {
    font-weight: 500;
    font-size: 2rem;
    text-align: center;
    color: #fff;
    font-family: 'Flame-Bold';
}

.no-decoration {
    text-decoration: none;
}

.font50 {
    font-size: 5rem;
    line-height: 4.9rem;
}

.font40 {
    font-size: 4rem;
    line-height: 3.9rem;
}

.font35 {
    font-size: 3.5rem;
    line-height: 3.4rem;
}

.font30 {
    font-size: 3.0rem;
    line-height: 2.9rem;
}

.font24 {
    font-size: 2.4rem;
    line-height: 2.6rem;
}

.font20 {
    font-size: 2.0rem;
    line-height: 2.4rem;
}

.font22 {
    font-size: 2.2rem;
    line-height: 2.1rem;
}

.font15 {
    font-size: 1.5rem;
    line-height: 1.8rem;
}

.font14 {
    font-size: 1.4rem;
    line-height: 2.1rem;
}

.font-flame {
    font-family: 'Flame';
}

.font-flamebold {
    font-family: 'Flame-Bold';
}

.font-orange {
    color: var(--arancione);
}

.font-green {
    color: var(--verde);
}

.font-avana {
    color: var(--avana);
}

.font-red {
    color: var(--rosso);
}

.font-brown {
    color: var(--main_color);
}

.font-white {
    color: #fff;
}

.bkzonewaiting {
    background-color: var(--avana);
}

.text-rosso {
    color: var(--rosso);
}

.text-giallo {
    color: var(--giallo);
}

.text-brown {
    color: var(--main_color);
}

.img-title {
    width: 100%;
    max-width: 342px;
    padding-top: 10px;
}

.casella {
    width: 100%;
    max-width: 160px;
    background-color: var(--rosso);
    margin: 0 auto;
    border-radius: 10px;
    height: 160px;
    max-height: 160px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5rem;
    font-weight: 700;
    color: var(--avana);
}

.col-testmode {
    background-color: var(--main_color);
    display: flex;
    align-items: center;
    padding-top: 30px;
}

.div-istruzioni {
    background-image: url(/assets/img/button-cta1.png);
    background-size: 90% 100%;
    background-repeat: no-repeat;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    background-position: center;
    font-size: 2.4rem;
    line-height: 2.8rem;
    color: var(--avana);
    padding: 20px 40px;
    max-width: 400px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.div-istruzioni.gioca {
    padding: 25px 40px 15px;
}

/* .div-button-action {
    z-index: 100;
    margin-bottom: -20px;
    position: relative;
    display: flex;
    justify-content: center;
} */

.footer {
    letter-spacing: 0.24px;
    text-align: center;
    padding: 15px;
}

footer {
    flex: 0 0 75px;
    /*or just height:100px;*/
    margin-top: auto;
    width: 100%;
    background-color: var(--avana);
}

.bkheader {
    display: flex;
    flex-direction: row;
    width: 100%;
    /* height: 100px; */
    background: var(--main_color);
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 10px;
    /*padding-top: 30px;*/
}

.bkheader .header_span {
    color: var(--avana);
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 2.8rem;
    margin-left: 15px;
}

.bkheader img {
    margin-left: 18px;
}

.row-scrath-complete {
    display: none;
    text-align: center;
}

.row-scrath-complete.gia-giocato {
    display: block;
}

.gia-giocato canvas {
    opacity: 0;
}

.table-casella-aperta img {
    width: 100%;
    height: 227px;
    max-width: 46px;
}

.table-casella-aperta {
    width: 100%;
    border: 0;
}

.td-casella-aperta {
    width: 160px;
}

.td-casella-aperta .casella {
    border-radius: 0;
    background-color: #fff;
    min-width: 160px;
    background-size: cover;
    margin-top: -2px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}

#modalImage .modal-body {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-color: var(--avana);
}

#modalImage .modal-header {
    background-color: var(--main_color);
    color: var(--avana);
    padding-top: 40px;
}

.btn_icon img {
    width: 33px;
}

a.btn-cta {
    width: 100%;
    max-width: 250px;
}

.btn-action {
    padding: 15px 20px;
    border-radius: 50px;
    border: 2px solid var(--fondo-chiaro);
    background: var(--rosso);
    font-size: 2rem;
    font-weight: 700;
    color: var(--fondo-chiaro);
}

.btn-action:hover {
    background: var(--rosso);
    color: var(--fondo-chiaro);
    border: 2px solid var(--fondo-chiaro);
}

.btn-orange {
    padding: 18px 36px;
    border-radius: 50px;
    border: 0.74px solid var(--avana);
    background: var(--arancione);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--fondo-chiaro);
}

.btn-orange:hover {
    border: 0.74px solid var(--arancione);
    background: var(--avana);
    color: var(--arancione);
}

.col-before-canvas,
.col-after-canvas {
    display: flex;
    align-items: center;
}

.col-before-canvas div {
    background-image: url(/assets/img/img1.png);
    background-position: center right;
    background-repeat: no-repeat;
    height: 80%;
    width: 100%;
    background-size: auto 100%;
    margin-right: 20px;
}

.col-after-canvas div {
    background-image: url(/assets/img/img1.png);
    background-position: center left;
    background-repeat: no-repeat;
    height: 80%;
    width: 100%;
    border-radius: 20px 0px 0px 20px;
    background-size: auto 100%;
    margin-left: 20px;
}

.col-before-canvas img {
    max-width: 100%;
    position: absolute;
    right: 50px;
}

/* CSS specific to iOS devices */
/* @supports (-webkit-touch-callout: none) {
    .bkheader  {
        height: 100px;
        padding-top:2em;
        padding-bottom: 8px;
    }
} */


/* pusante di back rotondo */
.btback {
    width: 25px;
    height: 25px;
    gap: 4px;
    margin-top: -5px;
    box-shadow: 0px 1.69231px 5.64103px rgba(0, 0, 0, 0.1);
    border-radius: 56.4103px;
    background: #FFFFFF;
    display: inline-block;
}

.btbackl {
    width: 22px;
    height: 22px;
    gap: 4px;
    margin-top: 15px;
    margin-left: 15px;
    box-shadow: 0px 1.69231px 5.64103px rgba(0, 0, 0, 0.1);
    border-radius: 56.4103px;
    background: #FFFFFF;
    padding-left: 4px;
}

/* freccia a sinistra */
.fa-chevron-left {
    color: #D72300;
}


.bkcontent {
    background: url('img/sfondo_verde.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.titleH1 {
    /* Wonderful Time of the Year */
    font-family: 'Flame';
    font-style: normal;
    font-weight: 700;
    font-size: 1.8em;
    line-height: 1.2em;

    /* fondo chiaro - bk */
    color: #F8F5F0;

    /* Inside auto layout */
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    margin: 30px 0px;
    text-align: left;

    /* Inside auto layout */
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.titleH2 {
    /* titolo h2 */
    font-family: 'Flame';
    font-style: normal;
    font-weight: 400;
    font-size: 1.5em;
    line-height: 29px;

    /* fondo chiaro - bk */
    color: #F8F5F0;

    /* Inside auto layout */
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    text-align: left;
    margin: -10px 0px;
}

.gamerow {
    margin-top: 1.5em;
}

.fill {
    min-height: 100vh;
    height: auto;
}

.fill_bkzone {
    min-height: 60vh;
    height: auto;
    background: #F5EBDC;
}

.gamecontainer {
    border: 2px solid #F5EBDC;
    border-radius: 10px;
}


.gameheader {
    -webkit-border-top-left-radius: 8px;
    -webkit-border-top-right-radius: 8px;
    -moz-border-radius-topleft: 8px;
    -moz-border-radius-topright: 8px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}


.gamefooter {
    color: var(--main_color);
    background: #F8F5F0;
    -webkit-border-bottom-right-radius: 8px;
    -webkit-border-bottom-left-radius: 8px;
    -moz-border-radius-bottomright: 8px;
    -moz-border-radius-bottomleft: 8px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    text-align: left;
    padding: 5px;
}

.gameimage {
    width: 90%;
}

.titoloH3 {
    /* titolo h3 */
    font-family: 'Flame-Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 1.25em;
    line-height: 1.05em;
}

.titoloH3_bold {
    /* titolo h3 */
    font-family: 'Flame';
    font-style: normal;
    font-weight: 700;
    font-size: 1.25em;
    line-height: 1.05em;
}


/* inizio - colori */

.bgorange {
    background-color: #FF8732;
}

.bgtexture01 {
    background: url("img/bg01.png");
}

.bgtexture02 {
    background: url("img/bg02.png");
}

.bgbrown {
    background-color: var(--main_color);
}

/* fine - colori */

@media screen and (min-width: 445px) {
    .gamecontainer {
        width: 90%;
        margin-left: 5%;
        margin-right: 5%;
    }
}


.bgcoupon {
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
}

.bgcoupon>.gameheader {
    background: url('img/coupon.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    width: 100%;
    /*height:250px;*/
}

.bkbutton {
    /* Bottone */
    box-sizing: border-box;

    /*width: 240px;*/
    width: 70%;
    height: 50px;

    margin-left: 15%;
    margin-right: 15%;

    /* Arancione - BK */
    background: #FF8732;

    /* bg-avana */
    border: 2px solid #F5EBDC;
    border-radius: 74px;

    margin-top: 1em;

    font-family: 'Flame';
    font-style: normal;
    font-weight: 400;
    color: #F5EBDC;
    line-height: 43px;
}

.bkbutton a {
    text-decoration: none;
    color: #F5EBDC;
}


@media screen and (min-width: 601px) {
    .bgcoupon {
        width: 50%;
        margin-left: 25%;
        margin-right: 25%;
    }

    /*
    .bgcoupon > .gameheader {
        background: url('img/coupon.png');
        background-repeat: no-repeat;
        background-size:100% 100%;
        width:100%; 
        height:250px;
    }  
    */

    .bkbutton {
        width: 50%;
        height: 50px;
        margin-left: 25%;
        margin-right: 25%;
    }
}

.bkzoneheader {
    background-color: var(--verde);
    min-height: 320px;
    background-image: url(/assets/img/bkimage01.png);
    background-repeat: no-repeat;
    background-position: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bkzoneheader_title {
    border: 0px solid white;
    text-align: left;
    margin-top: 1em;
    width: 50%;
    font-size: 1.8em;
}

.bkzone_orange_title {
    font-family: 'Flame';
    color: #FF8732;
    text-align: left;
    margin-top: 1em;
    font-style: normal;
    font-weight: 700;
    font-size: 1.5em;
    line-height: 30px;
}

.bkzone_brown_text {
    margin-top: 1em;
    font-family: 'Flame';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: var(--main_color);
    text-align: left;
}

.bkzone_red_text {
    font-family: 'Flame';
    font-style: normal;
    font-weight: 700;
    font-size: 22px;
    line-height: 26px;
    text-align: center;
    letter-spacing: -0.03em;

    /* Rosso - BK */
    color: #D72300;

    margin-top: 2em;
}


.bkfooter {
    font-family: 'Flame';
    color: var(--main_color);
    font-size: 0.8em;
    font-style: normal;
    line-height: 1.2em;
    background-color: #F5EBDC;
    padding: 10px;
}

#game {
    width: 100%;
    padding: 0px;
}

a {
    text-decoration: none;
}

#tLayer {
    background-color: transparent;
    z-index: 10;
    position: absolute;
    top: 0;
    left: 0;
    width: 75px;
    height: 50px;
}

.calendar-panel {
    padding: 2rem;
}

.calendar-grid .calendar-card {
    padding: 7px;
    aspect-ratio: 1 / 1;
}

.calendar-grid .card-content {
    padding: 0;
    color: var(--grigio-text);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "SourceSansPro", sans-serif;
    font-weight: 600;
    font-size: 3.6rem;
    text-align: center;
    line-height: 4.4rem;
}

.calendar-grid .card-content a {
    color: var(--grigio-text);
}

.card-attivo {
    cursor: pointer;
}

.body-waiting footer {
    display: none;
}


/* Browsers which partially support CSS Environment variables (iOS 11.0-11.2).*/
@supports (padding-top: constant(safe-area-inset-top)) {
    .bkheader,.flashalert {
        --safe-area-inset-top: constant(safe-area-inset-top);
        /*min-height: var(--safe-area-inset-top);*/
        padding-top: calc(10px + var(--safe-area-inset-top));
    }
    .alert-dismissible .btn-close {
        margin-top: var(--safe-area-inset-top);
    }
}
/* Browsers which fully support CSS Environment variables (iOS 11.2+).*/
@supports (padding-top: env(safe-area-inset-top)) {
    .bkheader,.flashalert {
        --safe-area-inset-top: env(safe-area-inset-top);
        /*min-height: var(--safe-area-inset-top);*/
        padding-top: calc(10px + var(--safe-area-inset-top));
    }
    .alert-dismissible .btn-close {
        margin-top: var(--safe-area-inset-top);
    }
}