/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f6f9fc 0%, #edf1f7 100%);
}

/* Container for the entire game */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Header area */
.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

.timer, .score, .rounds, .high-score {
    font-size: 1.1rem;
    color: #444;
}

#highScore {
    color: #e91e63;
    font-weight: bold;
}

#round {
    color: #2196f3;
    font-weight: bold;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.start-button,
.sound-button {
    background: #e91e63;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.start-button:hover,
.sound-button:hover {
    background: #d81b60;
}

/* Bubble wrap container */
.bubble-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    grid-gap: 6px;
    padding: 10px;
}

/* Bubble style */
.bubble {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #c7c7c7);
    box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.1),
                2px 2px 4px rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.1s ease;
    position: relative;
}

/* Random color tints */
.bubble[data-variant="1"] {
    background: radial-gradient(circle, #fff, #ffd6d6);
}
.bubble[data-variant="2"] {
    background: radial-gradient(circle, #fff, #d6fff4);
}
.bubble[data-variant="3"] {
    background: radial-gradient(circle, #fff, #d6f0ff);
}
.bubble[data-variant="4"] {
    background: radial-gradient(circle, #fff, #f9ffd6);
}

/* Pop animation and style */
.bubble.pop {
    background: radial-gradient(circle at 70% 70%, #c7c7c7, #ffffff);
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.1),
                -2px -2px 4px rgba(255, 255, 255, 0.8);
    transform: scale(0.95);
}

/* Remove the old pop animation */
@keyframes popAnimation {
    to {
        transform: scale(0.95);
    }
}

/* Bootstrap Customizations */
.modal-content {
    border-radius: 16px;
}

.modal-header {
    padding: 1.5rem 1.5rem 0.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.toast {
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
}

.toast-container {
    z-index: 1070;
}

/* Make sure modal backdrop is below confetti */
.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}

/* Canvas confetti is created with z-index 99999 by default, so it will appear above the modal */
  