body {
    font-family: Arial, sans-serif;
    background-image: url('http://www.cumberdome.com/title_screen.jpg'); /* Sets the background image */
    background-size: 100% auto; /* Ensures the image covers the whole page left to right */
    background-position: top center; /* Centers the background image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    color: white; /* Sets text color to white for better readability */
    display: flex;
    flex-direction: column;
}

@media (max-aspect-ratio: 1/1) {
    body {
        background-size: auto 100vh;
    }
}

header {
    text-align: center;
    padding: 9vh;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
}

.toast {
    visibility: hidden; /* Hidden by default */
    min-width: 250px;
    background-color: rgba(0, 0, 0, 0.5);
    text-color: white;
    text-align: center;
    border-radius: 10px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 17px;
}

.top-left-info, .top-right-info {
    position: fixed; /* fixed relative to viewport*/
    padding: 10px 10px;
    /* background-color: rgba(255, 255, 255, 0.3);  semi-transparent white */

}

.top-left-info {
    top: 0;
    left: 0;
    z-index: 1000; /* stays on top of other elements */
}

.top-right-info {
    top: 0;
    right: 0;
}

.container {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    text-align: center;
}

h2 {
    text-align: center;
    padding: 15px;
}

p {
    text-align: center;
    padding: 15px;
}

input[type="text"], input[type="number"], input[type="email"], input[type="password"] {
    background-color: rgba(0, 0, 0, 0.7); /* Slightly higher opacity than container */
    color: white; /* White text */
    font-size: 24px; /* Adjustable font size */
    border: 1px solid #555; /* Subtle border */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8); /* Inset shadow for recessed look */
    padding: 8px 12px; /* Padding for text inside input */
    border-radius: 8px; /* Optional: rounded corners */
    outline: none; /* Removes the default focus outline */
    width: 80%;
    margin:10px 10px;
    transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition for focus/hover */
}

input[type="number"] {
    font-size: 72px;
    text-align: center;
}

input[type="text"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="password"]:focus {
    background-color: rgba(0, 0, 0, 0.6); /* Slightly lighter on focus */
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.9); /* Deeper shadow on focus */
}

input[type="text"]:hover, input[type="number"]:hover, input[type="email"]:hover, input[type="password"]:hover {
    background-color: rgba(0, 0, 0, 0.65); /* Change background on hover */
}

.bracket {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    grid-gap: 10px;
    overflow-y: auto;
    max-height: 80vh;
    padding: 10px;
    margin: 0px;
}

.grid-image {
    width: 200px;
    height: auto;
}

nav {
    text-align: center;
    margin: 20px;
}

.button {
    background-color: #F08080; /* Pink background default */
    color: white; /* White text */
    padding: 15px 32px; /* Top and bottom padding of 15px, left and right padding of 32px */
    max-width: 200px;
    width: auto;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px; /* Larger font size */
    margin: 10px 10px;
    cursor: pointer; /* Changes cursor to a pointer when hovering over the button */
    border: none; /* Removes the border */
    border-radius: 8px; /* Rounded corners */
    transition: filter 0.3s ease; /* Smooth transition for bg color*/
}

.back-button {
    background-color: #f44336; /* Red BG */
    margin: 10px 10px;
}

.button:hover {
    filter: brightness(130%);
}

#mainMenu {
    flex-direction: column; /* aligns children vertically */
    justify-content: center;
    align-items: center;
    height: auto;
    width: auto;
    margin: 20vh auto;
    padding: 10px 10px;
}

#loginButton {
    background-color: #4CAF50; /* Green background */
    margin: 10px auto;
}

#logoutButton {
    background-color: #f44336; /* Red BG */
    font-size: 12px;
    padding: 10px 15px;
}

#connectDiscordButton {
    background-color: #7289DA; /* Discord blurple */
    font-size: 12px;
    padding: 10px 15px;
    margin: 10px 10px;
}

#discordTab {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    width: auto;
    margin: 5vh auto;
    padding: 10px 10px;
}

#submitDiscord {
    background-color: #7289DA; /* Discord blurple */
    padding: 10px 10px
}

#tournamentButton {
    margin: 10px auto;
}

#tournamentTab {
    position: relative;
}

#tournamentBracket {
    position: relative;
    max-height: 65vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 10px;

    /* Hide scrollbar for IE, Edge, and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari, and Opera */
#tournamentBracket::-webkit-scrollbar {
    display: none;
}

.round {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.match {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.fighter {
    position: relative;
    text-align: center;
    margin-bottom: 5px;
}

.fighter img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.fighter span {
    display: block;
    font-size: 0.8em;
}

#mintHeroesButton {
    background-color: #4CAF50;
    font-size: 12px;
    padding: 10px 15px;
}

#mintHeroesTab {
    flex-direction: column; /* aligns children vertically */
    justify-content: center;
    align-items: center;
    height: auto;
    width: auto;
    margin: 5vh auto;
    padding: 10px 10px;
}

#mintButton {
    background-color: #4CAF50;
}

#myHeroesButton {
    margin: 10px auto;
}

#backButton {
    background-color: #f44336; /* Red BG */
}

#myHeroesTab {
    position: relative;
}

#myHeroesGrid {
    position: relative;
    max-height: 65vh;
    overflow-y: auto;

    /* Hide scrollbar for IE, Edge, and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari, and Opera */
#myHeroesGrid::-webkit-scrollbar {
    display: none;
}


.scrollFade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 69px;
    border-radius: 10px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Styles that are used to change things on the fly go here */

.show {
    display: block;
}

.showFlex {
    display: flex;
}

.showGrid {
    display: grid;
}

.hide {
    display: none;
}
