body {
    height: 100vh;
    font-family: Arial, sans-serif;
    color: #fff;
}

/* Font settings */
body, h1, h2, h3, p, ul, li, img, a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

/* Outline text with black */
h1, h2, h3, p, a, label, button {
    color: white;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    /* Black outline */
}

h1 {
    font-size: 1.75em;
}

h2 {
    font-size: 1.2em;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    background-color: #014;
}

header .logo img {
    width: 0px;
    height: 0px;
}

.nav-wrapper {
    flex: 1;
}

.shadow {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    height: 0px; 
    top: 0px;
}

nav ul {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 1.5em;
}

nav ul li {
    flex: 1;
    text-align: center;
}

nav ul li a {
    color: #fff;
    display: block;
    padding: 10px;
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.menu-container {
    width: 200px;
    position: absolute;
    left: 0;
    top: 49px;
    height: 888px;
    background-color: #002;
    padding-top: 0px;
    border-left: 1px solid #555;
    border-bottom: 1px solid #555;
    border-right: 1px solid #555;
	z-index: 0
}

.menu {
    height: 0%; /* Ensure the menu takes up the full height of its container */
    display: flex;
    flex-direction: column; /* Align menu items vertically */
}

.menu-item {
    border-bottom: 1px solid #555;
}

.nav-wrapper li {
    border-left: 1px solid #555;
    border-bottom: 1px solid #555;
}

.menu-btn {
    background-color: #555;
    color: white;
    padding: 10px;
    border: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
    outline: none;
    font-size: 5px;
}

.menu-btn:hover {
    background-color: #30B;
    box-shadow: 0 0 5px #30B;
}

.menu-btn:active {
    background-color: #30B;
    box-shadow: 0 0 5px #30B;
}

.menu-btn-b:hover {
    background-color: #30B;
    box-shadow: 0 0 5px #30B;
}

.menu-btn-b:active {
    background-color: #30B;
    box-shadow: 0 0 5px #30B;
}

.submenu {
    display: none;
    background-color: #111;
    padding-left: 5px;
}

.submenu a {
    padding: 10px;
    display: block;
    color: white;
    text-decoration: none;
}

.submenu a:hover {
    background-color: #575757;
}   

/* Title text styles */
.title-text {
    position: relative;
    text-align: center;
    color: white;
    padding-top: 9px;
    padding-bottom: 3px;
    min-height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0px;
    left: 202px;
    width: calc(100% - 202px);
    flex-wrap: wrap;
}

#clickable-text {
    cursor: pointer; /* Makes the text appear interactive */
}

#clickable-text:hover {
    color: orange;
}

.prompt {
    font-size: 0.0em;
}

label {
    font-size: 1.0em;
    font-weight: bold;
    position: relative;
    margin-left: 20px;
}

/* Default main menu button style */
.menu-btn {
    background-color: #014;
    color: white;
    padding: 10px;
    border: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
    outline: none;
    font-size: 1.1em;
}

.menu-btn-b {
    background-color: #014;
    color: white;
    padding: 10px;
    cursor: pointer;
    display: block;
    border: none;
    text-align: left;
    width: 100%;
    outline: 1px white;
}

.submenu .expandable {
    background-color: #002;
    color: white;
    padding: 10px;
    cursor: pointer;
    display: block;
    border: none;
    text-align: left;
    width: 100%;
    outline: 1px white;
}

/*.menu-item:focus-within .menu-btn {
    back0ground-color: #30B; 
}*/

.submenu .expandable:focus-within {
    background-color: #30B; 
}

.submenu {
    display: none;
}

/* Show submenu when the main menu item or its submenu is in focus */
.menu-item:focus-within .submenu {
    display: block;
}

/* Hover effect for submenu buttons */
.submenu .expandable:hover {
    background-color: #30B; /* Optional hover effect */
}

.input[type="submit"] {
    font-size: 1.1em;
    padding: 10px 20px;
}

