body { background-image: url("/static/img/trlbg1.jpg"); background-repeat: no-repeat; background-attachment: fixed; background-size: cover; position: relative; /* This allows the z-index on children elements to work */ z-index: -1; /* Send the background behind the content */ font-family: Arial, sans-serif; margin: 20px; } header nav { margin-bottom: 20px; } header nav a { color: #4CAF50; text-decoration: none; font-weight: bold; padding: 10px 20px; } header nav a:hover { color: gray; } h1 { color: #333; margin-bottom: 20px; } .background-roster { background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background for better readability */ padding: 20px; border-radius: 10px; z-index: 1; } table { width: 100%; border-collapse: collapse; margin-bottom: 20px; overflow: hidden; background-color: rgba(255, 255, 255, 0.8); } table, th, td { border: 1px solid #ddd; } th, td { padding: 10px; text-align: left; } th { color: #333; background-color: rgba(255, 255, 255, 0.9); } button { padding: 5px 10px; background-color: #4CAF50; color: white; border: none; cursor: pointer; } button:hover { background-color: #45a049; } input { padding: 5px; margin-bottom: 20px; } #result { margin-top: 20px; } #search { width: 33%; padding: 6px; border: 2px black solid; margin-top: 8px; margin-right: 16px; font-size: 17px; } main { position: relative; z-index: -1; background-color: rgba(255, 255, 255, 0.9); margin-top: 10%; padding: 20px 35px 35px 35px; border-radius: 10px; border: 2px solid black; overflow: auto; } nav { top: 0; left: 0; width: 100% } .divider { top: 0; width: 80% } /* Add a black background color to the top navigation */ .topnav { position: absolute; right: 50px; top: 10px; background-color: #333; overflow: visible; /* Ensure dropdown content isn't clipped */ z-index: 1000; /* Higher z-index to appear above other content */ } /* Style the links inside the navigation bar */ .topnav a { color: #f2f2f2; text-align: center; text-decoration: none; font-size: 17px; } /* Style the dropdown button */ .dropdown .dropbtn { font-size: 17px; border: none; outline: none; color: white; background-color: inherit; padding: 14px 16px; cursor: pointer; } /* Dropdown content */ .dropdown-content { display: none; position: absolute; background-color: #f9f9f9; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); right: 0; /* Ensures dropdown aligns with the button */ z-index: 2000; /* Ensures it stays above the rest */ } /* Style the links inside the dropdown */ .dropdown-content a { float: none; /* Ensure the links stack properly */ color: black; padding: 12px 16px; text-decoration: none; display: block; text-align: left; } /* Add a dark background on hover */ .topnav a:hover, .dropdown:hover .dropbtn { background-color: #555; color: white; } /* Add a grey background to dropdown links on hover */ .dropdown-content a:hover { background-color: #ddd; color: black; } /* Show the dropdown when the button is clicked */ .dropdown.show .dropdown-content { display: block; /* Toggle visibility */ } /* Media query for smaller screens */ @media screen and (max-width: 600px) { .topnav { right: 0; top: 0; width: 100%; position: relative; } .dropdown .dropbtn { width: 100%; text-align: center; } .dropdown-content { width: 100%; position: relative; } } /* Hide the icon on larger screens */ .topnav .icon { display: none; } .about_us_text { font-size: 20px; width: 50%; overflow: auto; } /* Show the icon only on smaller screens */ @media screen and (max-width: 600px) { #search { width: 100% } .about_us_text { font-size: 14px; width: 100%; } }