﻿*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --layout-background-color: #E6E6E6;
    --primary-color: rgb(176, 209, 89);
    --primary-color-opacity-03: rgba(176, 209, 89, 0.3);
    --secondary-color: rgb(65, 69, 97);
    --secondary-color-opacity-05: rgb(65, 69, 97, 0.5);
    --spicy-color: #cd1c18;
}

html,
body {
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    line-height: 1.75;
    scroll-behavior: smooth;
    height: 100%;
    font-size: 16pt;
}
body {
    -webkit-animation-duration: 10s;
    animation-duration: 10s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

a {
    text-decoration: none;
}

h2, h3 {
    font-weight: 900;
    line-height: 1.5;    
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

    h2 a, h3 a {
        color: inherit;
    }

h2 {
    font-size: 1.1em;
}

h3 {
    font-size: 1em;
}

/* Utility */


.hg-select {
    background-color: var(--secondary-color);
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: 0.8rem;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-weight: 900;
    width: fit-content;
    height: 3.5em;
    letter-spacing: 0.15em;
    overflow: hidden;
    padding: 0 1em 0 1em;
}

.hg-button {
    background-color: var(--secondary-color);
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    border: none;
    outline: none;
    box-shadow: inset 0 0 0 2px var(--secondary-color);
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: 1rem;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-weight: 900;
    display: inline-block;
    height: 3.5em;
    letter-spacing: 0.15em;
    overflow: hidden;
    padding: 0 1.25em 0 1.6em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
    .hg-button:disabled{
        opacity:0.75;        
        cursor:default;
    }

.hg-button-med {
    font-size: 0.7rem;
    height: 2.6em;
    padding: 0 1em 0 1.2em;    
}

    .hg-a {
        color: var(--secondary-color);
        border-bottom: 1px dotted var(--secondary-color);
    }


.category-filter {
    display: flex; /* keep links in one row */
    flex-wrap: nowrap; /* never wrap */
    width: 100%; /* don’t grow past the viewport */
    max-width: 100%; /* extra safe guard */
    min-width: 0;
    box-sizing: border-box; /* include padding in that width */

    overflow-x: auto; /* horizontal scroll only */
    overflow-y: hidden; /* no vertical scroll */
    /* on iOS: smooth, momentum scrolling */
    -webkit-overflow-scrolling: touch;
    /* on all touch devices: only pan horizontally */
    touch-action: pan-x;
    /* prevent the scroll from “bleeding” to the page */
    overscroll-behavior-x: contain;
    /* optional visual hint */
    cursor: grab;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding: 0 1rem 10px 1rem;
    position: relative;
    /* mask fade—transparent at edges, solid in middle */
    -webkit-mask-image: linear-gradient( to right, transparent 0%, black 10%, black 90%, transparent 100% );
    mask-image: linear-gradient( to right, transparent 0%, black 10%, black 90%, transparent 100% );
}


.category-filter-scroll-inner {
    display: flex;
    flex-wrap: nowrap;
    width: max-content; /* shrink-to-fit your links */
    margin: 0 auto; /* center when smaller than parent */
}

    .category-filter-scroll-inner a {
        flex: 0 0 auto;
        white-space: nowrap;
        text-decoration: none;
    }

.category-filter__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    flex: 0 0 auto;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.6rem;
    border: none;
    letter-spacing: 0.15em;
    border-radius: 20px;
}
    .category-filter__btn.active,
    .category-filter__btn:hover {
        background-color: var(--primary-color);
        color: var(--secondary-color);
        font-weight: 900;
        box-shadow: none;
    }
/* Partials*/
#languagePartial {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 4px;
    padding: 0 0 0 6px;
    background: var(--secondary-color);
}

    #languagePartial svg {  
        width: auto;
        height: 2rem;
        fill: var(--primary-color);
    }

.display-none {
    display: none;
}

.display-flex {
    display: flex;
}

.display-block {
    display: block;
}

.cursor-pointer{
    cursor:pointer;
}

.color-dark-red {
    color: darkred;
}

.color-green{
    color: green;
}

.transparent {
    opacity:0;
}

/* Modals */
.cat-app-dialog,
.app-dialog {
    margin: auto;
    padding: 1rem 1.5rem;
    max-height: 80vh;
    height: 100%;
    min-width: 20rem;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.7);
}

.app-dialog__content,
.cat-dialog__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto; /* Scroll when content exceeds container */
    justify-content: space-between;
}

