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

body {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    transition: background-image 1s ease-in-out;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    z-index: 1;
}

header {
    width: 100%;
    text-align: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    margin-bottom: 1rem;
    z-index: 2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ff9900;
}

.counters-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.counter-box {
    text-align: center;
    padding: 0.5rem;
}

.counter-label {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.counter-display {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 153, 0, 0.8);
    animation: pulse 1.5s infinite alternate;
}

.message {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.6;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 15px;
    z-index: 2;
    position: relative;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    width: 100%;
    position: relative;
}

.btn-click {
    background-color: #ffcc00;
    color: #333;
    border: none;
    width: 80vmin;
    height: 80vmin;
    font-size: 3rem;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.8), 
                inset 0 0 50px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: none;
}

.btn-click:hover {
    background-color: #ffdd33;
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 204, 0, 1),
                inset 0 0 60px rgba(255, 255, 255, 0.7);
}

.btn-click:active {
    transform: scale(0.95);
}

.btn-click.already-clicked {
    background-color: #ccaa00;
    animation: shake 0.5s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}

footer {
    width: 100%;
    text-align: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    margin-top: 1rem;
    z-index: 2;
}

@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

/* Collage background styles */
.background-collage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
}

.collage-item {
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .counter-label {
        font-size: 1rem;
    }
    
    .counter-display {
        font-size: 2.5rem;
    }
    
    .message {
        font-size: 1rem;
    }
    
    .btn-click {
        width: 70vmin;
        height: 70vmin;
        font-size: 2.5rem;
    }
}
