.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url('../images/error-icon.svg') no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            /* Use the Scavos brand color rather than the default blue */
            stroke: #C51C5D;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.full-height-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* Slightly darker background with a hint of the brand color */
    background-color: #f1ecee;
}

.full-height {
    height: 100%;
}

.game-carousel-item {
    flex: 0 0 auto;
    width: 150px;
    height: 200px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.game-card-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
    color: white;
    font-weight: bold;
    z-index: 2;
}


.game-carousel {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.app-bar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.hub-cover {
    position: relative;
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.hub-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
    color: white;
}

.game-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.game-image.placeholder {
    z-index: 0;
}
.game-image:not(.placeholder) {
    z-index: 1;
}

.hub-game-image {
    object-fit: contain;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.gallery-image.placeholder {
    z-index: 0;
    object-fit: cover;
}
.gallery-image:not(.placeholder) {
    z-index: 1;
    object-fit: contain;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.fade-in.loaded {
    opacity: 1;
}

.text-center input { text-align: center; }

/* Use primary color for checked checkboxes */
.mud-checkbox-input:checked + .mud-icon-root {
    color: var(--mud-palette-primary) !important;
}

/* Prevent tab bar from scrolling when selecting Play tabs */
.play-tabs .mud-tabs-tabbar-wrapper {
    transform: none !important;
}

.play-tabs .mud-tabs-scroll-button {
    display: none !important;
}

.play-layout {
    --mud-grid-spacing: 0;
}

.sidebar-sticky {
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

/* Gallery styles */
.gallery-grid {
    --mud-grid-spacing: 0;
}

.gallery-item {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0;
}

.store-badge {
    height: 40px;
}
