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

body {
    background-color: #f0f0f0;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background-color: #0075c9;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

#rivalries-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.rivalry-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.rivalry-card:hover {
    transform: translateY(-5px);
}

.rivalry-title {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    font-weight: bold;
}

.teams-container {
    display: flex;
    position: relative;
}

.team {
    width: 50%;
    padding: 15px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.team-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.team-logo:hover {
    transform: scale(1.1);
}

.team-name {
    font-weight: bold;
    margin-bottom: 10px;
}

.vote-btn {
    background-color: #ff4500;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.vote-btn:hover {
    background-color: #e03d00;
}

.vote-btn.voted {
    background-color: #4CAF50;
    transform: scale(1.1);
}

.vote-bar-container {
    height: 10px;
    background-color: #ddd;
    margin: 15px 0;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.vote-percentage {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%; 
    transition: width 0.5s ease;
    display: flex;
}

.team-percentage {
    text-align: center;
    font-size: 14px;
    margin-top: 5px;
    font-weight: bold;
}

.color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.25;
    transition: background 0.5s ease;
}

.loading {
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
    color: #666;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #666;
}

/* Modern Notification Styles - V14 */
.notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #333;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: top 0.5s ease-in-out;
    text-align: center;
    width: auto;
    max-width: 90%;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.notification.show {
    top: 20px;
}

.notification.error {
    border-left: 5px solid #ff4500;
}

.notification.success {
    border-left: 5px solid #4CAF50;
}

.notification-icon {
    margin-right: 12px;
    font-size: 24px;
}

.notification-close {
    margin-left: 15px;
    cursor: pointer;
    font-size: 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    #rivalries-container {
        grid-template-columns: 1fr;
    }
}