/* Web port override: make the app fill the browser viewport without letterbox bars. */

:root {
  --max-app-width: 100vw !important;
  --max-app-height: 100vh !important;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.centermax {
  max-width: none !important;
  max-height: none !important;
  width: 100% !important;
  height: 100% !important;
}

#home {
  background-size: cover !important;
  background-position: center center !important;
}

#page-splash {
  background-size: cover !important;
  background-position: center center !important;
}

#app-incredibox,
#content,
#game {
  width: 100% !important;
  height: 100% !important;
}

/* Floating fullscreen toggle for browser play */
#web-fs-btn {
  position: fixed;
  top: 10px;
  right: 110px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 9999999;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
}
#web-fs-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

/* The mod marks available versions as .open with pointer-events:none.
   In a browser we need them clickable. */
#sp-select .vicon.open,
#sp-select .vicon.locked {
  pointer-events: auto !important;
  cursor: pointer;
}