.close-app-dialog-x,
.close-cat-dialog-x {
    color: var(--secondary-color);
    font-size: 3rem;
    font-weight: 900;
    position: absolute;
    top: 0;
    right: 1.5rem;
    margin-left: 1rem;
    cursor: pointer;
}

.app-dialog__text{
    margin-bottom:1rem;
    color: var(--secondary-color);
}

    .app-dialog__text h1 {
        font-size:2.7rem;
        font-weight:700;
        line-height:1.3;
        margin-bottom:0.5em;
    }

    .app-dialog__text h2 {
        text-transform: uppercase;
        font-size: 1.8rem;
        font-weight: 900;
        line-height: 1.5;
        letter-spacing: 0.15rem;
        margin-bottom:0.7rem;
        text-align:center;
    }

        .app-dialog__text h3{
            line-height: normal;
            letter-spacing: normal;
            font-weight: 500;
            font-size: 1em;
            color: darkred;
            margin-bottom: 0.7rem;

        }

        .app-dialog__text p {
            font-size: 1.1rem;
            margin: 0 0 2rem 0;
            font-weight: 300;
        }

    .app-dialog__text ol {
        line-height: 2.5em;
        list-style-type: decimal;
        padding-left:1.25em;
        font-weight:300;
    }

    .app-dialog__text .rules-success {
        color: darkgreen;
        font-weight:700;
    }

    .app-dialog__text .rules-no-success {                
        font-weight: 700;
        color : darkred;
    }

    .app-dialog__text ol > li > ul {
        margin-left: 2rem;
    }

.app-dialog__footer,
.cat-dialog__footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

    .app-dialog__footer a.hg-button,
    .cat-dialog__footer a.hg-button {
        display: flex;
        align-items: center;
        width: fit-content;
        padding: 0 1.5rem;
    }

    .app-dialog__footer .app-dialog-play{
        background-color: var(--primary-color);
        color: var(--secondary-color);
    }

.cat-dialog__footer {
    margin-top: 2rem;
}

.category-description-section {
    color: var(--secondary-color);
}

    .category-description-section h1{
        text-transform: uppercase;
    }

    .category-description-section p{
        font-size: 1rem;
        margin-left: 1rem;
        margin-right: 1rem;
        margin-bottom:0.7rem;
        font-weight:300;
        line-height: 1.5;
    }


/* Landing */
.landing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    height: auto;
    background-color: var(--primary-color);
}

.landing__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 7rem;
}

.landing__logo {
    padding: 40px 0;
    text-align: center;
}

    .landing__logo img {
        width: 14rem;
        height: auto;
        padding: 10px 0 60px 0;
    }

.landing__title h1 {
    color: var(--secondary-color);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.035rem;
    text-align: center;
}

.missing-qr-code {
    margin: 1em 1em;
    text-align: center;
}

    .missing-qr-code h2 {
        line-height: normal;
        text-transform: none;
        letter-spacing: normal;
        font-weight: normal;
        color: darkred;
        background-color: var(--primary-color-opacity-03);        
        padding:0.2em;
    }

        .missing-qr-code h2 a {
            border-bottom: 2px dotted var(--secondary-color);
        }

    .landing__checks {
        margin-top: 2rem;
        padding-left: 1.2rem;
        text-align: left;
    }

    .landing__checks .hg-checkbox input[type="checkbox"] {
        display: none;
        appearance: none;
        float: left;
        margin-right: -2rem;
        opacity: 0;
        width: 1rem;
        z-index: -1;
    }

        .landing__checks .hg-checkbox input[type="checkbox"] + label {
            text-decoration: none;
            cursor: pointer;
            display: inline-block;
            font-size: 1rem;
            color: var(--secondary-color);
            padding-left: 2.55rem;
            padding-right: 0.75rem;
            position: relative;
            font-weight: 800;
        }

            .landing__checks .hg-checkbox input[type="checkbox"] + label:before {
                content: "";
                border-radius: 4px;
                border: solid 1px var(--secondary-color);
                display: inline-block;
                font-size: 0.8rem;
                width: 2.25em;
                height: 2.25em;
                top: 0;
                left: 0;
                line-height: 2.25em;
                position: absolute;
                text-align: center;
            }

        .landing__checks .hg-checkbox input[type="checkbox"]:checked + label:before {
            content: "\f00c";
            background-color: var(--secondary-color);
            border-color: var(--secondary-color);
            color: white;
            font-family: "Font Awesome 5 Free";
        }

    .landing__checks .hg-checkbox label {
        font-weight: 600;
        margin: 0 0 1rem 0;
    }

        .landing__checks .hg-checkbox label a {
            color: var(--secondary-color);
            border-bottom: 1px dotted var(--secondary-color);
        }

            .landing__checks .hg-checkbox label a b {
                font-weight: 900;
            }

