@font-face {
  font-family: "Coupon";
  font-style: normal;
  font-weight: 400;
  src: url("/font/Coupon-Regular.woff2");
}

html {
  overflow: hidden;
}

span {
  font-family: Coupon, sans-serif;
}

#canvas {
  position: relative;
}

#bg-container {
  position: absolute;
}

#bg-container > img {
  width: 101vw;
  height: 101vh;
  object-fit: cover;
}

#frame-container {
  position: absolute;
  top: 75px;
  left: 400px;
}

#frame {
  width: 267px;
  height: 269px;
}

#frame-art {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 130px;
  transform: translate(-50%, -50%);
  filter: grayscale(100%);
}

#shelf-back-container {
  position: absolute;
  right: 100px;
  bottom: -780px;
}

#shelf-right-container {
  position: absolute;
  right: -5px;
  bottom: -750px;
}

.bottle {
  position: absolute;
  transform-origin: center bottom;
  cursor: pointer;
}

.bottle:hover {
  transform: scale(1.1);
}

#bottle-default {
  top: 100px;
  right: 175px;
}

#bottle-newspaper {
  top: 75px;
  right: 75px;
}

.bartender {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: none;
}

#bartender-container.sleep .bartender.sleep {
  display: block;
}

#bartender-container.machugi .bartender.machugi {
  display: block;
}

#bartender-container.stickman .bartender.stickman {
  display: block;
}

#bartender-idle {
  width: 720px;
  height: 405px;
  bottom: -780px;
}

#bartender-sleep {
  width: 450px;
  height: 270px;
  bottom: -810px;
  z-index: 1;
}

#desk-front {
  position: absolute;
  right: 0;
  bottom: -1150px;
}

#desk-front-container {
  position: absolute;
  right: 0;
  bottom: -1150px;
}

#desk-back-container {
  position: relative;
  z-index: 0;
}

#desk-goods-container {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}

#desk-goods-check {
  position: absolute;
  width: 150px;
  height: 120px;
  left: 300px;
  top: -60px;
  transform-origin: center bottom;
  cursor: pointer;
  filter: grayscale(100%);
}

#desk-goods-check:hover {
  transform: scale(1.1);
  filter: none;
}

#desk-goods-machugi {
  position: absolute;
  width: 175px;
  height: 219px;
  left: 500px;
  top: -155px;
  transform-origin: center bottom;
  cursor: pointer;
  filter: grayscale(100%);
}

#desk-goods-machugi:hover {
  transform: scale(1.1);
  filter: none;
}

#desk-goods-stickman {
  position: absolute;
  width: 222px;
  height: 180px;
  right: 475px;
  top: -95px;
  transform-origin: center bottom;
  cursor: pointer;
  filter: grayscale(100%);
}

#desk-goods-stickman:hover {
  transform: scale(1.1);
  filter: none;
}

#tv-container {
  position: absolute;
  right: 50px;
  bottom: -785px;
  z-index: 2;
}

#tv-container img {
  pointer-events: none;
}

#tv-container iframe {
  position: absolute;
  left: 20px;
  top: 30px;
  z-index: -4;
}

#tv-flicker {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: black;
  opacity: 0;
  pointer-events: none;
}

.crt-effect {
  position: absolute;
  width: 160px;
  height: 120px;
  left: 20px;
  top: 30px;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

.crt-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(18, 16, 16, 0) 30%,
    rgba(0, 0, 0, 0.25) 30%
  );
  background-size: 100% 8px;
  z-index: -2;

  animation: scanline 8s infinite linear;
}

.crt-effect::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url("/img/noise.svg");
  animation: noise 0.2s infinite linear;
  z-index: -1;
}

@keyframes noise {
  0% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-5%, -5%);
  }
  20% {
    transform: translate(-10%, 5%);
  }
  30% {
    transform: translate(5%, -10%);
  }
  40% {
    transform: translate(-5%, 15%);
  }
  50% {
    transform: translate(-10%, 5%);
  }
  60% {
    transform: translate(15%, 0);
  }
  70% {
    transform: translate(0, 10%);
  }
  80% {
    transform: translate(-15%, 0);
  }
  90% {
    transform: translate(10%, 5%);
  }
  100% {
    transform: translate(5%, 0);
  }
}

@keyframes scanline {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 -100px;
  }
}

#ui-check-container {
  position: absolute;
  z-index: 999;
  left: 50%;
  bottom: -805px;
  transform: translateX(-50%);
  transition: bottom 0.3s ease;
}

#ui-check-container.active {
  bottom: -5px;
}

#ui-check-container > img {
  position: relative;
  width: 1200px;
  height: 800px;
}

#ui-check-content-container {
  position: absolute;
  top: 50px;
  left: 335px;
  width: 400px;
  height: 630px;
  transform: rotate(-4.5deg);
  /*background-color: rgba(255, 0, 0, 0.5);*/
}

#ui-check-content-date {
  position: absolute;
  top: 209px;
  left: 240px;
  font-size: 20px;
  color: #211906;
  filter: blur(0.5px);
}

.ui-check-content-item-list {
  position: absolute;
  top: 250px;
  left: 50px;
  width: 300px;
  height: 200px;
  display: flex;
  flex-direction: column;
}

.ui-check-content-item {
  position: relative;
  width: 300px;
  height: 65px;
  margin-bottom: 10px;
}

.ui-check-content-item-icon {
  position: absolute;
  top: 0;
  left: 10px;
  width: 60px;
  height: 60px;
  object-fit: contain;
  opacity: 0.8;
  filter: blur(0.5px);
}

.ui-check-content-item-text {
  position: absolute;
  top: 12px;
  left: 90px;
  width: 200px;
  height: 40px;
  font-size: 40px;
  text-align: left;
  vertical-align: middle;
  color: #211906;
  filter: blur(0.5px);
}

#ui-check-content-total {
  position: absolute;
  bottom: 35px;
  right: 45px;
  font-size: 44px;
  font-weight: bolder;
  color: #211906;
  filter: blur(0.5px);

}

.shake {
  transition: transform 0.066s ease-in-out;
}

.hidden {
  display: none;
}

#flicker-container {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0;
  pointer-events: none;
}

.overlay {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 100;
  border-radius: 50%;
  transition: width 2s ease-in, height 2s ease-in;
  mix-blend-mode: multiply;
  pointer-events: none;
  transform: translate(50%, -50%);
  filter: blur(10vw);
}

.overlay-active {
  width: 250vw;
  height: 250vw;
}

#overlay-newspaper {
  top: 325px;
  right: 115px;
  background-color: rgba(148, 133, 103, 0.33);
}