.input {
    position: relative;
    margin-left: 20px;
    padding: 10px;
    font-size: 1.1em;
    min-width: 30vh;
    min-height: 2vh;
    background-color: #11111175; 
    color: white; 
    border: 1px solid #575757; 
    border-radius: 5px;
    outline: none; 
    transition: all 0.2s ease;
}

.time {
    position: relative;
    margin-left: 20px;
    padding: 10px;
    font-size: 1.1em;
    max-width: 4vh;
    min-height: 2vh;
    background-color: #11111175; 
    color: white; 
    border: 1px solid #575757; 
    border-radius: 5px;
    outline: none;
    transition: all 0.2s ease;
}

.input:focus {
    border-color: orange; 
    box-shadow: 0 0 5px orange; 
}

.time:focus {
    border-color: orange; 
    box-shadow: 0 0 5px orange; 
}

select {
    position: relative;
    margin-left: 20px;
    font-size: 1.1em;
    padding: 10px;
    width: 100%;
    max-width: 250px;
    background-color: #11111175;
    color: white;
    border: 1px solid #575757;
    border-radius: 5px;
    outline: none;
    transition: all 0.2s ease;
}

select option {
    background-color: #222;
}

select:focus {
    border-color: blue; 
    box-shadow: 0 0 5px blue;
    background-color: #11111175;
}

option:focus {
    background-color: orange;
}

form {
    margin: 20px auto;
    text-align: center;
}

.adjust {
    padding: 0px;
    margin: 20px auto;
    text-align: center;
}

/* Collapsible list styles */
.collapsible-list {
    position: absolute;
    top: -1px;
    width: 100%;
    margin: 0px auto;
    border-radius: 0px;
    min-height: 0px;
    background: rgba(0, 0, 0, 0.5);
    border-left: 1px solid #555;
    border-right: 1px solid #555;
    border-top: 1px solid #555;
}

.layout {
    position: relative;
    top: 0px;
    left: 201px;
    width: calc(100% - 203px);
    text-align: center;
    height: 820px;
    border-radius: 0px;
    flex-wrap: wrap;
}

