body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    overscroll-behavior: none;
    margin: 0; /* Remove default margin */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

html, body {
    overscroll-behavior-x: none; /* Prevent mobile swipe gestures */
}

body::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

#app {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#gameStage {
    width: 100%;
    height: 100%;
}

#gameStage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Change justify-content to flex-start */
    width: 100%;
    height: 100%;
}

#gameWindow {
    flex-grow: 1; /* Allow the game window to grow and take up remaining space */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: top;
    width: 100%;
    height: 100%;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

#gameToolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 10%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    padding: 0;
}

#gameToolbar button {
    margin: 4px 6px;
    min-width: 60px;
}

#numberDisplay {
    margin: 20px;
    font-size: 2em;
    font-weight: bold;
}

button {
    padding: 15px 30px;
    font-size: 1em;
    cursor: pointer;
    margin: 10px;
    border: none;
    background-color: #007bff;
    color: white; /* Text color for buttons */
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* subtle shadow for depth */
    transition: background-color 0.3s; /* Smooth background color transition */
}

button:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

button:focus {
    outline: none;
}

#gameToolbar button {
    font-size: 0.8em;
    padding: 10px 5px;
}

#logoimage {
    width: 256px;
    height: auto;
}

input[type=range] {
    width: 40%;
    margin: 10px 0;
}

input[type="text"] {
    width: 120px;
    padding: 4px 6px;
    margin: 0 0 0 4px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px; /* Add rounded corners */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Add a subtle shadow */
    transition: border-color 0.3s, box-shadow 0.3s; /* Smooth transition for border and shadow */
}

input[type="text"]:focus {
    outline: none; /* Remove focus outline */
    border-color: #007bff; /* Change border color on focus */
    box-shadow: 0 2px 4px rgba(0,0,0,0.4); /* Increase shadow on focus */
}

input[type="checkbox"] {
    appearance: none; /* Remove default checkbox appearance */
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s; /* Smooth transition for background and border color */
    vertical-align: middle;
}

input[type="checkbox"]:checked {
    background-color: #007bff;
    border-color: #007bff;
}

input[type="checkbox"]:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3); /* Add better focus outline */
}

 select {
    padding: 2px 5px;
    width: 150px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
    transition: border-color 0.3s;
}

 select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}


label {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    color: #f1f1f1;
}

svg {
    vertical-align: middle;
}

#gameSeedText {
    width: 75px;
}

#lastSeedButton, #randomSeedButton {
    margin: 0px;
    padding: 6px;
    height: 30px;
    vertical-align: middle;
}

.mapButton {
    margin: 0px;
    padding: 5px;
    vertical-align: middle;
    line-height: 0;
    min-height: 32px;
}

.mapButton img {
    width: 24px;
    height: 22px;
}

#mainMenu {
    background-color: #202020;
    border: 1px solid #007bff;
}

#subMenus {
    align-items: top;
    padding: 20px 10px;
}

#startMenu p {
    visibility: collapse;
    margin: 0;
}

@media (min-width: 750px) {
    #subMenus {
        display: flex;
        flex-direction: row;
        justify-content: space-between; /* Distribute items evenly along the main axis */
    }
    #startMenu {
        margin-right: 40px;
    }
    #startMenu p {
        visibility: visible;
        margin: 1em 0;
    }
}

#gameOptions {
    text-align: left;
    padding-top: 10px;
}

#gameOptions label, 
#gameOptions input:not([type="checkbox"]) {
    margin: 10px 0;
}

#gameOptions span, #startMenu p {
    color: #f1f1f1;
}

#backgroundimage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

#slideshow {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

@keyframes slideshow {
    0% {
        transform: translateX(0);
    }
    2% {
        transform: translateX(0);
    }
    96% {
        transform: translateX(-820%);
    }
    100% {
        transform: translateX(-820%);
    }
}

#slideshow img {
    flex: 0 0 auto; /* prevents images from stretching */
    width: 60%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) sepia(70%) contrast(1.2) brightness(0.9);
    animation: slideshow 40s linear infinite;
}

@media (min-width: 1400px) {
    #slideshow img {
        margin: 0 -10px; /* Add negative margin to overlap at the edges */
    }
}

#loreBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

#gameOverText {
    text-align: center;
    font-size: 3em;
    font-weight: bold;
    color: white;
    text-shadow:
        -1px -1px 0 #0f0f0f,
         1px -1px 0 #0f0f0f,
        -1px  1px 0 #0f0f0f,
         1px  1px 0 #0f0f0f; /* Simulate stroke effect */
    z-index: 1;
}

#streamsContainer {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

#streamsContainer video {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
    height: 1px;
    z-index: -100;
}

#debugDisplay {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 1em;
    font-weight: bold;
    color: black;
    z-index: 100;
}

#gameGifImage {
    width: 96%;
    height: auto;
}
