@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;
}

.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: 60px;
    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;
}

.container {
    padding: 20px;
}

h2 {
    font-size: 40px; 
    font-weight: bold;
    text-transform: uppercase; 
    color: #ffffff;
    text-align: center; 
    margin-top: 100px; 
    margin-bottom: 10px; 
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px; 
    justify-content: center; 
    align-items: center;  
    min-height: 80vh;     
    box-sizing: border-box;
}

.card {
    width: 320px;
    height: 510px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: #1a6152;
    border: 1px solid #1a6152;
    border-radius: 10px;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    border-color: #1a6152;
}

.photo {
    width: 90%;
    height: 75%;
    background-color: #1a6152;
    border-radius: 10px;
    margin-top: 15px;
    overflow: hidden;
}

.photo img {
    width: 10%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.info {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

.name {
    margin-left: 40px;
    margin-bottom: 10px;
    font-size: 30px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
    flex: 1;
}

.team-photo {
    width: 60px;
    height: 60px;
    background-color: #1a6152;
    border-radius: 50%;
    margin-right: 25px;
    margin-bottom: 10px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}


.photo {
    width: 90%;
    height: 75%;
    background-image: url(/img/pagina/bg-player.avif);
    background-repeat: no-repeat;
    border-radius: 10px;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.player-photo {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    position: relative;
    height: 75%; 

}

.player-photo img {
    width: 120%; 
    height: 150%; 
    object-fit: cover; 
    object-position: top; 
    position: absolute; 
    top: -15%; 
    left: 50%;
    right: 0;
    transform: translateX(-50%);
}

.player-photo-entrenador {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    position: relative;
    height: 75%; 

}

.player-photo-entrenador img {
    width: 160%; 
    height: 130%; 
    object-fit: cover; 
    object-position: top; 
    position: absolute;
    top: -25%;
    left: 50%; 
    right: 0;
    transform: translateX(-50%); 
}

.player-photo-lluri {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    position: relative;
    height: 75%; 

}

.player-photo-lluri img {
    width: 120%; 
    height: 130%; 
    object-fit: cover; 
    object-position: top; 
    position: absolute;
    top: -5%; 
    left: 50%; 
    right: 0;
    transform: translateX(-50%);
}

.player-photo-rovellada {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    position: relative;
    height: 75%; 

}

.player-photo-rovellada img {
    width: 100%; 
    height: 120%; 
    object-fit: cover; 
    object-position: top;
    position: absolute;
    top: -15%;
    left: 50%;
    right: 0;
    transform: translateX(-50%); 
}

@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; 
    }
}