.match-notification {
    position: fixed;
    bottom: 20px;
    right: -400px;
    width: 350px;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: slideIn 0.5s forwards;
}

/* Different styles for each event type */
.match-notification.goal {
    background: linear-gradient(135deg, #ff4e50, #f9d423);
}

.match-notification.yellow {
    background: linear-gradient(135deg, #ffd700, #ffa500);
}

.match-notification.red {
    background: linear-gradient(135deg, #ff0000, #8b0000);
}

.match-notification.show {
    transform: translateX(-420px);
}

.match-notification.hide {
    animation: slideOut 0.5s forwards;
}

.match-notification .header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.match-notification .event-icon {
    font-size: 24px;
    margin-right: 10px;
    animation: bounce 0.6s ease infinite;
}

.match-notification h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
}

.match-notification .content {
    margin-bottom: 10px;
}

.match-notification .match-info {
    font-size: 0.9em;
    opacity: 0.9;
}

.match-notification .score {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

@keyframes slideIn {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-420px);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(-420px);
    }
    to {
        transform: translateX(420px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.event-animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-animation-overlay.show {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s forwards;
}

.event-animation {
    text-align: center;
    color: white;
    transform: scale(0);
    animation: scaleIn 0.5s forwards;
}

.event-text {
    font-size: 5em;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    animation: eventTextAnimation 1s ease-out;
}

.event-text.goal {
    color: #f9d423;
    text-shadow: 0 0 20px rgba(249, 212, 35, 0.5);
}

.event-text.yellow {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.event-text.red {
    color: #ff0000;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes eventTextAnimation {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(5deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

