* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #222;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.game-container {
    position: relative;
    display: inline-block;
}

#gameCanvas {
    border: 2px solid #fff;
    background-color: #333;
    display: block;
}

.ui {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 10;
}

.health-bar {
    width: 200px;
    height: 20px;
    background-color: #555;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 2px solid #fff;
}

.health-fill {
    height: 100%;
    width: 100%;
    background-color: #e74c3c;
    transition: width 0.2s ease;
}

.ammo-info, .weapon-info, .round-info, .kills-info {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: 14px;
    display: inline-block;
    margin-right: 10px;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #fff;
    display: none;
    z-index: 100;
}

.game-over h2 {
    margin-bottom: 20px;
    color: #e74c3c;
}

.game-over p {
    margin-bottom: 10px;
    font-size: 18px;
}

.game-over button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.game-over button:hover {
    background-color: #2980b9;
}

.round-end {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #fff;
    display: none;
    z-index: 100;
    min-width: 500px;
}

.round-end h2 {
    margin-bottom: 20px;
    color: #3498db;
}

.round-end p {
    margin-bottom: 10px;
    font-size: 18px;
}

.weapon-choices {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.weapon-choice {
    background-color: rgba(52, 152, 219, 0.2);
    padding: 15px;
    border-radius: 5px;
    border: 2px solid #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.weapon-choice:hover {
    background-color: rgba(52, 152, 219, 0.4);
    transform: translateY(-5px);
}

.weapon-choice.selected {
    background-color: rgba(52, 152, 219, 0.6);
    border-color: #2980b9;
}

.weapon-choice h3 {
    margin-bottom: 10px;
    color: #3498db;
}

.weapon-choice p {
    font-size: 14px;
    margin-bottom: 5px;
    color: #ddd;
}

.round-end button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.round-end button:hover {
    background-color: #2980b9;
}