.landing__buttons {
    margin: 1rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

    .landing__buttons form .hg-button{
        background-color: var(--primary-color);
        color: var(--secondary-color);
    }

    .landing__buttons .hg-select {
        border-left: none;
    }

/* Cookie constent */
.cookie-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 2147483645;
    background-color: #f1f6f4;
    box-sizing: border-box;
    width: 100%;
    padding: 0px 20px 0px 20px;
}

/* Style the collapsible content. Note: hidden by default */
.content-cookie {
    padding: 0.4rem 1.1rem;
    overflow: hidden;
    flex-direction: column;
}

.collapsible-cookie:after {
    content: "\02795"; /* Unicode character for "plus" sign (+) */
    font-size: 13px;
    color: white;
    float: right;
    margin-left: 5px;
}

.collapsible-cookie-active:after {
    content: "\2796"; /* Unicode character for "minus" sign (-) */
}

.cookie-title {
    font-weight: bold;
    font-size: 13px;
    color: var(--secondary-color);
}

.cookie-text {
    font-weight: normal;
    color: var(--secondary-color);
    font-size: 16px;
    line-height: 24px;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.cookie-consent-btn {
    width: 164px;
    min-width: 164px;
    border-radius: 5px;
    font-size: 1rem;
    padding: 1rem 1rem;
    background:var(--secondary-color);
    color: white;
}

/* Layout */

body.is-menu-visible .layout{
    pointer-events: none;
    cursor: default;
    opacity: 0.25;
}

.layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    background-color: var(--layout-background-color);
    -moz-transition: opacity 0.45s ease;
    -webkit-transition: opacity 0.45s ease;    
    transition: opacity 0.45s ease;    
}

.hamb-lines {
    fill: red;
}

    .layout header {
        text-align: center;
        padding: 1.5rem 0 0.1rem 0;     
    }

    .layout header nav {
        position: fixed;
        right:2em;
        top:2em;
        z-index:10000;
    }
        .layout header .header__logo {
            position: fixed;
            left: 2em;
            top: 2em;
            z-index: 10000;            
        }
        .layout header .header__logo img {
            width: 52px;
            height: auto;
        }


        .layout header nav ul{
            display: flex;
            align-items:center;
            list-style:none;
            margin:0;
            padding:0;
        }

            .layout header nav ul li{
                display: block;
                padding:0;
            }

                .layout header nav ul li a[href="#menu"]{
                    width:3em;
                    text-indent:3em;
                    font-size:0.8em;
                    overflow:hidden;
                    padding:0;
                    white-space:nowrap;
                    border-radius:10px;
                }

                .layout header nav ul li a {
                    display: block;
                    position: relative;
                    height: 3em;
                    background-color: rgba(255,255,255, 0.5);
                    border:0;
                    font-weight: 900;
                    letter-spacing: 0.35em;
                    color: var(--secondary-color);
                    }

                    .layout header nav ul li a[href="#menu"]:before,
                    .layout header nav ul li a[href="#menu"]:after {
                        content: "";
                        transition: opacity 0.2s ease;
                        display:block;
                        position:absolute;
                        top:0;
                        left: 0;
                        width:100%;
                        height:100%;
                        background-position:center;
                        background-repeat: no-repeat;
                        background-size: 2em 2em;
                    }

                    .layout header nav ul li a[href="#menu"]:before{                        
                        background-image: url("../images/hamb_before.svg");
                        opacity: 0;
                    }

                        .layout header nav ul li a[href="#menu"]:hover:before{
                            opacity:1;
                        }

                        .layout header nav ul li a[href="#menu"]:after {
                            background-image: url("../images/hamb_after.svg");
                            opacity: 1;
                        }

                            .layout header nav ul li a[href="#menu"]:hover:after{
                                opacity:0;
                            }


.layout__content {
    flex: 1;
    background-image: url("/images/background_1.webp");
}

.layout__footer {
    height:5rem;
    text-align:center;
}
    .layout__footer ul li {
        font-size: 0.8rem;
        color: rgba(88, 88, 88, 0.5);
    }


/* Layout out*/

.logo3 span.symbol img {
    width:6em;
    height: auto;
}

/* Nothing here*/
.nothing-here,
.forgot,
.error{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
    color: var(--secondary-color);
    padding: 1em;
}

    .nothing-here h1,
    .forgot h1,
    .forgot span,
    .error h1,
    .error span
    {
        text-align: center;
    }

