* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --main: #0c1217;
}
body {
  background-color: var(--main);
  background-image: url('images/noise.svg');
  display: flex;
  justify-content: center;
}
.button {
  position: absolute;
  z-index: 5;
  width: 10vw;
  height: 4vw;
  top: calc(50% - 0vw);
  left: calc(50% - 5vw);
  border: 0.7vw solid #0f273e;
  background-color: #11354f;
  color: #eee;
  font-size: 1.2vw;
  cursor: pointer;
}
.house {
  width: 100%;
  max-width: 1440px;
  /* aspect-ratio: 2240 / 1440; */
  margin: 0 auto;
  display: flex;
  gap: 0.3%;
  background-color: var(--main);
  position: relative;
}
.house::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/noise.svg');
}
.column,
.balkon {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3%;
}
.block,
.balkon-block {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #11354f;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.block {
  border: 0.7vw solid #11354f;
}
.balkon-block {
  border: 2.8vw dashed #0f273e;
  border-left: 0.7vw solid #0f273e;
  border-right: 0.7vw solid #0f273e;
}
.window {
  width: 45%;
  height: 45%;
}
.balkon .window {
  height: 100%;
  width: 50%;
}
.frame,
.gir {
  width: 100%;
  height: 100%;
}
.window,
.el {
  position: absolute;
  z-index: 2;
}
.balkon .window {
  position: relative;
}
.el {
  width: 100%;
  height: 100%;
}
.el::after {
  content: '';
  width: 30%;
  height: 28%;
  background-image: url('images/condey/condey.svg');
  background-size: cover;
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
}
.el.even::after {
  width: 20%;
  height: 25%;
  background-image: url('images/condey/dish.svg');
}
canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.gir {
  background-image: url('images/gir.svg');
  background-size: cover;
  animation: girlanda 1s steps(1) infinite;
  position: relative;
  z-index: -1;
}
.frame {
  background-size: contain !important;
}
@keyframes girlanda {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (max-width: 768px) {
  .balkon,
  .column:nth-of-type(even) {
    display: none;
  }
  .house {
    max-width: 100%;
    aspect-ratio: auto;
    flex-wrap: wrap;
  }
  .column {
    flex: 1 1 20%;
  }
  .block {
    aspect-ratio: 1 / 1;
  }
  .button {
    top: 20%;
    left: calc(50% - 18vw);
    width: 36vw;
    height: 8vw;
    font-size: 6vw;
  }
}
