@import url('https://fonts.googleapis.com/css2?family=Caladea&display=swap');

body {
    font-family: 'Caladea', serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-image: url(/img/pagina/bg.jpg);
    background-repeat: no-repeat;
    background-size: cover; 
    background-position: center center;
}

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #1a6152;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.logo img {
    height: 80px;
    margin-left: 10px;
}

.menu {
    width: 60%;
    margin-right: 90px;
}

.menu ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu ul li {
    list-style: none;
    margin-top: 15px;
}

.menu ul li a {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    text-decoration: none;
}

.menu .dropdown {
    position: relative;
    display: inline-block;
}

.menu .dropdown-menu {
    display: none;
    position: absolute;
    background: linear-gradient(135deg, #2f9669, #1a6152);
    border-radius: 6px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    min-width: 160px;
    z-index: 1000;
    top: 100%;
    left: 0;
    padding: 2px 0; 
    margin-top: 4px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.menu .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.menu .dropdown-menu.active {
    display: block; 
    opacity: 1;
    transform: translateY(0);
}

.menu .dropdown-menu li {
    margin: 2px 0;
}

.menu .dropdown-menu li a {
    display: block;
    padding: 8px 14px; 
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.menu .dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 20px;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 4px 0;
    border-radius: 3px;
}

.slide-menu {
    position: fixed;
    top: 0;
    left: -100%; 
    width: 250px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 30px;
    transition: left 0.3s ease;
}

.slide-menu-logo {
    margin-top: 0;
    margin-left: 20px; 
    margin-bottom: 10px; 
}

.slide-menu-logo img {
    width: 80px; 
    height: auto;
}

.slide-menu-list {
    list-style: none;
    width: 100%;
    padding: 0;
}

.slide-menu-list li a {
    display: block;
    padding: 15px 20px;
    font-size: 18px;
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1.5px;

}

.slide-menu-list li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.slide-menu.active {
    left: 0;
}

.language-selector {
    position: absolute;
    top: 25px;
    right: 50px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
}

.language-selector .flag {
    width: 30px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 3px;
    border: 2px solid transparent;
}

.language-selector .flag:hover {
    transform: scale(1.1);
    border-color: #fff;
}

.spacer {
    height: 105px; 
}

.season-dropdown {
    position: relative;
    text-align: left;
    margin: 20px 0;
    margin-left: 45px;
}

.season-dropdown-toggle {
    font-family: 'Caladea', serif;
    background-color: #1a6152;
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.season-dropdown-toggle i {
    margin-left: 10px;
    font-size: 22px;
}

.season-dropdown-toggle:hover {
    background-color: #2f9669;
}

.season-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateX(0);
    background: linear-gradient(135deg, #2f9669, #1a6152);
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    padding: 0 45px;
    margin: 10px 0 0;
    z-index: 500;
    list-style: none;
}

.season-dropdown-menu li {
    margin: 0;
}

.season-dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 18px;
    color: white;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
}

.season-dropdown.active .season-dropdown-menu {
    display: block;
}

.content {
    position: relative;
}

.table-wrapper {
    padding: 0 40px; 
}

.table-container {
    margin: 0 5px 45px; 
    border: 2px solid #2f9669;
    border-radius: 12px;
    padding: 10px; 
    background-color: #ffffff; 
    min-width: 1200px; 
    overflow-x: auto; 
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 24px;
}

thead {
    background-color: #ffffff;
    color: #2f9669;
}

th:nth-child(2), td:nth-child(2) {
    width: 50px;
    padding-left: 20px; 
}

th:nth-child(3), td:nth-child(3) {
    width: 50px; 
    padding-left: 20px; 
}

th:nth-child(4), td:nth-child(4) {
    width: 50px; 
    padding-left: 20px;
}

th:nth-child(5), td:nth-child(5) {
    width: 50px;
    padding-left: 20px; 
}

th:nth-child(6), td:nth-child(6) {
    width: 50px;
    padding-left: 20px; 
}

th:nth-child(7), td:nth-child(7) {
    width: 50px; 
    padding-left: 20px; 
}

th:nth-child(8), td:nth-child(8) {
    width: 50px;
    padding-left: 20px; 
}

th:nth-child(9), td:nth-child(9) {
    width: 50px; 
    padding-left: 20px;
}

th, td {
    padding: 10px; 
    text-align: center;
    font-size: 22px;
}

th span, td span {
    display: inline-block;
    vertical-align: middle;
}

th {
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

th.align-left {
    text-align: left;
    padding-right: 75px;
}

thead th {
    padding: 20px 10px; 
    text-align: center;
}

thead th:not(:first-child) {
    text-indent: 10px;
}

thead th:first-child {
    text-align: center;
    width: 40px;
}

thead th.header-align-right {
    text-indent: 30px;
}

tbody tr {
    border-bottom: 1px solid #dddddd;
}

tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

tbody tr:last-of-type {
    border-bottom: 2px solid #2f9669;
}

.table-classification__team {
    display: flex;
    align-items: center;
    text-align: left;
}

.table-classification__team img {
    padding-left: 10px;
    margin-right: 15px;
    height: 45px;
    width: 45px;
    object-fit: contain;

}

.table-classification__position {
    font-weight: bold;
    margin-right: 10px;
    color: #2f9669;
    text-align: center;
    width: 40px;
}

.table-classification__row--featured {
    background-color: #e1f7e7;
}

.table-classification__row--featured td {
    font-weight: bold;
}

th.align-right {
    padding-right: 30px; 
}

@media (max-width: 1280px) {
    .menu {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .dropdown-menu {
        display: none;
    }

    .dropdown-menu-slide {
        display: none;
        padding-left: 20px;
    }

    .dropdown-slide.active .dropdown-menu-slide {
        display: block;
    }

    .language-selector {
        display: none;
    }

    .slide-menu .language-selector {
        display: flex;
        position: static;
        justify-content: start;
        margin-top: auto;
        margin-left: 20px;
        margin-bottom: 20px;
        gap: 10px;
    }

    .slide-menu .flag {
        width: 40px;
        height: auto;
    }
    
    .content-container {
        flex-direction: column;
        align-items: center; 
    }

    .content-container .photo {
        width: 100%; 
        height: auto; 
    }
}