.nothing-here a,
.forgot a,
.error a{
    font-size:1.5em;
    font-weight:700;
}

/*Menu*/
body.is-menu-visible #menu {
    -moz-transform: translateX(0em);
    -webkit-transform: translateX(0em);
    -ms-transform: translateX(0em);
    transform: translateX(0em);
    visibility: visible;
}


    body.is-menu-visible #menu > .menu__close {
        -moz-transform: scale(0.1) rotate(0deg);
        -webkit-transform: scale(0.1) rotate(0deg);
        -ms-transform: scale(0.1) rotate(0deg);
        transform: scale(1.0) rotate(0deg);
        opacity: 1;
    }

    body.is-menu-visible #menu > .menu__container {
        opacity: 1;
    }

    #menu {
        -moz-transform: translateX(22em);
        -webkit-transform: translateX(22em);
        -ms-transform: translateX(22em);
        transform: translateX(22em);
        -moz-transition: -moz-transform 0.45s ease, visibility 0.45s;
        -webkit-transition: -webkit-transform 0.45s ease, visibility 0.45s;
        transition: transform 0.45s ease, visibility 0.45s;
        position: fixed;
        top: 0;
        right: 0;
        width: 22em;
        max-width: 80%;
        height: 100%;
        -webkit-overflow-scrolling: touch;
        background: #414561;
        color: #ffffff;
        cursor: default;
        visibility: hidden;
        z-index: 10002;
    }

.menu__container {
    -moz-transition: opacity 0.45s ease;
    -webkit-transition: opacity 0.45s ease;    
    transition: opacity 0.45s ease;
    -webkit-overflow-scrolling: touch;
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    padding:2.75em;
    font-weight:300;
    opacity:0;
    overflow-y:auto;
}

    .menu__container a:hover{
        color: var(--primary-color);
    }

    .menu__container > h2 {
        margin-bottom: 2em;
    }


.menu__container >  ul{
    list-style: none;
    margin: 0 0 1em 0;
    padding:0;
}


.menu__container > ul  >li {
    padding:0;
    border-top: solid 1px rgba(255,255,255,0.15);
}

.menu__container >ul>li.menu__container-lang{
    padding-top: 1em;
}

.menu__container > ul > li:first-child {
    border-top: 0;
    margin-top: -1em;
}

    .menu__container > ul > li > a{
        display: block;
        padding:1em 0;
        line-height: 1.5;
        border: 0;
        color: inherit;
    }

#menu > .menu__close {
    -moz-transition: opacity 0.45s ease, -moz-transform 0.45s ease;
    -webkit-transition: opacity 0.45s ease, -webkit-transform 0.45s ease;    
    transition: opacity 0.45s ease, transform 0.45s ease;
    -moz-transform: scale(0.25) rotate(180deg);
    -webkit-transform: scale(0.25) rotate(180deg);
    -ms-transform: scale(0.25) rotate(180deg);
    transform: scale(0.25) rotate(180deg);
    -webkit-tap-highlight-color: transparent;
    display: block;
    position: absolute;
    top: 2em;
    left: -6em;
    width: 6em;
    text-indent: 6em;
    height: 3em;
    border: 0;
    font-size: 1em;
    opacity: 1;
    overflow: hidden;
    padding: 0;
    white-space: nowrap;
}

    #menu > .menu__close:before,
    #menu > .menu__close:after {
        -moz-transition: opacity 0.2s ease;
        -webkit-transition: opacity 0.2s ease;        
        transition: opacity 0.2s ease;
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 2em 2em;
    }


    #menu > .menu__close:before {
        background-image: url("../images/menu_close_before.svg");
        opacity: 0;
    }

    #menu > .menu__close:after {
        background-image: url("../images/menu_close_after.svg");
        opacity: 1;
    }

    #menu > .menu__close:hover:before {
        opacity: 1;
    }

    #menu > .menu__close:hover:after {
        opacity: 0;
    }

.hg-a.a-games{
    text-transform: uppercase;
}
/* Icons */
ul.icons {
    cursor: default;
    list-style: none;
    padding-left: 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}

    ul.icons li {
        display: inline-block;
        padding: 0.4em 0 0 1em;
        border: none;
        
    }

