:root {
    --primary-color: #ff6b00;
    --secondary-color: #374057;
    --bg-color: #040b26;
    --card-bg: #374057;
    --text-color: #f3f3f3;
    --positive-color: #4caf50;
    --negative-color: #f44336;
    --meter-fill-texture: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCI+PHBhdGggZmlsbD0iI2ZmNmIwMCIgZD0iTTAgMGgxMHYxMEgweiIvPjxwYXRoIGZpbGw9IiNmZjljNGYiIGQ9Ik0wIDBoNXY1SDB6TTUgNWg1djVINXoiLz48L3N2Zz4=');
    --meter-fill-positive: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCI+PHBhdGggZmlsbD0iIzRjYWY1MCIgZD0iTTAgMGgxMHYxMEgweiIvPjxwYXRoIGZpbGw9InJnYmEoMCwwLDAsMC4xKSIgZD0iTTAgMGg1djVIMHpNNSA1aDV2NUg1eiIvPjwvc3ZnPg==');
    --meter-fill-negative: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCI+PHBhdGggZmlsbD0iI2Y0NDMzNiIgZD0iTTAgMGgxMHYxMEgweiIvPjxwYXRoIGZpbGw9InJnYmEoMCwwLDAsMC4xKSIgZD0iTTAgMGg1djVIMHpNNSA1aDV2NUg1eiIvPjwvc3ZnPg==');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 15px;
}

header {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 8px;
}

.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-container input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border-radius: 25px;
    border: 1px solid #2a3344;
    font-size: 14px;
    background-color: #374057;
    color: #f3f3f3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-container input::placeholder {
    color: #a0a8b8;
    opacity: 0.8;
}

.search-container i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a8b8;
    font-size: 16px;
}

.game-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--primary-color);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.game-title-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 4px;
}

.game-title-wrapper {
    display: flex;
    flex-direction: column;
}

.game-title {
    font-weight: bold;
    font-size: 17px;
    color: var(--text-color);
    margin-bottom: 4px;
}

.game-amount {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.game-percent {
    font-weight: bold;
    font-size: 20px;
}

.game-percent.positive {
    color: var(--positive-color);
}

.game-percent.negative {
    color: var(--negative-color);
}

.meter-container {
    margin-bottom: 15px;
}

.meter-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-color);
    opacity: 0.9;
}

.meter-label span:first-child {
    font-weight: 600;
}

.meter {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    width: 0%;
    background-image: var(--meter-fill-texture);
    background-size: 10px 10px;
    border-radius: 5px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.meter-fill.positive {
    background-image: var(--meter-fill-positive);
}

.meter-fill.negative {
    background-image: var(--meter-fill-negative);
}

.meter-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.time-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.time-stat {
    text-align: center;
    padding: 10px 5px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.time-label {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
    font-size: 12px;
}

.time-value {
    font-weight: bold;
    font-size: 14px;
}

.positive {
    color: var(--positive-color);
}

.negative {
    color: var(--negative-color);
}

.manufacturers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.manufacturer {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background-color: #374057;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s;
}

.manufacturer:hover {
    transform: scale(1.05);
}

.manufacturer img {
    max-width: 80%;
    max-height: 80%;
}

.active-manufacturer {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.3);
}

.no-results {
    text-align: center;
    padding: 30px;
    color: #a0a8b8;
    font-size: 16px;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .game-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    header {
        height: 90vh;
        min-height: 600px;
        max-height: 800px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .banner-image {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    header h1 {
        font-size: 3.5rem;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: var(--van-padding-xl);
        z-index: 2;
        color: var(--van-white);
    }

    header .subtitle {
        font-size: 1.8rem;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        z-index: 2;
        color: var(--van-orange-light);
    }

    header::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1;
    }

    .game-list {
        grid-template-columns: repeat(3, 1fr);
    }

    header {
        height: 300px;
        margin-bottom: 30px;
    }

    .banner-image {
        height: 100%;
        object-fit: cover;
    }
}

/* Banner text fallback styles */
.has-banner header h1,
.has-banner header .subtitle {
    display: none;
}

.no-banner header h1,
.no-banner header .subtitle {
    display: block;
    color: var(--text-color);
    padding: 20px;
}

.no-banner header h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.no-banner header .subtitle {
    font-size: 16px;
    color: var(--text-color);
    opacity: 0.8;
}

.play-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 15px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
}

.play-button:hover {
    background-color: #0069d9;
}

h1 {
    font-size: 30px;
    font-weight: bold;
    color: white;
    padding-left: 15px;
}

h2 {
    font-size: 26px;
    font-weight: bold;
    color: white;
    padding-left: 15px;
}

h3 {
    font-weight: bold;
    color: white;
    margin: 0px;
    padding: 0px;
}

p {
    font-size: 18px;
    line-height: 1;
    color: white;
    padding: 15px;
}

ul {
    list-style-type: disc;
    padding-left: 15px;
    margin: 15px;
    padding: 15px;
}

li {
    font-size: 18px;
    line-height: 1;
    color: white;
    margin: 15px;
    padding: 15px;
}

    .name {
    max-width: 150px; 
    white-space: nowrap; 
    overflow: hidden !important; 
    text-overflow: ellipsis; 
}

footer {
  margin-top: 20px;
  background-color: black;
  text-align: center;
  display: float;
}
footer .social{
  margin-top: 25px;
  margin-bottom: 25px;
  margin-right: 15px;
  display: inline-block;
  width: 32px;
}
footer .resp{
  margin-bottom: 25px;
  margin-right: 15px;
  display: inline-block;
  width: 200px;
}
footer .copyright{
  font-size: 14px;
  color: grey;
  padding-bottom: 10px;
}
footer p{
  font-size: 18px;
  color: grey;
  padding-bottom: 10px;
}

/* check file index2 to update file code follow this code  app.js , style.css and index.html */