@font-face {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2') format('woff2');
    font-weight: normal; 
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif
}

body {
    overflow-x: hidden;
    color: #fff;
    min-height: 100vh; /* Đảm bảo body chiếm ít nhất toàn bộ chiều cao của viewport */
    display: flex; /* Biến body thành flex container */
    flex-direction: column; /* Sắp xếp các mục con theo chiều dọc */
}
.container {
    flex-grow: 1; /* Cho phép container giãn nở để chiếm không gian còn lại */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  
}

.logo {
    width: 150px;
}

.logo img {
    width: 100%;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center; /* Căn giữa các mục menu theo chiều dọc */
    flex-grow: 1; /* Cho phép menu giãn nở để chiếm không gian */
    justify-content: flex-end; /* Đẩy menu về phía bên phải */
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px; /* Giảm kích thước font chữ nếu vẫn bị xuống dòng (trước đó là 16px) */
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap; /* Đảm bảo văn bản không bao giờ xuống dòng */
}

.nav-menu a:hover {
    color: #f9d16b;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    text-align: center;
}

.main-logo {
    width: 500px;
    margin-bottom: 30px;
}

.main-logo img {
    width: 100%;
    filter: brightness(0) invert(1);
}

.game-title {
    font-size: 60px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.description {
    font-size: 18px;
    max-width: 700px;
    margin-bottom: 50px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.cta-button::before, .cta-button::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
}

.cta-button::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.cta-button::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}




.side-nav {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.side-nav a {
    margin: 10px 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    transition: all 0.3s ease;
}

.side-nav a:hover, .side-nav a.active {
    background: #f9d16b;
    transform: scale(1.2);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 20;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    transition: all 0.3s ease;
}

/* Responsive styles */
@media screen and (max-width: 1024px) {
    
    .side-nav {
        left: 15px;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
         width: 100%; /* Menu chiếm toàn bộ chiều rộng */
        flex-direction: column; /* Các mục menu xếp dọc */
        align-items: center; /* Căn giữa các mục menu */
        right: -100%; /* Ẩn menu mặc định */
        transition: all 0.5s ease; /* Hiệu ứng trượt */
        position: fixed; /* Giữ menu cố định khi mở */
        top: 0;
        height: 100vh; /* Chiếm toàn bộ chiều cao màn hình */
        background: rgba(0, 0, 0, 0.9); /* Nền đen trong suốt */
        justify-content: center;
        z-index: 15;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    
    
    .side-nav {
        display: none;
    }
    
    .content {
        padding: 60px 0;
    }
    
    .game-title {
        font-size: 40px;
    }
    
    .description {
        font-size: 16px;
        padding: 0 20px;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        width: 80px;
    }
    
    .main-logo {
        width: 150px;
    }
    
    .game-title {
        font-size: 32px;
    }
    
    .description {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .content {
        padding: 40px 0;
    }
}