.icon {
    text-decoration: none;
    border-bottom: none;
    position: relative;
}

    .icon:before {
        -moz-osx-font-smoothing: grayscale;
        -webkit-font-smoothing: antialiased;
        display: inline-block;
        font-style: normal;
        font-variant: normal;
        text-rendering: auto;
        line-height: 1;
        text-transform: none !important;
        font-family: 'Font Awesome 5 Free';
        font-weight: 400;
    }

    .icon > .label {
        display: none;
    }

    .icon:before {
        line-height: inherit;
    }

    .icon.solid:before {
        font-weight: 900;
    }

    .icon.brands:before {
        font-family: 'Font Awesome 5 Brands';
    }

    .icon.style2 {
        -moz-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
        -webkit-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;        
        transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
        background-color: transparent;        
        width: 2.65em;
        height: 2.65em;
        display: inline-block;
        text-align: center;
        line-height: 2.65em;
        color: inherit;
    }

        .icon.style2:before {
            font-size: 1.1em;
        }

        .icon.style2:hover {
            color: var(--primary-color);
            border-color: #f2849e;
        }

        .icon.style2:active {
            background-color: rgba(242, 132, 158, 0.1);
        }


/* Common */

.page-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-top: 0.1rem;     
}

.page-header h2 {
    text-transform: uppercase;
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: 0.35rem;
    text-align: center;
}

/* Games */

.games__list {
    padding: 0 1em;
    width: 100%;
    max-width: 1000px;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);    
    
}

    .games__list .category-name {
        margin-bottom: 1rem;
        font-weight: 700;
        font-size: 0.85rem;
        color: var(--secondary-color);        
        text-transform: capitalize;
    }

    .games__list .cat-info-icon {
        margin-left: 5px;
        cursor: pointer;
    }

    .games-list li {
        margin-top: 1.8em;
        padding-bottom: .8em;
        border-bottom: 1px solid var(--secondary-color-opacity-05);
    }

    .games-list li:first-child{
        margin-top:0;
    }



.games-list {
    list-style: none;
}

.games__list-icons {    
    display: grid;
    gap: 8px;
    padding: 0 0.6rem;
    width: 100%; /* allow it to shrink/grow with its container */
    justify-content: left; /* center items when there’s leftover space */
    /* each track is min 64px, max whatever the <a> wants (see below) */
    grid-template-columns: repeat( auto-fit, minmax(100px, max-content) );
}

    /* Make the <a> fill the grid cell */
    .games__list-icons  .game-item {
        display: block;
        width: 100%;
        max-width: 200px;
        /* fluid betweenXpx @ 200px viewport → 250px @ 1440px+ */
        width: clamp( 100px, calc((100vw - 200px)/1240*186px + 100px), 250px );
        min-width: 82px;
        text-decoration: none;
        margin-bottom: 0.4rem;
        cursor: pointer;
    }

        /* Ensure the image fills its parent <a> and keeps aspect ratio */
.games__list-icons .game-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.games-list-item,
.games-list-item .game-item {
    position: relative;
}

    .games-list-item .game-item.locked::after {
        content: "";
        position: absolute;
        inset: 0;
        background: url("/images/lock.svg") no-repeat center center;
        background-size: contain; /* preserves aspect ratio, fills container */
        opacity: 0.6;
    }

    .games-list-item .game-item.locked::after svg {        
        width:4rem;
        height: 4rem;
    }

.games-list-item__name {
    font-size: 0.83rem;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: normal;
}


/* 2) Hide the per‑item modal by default; when .active, flex‑center it */
.game-item-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* hidden until .active */
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */    
    z-index: 100; /* above the thumbnail */
}

    .game-item-modal.active {
        display: flex;
    }

/* 3) Style the dialog box itself */
.game-item-modal-dialog {
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
    width: 100%;
    height: 100%;
    overflow: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    background: rgba(0,0,0,0.5);
}

/* 4) Button layout inside the dialog */
.game-item-modal-buttons {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content:center;
    gap:0.8rem;   
}

    .game-item-modal-buttons > button,
    .game-item-modal-buttons > form{
        flex: 1 1 0;
        margin: 0;
        line-height: normal;
    }

   
    .game-item-modal-buttons > form >  button {
        
        height: 100%;
        width: 100%;
        box-sizing: border-box;
    }

.games-list-item-button-rules {
    background-color: white;
    color: var(--secondary-color);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px var(--secondary-color);
    font-size: 0.6rem;
}

.games-list-item-button-play {
    background-color: white;
    box-shadow: inset 0 0 0 1px var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.6rem;
}

    .games-list-item-button-play i {
        margin-left: 2px;
    }

/* Pocket*/
.pocket__header h3 {
    font-weight: 100;
    text-align: center;
}

.pocket__header a {
    text-decoration: none;
    color: var(--secondary-color);
    text-transform: uppercase;
    border-bottom: dotted 1px var(--secondary-color-opacity-05);
}

