/* html {
    background-color: var(--main-background-color);
} */

/* .bm-menu { */

/* display: block; */
/* background-color: #ff0000 !important; */
/* background: #ff00ff !important; */
/* background-color: color-mix(in hsl, var(--main-background-color), var(--colori) 5%); */
/* } */

.dp__outer_menu_wrap {
    z-index: 9999 !important;
    filter: brightness(100%) !important;
}

.dp__menu_index {
    z-index: 9999 !important;
    filter: brightness(100%) !important;
}

.dp__instance_calendar {
    z-index: 9999 !important;
    filter: brightness(100%) !important;
}

body {
    /* max-width: 600px;
    margin: 0 auto; */
    /* margin: 0 0; */
    max-width: 99vw;
    max-height: 99vh;

    margin: 0 auto;
}

/* button {
    background-color: var(--color);
    width: min-content;
    padding: 5px;
    border-radius: 5px;
} */

.clickButton {
    background-color: var(--color);
    color: var(--font-color);
    border-radius: 10px;
    border: none;
    padding: 5px;
    margin: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Enhanced Theme Styling */
[data-theme="hockey"] .clickButton,
[data-theme="cyan"] .clickButton,
[data-theme="lekker"] .clickButton,
[data-theme="raiffeisen"] .clickButton {
    background: var(--color-dark);
    border: 2px solid var(--color-full);
    border-radius: 50px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    will-change: transform;
}

[data-theme="hockey"] .clickButton:hover,
[data-theme="cyan"] .clickButton:hover,
[data-theme="lekker"] .clickButton:hover,
[data-theme="raiffeisen"] .clickButton:hover {
    transform: translateY(-1px);
    background: var(--active-link-color);
    border-color: var(--accent-color);
}

[data-theme="hockey"] .clickButton:active,
[data-theme="cyan"] .clickButton:active,
[data-theme="lekker"] .clickButton:active,
[data-theme="raiffeisen"] .clickButton:active {
    transform: translateY(0px);
}

.clickButton:hover {
    background-color: var(--color);
}

hr {
    margin-top: 8px;
    margin-bottom: 8px;
    border: none;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--container-border) 15%,
        var(--color-full) 50%,
        var(--container-border) 85%,
        transparent 100%);
    border-radius: 1px;
    opacity: 0.8;
}

hr.head {
    margin-top: 12px;
    margin-bottom: 12px;
    border: none;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-half) 10%,
        var(--color-full) 50%,
        var(--color-half) 90%,
        transparent 100%);
    border-radius: 2px;
    opacity: 0.9;
    box-shadow: 0 0 10px var(--container-shadow-main);
}

.static {
    outline: 2px solid #d62506;
    outline-offset: 0px;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes rotateccw {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes spin {
    0%,
    100% {
        box-shadow: 0.2em 0px 0 0px currentcolor;
    }

    12% {
        box-shadow: 0.2em 0.2em 0 0 currentcolor;
    }

    25% {
        box-shadow: 0 0.2em 0 0px currentcolor;
    }

    37% {
        box-shadow: -0.2em 0.2em 0 0 currentcolor;
    }

    50% {
        box-shadow: -0.2em 0 0 0 currentcolor;
    }

    62% {
        box-shadow: -0.2em -0.2em 0 0 currentcolor;
    }

    75% {
        box-shadow: 0px -0.2em 0 0 currentcolor;
    }

    87% {
        box-shadow: 0.2em -0.2em 0 0 currentcolor;
    }
}

.loader {
    width: 20px;
    height: 20px;
    position: absolute;
    border: 3px solid var(--color-half);
    border-top: 3px solid var(--colori);
    border-right: 3px solid var(--colori);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 0.8s linear infinite;
    will-change: transform;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.flag-element {
    -webkit-animation: oscill 2s ease-in-out infinite alternate;
    -moz-animation: oscill 2s ease-in-out infinite alternate;
    -ms-animation: oscill 2s ease-in-out infinite alternate;
    animation: oscill 2s ease-in-out infinite alternate;
    background: url("http://i.imgur.com/8VSL8Ve.gif");
    background-size: 300px 100%;
    position: relative;
    height: 100%;
    width: 1px;
    display: inline-block;
    box-shadow:
        0 1px grey,
        0 -1px gray;
}

@-webkit-keyframes oscill {
    0% {
        top: 5%;
    }

    100% {
        top: -5%;
    }
}

@-moz-keyframes oscill {
    0% {
        top: 5%;
    }

    100% {
        top: -5%;
    }
}

@-ms-keyframes oscill {
    0% {
        top: 5%;
    }

    100% {
        top: -5%;
    }
}

@keyframes oscill {
    0% {
        top: 5%;
    }

    100% {
        top: -5%;
    }
}

/* Ice Hockey Theme Styles */
[data-theme="hockey"] body {
    font-family: 'Arial', 'Helvetica', sans-serif;
}/* Hockey-styled containers */
[data-theme="hockey"] .container,
[data-theme="cyan2"] .container {
    background: rgba(25, 42, 65, 0.2);
    border: 2px solid rgba(65, 160, 220, 0.4);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Theme loader animation */
[data-theme="hockey"] .loader,
[data-theme="cyan2"] .loader {
    background: var(--button-medium);
    border: 3px solid var(--color-half);
    border-top: 3px solid var(--accent-color);
    border-right: 3px solid var(--accent-color);
    animation: rotation 0.8s linear infinite;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    will-change: transform;
}

/* Hockey jersey-style cards */
[data-theme="hockey"] .containerContent {
    background: linear-gradient(145deg,
        rgba(65, 160, 220, 0.1) 0%,
        rgba(25, 42, 65, 0.2) 100%);
    border-radius: 10px;
    border: 1px solid rgba(65, 160, 220, 0.3);
    position: relative;
}

/* Hockey stick dividers */
[data-theme="hockey"] hr {
    background: var(--accent-color);
    border: none;
    height: 3px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Disable expensive effects on mobile */
    [data-theme="hockey"] .loader {
        animation-duration: 1s;
    }

    .clickButton {
        min-height: 44px;
        padding: 12px 20px;
        touch-action: manipulation;
        font-size: 16px;
    }

    /* Reduce motion for better performance */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* Optimize transforms for mobile */
    .loader,
    [data-theme="hockey"] .loader {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}
