﻿img {
    user-select: none;
    -webkit-user-drag: none;
}

/* Loading Progress Indicator Styles */
.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100dvh;
    box-sizing: border-box;
}

.loading-progress {
    position: relative;
    width: 6rem;
    height: 6rem;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.14159 * 2 * 40%);
            stroke-dashoffset: calc(3.14159 * 2 * 40% * 0.5);
            animation: loading-spinner 1.5s ease-in-out infinite;
        }

.loading-progress-text {
    margin-top: 1rem;
    font-family: sans-serif;
    font-weight: bold;
    color: #333;
}

@keyframes loading-spinner {
    0% {
        stroke-dashoffset: calc(3.14159 * 2 * 40% * 0.9);
        transform: rotate(0deg);
    }

    50% {
        stroke-dashoffset: calc(3.14159 * 2 * 40% * 0.2);
        transform: rotate(180deg);
    }

    100% {
        stroke-dashoffset: calc(3.14159 * 2 * 40% * 0.9);
        transform: rotate(360deg);
    }
}

.wm-input input,
.wm-input label,
.wm-input.mud-select + .mud-popover .mud-list {
    color: var(--mud-palette-text-primary) !important;
}

.wm-input .mud-input.mud-input-underline:before {
    border-color: var(--mud-palette-text-primary);
    opacity: 0.6;
}

.wm-input .mud-input.mud-input-underline:hover:not(.mud-disabled):before {
    border-color: var(--mud-palette-text-primary);
    opacity: 1;
}

header .mud-toolbar {
    height: var(--mud-appbar-min-height) !important;
}

.mud-dialog .mud-dialog-title .mud-tooltip-root .mud-button-root {
    position: relative;
    top: inherit;
    right: initial;
}

.mud-chip-content {
    font-weight: 500;
}

#search_fab {
    position: fixed;
    bottom: 18px;
    right: 10px;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
}

.wm-mud-card-media-box {
    height: auto !important;
    position: relative;
    width: 100%;
    display: block;
    background-size: contain !important;
}

    .wm-mud-card-media-box:after {
        content: "";
        display: block;
        padding-top: 60%;
    }

.wm-mud-card-media-content {
    display: block;
    height: 20px;
}

@media (max-width: 960px) {
    .wm-game-card h6 {
        font-size: 1.1rem;
    }

        .wm-game-card h6.mud-typography-subtitle1 {
            font-size: 0.9rem;
        }

    .wm-game-card .mud-card-content {
        padding: 4px;
        min-height: 100px !important;
    }

    .mud-chip-size-large {
        height: 32px !important;
        font-size: 14px !important;
        border-radius: 16px !important;
    }
}

img.wm-card-media {
    object-fit: cover;
    object-position: center;
    position: absolute;
    inset: 0;
    width: 100%;
}