.text-l{
    font-size:1em;
}
    /* CARD */
.card-container {
    display: inline-block;
    width: 300px;
    height: 430px;
    margin-bottom:5rem;
}

#card-question {
    -webkit-user-select: none;
    user-select: none;
}

.card-container__htag {
    padding-left: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: center center;
    transition: transform 0.3s;
}

.card-container__trivia420-score-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 0.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.card-container__trivia-420-score,
.card-container__trivia-420-streak {
    display: flex;
    flex-direction: column;
    margin-left: 0.8rem;
    margin-right: 0.8rem;
    font-size: 0.9rem;
}

.card-container__trivia-420-score{
    text-align:left;
}

.card-container__trivia-420-streak{
    text-align:right;
}

.card-container_points-info,
.card-container_time-info {
    margin-left: 1rem;    
}

    .card-container_time-info{
        text-transform: none;
    }

    .card__face {
        position: absolute;
        width: 100%;
        height: 100%;
        line-height: 20px;
        color: black;
        text-align: center;
        font-weight: bold;
        font-size: 20px;
        backface-visibility: hidden;
        border-radius: 20px;
        border: 1rem solid white;
    }

.card__face-front {    
    cursor: pointer;
    border-radius: 15px;
    border: 1rem solid;
    border-color: white;
    width:100%;
    height: 100%;
    font-size: 16px;
    padding-top: 280px;
}

.card__background-svg-challenges {
    background: var(--secondary-color);
    background-image: url("../images/cardChallenges.svg");
    background-repeat: no-repeat;
    background-size:contain;
}

.card__background-svg-trivia {
    background: var(--secondary-color);
    background-image: url("../images/cardTrivia.svg");
    background-repeat: no-repeat;
    background-size: contain;
}

.card__background-svg-couple-soft {
    background: #EEDF3D;
    background-image: url("../images/cardCoupleSoft.svg");
    background-repeat: no-repeat;
    background-size: contain;
}

.card__background-svg-couple-spicy {
    background: #DF3A14;
    background-image: url("../images/cardCoupleSpicy.svg");
    background-repeat: no-repeat;
    background-size: contain;
}

.card__face-back {
    background: var(--primary-color);
    transform:rotateY(180deg);
    border-radius:15px;
}

.card__title-wrapper {
    padding: 15px 10px 0 10px;
    height:35%;
    width: 100%;
}

    .card__title-wrapper h2 span{
        text-transform:uppercase;
    }

.card__text{
    padding:0 10px 0 10px;
    height: 65%;
    width: 100%;
    line-height:1.3;
}

card-container__spinner {
    text-align: center;
    font-size: 30px
}

.card-container__delay-bar-container {
    width: 100%;
    background-color: #E6E6E6;
    margin-top: 10px;
    padding: 0 15px 0 15px;
}

.card-container__delay-bar {
    width: 0;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 20px;
}

.card-container__trivia420-bar-container {
    padding: 0 1rem 0 1rem;
    margin-bottom:0.5rem;
}

.card-container__trivia420-bar {
    width: 100%;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 20px;
    transform-origin: left;
}

.card-contaier__error-text {
    font-size: 1rem;
    color: red;
}

.card.is-flipped {
    transform: translateX(0%) rotateY(-180deg);
}

.card__question-wrapper {
    padding: 5px 15px 0 15px;
    height: 35%;
    width: 100%;
}

.card__question-wrapper h3 {
    text-align: left;
    height: 100%;
    width: 100%;
    text-align:center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card__question-wrapper h3 span {
    letter-spacing: normal;
    line-height: normal;
    text-transform: none;
    font-size: 1em;
    font-weight:normal;
}

.card__answers {
    margin: 1em 0.5em 1em 0.5em;
}
    .card__answers ol {
        line-height: 1.9em;
        list-style-type:  none;        
        font-weight: 600;
        font-size: 0.7em;
        text-align: left;        
        color: var(--secondary-color);
    }
        .card__answers ol li {
            padding-left: 0.8em;
            padding-right: 0.8em;
            padding-bottom: 0.5em;
            padding-top: 0.5em;
            background-color: var(--layout-background-color);
            border-radius: 5px;
            margin-bottom: 0.5em;
            min-height: 40.6px;
        }

.li-answer-fs-sm {
    font-size: 0.55rem;
    line-height:1.4em;
}

.safari-inter-page {
    margin-top:3rem;
    text-align:center;
    color: var(--secondary-color);
}
.safari-inter-page h1{
text-transform: uppercase;
line-height: normal;
margin-bottom:1rem;
}

.safari-inter-page__click-here{
margin-top:1.5rem;
margin-bottom: 0.5rem;
}

/* HighMemory*/
.hm-loading {    
    position: absolute;
    inset: 0;
    justify-content: center;
    align-items: center;    
    z-index: 999;
    background-color: rgba(255,255,255, 0.5);
    margin: 0 auto;    
    flex-direction: column;
}

.hm-levels-wrapper {
    background-color: rgba(255,255,255, 0.6);
    border-radius: 20px;
    padding: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.hm-levels {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 5px solid var(--primary-color);
    border-radius: 20px;
}

.hm-level {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--primary-color);
    padding: 0.2rem;
    font-size: 0.8rem;
    min-height: 3rem;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(3px);
}

.hm-level img{
    height: 3.5rem;
}

.hm-level-title-desc, .hm-game-header-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.2rem;
    color: var(--secondary-color);
}

