* {
  box-sizing: border-box;
}

body {
    background-color: rgb(226, 226, 226);
    margin: 0;
    margin-bottom: 50px;
    font-family: Arial, sans-serif;
}

#scores {
    width: 100%;
    height: 125px;
    position: inherit;
}

.alert {
  padding: 20px;
  margin: auto;
  width: 50%;
  background-color: #ffbb00;
  color: black;
  border: 2px solid black;
  border-radius: 14px;
}

.closebtn {
  margin-left: 15px;
  color: black;
  font-weight: bold;
  float: right;
  font-size: 32px;
  line-height: auto;
  cursor: pointer;
  transition: 0.3s;
}

.closebtn:hover {
  color: black;
}

/* Locator Bar */
#Locator-bar {
    background-color: rgb(43, 44, 45); 
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 40px;
    width: 100%;
    position: absolute; 
    overflow: visible; /* Ensure the slant is fully visible */
    z-index: 1;
    padding-left: 100px; /* Move the entire content of the Locator bar to the right */
}

/* Logo Container (Holds the "CSN" text and slant) */
.logo-container {
    position: relative;
    z-index: 2;
    margin-left: 0px; /* Space between logo and buttons */
    height: 100%;
    display: flex;
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
}

/* CSN Text */
.logo {
    color: white;
    z-index: 3; 
    position: relative; 
    width: 100px;
    height: 100px;
    left: -52px;
}

/* Red slanted background behind "CSN" text but in front of Locator Bar */
.logo-container::before {
    content: '';
    position: absolute;
    top: 0; /* Start the slant at the very top */
    left: -75%; /* Push slant to the right with a 75% margin */
    width: 125%; /* Adjusted width */
    height: 100%; /* Full height */
    background-color: #d00;
    transform: skewX(-28deg); /* Apply slant effect */
    z-index: 0;
    border-left:10px solid #b40000;
    border-right: 10px solid #b40000;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: -100px;
    z-index: 10; /* Ensure buttons are above background */
}

.nav-btn {
    background-color: transparent;
    color: white; /* Button text color is white */
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: normal;
    border: none; /* Removed border from buttons */
}

.nav-btn:hover {
    background-color: transparent;
    color: red; /* Button text turns red on hover */
    text-decoration: underline;
    font-style: italic;
}

/* Dropdown Menu */
.dropdown {
    position: relative; /* To position the dropdown content */
    z-index: 999; /* Make sure dropdown container stays on top */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: black;
    min-width: 160px;
    z-index: 9999; /* Ensure dropdown content appears on top */
    top: 100%; /* Position dropdown directly below the "INFORMATION" button */
    left: 0;
    margin-top: 0px; /* Add a small margin to prevent it from touching the button */
}

.dropdown:hover .dropdown-content {
    display: block; /* Make the dropdown content visible on hover */
}

.dropdown-btn {
    background-color: transparent;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    font-weight: normal;
    border: none;
}

.dropdown-btn:hover {
    background-color: transparent;
    color: red;
    text-decoration: underline;
    font-style: italic;
}

#body {
    width: 85%;
    background-color: white;
    border-radius: 15px;
    margin: auto;
    padding: 15px;
    text-align: center;
}

/* Hamburger Button */
.hamburger {
    position: fixed;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Hamburger Bars */
.bar {
    width: 30px;
    height: 4px;
    background: white;
    transition: 0.3s;
}

/* Sidebar Menu */
.sidebar {
    position: fixed;
    top: 6%;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 10);
    display: flex;
    align-items: top;
    transition: 0s;
    overflow: scroll;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    text-align: left;
    width: 100%;
}

.sidebar ul li {
    border-bottom: 1px solid gray;
    line-height: 70px;
}

.sidebar ul li a {
    color: black;
    text-decoration: none;
    font-size: 30px;
    transition: 0s;
    padding: 15px;
}

.sidebar ul li a:hover {
    color: red;
    text-decoration: underline;
    font-style: italic;
}

/* Active Sidebar */
.sidebar.active {
    left: 0;
}

/* Transform Hamburger into 'X' */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 7px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

#Team-Header {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: #FF3131;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 20px;
    border-bottom: 2px solid #FF3131;
    padding-bottom: 10px;
}

#team-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 1rem;
    flex-wrap: wrap;
}

.team-member {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 200px;
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: scale(1.05);
}

.team-member img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #ddd;
}

.member-info {
    padding: 1rem;
}

.member-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.position {
    font-size: 1rem;
    color: #777;
}

@media only screen and (max-width: 1085px) {
    body { margin: 0px; }

    .nav-links {
        display: none;
    }

    .logo {
        display: none;
    }
  
    .logo-container {
        width: 12%;
        content: '';
        position: absolute;
        top: 0; /* Start the slant at the very top */
        left: 5%; /* Push slant to the right with a 5% margin */
    }

    #Locator-bar {
        position: fixed;
        top: 0;
    }

    #scores {
        display: none;
    }

    #body {
        position: relative;
        top: 50px !important;
        left: auto;
        right: auto;
    }

    #body .alert {
        width: 85%;
    }
}

@media only screen and (min-width: 1086px) {
    #menuToggle {
        display: none;
    }
    #body {
        margin-top: 75px !important; /* Adjust for desktop */
    }
}

/* User icon dropdown styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-icon {
    font-size: 28px !important;
    color: #fff;
    cursor: pointer;
    padding: 10px;
}

.user-menu {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    right: 0;
    min-width: 120px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 6px;
    overflow: hidden;
}

.user-menu a {
    color: black;
    padding: 10px 12px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.user-menu a:hover {
    background-color: #f1f1f1;
}

.user-dropdown:hover .user-menu {
    display: block;
}

/* Position icon to far right */
.nav-user-icon {
    margin-left: auto;
    display: flex;
    align-items: center;
}