body {
    margin: 0;
    padding: 0;
    background-color: #111;
    font-family: 'Poppins', sans-serif;
    color: #f0f0f0;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    background: #e50914;
    padding: 15px 30px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.navbar {
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 15px;
}

.navbar a,
.navbar .dropdown-toggle {
    padding: 10px 18px;
    background-color: #2a2a2a;
    color: #eee;
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    height: 42px;
}


.navbar a:hover,
.dropdown .dropdown-toggle:hover {
    background-color: #e50914;
    color: #fff;
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100%);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background-color: #1a1a1a;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    padding: 6px 0;
    z-index: 10;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    color: #eee;
    text-align: left;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background-color: #e50914;
    color: #fff;
}

.main-content {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
}

.games-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.game-card {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(229, 9, 20, 0.4);
}

.game-card img {
    width: 100%;
    display: block;
}

.card-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}

.label {
    background-color: #e50914;
    color: white;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: bold;
    border-left: 4px solid white;
    border-radius: 3px;
    text-transform: uppercase;
}

.label.blue {
    background-color: #1E90FF;
}

.card-body {
    padding: 15px;
}

.card-body h3 {
    color: #e50914;
    font-size: 18px;
    margin-bottom: 10px;
}

.card-body .categories {
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.card-body time {
    font-size: 12px;
    color: #aaa;
}

.card-body .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #e50914;
    color: white;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}

.card-body .btn:hover {
    background: #b00610;
}

.game-detail {
    max-width: 800px;
    margin: 40px auto;
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.3);
    color: #eee;
}

.game-cover {
    position: relative;
    margin-bottom: 25px;
}

.game-cover img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.game-cover .label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: #e50914;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.game-info {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.game-info li {
    margin: 6px 0;
    color: #ccc;
}

.game-description {
    margin-top: 20px;
    font-size: 15px;
    color: #bbb;
}