.hm-level-level, .hm-header-level {
    font-size: 0.7rem;
    line-height: normal;
    letter-spacing: 3px;
    margin-bottom: 5px;
    font-weight: 700;
}

.hm-level-title, .hm-header-name {
    font-size: 1.1rem;
    line-height: normal;
    font-weight: 700;
}

.hm-level-desc {
    font-size: 0.75rem;
    line-height: normal;
    letter-spacing: 1px;
}

.hm-level-play button {
    background-color: transparent;
    box-shadow: inset 0 0 0 1px var(--secondary-color);
    color: var(--secondary-color);
}

.hm-game-wrapper {
    position:relative;
    min-width: 90vw;
    /*text-align: center;*/
}

.hm-restart-btn, .hm-exit-btn, .hm-modal-sure-btn, .hm-modal-nope-btn {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
}

    .hm-modal-sure-btn{
        background-color: var(--primary-color);
        color: var(--secondary-color);
    }

.hm-modal-nope-btn {
    background-color: indianred;
    color: var(--secondary-color);
}

.hm-board {
    display: grid;
    gap: 5px;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    position: relative; /* Added for overlay positioning */
    margin: 0 auto;
}

.hm-card {
    aspect-ratio: 1 / 1;    
    position: relative;
    perspective: 600px;
    cursor: pointer;
}

.hm-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
    transform-style: preserve-3d;
}

.hm-card.flipped .hm-card-inner{
    transform: rotateY(180deg);
}

.hm-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--secondary-color);
}

.hm-card-back {
    border: 2px solid var(--secondary-color);    
    background-color: var(--primary-color);
    background: var(--primary-color) url("../images/logo.svg") no-repeat center center;
    background-size: contain;
}

.hm-card-front{
    background: #fff;
    transform: rotateY(180deg);
    padding:10px;
}
.hm-card-inner, .hm-card-back, .hm-card-front {
    border-radius: 6px;
}

.hm-card-front img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hm-game-header-outer {
    padding: 3px;
    background-color: rgba(255,255,255, 0.5);
    margin-bottom: 10px;
    width: 100%;
    max-width: 800px;
    margin: 5px auto;
    border-radius: 6px;
}
.hm-game-header {
    padding: 0 5px 5px 5px;
    border: 3px solid var(--primary-color);
    border-radius: 6px;
}

.hm-game-header-level{
    padding-bottom: 10px;
}

