body {
    margin: 0;
    overflow: hidden;
    background-color: #282c34;
    animation: backgroundChange 1s infinite;
}

@keyframes backgroundChange {
    0% { background-color: #ff0000; }
    20% { background-color: #00ff00; }
    40% { background-color: #0000ff; }
    60% { background-color: #ffff00; }
    80% { background-color: #ff00ff; }
    100% { background-color: #00ffff; }
}

.avatar {
    width: 80px;
    height: 80px;
    background-image: url('https://i.imgur.com/71OrQIy.jpeg');
    background-size: cover;
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    opacity: 0;
    transform: scale(0);
    transition: opacity 1.5s ease, transform 1.5s ease;
    animation: rotate 5s linear infinite;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.disappear {
    animation: pixelDisappear 1.2s forwards;
}

@keyframes pixelDisappear {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.1); }
}

#introPanel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2000;
    opacity: 1;
    transition: opacity 1s ease;
}

#enableSoundButton {
    padding: 15px;
    background-color: #4CAF50;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
    animation: pulse 1.5s infinite;
}

#enableSoundButton:hover {
    background-color: #3E8E41;
    transform: scale(1.05);
}

#enableSoundButton img {
    width: 40px;
    height: 40px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup {
    background: #fdfdfd;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    font-family: 'Arial', sans-serif;
    color: #333;
    transform: scale(0.8);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.popup.active {
    transform: scale(1);
}

.popup-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.popup p {
    margin: 15px 0;
    font-size: 18px;
    font-family: 'Georgia', serif;
    color: #555;
}

.popup button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    background-color: #d9534f;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
    transition: background-color 0.3s ease;
}

.popup button:hover {
    background-color: #c9302c;
}
