/* styles.css */
@import url("styles-modal.css?v=1.0.1");
@import url("styles-search.css?v=1.0.1");

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

/* Top bar styling */
.top-bar {
    background-color: #313282 !important;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar img {
    height: 40px;
    margin-right: 10px;
}

.top-bar h1 {
    font-size: 20px;
    margin: 0;
}

/* Main content styling with background image */
.content {
    padding: 20px;
    background-color: #fff;
    min-height: 100vh;
    background-image: url('your-background-image.png'); /* Replace with your image path */
    background-repeat: repeat;
    background-attachment: fixed;
    background-size: contain;
}

.provider {
    padding: 10px 0;
}

/* Provider header with sticky positioning */
.provider-header {
    display: flex;
    align-items: center;
    padding: 5px 0;
    position: sticky;
    top: 60px; /* Adjust depending on the height of the top bar */
    z-index: 500;
    background-color: #fff; /* Background color to ensure readability */
}

.provider-header img {
    width: 40px; /* Fixed width for provider logos */
    height: 40px; /* Fixed height for provider logos */
    margin-right: 10px;
    object-fit: contain;
}

.provider-header h2 {
    margin: 0;
    font-size: 18px;
}

/* Divider styling */
.provider-divider {
    height: 1px;
    background-color: #ccc;
    margin: 15px 0;
}

/* Game list styling */
.game-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.game-item {
    text-align: center;
    width: 100px;
}

.game-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.game-item p {
    margin: 8px 0 0;
    font-size: 14px;
    color: #333;
}

/* Gray overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 128, 0.7); /* Gray background with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Spinner styling */
.spinner {
    width: 50px;
    height: 50px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Show overlay */
.loading-overlay.show {
    visibility: visible;
    opacity: 1;
}