.visual {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.collapsible-list-inner {
    bottom: 0px;
    font-size: 0.9em;
    width: 100%;
    margin: 20px auto;
    background: rgba(0, 0, 0, 0.7);
    padding: 0px;
    border-radius: 0px;
}

.collapsible {
    background-color: #555;
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.5em;
}

.collapsible.active, .collapsible:hover {
    background-color: #30B;
}

.collapsible-inner {
    background-color: #333;
    color: white;
    cursor: pointer;
    padding: 18px;
    top: 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.75em;
}

.collapsible-inner.active, .collapsible-inner:hover {
    background-color: #8117BB;
}

.expandable {
    background-color: #333;
    color: white;
    cursor: pointer;
    margin: 0px;
    margin-top: 0px;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 0.8em;
}

.expanding {
    background-color: #333;
    color: white;
    cursor: pointer;
    margin: 0px;
    margin-top: 0px;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 0.8em;
}

.expandable.active, .expandable:hover {
    background-color: #8117BB;
}

.expanding.active, .expanding:hover {
    background-color: #8117BB;
}

.button-layout {
    top: 20px;
    display: none;
    overflow: hidden;
}

a {
    color: lightblue;
    text-decoration: none;
    /* Optional: Remove underline */
}

/* Change color on hover */
a:hover {
    color: orange;
    text-decoration: underline;
    /* Optional: Add underline on hover */
}

.list-item {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap within the container */
    justify-content: center; /* Aligns items horizontally */
    align-items: flex-start; /* Aligns items to the top */
    padding-left: 5px;
    padding-bottom: 10px;
    padding-top: 10px;
    padding-right: 0px;
    border-bottom: 1px solid #555;
    font-size: 1.1em;
}

.list-item img {
    width: 64;
    height: 56px;
    margin-right: 20px;
    border-radius: 5px;
    margin-left: 5px;
}

.spacing {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    padding-right: 0px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 5px;
    border-bottom: 1px solid #555;
    font-size: 1.1em; /* Speedruns Category Font Size*/
}

.imgResize {
    width: 64px;
    height: 56px;
    margin-right: 5px;
    border-radius: 5px;
}

.list-item span {
    display: block; /* Ensures spans stack when content exceeds width */
    width: 100%; /* Adjust width to wrap within the container */
    word-wrap: break-word; /* Allows long words or URLs to break */
    text-align: left; /* Centers the text */
    overflow-wrap: break-word; /* Ensures compatibility for modern browsers */
    max-width: 20%; /* Set a maximum width to trigger wrapping */
    margin: auto; /* Centers the span within its container */
}

.speedruns span {
    display: block; /* Ensures spans stack when content exceeds width */
    width: 100%; /* Adjust width to wrap within the container */
    word-wrap: break-word; /* Allows long words or URLs to break */
    text-align: left; /* Centers the text */
    overflow-wrap: break-word; /* Ensures compatibility for modern browsers */
    max-width: 15%; /* Set a maximum width to trigger wrapping */ /* Centers the span within its container */
}

.speedruns .list-item {
    border-bottom: 1px solid #555;
}

.speedruns img {
    margin-left: 5px;
    margin-right: -10px;
}

footer {
    border-top: 1px solid #555;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    position: absolute;
    top: calc(100vh - 38);
    left: 0;
}

.about img {
    width: 0px;
    height: 0px;
    position: relative;
    left: 190vh;
    top: 25vh;
}

#footer {
    border-top: 1px solid #555;
    background-color: #333;
    color: white;
    text-align: center;
    position: absolute;
    top: 97vh;
    padding: 10px 0;
    width: 100%;
}

#footerB {
    border-top: 1px solid #555;
    background-color: #333;
    color: white;
    text-align: center;
    position: relative;
    top: 40vh;
    padding: 10px 0;
    width: 100%;
}

.footer {
    border-top: 1px solid #555;
    background-color: #004;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    position: relative;
    top: 20vh;
    left: 0;
}

.footerC {
    border-top: 1px solid #555;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    top: 0px;
    width: 100%;
    position: relative;
    left: 0;
}

#submitRun {
    padding-bottom: 20px;
    border-bottom: 1px solid #555;
    text-align: center;
    justify-content: space-evenly;
    align-items: center;
}

.buttonStyle {
    background-color: #333; /* Background */
    border: none; /* Remove borders */
    color: white; /* White text */
    padding: 5px;
    min-width: 70px;
    max-width: 70px;
    max-height: 70px;
    text-align: center; /* Center the text */
    text-decoration: none; /* Remove underline */
    display: inline-block; /* Make the button an inline-block */
    font-size: 16px; /* Increase font size */
    cursor: pointer; /* Add a pointer on hover */
    border-radius: 8px; /* Rounded corners */
    transition: background-color 0.2s ease; /* Smooth transition on hover */
}

.buttonStyle:hover {
    background-color: #30B; /* Darker green on hover */
}

.sendButton {
    width: 80px;
    height: 35px;
    border-style: none;
    border-radius: 5px;
    background-color: #333;
    outline: none; /* Remove outline */
    border: 1px solid #555; /* Default border color */
    cursor: pointer; /* Ensure the button has a pointer cursor */
    transition: all 0.2s ease; /* Optional: Smooth transition */
}

.sendButton:hover {
    border: 1px solid orange; /* Change border to orange on hover */
    box-shadow: 0 0 5px orange; /* Optional: Add glow effect */
}

.runner-link { 
    text-decoration: none;
}

.runner-link:hover {
    text-decoration: underline;
    text-decoration-color: #ff9900; /* Orange underline on hover */
}
