body {
    margin: 0;
    font-family: Arial;
    background: #0f172a;
    color: #fff;
}

.container {
    width: 90%;
    margin: auto;
    padding: 20px;
}

.header {
    text-align: center;
    padding: 20px;
}

.headerKey {
    text-align: center;
    padding: 0,0,0,20px;
}

.header h1 {
    color: #38bdf8;
}

.card {
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.full-width {
    grid-column: span 2;
}

input, select {
    padding: 10px;
    border-radius: 8px;
    border: none;
}

button {
    margin-top: 10px;
    padding: 12px;
    width: 100%;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.match-card {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    background: #1e293b;
    transition: 0.3s;
}

.match-card:hover {
    transform: scale(1.02);
}

.high {
    border-left: 5px solid #22c55e;
}

.medium {
    border-left: 5px solid #facc15;
}

.low {
    border-left: 5px solid #ef4444;
}

.teams {
    font-size: 18px;
    font-weight: bold;
}

.league {
    font-size: 12px;
    opacity: 0.7;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.bar {
    height: 6px;
    background: #334155;
    border-radius: 10px;
    margin-top: 10px;
}

.fill {
    height: 100%;
    background: #38bdf8;
    border-radius: 10px;
}

.success {
    background: #38bdf8;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
}

@media (max-width: 768px) {

    .container {
        width: 95%;
        padding: 10px;
    }

    .grid {
        grid-template-columns: 1fr; /* stack everything */
    }

    .full-width {
        grid-column: span 1;
    }

    input, select, button {
        width: 100%;
        font-size: 16px;
    }

    .match-card {
        padding: 12px;
        font-size: 14px;
    }

    .teams {
        font-size: 16px;
    }

    .stats {
        flex-direction: column;
        gap: 5px;
    }

    button {
        font-size: 16px;
    }
}

.mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0f172a;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #334155;
}
.field {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 12px;
    margin-bottom: 5px;
    color: white;
    font-weight: bold;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f172a;
    padding: 15px 20px;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #334155;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: #38bdf8;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.nav-links li a:hover {
    color: #38bdf8;
}

/* Mobile icon */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #1e293b;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 10px 0;
    }
}

.nav-links li a {
    text-decoration: none;   /* removes underline */
    color: white;            /* keeps text clean */
    font-size: 14px;
}

/* also remove underline on hover/focus/visited */
.nav-links li a:hover,
.nav-links li a:focus,
.nav-links li a:visited {
    text-decoration: none;
    color: #38bdf8; /* optional hover color */
}

.footer {
    background: #020617;
    color: #cbd5f5;
    margin-top: 40px;
    padding-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 90%;
    margin: auto;
}

.footer-section h2,
.footer-section h3 {
    color: #38bdf8;
    margin-bottom: 10px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 6px 0;
    font-size: 14px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #cbd5f5;
    transition: 0.3s;
}

.footer-section ul li a:hover {
    color: #38bdf8;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid #1e293b;
    margin-top: 20px;
    font-size: 13px;
}

.flip {
    display: inline-block;
    transform: scaleX(-1);
    transition: 0.3s;
}

.corner-flag {
    display: inline-block;
    transform-origin: left center; /* pivot like a real flag */
    animation: wave 1.6s ease-in-out infinite;
}

/* Wave motion */
@keyframes wave {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(6deg); }
    50%  { transform: rotate(-4deg); }
    75%  { transform: rotate(4deg); }
    100% { transform: rotate(0deg); }
}