:root {
  --border: dotted 0.25rem rgba(128, 128, 128, 0.5);
  color-scheme: dark;
  --multiplier: 2;
  --font-multiplier: 0;
  --green: #8ac926;
  --red: #f94144;
  --orange: #f8961e;
  /* font-size: calc(--fontsize); */
}
* {
  box-sizing: border-box;
  font-family: "Nunito Sans", Helvetica, sans-serif;
}
body,
html {
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 12px;
  gap: 1em;
}
body {
  background-color: black;
  padding: 3em;
}
main {
  font-size: 12px;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background-color: #222;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 1em;
}
#mainBackground {
  content: "";
  position: absolute;
  width: calc(calc(100% / var(--multiplier)) + 1rem);
  height: calc(calc(100% / var(--multiplier)) + 1rem);
  border-radius: 0.75rem;
  background: repeating-linear-gradient(
    45deg,
    rgb(255, 175, 0) 0px,
    rgb(255, 175, 0) 0.9rem,
    rgb(20, 20, 20) 0.9rem,
    rgb(20, 20, 20) 1.8rem,
    rgb(255, 175, 0) 1.8rem
  );
  z-index: 0;
}
#limit {
  position: absolute;
  left: -900%;
  top: -900%;
  /* width: calc(calc(100% / var(--multiplier)) + 1rem); */
  /* height: calc(calc(100% / var(--multiplier)) + 1rem); */
  width: 1900%;
  height: 1900%;
  background-color: red;
}

.draggable {
  height: auto;
  width: 10%;
  border: var(--border);
  position: absolute;
  transform-origin: 50% 50%;
  overflow: auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  overflow: hidden;
  min-height: .5rem;
  min-width: .5rem;
  user-select: none;

  word-break: break-word;
  overflow-wrap: break-word;
  font-weight: 500;
  /* transition: top .01s linear, left .01s linear, width .01s linear, height .01s linear; */
  max-width: 400%;
  max-height: 400%;
}
.locked {
  pointer-events: none !important;
  background-color: rgba(131, 63, 63, 0.404);
}
#screen {
  border-radius: 0.25rem;
  position: relative;
  width: calc(100% / var(--multiplier));
  aspect-ratio: 16 / 9;
  background-color: rgb(128, 128, 128);
  z-index: 1;
}

img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  /* height: auto; */
}
#sidebar {
  font-size: 12px;
  width: 20em;
  max-height: 40em;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  padding: 1em;
  border-radius: 2em;
  background-color: rgb(63, 63, 63);
}
input {
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  padding: 0.75em 1em;
  border: none;
  border-radius: 0.75em;
  font-weight: 600;
  width: 100%;
}
button {
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  padding: 0.75em 1em;
  border: none;
  border-radius: 0.75em;
  font-weight: 600;
  width: fit-content;
  transition: background-color .15s ease-in-out;
}

#overflow {
  width: 100vw;
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status {
    position: fixed;
    width: .5rem;
    height: .5rem;
    top: .25rem;
    left: .25rem;
    border-radius: 1rem;
    transform: scale(1);
    z-index: 99999;
    transition: background-color .5s ease;
    /* animation: name duration timing-function delay iteration-count direction fill-mode; */
    
}
.hidden {
    display: none;
}
/* .out {

    animation: downOut 1s .7s cubic-bezier(.5,0,0,1) forwards, scaleOut 1.5s .25s cubic-bezier(.5,0,0,1) forwards;
}
.in {

    animation: downOut 1s .7s cubic-bezier(.5,0,0,1) forwards, scaleOut 1.5s .25s cubic-bezier(.5,0,0,1) forwards;
}

@keyframes downOut {
	to {
		top: 100%;
        
	}
}
@keyframes scaleOut {
	to {
		transform: scale(.5);
        border-radius: 48px;
        opacity: 0;
        display: none;
	}
} */