body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: url('../images/football_field.jpg') no-repeat center center fixed;
    background-size: cover;
}

nav {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 20px; /* Adjust the padding */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure it stays on top */
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
}

nav .logo {
    display: flex;
    align-items: center;
    margin-right: 20px; /* Adjust margin as needed */
}

nav .logo img {
    height: 35px;
    width: auto;
}

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

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-start; /* Aligns the text to the left */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 700;
    position: relative;
    padding: 10px 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
}

nav ul li a:hover {
    color: #00ff99; /* Change to your preferred hover color */
    background-color: rgba(255, 255, 255, 0.1); /* Add a subtle background on hover */
    text-decoration: none;
}

nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #00ff99; /* Change to your preferred hover color */
    transition: width 0.3s;
    position: absolute;
    left: 0;
    bottom: -5px;
}

nav ul li a:hover::after {
    width: 100%;
}

.user-menu {
    position: relative;
    margin-right: 28px;
    cursor: pointer;
}

.user-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 25px;
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid #333;
    border-radius: 5px;
    padding: 15px; /* Increased padding */
    margin-top: 10px; /* Increased margin */
    text-align: left;
    min-width: 200px; /* Increased minimum width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Added shadow for better visibility */
}

.dropdown.show {
    display: block;
}

.dropdown.show .username {
    color: gold; /* Change username color to gold when dropdown is shown */
}

.dropdown p {
    color: white;
    margin: 0;
    padding: 10px 10px; /* Increased padding */
    font-family: 'Roboto', sans-serif;
    border-bottom: 1px solid #555; /* Add a bottom border */
}

.dropdown a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 10px; /* Increased padding */
    font-family: 'Roboto', sans-serif;
    transition: background-color 0.3s ease;
}

.dropdown a:hover {
    background-color: #444; /* Add a hover effect */
}

.user-menu:hover .user-icon {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle background color change on hover */
    border-radius: 50%;
}
