* {
  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;
}

/* 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: -58%; /* Push slant to the right with a 75% margin */
}

/* 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);
}

#login-Header {
    color: red;
    font-family: 'Courier New', monospace;
    font-size: 62px;
}

@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;
    }
    input {
        width: 85% !important;
    }
    #login-btn {
        width: 85% !important;
    }
}

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

input {
    color: black;
    background-color: white;
    border: 2px solid black;
    border-radius: 18px;
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    width: 45%;
}

#login-btn {
    color: white;
    border: 2px solid red;
    background-color: red;
    padding: 5px;
    border-radius: 18px;
    font-size: 20px;
    font-weight: bold;
    width: 30%;
}

#login-btn:hover {
    color: red;
    background-color: white;
    cursor: pointer;
}

#forgot_password {
    color: blue;
    text-decoration: underline;
    background: none;
    border: none;
}

#forgot_password:hover {
    color: blue;
    text-decoration: underline;
    font-style: italic;
    cursor: pointer;
    background: none;
}

/* 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;
}

/* Poll Modal Styles */
#pollModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.poll-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.poll-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.poll-close:hover,
.poll-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.poll-question {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.poll-option {
    padding: 12px;
    margin-bottom: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

.poll-option:hover {
    background-color: #e0e0e0;
}

.poll-option.selected {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

.poll-submit-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1em;
    display: block;
    margin: 20px auto;
}

.poll-submit-btn:hover {
    background-color: #218838;
}

.poll-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.poll-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
}

.poll-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
}

.poll-results {
    margin-top: 20px;
}

.poll-result-option {
    margin-bottom: 10px;
}

.poll-result-bar {
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    height: 20px;
    text-align: left;
}

.poll-result-fill {
    background-color: #007bff;
    color: white;
    padding: 2px 5px;
    height: 100%;
    font-size: 0.8em;
    white-space: nowrap;
    overflow: hidden;
    border-radius: 3px;
}

.poll-message {
    text-align: center;
    padding: 15px;
    color: #555;
    font-style: italic;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 15px;
}

.poll-custom-answer-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.custom-answer-option {
    padding: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.custom-answer-option input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    background-color: white;
}

.custom-answer-option input:focus {
    outline: none;
    border-color: #007bff;
}

.custom-answer-option.selected {
    background-color: #e3f2fd;
    border-color: #007bff;
}