html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  overflow-y: hidden;
}

/* Import Source Code Pro font (similar to Source Code Variable) */
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap');

/* Hide the title */
h1 {
  display: none;
}

/* Center the controls container */
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Neumorphic button styling */
.enter-uitopia-btn {
  font-family: inherit;
  border: none;
  outline: 1px dotted rgb(37, 37, 37);
  outline-offset: -4px;
  background: hsl(0deg 0% 75%);
  box-shadow: inset -1px -1px #292929, inset 1px 1px #fff, inset -2px -2px rgb(158, 158, 158), inset 2px 2px #ffffff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 5px 30px;
  cursor: pointer;
}

.enter-uitopia-btn:active {
  box-shadow: inset -1px -1px #fff, inset 1px 1px #292929, inset -2px -2px #ffffff, inset 2px 2px rgb(158, 158, 158);
}

/* Canvas container */
#canvasContainer {
  text-align: center;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Canvas styling */
#imageCanvas {
  display: block;
  margin-bottom: 20px;
  max-width: 100%;
  max-height: calc(100vh - 100px); /* Reserve space for button and margins */
}

/* Reload button */
#reloadBtn {
  font-family: 'Source Code Pro', monospace;
  font-weight: 400;
  background: none;
  border: 1px solid #555555;
  border-radius: 16px;
  font-size: 16px;
  cursor: pointer;
  padding: 10px;
  margin-top: 10px;
  flex-shrink: 0; /* Prevent button from shrinking */
  margin-top: 20px;
  padding: 12px 24px;
  font-size: max(16px, calc(14px + 0.4vw)); /* Responsive but never below 16px */
  font-family: "Source Sans Pro", "Arial", sans-serif; /* Same font as description */
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #555555;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

/* Portrait mobile optimization */
@media screen and (orientation: portrait) and (max-width: 768px) {
    #reloadBtn {
        font-size: max(16px, calc(16px * (100vw / 375px))); /* Scale based on device width */
        padding: 10px 20px;
    }
}

/* Large screens */
@media screen and (min-width: 1200px) {
    #reloadBtn {
        font-size: max(18px, calc(16px + 0.6vw));
        max-font-size: 24px;
    }
}

#reloadBtn:hover {
    background-color: #e0e0e0;
    transform: translateY(-1px);
}

#reloadBtn:active {
    transform: translateY(0);
    background-color: #d0d0d0;
}

canvas {
  display: block;
  max-width: 100vw;
  max-height: 100vh;
}

body {
    font-family: "Source Sans Pro", "Arial", sans-serif;
}


