body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
    background-color: #000000;
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

#topbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

#topbar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
}

#topbar nav ul li {
    margin-right: 20px;
}

#topbar nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

#topbar nav ul li a:hover {
    text-decoration: underline;
}

main {
    position: relative;
    z-index: 1;
}

#hero {
    position: relative;
    height: 30vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#main-title {
    color: white;
    font-size: 4em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeIn 2s ease-in;
    z-index: 2;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#description {
    padding: 100px 20px;
    background: linear-gradient(to top, rgb(20,20,20) 0%, rgb(0,0,0) 20%, rgb(0,0,0) 80%, transparent 100%);
    color: rgb(255, 255, 255);
    text-align: center;
}

#description h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

#description p {
    font-size: 1.2em;
    line-height: 1.6;
}

#games {
    padding: 50px 20px;
    background: rgb(20, 20, 20);
    color: white;
    text-align: center;
}

#games h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.games-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.game-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: white;
}

.game-card p {
    font-size: 1em;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 20px;
}

.play-button {
    display: inline-block;
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    text-decoration: none;
}

.play-button:hover:not(:disabled) {
    background: #0056b3;
}

.play-button:active {
    transform: scale(0.95);
}

.play-button:disabled {
    background: #666;
    cursor: not-allowed;
}

.play-button.disabled {
    background: #666;
}

.play-button.disabled:hover {
    background: #555;
}

.popup {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup.show {
    opacity: 1;
}

.popup-content {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.popup.show .popup-content {
    transform: translateY(0);
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
}

#close-popup {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

#close-popup:hover {
    background: #0056b3;
}