/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: flex-end;  /* This pushes the hamburger to the right */
    align-items: center;
    background-color: transparent; /* This makes the bar invisible */
    padding: 1rem 1.5rem;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

/* === THIS IS THE KEY CHANGE === */
/* The menu is now always in its "mobile" state: hidden off-screen */
.nav-menu {
   position: fixed;
    left: -100%; 
    top: 70px;
    flex-direction: column;
    background-color: hsla(0, 0%, 0%, 0.5); /*#333 */
    width: 100%;
    text-align: center;
    transition: 0.3s;
    list-style: none;
    z-index: 1001; /* Add this - ensures it's on top of everything */
}

/* This rule slides the menu IN when 'active' */
.nav-menu.active {
    left: 0;
}

/* Menu items now always use vertical spacing */
.nav-item {
    margin: 1.5rem 0;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #00bcd4;
}

/* === THIS IS THE OTHER KEY CHANGE === */
/* The hamburger is now ALWAYS visible */
.hamburger {
    display: block; 
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

/* Hamburger 'X' animation */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* === MEDIA QUERY IS NOW GONE === */
/* We no longer need the @media(...) block */


/* Styles for the game iframe container */
.game-container {
   position: fixed; /* Fix it to the viewport */
    top: 0;
    left: 0;
    width: 100vw;  /* 100% viewport width */
    height: 100vh; /* 100% viewport height */
    z-index: 1;    /* Sit BEHIND the navbar */
}

/* This styles the iframe itself */
#game-frame {
    width: 100%;
    height: 100%;
    border: none;
}