/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 0 0 70px;
}

h1 {
    font-size: 3em;
    margin-top: 20px;
}

#game-container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

.hidden {
    display: none !important;
}

/* Intro Styles */
#intro-container {
    margin: 20px 0;
}

#player-name {
    box-sizing: border-box;
    padding: 10px;
    font-size: 1.2em;
    width: min(60%, 420px);
    margin-right: 10px;
}

#start-game {
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
}

/* Box Styles */
.box {
    box-sizing: border-box;
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: left;
}

#statement-box {
    text-align: center;
}

/* Status Banner */
#status-banner {
    display: flex;
    justify-content: center;
    padding: 10px;
    background-color: #eee;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Battle and Enemies */
#battle-container {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 24px;
}

#box1, #box2 {
    width: 50%;
    height: 400px;
    margin: 0;
}

#battle-log {
    height: 330px;
    overflow-y: auto;
    padding-right: 10px;
}

h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Enemies List */
#enemies-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#enemies-list [aria-current="true"] {
    font-weight: 700;
}

/* Action Buttons */
#action-buttons {
    margin-top: 20px;
}

.action-button {
    padding: 10px 20px;
    font-size: 1em;
    margin: 5px;
    cursor: pointer;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.action-button:hover,
.action-button:focus-visible {
    background-color: #0056b3;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    font-size: small;
    color: #666;
    padding: 10px;
    background: rgba(245, 245, 245, 0.95);
}

/* End Game Styles */
.end-game {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: clamp(2rem, 8vw, 5rem);
}

.end-game button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 1.5rem;
    background-color: yellow;
    cursor: pointer;
    border: 2px solid currentColor;
    border-radius: 6px;
}

@media (max-width: 650px) {
    h1 {
        font-size: 2.25em;
    }

    #game-container {
        padding: 12px;
    }

    #intro-container {
        display: grid;
        gap: 10px;
    }

    #player-name {
        width: 100%;
        margin-right: 0;
    }

    #battle-container {
        flex-direction: column;
    }

    #box1, #box2 {
        width: 100%;
        height: 300px;
    }

    #battle-log {
        height: 230px;
    }

    .action-button {
        min-width: 44%;
    }
}