/* wa.css */

body, html {
    margin: 0; padding: 0;
    height: 100%;
    background-color: black;
    background-image: url('pattern.png');
    background-repeat: repeat;
    background-position: 0 0;
    background-size: auto;
    color: #eee;
    user-select: none;
    overflow-x: hidden;
    animation: bgScroll 30s linear infinite;
    text-shadow: 1px 1px 0 #000; /* subtle shadow for readability */
}

/* Animate background horizontal scroll */
@keyframes bgScroll {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 1000px 0; /* scroll right */
    }
}

/* Container */
#game {
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Mission list container */
#mission-list {
    max-width: 640px;
    margin: 0 auto;
    border: 4px solid #999900;
    background: #222200;
    padding: 15px;
    box-sizing: border-box;
}

.mission {
    background-color: #ffff00;
    color: #333300;
    padding: 8px 12px;
    margin-bottom: 12px;
    border: 3px outset #999900;
    cursor: pointer;
    font-weight: normal;
    font-size: 16px;
    box-sizing: border-box;
    user-select: none;
    text-decoration: none;
}

.mission div:first-child {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 4px;
    text-decoration: underline;
}

.mission div:nth-child(2) {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 2px;
}

.mission div:nth-child(3) {
    font-style: italic;
    font-size: 14px;
    color: #999900;
    margin-bottom: 0;
}

.mission:hover {
    background-color: #fff;
    color: #222200;
    border-style: inset;
}


/* Ready button styling */
#readyBtn {
    display: block;
    background-color: #ffff00;
    color: #333300;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 20px;
    border: 3px outset #999900;
    cursor: pointer;
    margin-top: 10px;
    user-select: none;
    transition: background-color 0.1s ease;
    width: fit-content;
}

#readyBtn:hover {
    background-color: #fff;
    color: #222200;
    border-style: inset;
}

/* Wario container */
#wario-container {
    position: absolute;
    bottom: -300px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: bottom 0.5s ease;
}

/* Wario image */
#wario {
    width: 200px;
    image-rendering: pixelated; /* crisp pixels */
}

/* Speech bubble style */
#speech {
    background: #ffffcc;
    color: #222200;
    padding: 12px 20px;
    margin-bottom: 15px;
    border: 3px solid #999900;
    font-family: 'comic sans', monospace;
    font-size: 16px;
    display: none;
    max-width: 320px;
    text-align: center;
    white-space: pre-wrap;
    box-shadow:
      3px 3px 0 #666600;
}

/* Wobble animations */
@keyframes wobbleIdle {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes wobbleTalk {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

.idle img {
    animation: wobbleIdle 1.3s infinite;
}

.talking img {
    animation: wobbleTalk 0.45s infinite;
}
