* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/picture/backgruod.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    
    color: #fff;
    line-height: 1.6;
}

header {
    background-color: #000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff4757;
}

header h1 span {
    color: #ff4757;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #ff4757;
}

main {
    padding: 2rem 5%;
}

.filter-section {
    margin-bottom: 2rem;
}

.categories {
    margin-top: 1rem;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-filter {
    padding: 8px 20px;
    border: none;
    background-color: #333;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-filter:hover, .btn-filter.active {
    background-color: #ff4757;
}

/* Grid hiển thị Game */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.game-card {
    background-color: #2f3542;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-img {
    width: 100%;
    height: 150px;
}

.game-info {
    padding: 15px;
}

.game-info h3 {
    margin-bottom: 10px;
}

.game-info p {
    font-size: 0.9rem;
    color: #a4b0be;
    margin-bottom: 15px;
}

.btn-download {
    display: block;
    text-align: center;
    background-color: #ff4757;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: #000;
    margin-top: 2rem;
}
/* Đưa chữ "Thể Loại" và "Thanh tìm kiếm" lên cùng một hàng */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.search-box {
    display: flex;
    gap: 5px;
}

.search-box input {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #444;
    background-color: #222;
    color: white;
    outline: none;
    width: 300px; /* Độ dài thanh tìm kiếm */
}

.search-box input:focus {
    border-color: #ff4757; /* Đổi màu viền khi nhấn vào */
}

.search-box button {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    background-color: #ff4757;
    color: white;
    cursor: pointer;
    font-weight: bold;
}
.hero-banner {
    width: 100%;
    padding: 40px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-container {
    width: 100%;
    max-width: 1000px;
    height: 450px;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.9)), url('/picture/z7815503281284_90e1523e103136214e1baed113728126.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px; /* Bo góc như ảnh mẫu */
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); /* Đổ bóng xung quanh banner */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Đẩy chữ xuống phía dưới */
    padding-bottom: 40px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.game-logo {
    width: 180px;
    margin: 0 auto 10px;
}

.banner-title {
    font-size: 2rem;
    color: #fff;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 5px;
}

.banner-date {
    font-size: 5rem;
    font-weight: 900;
    color: #ff4757; /* Màu đỏ nổi bật */
    line-height: 1;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.banner-desc {
    max-width: 600px;
    margin: 0 auto 20px;
    font-size: 0.9rem;
    color: #ddd;
    padding: 0 20px;
}

.btn-more {
    display: inline-block;
    background-color: #fff;
    color: #ff4757;
    padding: 10px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-more:hover {
    background-color: #ff4757;
    color: #fff;
    transform: scale(1.05);
}
.game-img{
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.game-img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* ===== SLIDER GAME ===== */

.slider-container{
    width:100%;
    text-align:center;
    padding:30px 0;
}

.main-banner{
    width:90%;
    height:500px;
    margin:auto;
    border-radius:20px;
    overflow:hidden;
    border:5px solid #444;
    box-shadow:0 0 20px rgba(0,0,0,0.5);
}

.main-banner img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.4s;
}

.game-list{
    margin-top:20px;
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
}

.game-item{
    width:90px;
    height:90px;
    border-radius:15px;
    overflow:hidden;
    cursor:pointer;
    transition:0.3s;
    border:3px solid transparent;
}

.game-item img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.game-item:hover{
    transform:scale(1.08);
}

.game-item.active{
    border:3px solid orange;
    transform:scale(1.1);
}