.hm-header-name{
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.hm-game-header-time-buttons {
    display: flex;
    justify-content: space-between;
}

.hm-time {
    display: flex;
    flex-direction: column;    
}

.hm-time-record-wrapper, .hm-time-time-wrapper {
    display: flex;
    gap: 5px;
}

.hm-time-record-wrapper{
    font-size: 0.75rem;
    line-height: 0.75rem;
    letter-spacing: 0.03rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.hm-time-record, .hm-time-time {
    text-transform: uppercase;
}

.hm-time-time-wrapper {
    font-size: 1rem;
    letter-spacing: 0.03rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.hm-buttons {
    font-size: 0.6rem;
    display: flex;
    gap: 10px;
}

.hm-modal {
    position: absolute;
    inset: 0;    
    justify-content: center;
    align-items: start;
    padding-top: 20px;
    z-index: 1000;
    background-color: rgba(255,255,255, 0.5);
    max-width: 800px;
    max-height: 80vh;
    margin:0 auto;
}

.hm-modal-content-outer {
    min-width: 200px;
    min-height: 200px;
    height: 200px;
    background-color: white;
    width: 70%;
    padding: 7px;
    border-radius: 10px;
}

.hm-modal-content{
    border: 5px solid var(--primary-color);
    border-radius: 5px;
    height: 100%;
    padding: 5px 5px 10px 5px;
    display:flex;
    flex-direction: column;
    justify-content: space-between
}

.hm-modal-header{
    display:flex;
    flex-direction:column;
}

.hm-header-1{
    text-align:center;
    font-size:2rem;
    line-height: normal;
    font-weight: 700;
    color: var(--secondary-color);
}

.hm-header-2 {
    text-align: center;
    font-size:1.1rem;
    color: var(--secondary-color);
}

.hm-modal-buttons{
    display:flex;
    justify-content: space-evenly;
}

    .hm-modal-buttons button{
        min-width: 40%;
        font-size: 1rem;
    }

    .shrink-out {
        animation: shrinkOut 500ms ease-in forwards;
        transform-origin: center center;
    }


    .hm-image-blur {
        filter: blur(5px);
    }

.hm-card-face.hm-card-front > img {
    transition: filter 2s ease;
}

@keyframes shrinkOut {
    to {
        transform: scale(0);
        opacity: 0;
    }
}

.hm-smoke-wrapper {    
    width: 100vw;
    height: 100vh;
    padding-bottom: 10rem;
    position: relative;
    overflow-x: hidden;
}

.hg-smoke {
    position: absolute;
    width: 15.625rem;
    height: 15.625rem;
    background: url("../images/highmemory/smoke2.png") no-repeat;
    bottom: 150px;
    margin-left: 0px;
    pointer-events: none;
}

.hm-rules-dialog ol li::marker {
    font-weight: 700;
}

.hm-rules-li-header{
    font-weight: 700;
    line-height: normal;
}
.privacy-policy-wrapper {
    padding: 0 1rem 1rem 1rem;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

    .privacy-policy-wrapper ul {
        list-style-type: disc;
    }

    .privacy-policy-wrapper h1 {
        font-size: 2rem;
        font-weight: bold;
        line-height: normal;
        padding-bottom: 1rem;
    }

    .privacy-policy-wrapper h2 {
        font-size: 1rem;
        line-height: normal;
        padding-bottom: 0.7rem;
        text-align: start;
    }

    .privacy-policy-wrapper .last-updated {
        font-style: italic;
        font-weight: bold;
    }

    .privacy-policy-wrapper section {
        margin-bottom: 1rem;
    }

    .privacy-policy-wrapper table th {
        text-align: start;
        font-weight: bold;
        border-bottom: 1px solid;
        padding: 5px;
    }

    .privacy-policy-wrapper table td {
        text-align: start;
        vertical-align: top;
        padding: 5px;
    }

    .privacy-policy-wrapper .bold {
        font-weight: bold;
    }



    /* Media Queries */
    @media screen and (max-width: 1680px) {
        html, body {
            font-size: 14pt;
        }

        h3 {
            font-size: 1em;
        }

        .li-answer-fs-sm {
            font-size: 0.7rem;
            line-height: 1.3em;
        }
    }

    @media screen and (max-width: 1281px) {
        html, body {
            font-size: 12pt;
        }

        .li-answer-fs-sm {
            font-size: 0.7rem;
        }
    }

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

        .app-dialog__content {
            padding-top: 2.5em;
        }

        .landing__title {
            margin-top: -50px;
        }

            .landing__title h1 {
                font-size: 1.75rem;
            }

        .layout header {
            margin-top: 2rem;
        }

            .layout header h2 {
                font-size: 1em;
            }

        h3 {
            font-size: 0.8em;
        }

        .layout header nav {
            right: 0.5em;
            top: 0.5em;
        }

        .layout header .header__logo {
            left: 1em;
            top: 1em;
        }

        .layout header nav ul li a[href="#menu"]:before,
        .layout header nav ul li a[href="#menu"]:after {
            background-size: 1.5em 1.5em;
        }

        .hm-game-wrapper {
            min-width: 98vw;
            padding: 10px;
        }

        .hm-board {
            gap: 2px;
        }
    }

    @media screen and (max-width: 375px) {
        .text-l {
            font-size: 0.9em;
        }

        .li-answer-fs-sm {
            font-size: 0.8rem;
            line-height: 1.4em;
        }

        .games-list-item {
            min-width: 0;
        }
    }

    @media screen and (max-width: 356px) {
        html, body {
            font-size: 10pt;
        }
    }

    @media screen and (max-width: 290px) {
        .hm-buttons, .hm-time {
            display: flex;
            flex-direction: column;
            gap: 3px;
            justify-content: end;
        }

        .hm-time {
            padding-left: 3px;
        }
    }
