*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: #1a1a2e;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#gameCanvas{
    border: 2px solid #fff;
}

#hud{
    display: flex;
    width: 1024px;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.health-bar-bg{
    flex: 1;
    height: 20px;
    background-color: #333;
    border-radius: 4px;
    display: flex;
    overflow: hidden;
}

.health-bar-fill{
    height: 100%;
    border-radius: 4px;
    transition: width 0.2s ease-in-out;
}

#enemyHealth{
    justify-content: flex-end;
}

#playerHealth >div{
    background-color: #4caf50;
    width: 100%;
}

#enemyHealth >div{
    background-color: #f44336;
    width: 100%;
}

.fighter-name{
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 18px;
    margin-bottom: 5px;
}

#timer{
    color: #fff;
    font-family:monospace;
    font-size: 30px;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

#text{
    color: #fff;
    font-size: 56px;
    font-weight: bold;
    font-family: sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    display: none;
}

#playMode{
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    pointer-events: all;
}

#playMode h2{
    color: #fff;
    font-family: sans-serif;
    font-size: 28px;
    margin-bottom: 8px;
}

.modeBtn{
    padding: 14px 48px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    color: #fff;
    background-color: #15b545;
    letter-spacing: 1px;
}

.modeBtn:hover{
    background-color: #238641;
}

.modeRow{
    display: flex;
    gap: 16px;
}

#controlsInfo {
    position: absolute;
    width: 1024px;
    height: 576px;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 40px 60px;
    border-radius: 12px;
    pointer-events: auto;
    font-family: sans-serif;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    justify-content: center;
}

#overlay{
    position: absolute;
    width: 1024px;
    height: 576px;
    top: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#controlsInfo h2 {
    font-size: 32px;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.controls-container {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.player-controls {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 8px;
    min-width: 220px;
}

.player-controls h3 {
    margin-bottom: 16px;
    color: #15b545;
    text-align: center;
    font-size: 22px;
}

.player-controls p {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.5;
}