body {
    font-family: "Courier New", Courier, monospace;
    text-align: center;
    background-color: #d9f7be;
    overflow: hidden;
}

#battle-transition {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: black;
    top: 0;
    left: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
}

/* Flashing Circle Animation */
.circle {
    width: 50px;
    height: 50px;
    border: 5px solid white;
    border-radius: 50%;
    position: absolute;
    animation: spin 1s ease-out forwards;
    transform: scale(0);
}

.circle:nth-child(1) { animation-delay: 0s; }
.circle:nth-child(2) { animation-delay: 0.2s; }
.circle:nth-child(3) { animation-delay: 0.4s; }

@keyframes spin {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

/* Slide-in Animation for Characters */
@keyframes slideInLeft {
    from { transform: translateX(-300px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(300px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slide-in-left {
    animation: slideInLeft 1s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 1s ease-out forwards;
}

#game {
    max-width: 500px;
    margin: 50px auto;
    padding: 10px;
    background-color: white;
    border: 4px solid black;
    border-radius: 5px;
    display: none;
}

.enemy-sprite, .player-sprite {
    width: 100px;
    opacity: 1;
    animation: float 1s infinite alternate;
}

@keyframes float {
    from { transform: translateY(0px); }
    to { transform: translateY(-5px); }
}

.bar {
    width: 100%;
    height: 10px;
    background-color: lightgray;
    border: 1px solid black;
}

#interest-bar {
    height: 100%;
    width: 0%;
    background-color: green;
    transition: width 0.5s ease-in-out;
}

button {
    margin: 5px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}

#response-box {
    display: none;
    background-color: white;
    border: 2px solid black;
    padding: 10px;
    margin-top: 10px;
}
