* {
    margin: 0;
    padding: 0;
}

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

/* HUD */
#hud {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 22px;
    margin-top: 10px;
    color: white;
}

.handjet-title{
    color: white;
    text-align: center;
}

/* Play area */
#playSpace {
    width: 90vw;
    height: 80vh;
    margin: 20px auto;
    position: relative;
    background-image: url("images/bg.jpg");
    background-size: cover;
    border: 3px solid white;
}

/* Hero */
#hero {
    width: 70px;
    height: 70px;
    background-image: url("images/hero.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
}

/* Enemies, Obstacles, Bonus */
.enemy, .obstacle, .bonus, .exit {
    position: absolute;
    background-size:contain;
    background-repeat: no-repeat;
}

/* Default sizes */
.enemy, .obstacle, .bonus {
    width: 40px;
    height: 40px;
}

.exit {
    width: 80px;
    height: 40px;
    background-color: gold;
    color: black;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 300px;
}

.popup-box button {
    margin-top: 20px;
    padding: 10px 20px;
    background: #303030;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.instructions-button {
    margin: 1rem auto;
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 1.1rem;
    background: #333;
    color: #fff;
    border: 2px solid #555;
    border-radius: 8px;
    cursor: pointer;
}

.instructions-button:hover {
    background: #444;
}

/* Uses same popup style as your existing popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-box {
    background: #222;
    padding: 2rem;
    border-radius: 12px;
    color: #fff;
    text-align: center;
    width: 300px;
    
}

.hidden {
    display: none;
}

/* Instructions popup improvements */

#instructionsOverlay .popup-box {
    width: 420px;
    max-width: 90%;
    background: #1a1a1a;
    border: 3px solid #4caf50;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

#instructionsOverlay h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #7cff7c;
}

#instructionsOverlay ul {
    text-align: left;
    margin-top: 10px;
    margin-bottom: 20px;
    padding-left: 20px;
    line-height: 1.6;
}

#instructionsOverlay li {
    margin-bottom: 6px;
}

/* Instructions panda image */
.instructiions-img {
    margin: 15px 0;
}

.instructiions-img img {
    width: 90px;
    height: auto;
    display: block;
    margin: auto;
}

/* Close instructions button */
#closeInstructionsBtn {
    background: #4caf50;
    font-weight: bold;
    border-radius: 8px;
    padding: 10px 22px;
}

#closeInstructionsBtn:hover {
    background: #66d166;
}