﻿:root {
    --phone-xs: 374px; /* Extra small phones */
    --phone-sm: 414px; /* Small phones */
    --phone-md: 480px; /* Medium phones */
    --phone-lg: 599px; /* Large phones / Phablets */
    --tablet: 767px; /* Tablet max width */
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: rgba(50,51,61,1);
}

.main-layout {
    height: 100%;
    overflow-y: scroll;
}


.login-background {
    background-color: var(--mud-palette-primary);
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    40% {
        transform: scale(1);
    }

    60% {
        transform: scale(1.1);
    }

    80% {
        transform: scale(1);
    }
}

.heartbeat {
    display: inline-block;
    animation: heartbeat 1.5s infinite;
    transform-origin: center;
}

@font-face {
    font-family: 'Pacifico';
    src: url("../fonts/Pacifico.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Oups';
    src: url("../fonts/Oups.otf") format("truetype");
    font-weight: normal;
    font-style: normal;
}





.lds-grid,
.lds-grid div {
    box-sizing: border-box;
}

.lds-grid {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-grid div {
        position: absolute;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: currentColor;
        animation: lds-grid 1.2s linear infinite;
    }

        .lds-grid div:nth-child(1) {
            top: 8px;
            left: 8px;
            animation-delay: 0s;
        }

        .lds-grid div:nth-child(2) {
            top: 8px;
            left: 32px;
            animation-delay: -0.4s;
        }

        .lds-grid div:nth-child(3) {
            top: 8px;
            left: 56px;
            animation-delay: -0.8s;
        }

        .lds-grid div:nth-child(4) {
            top: 32px;
            left: 8px;
            animation-delay: -0.4s;
        }

        .lds-grid div:nth-child(5) {
            top: 32px;
            left: 32px;
            animation-delay: -0.8s;
        }

        .lds-grid div:nth-child(6) {
            top: 32px;
            left: 56px;
            animation-delay: -1.2s;
        }

        .lds-grid div:nth-child(7) {
            top: 56px;
            left: 8px;
            animation-delay: -0.8s;
        }

        .lds-grid div:nth-child(8) {
            top: 56px;
            left: 32px;
            animation-delay: -1.2s;
        }

        .lds-grid div:nth-child(9) {
            top: 56px;
            left: 56px;
            animation-delay: -1.6s;
        }

@keyframes lds-grid {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.event-header {
    position: relative;
    color: white;
}

.event-body {
    background-color: var(--mud-palette-appbar-background) !important;
}

.event-footer {
    background-color: var(--mud-palette-appbar-background) !important;
    border-top: 1px solid;
}

.event-header-text {
    color: white;
    z-index: 1;
}

.event-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%; /* adjust how much of the image gets darkened */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.loader-container {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0.5;
    background-color: #808080;
    z-index: 2000;
    width: 100vw;
    height: 100vh;
}

.rank-badge > .mud-chip-content {
    color: black !important;
}


.hand-writing {
    font-family: "Pacifico" !important;
    text-shadow: 2px 2px 4px black;
}


.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.loader-ripple {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .loader-ripple div {
        position: absolute;
        border: 4px solid #fff;
        opacity: 1;
        border-radius: 50%;
        animation: loader-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .loader-ripple div:nth-child(2) {
            animation-delay: -0.5s;
        }


.match-cell {
    border: 3px solid var(--mud-palette-text-secondary) !important;
}

.bracket-right-cell {
    border-right: 3px solid var(--mud-palette-text-secondary) !important;
    border-bottom: none !important;
}


@keyframes loader-ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

.match-closed {
    background: var(--mud-palette-success);
    background: linear-gradient(90deg, var(--mud-palette-success) 0%, var(--mud-palette-success-darken) 100%);
    width: 100%;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.match-open {
    background: var(--mud-palette-info);
    background: linear-gradient(90deg, var(--mud-palette-info) 0%, var(--mud-palette-info-darken) 100%);
    width: 100%;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.mud-card-header {
    background-color: var(--mud-palette-appbar-background) !important;
}

.centered-header > .column-header {
    justify-content: center !important;
}

.result-unk {
    color: white !important;
    text-align: center;
    background-color: var(--mud-palette-info) !important;
}

.result-ok {
    color: white !important;
    text-align: center;
    background-color: var(--mud-palette-success) !important;
}

.result-nok {
    color: white !important;
    text-align: center;
    background-color: var(--mud-palette-error) !important;
}

.result-warn {
    color: white !important;
    text-align: center;
    background-color: var(--mud-palette-warning) !important;
}

.expansion-panel-header .mud-expand-panel-header {
    background-color: var(--mud-palette-appbar-background) !important;
}

.reward-footer {
    background-color: var(--mud-palette-appbar-background) !important;
}

.event-footer {
    background-color: var(--mud-palette-appbar-background) !important;
}

.result-bracket-cell {
    min-width: 240px;
    color: white !important;
    padding: 6px 16px;
    display: flex;
    align-items: center;
}

.result-match-cell {
    border: 2px solid white !important;
}

.result-match-right-cell {
    border-right: 2px solid white !important;
    border-bottom: none !important;
}


.calendar {
    background: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.02), transparent 10%), linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
}

.calendar-item-not-opened {
    cursor: pointer;
    min-height: 92px;
    background: linear-gradient(180deg, #f7f3ea 0%, #efe9d8 100%) !important;
}

.not-opened-day {
    background: linear-gradient(180deg, #f7f3ea 0%, #efe9d8 100%)
}

.not-opened-day-label {
    background: linear-gradient(180deg, #ffd54f, #f7c84a) !important;
    color: black !important;
}

.hit-dot {
    fill: yellow;
    stroke: black;
    stroke-width: 1;
    opacity: 1;
}

.dot-animate {
    animation: hitAnim 0.45s ease-out;
}

@keyframes hitAnim {
    0% {
        transform: scale(3);
        opacity: 0;
    }

    80% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* Extra small phones */
@media (max-width: var(--phone-xs)) {
    .dartboard-wrapper{
        width: var(--phone-xs);
    }
}

/* Small phones */
@media (min-width: calc(var(--phone-xs) + 1px)) and (max-width: var(--phone-sm)) {
    .dartboard-wrapper{
        display: block;
        width: var(--phone-xs);
    }
}

/* Medium phones */
@media (min-width: calc(var(--phone-sm) + 1px)) and (max-width: var(--phone-md)) {
    .dartboard-wrapper{
        width: var(--phone-sm);
    }
}

/* Large phones / Phablets */
@media (min-width: calc(var(--phone-md) + 1px)) and (max-width: var(--phone-lg)) {
    .dartboard-wrapper{
        width: var(--phone-md);
    }
}

/* Tablets */
@media (min-width: calc(var(--phone-lg) + 1px)) and (max-width: var(--tablet)) {
    .dartboard-wrapper{
        width: var(--phone-lg);
    }
}
