* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    color: #333;
}

/* Header and Navigation */

.club {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #034694;
    padding: 25px;
    position: relative;
    height: 500px;
    width: 100%;
}

.club img {
    width: 100%;
    object-fit: cover;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.club h1 {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    background-color: rgba(3, 70, 148, 0.7);
    color: white;
    padding: 15px;
    border-radius: 15px;
    border: 5px solid white;
    font-family: "Playfair Display", serif;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: #034694;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav li {
    display: inline-block;
}

.main-nav a {
    padding: 8px 12px;
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #4FC3F7;
}

/* About Section */

.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    background: linear-gradient(90deg, #E3F2FD 60%, #BBDEFB 100%);
    margin: 40px auto 30px auto;
    border-radius: 24px;
    box-shadow: 0 4px 24px 0 rgba(3, 70, 148, 0.08);
    padding: 48px 24px 40px 24px;
    max-width: 900px;
}

.about h2 {
    font-size: 3rem;
    font-family: "Playfair Display", serif;
    color: #034694;
    margin-bottom: 18px;
    text-align: center;
    letter-spacing: 1px;
}

.about p {
    font-size: 1.35rem;
    color: #1E88E5;
    text-align: center;
    margin-bottom: 10px;
    max-width: 700px;
}

/* Matches Section */

.matches {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px auto;
    max-width: 1000px;
}

.matches h2 {
    font-size: 2.5rem;
    font-family: "Playfair Display", serif;
    color: #034694;
    text-align: center;
    margin: 40px 0 20px;
    letter-spacing: 1px;
}

.match-table {
    width: 100%;
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px 0 rgba(3, 70, 148, 0.07);
}

th, td {
    padding: 15px;
    text-align: left;
    font-size: 1.1rem;
    color: #333;
}

th {
    background: #034694;
    color: white;
    font-weight: 600;
}

td {
    background: #F5F7FA;
}

tr:nth-child(even) td {
    background: #E3F2FD;
}

/* Players Section */

.players h2 {
    font-size: 2.5rem;
    font-family: "Playfair Display", serif;
    color: #034694;
    text-align: center;
    margin: 40px 0 20px;
    letter-spacing: 1px;
}

.player-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin: 32px 0 48px 0;
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px 0 rgba(3, 70, 148, 0.07);
    padding: 24px;
    max-width: 300px;
    min-width: 260px;
    transition: transform 0.3s ease;
}

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

.player img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px 0 rgba(3, 70, 148, 0.10);
}

.player h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #034694;
    text-align: center;
}

.player p {
    font-size: 1.1rem;
    color: #1E88E5;
    text-align: center;
}

/* Fan Gallery Section */

.fans h2 {
    font-size: 2.5rem;
    font-family: "Playfair Display", serif;
    color: #034694;
    text-align: center;
    margin: 40px 0 20px;
    letter-spacing: 1px;
}

.fan-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin: 32px 0 48px 0;
}

.fan-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px 0 rgba(3, 70, 148, 0.07);
    padding: 24px;
    max-width: 240px;
    min-width: 200px;
    transition: transform 0.3s ease;
}

.fan-photo:hover {
    transform: translateY(-5px);
}

.fan-photo img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px 0 rgba(3, 70, 148, 0.10);
}

.fan-photo p {
    font-size: 1rem;
    color: #1E88E5;
    text-align: center;
    margin-bottom: 8px; 
}

.fan-photo .username {
    font-size: 0.9rem;
    font-style: italic;
    color: #4682B4; 
    text-align: center;
    margin-top: 0; 
    background-color: transparent;
}

/* Media Queries for Responsive Design */

@media screen and (max-width: 768px) {
    .fans h2 {
        font-size: 2rem;
        margin: 30px 0 15px;
    }

    .fan-photo {
        max-width: 280px;
        min-width: 240px;
        padding: 20px;
    }

    .fan-photo img {
        width: 140px;
        height: 140px;
    }

    .fan-photo p {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .fan-photo .username {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 600px) {
  .main-nav ul { flex-direction: column; gap: 8px; }
  .club h1 { font-size: 2rem; }
  .club { height: 120px; }
}

/* Mobile Phones (480px and below) */

@media screen and (max-width: 480px) {
    .fans h2 {
        font-size: 1.6rem;
        margin: 20px 0 10px;
    }

    .fan-gallery {
        gap: 20px;
        margin: 20px 0;
    }

    .fan-photo {
        max-width: 100%;
        min-width: 100%;
        padding: 15px;
        margin: 0 10px;
    }

    .fan-photo img {
        width: 120px;
        height: 120px;
    }

    .fan-photo p {
        font-size: 0.9rem;
        margin-bottom: 5px; 
    }

    .fan-photo .username {
        font-size: 0.8rem;
    }
}

/* Footer */

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #034694;
    color: white;
}

.left-foot p {
    font-size: 1rem;
    color: white;
    background-color: transparent;
}

.right-foot ul {
    display: flex;
    gap: 20px;
}

.right-foot li {
    display: inline-block;
}

.right-foot a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    background-color: transparent;
    transition: color 0.3s ease;
}

.right-foot a:hover {
    color: #4FC3F7;
}

/* Font Families */

.roboto-family {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.playfair-display-family {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}