/* variables */
:root {
    --button-bg-color: #10b2d4; /* original button background color */
}

/* general styles */
body,
html {
    background: url('./i/b.png');
    background-repeat: repeat;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
}

.container {
    min-height: 100vh;
}

/* button styles */
.btn-custom {
    background: none !important;
    color: #ffffff !important;
    border: 2px solid var(--button-bg-color) !important;
    padding: 10px 20px;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.5s, border-color 0.5s !important;
}

.btn-custom:hover {
    filter: brightness(85%) !important;
}

.btn-custom:active {
    filter: brightness(75%) !important;
}

/* loader styles */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* match card styles */
.match-card {
    margin: 0 auto;
    max-width: 600px;
    width: 100%;
}

@media (min-width: 768px) {
    .match-card {
        padding: 0 1rem;
        transform: scale(1.1); /* scale up the match card by 10% */
    }
}

.match-card.live {
    margin: 0 auto;
    max-width: 600px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.match-card.live:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.match-card.live:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.match-card.live:hover:before {
    opacity: 1;
}

/* match styles */
.match {
    border-left-width: 3px;
    background: #222222dc;
    position: relative;
    padding: 1em;
    border-radius: 5px;
    overflow: hidden;
    color: #fff;
}

.match.men {
    border-left: solid #5fa2c1 !important;
}

.match.women {
    border-left: solid #cb8e8e !important;
}

.match .info {
    position: absolute;
    font-size: 0.75em;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 5px;
    border-radius: 3px;
    color: #ddd;
}

.match .info-top-left {
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
}

.match .info-bottom-right {
    bottom: 0;
    right: 0;
}

.match .flag {
    display: flex;
    align-items: center;
    color: #ddd;
}

.match .flag-icon {
    margin-right: 5px;
}

.match-name {
    color: #dddddd;
}

/* flag icon styles */
.flag-icon {
    width: 20px;
    height: 15px;
    margin-right: 5px;
    background-size: contain;
    background-repeat: no-repeat;
}

/* specific flag styles */
.fallback-flag {
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/a/af/Question_mark.png/475px-Question_mark.png?20051022211136") !important;
}

.fi-cup {
    background-image: url('i/cup.svg') !important;
}

.fi-sc {
    background-image: url('i/sc.svg') !important;
}

.fi-en {
    background-image: url('i/en.svg') !important;
}

.fi-friend {
    background-image: url('i/friendly.svg');
}

/* overlay and loading styles */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#loadingBall {
    width: 100px;
    height: 100px;
    background-image: url('i/friendly.svg');
    background-size: cover;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* animation styles */
.updated-match {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* hidden elements */
#updateButton,
#toggleMatches,
#loader,
#loadingText {
    display: none;
}

#loadingText {
    text-align: center;
}

/* info link styles */
.info-link-container {
    display: flex;
    justify-content: center;
    align-items: center; 
    width: 100%;
    margin-bottom: 1rem;
}

#showInfoLink {
    display: block;
    text-align: center;
}
