* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #121212;
    color: #fff;
    min-height: 100vh;
    overflow: hidden;
}

#mother-div {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    background: #222;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

#small-container {
    position: absolute;
    display: flex;
    width: 100%;
    align-items: center;
    padding: 10px 20px;
    gap: 20px;
    background: #333;
}

.healthDiv {
    position: relative;
    height: 20px;
    width: 100%;
    background-color: #555;
    border-radius: 10px;
    overflow: hidden;
}

.backgroundHealth {
    height: 100%;
    width: 100%;
}

#player-health {
    position: absolute;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    top: 0;
    bottom: 0;
    right: 0;
    transition: width 0.2s;
}

#enemy-health {
    position: absolute;
    background: linear-gradient(90deg, #ff5722, #ff9800);
    top: 0;
    bottom: 0;
    left: 0;
    transition: width 0.2s;
}

#timer {
    background: #444;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffeb3b;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.6);
}

#winner-display {
    position: absolute;
    color: white;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    display: none;
}

#winner-message {
    margin-bottom: 20px;
}

#play-again {
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #4caf50;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

#play-again:hover {
    background-color: #388e3c;
}

#start-screen {
    position: absolute;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
}

#start-screen h2 {
    margin-bottom: 20px;
}

#start-screen p {
    margin: 5px 0;
}

#start-game {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #4caf50;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

#start-game:hover {
    background-color: #388e3c;
}
#playPauseButton {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    background-color: transparent;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

#playPauseButton:hover {
    background-color: #0056b3;
}
