.box {
  position: absolute;
  user-select: none;
}

.box button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
}

.box button:focus {
  outline: none;
}

.box button:focus-visible {
  outline: 4px solid yellow;
}

.box.open button:focus-visible {
  outline: none;
}

.box-border,
.box-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.box-border {
  border-right: 2px solid rgba(0, 0, 0, 0.4);
  border-bottom: 2px solid rgba(0, 0, 0, 0.4);
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  border-left: 2px solid rgba(255, 255, 255, 0.5);
}

.box-image {
  display: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  box-shadow: 1px 1px 5px #555 inset;
}

.box.open .box-image {
  display: block;
}

.box.open .box-border,
.box.open .box-number {
  display: none;
}

.box-number {
  position: absolute;
  top: 4%;
  left: 4%;
  padding-inline: 10px;
  padding-inline: ~"max(3px, 0.8cqi)";
  border-radius: 3px;
  background-color: #95211b;
  font-family: "myriad-pro", sans-serif;
  font-weight: 500;
  font-size: 34px;
  font-size: ~"max(12px, 2.8cqi)";
  color: #fff;
}

.place-top-right {
  left: unset;
  right: 4%;
}

.place-top-center {
  left: 50%;
  transform: translateX(-50%);
}

.place-bottom-left {
  top: unset;
  bottom: 4%;
}

.place-bottom-right {
  top: unset;
  left: unset;
  right: 4%;
  bottom: 4%;
}

.place-bottom-center {
  top: unset;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
}

// Keep in sync with the sound per day in src/sounds.ts
.box.box_1 {
  left: 37.16%;
  top: 34.42%;
  width: 15.03%;
  aspect-ratio: 144 / 100;
}
.box.box_1 .box-image {
  background-image: url(../img/tecken/ljusstake.png);
}

.box.box_2 {
  left: 3.34%;
  top: 82.2%;
  width: 12%;
  aspect-ratio: 115 / 111;
}
.box.box_2 .box-image {
  background-image: url(../img/tecken/godis.png);
}

.box.box_3 {
  left: 72.23%;
  top: 16.47%;
  width: 14.09%;
  aspect-ratio: 135 / 76;
}
.box.box_3 .box-image {
  background-image: url(../img/tecken/ren.png);
}

.box.box_4 {
  left: 1.25%;
  top: 1.04%;
  width: 11.8%;
  aspect-ratio: 113 / 117;
}
.box.box_4 .box-image {
  background-image: url(../img/tecken/bjallra.png);
}

.box.box_5 {
  left: 36.85%;
  top: 75.96%;
  width: 13.67%;
  aspect-ratio: 131 / 136;
}
.box.box_5 .box-image {
  background-image: url(../img/tecken/bestick.png);
}

.box.box_6 {
  left: 75.37%;
  top: 33.83%;
  width: 10.86%;
  aspect-ratio: 104 / 105;
}
.box.box_6 .box-image {
  background-image: url(../img/tecken/kalke.png);
}

.box.box_7 {
  left: 43.22%;
  top: 13.8%;
  width: 11.69%;
  aspect-ratio: 112 / 114;
}
.box.box_7 .box-image {
  background-image: url(../img/tecken/skidakare.png);
}

.box.box_8 {
  left: 86.85%;
  top: 70.77%;
  width: 10.75%;
  aspect-ratio: 103 / 125;
}
.box.box_8 .box-image {
  background-image: url(../img/tecken/ljus.png);
}

.box.box_9 {
  left: 30.06%;
  top: 16.17%;
  width: 12.11%;
  aspect-ratio: 116 / 111;
}
.box.box_9 .box-image {
  background-image: url(../img/tecken/skridsko.png);
}

.box.box_10 {
  left: 69.31%;
  top: 59.94%;
  width: 12.84%;
  aspect-ratio: 123 / 133;
}
.box.box_10 .box-image {
  background-image: url(../img/tecken/get.png);
}

.box.box_11 {
  left: 18.16%;
  top: 21.81%;
  width: 10.65%;
  aspect-ratio: 102 / 102;
}
.box.box_11 .box-image {
  background-image: url(../img/tecken/almanacka.png);
}

.box.box_12 {
  left: 0.31%;
  top: 63.65%;
  width: 14.3%;
  aspect-ratio: 137 / 112;
}
.box.box_12 .box-image {
  background-image: url(../img/tecken/lussekatt.png);
}

.box.box_13 {
  left: 0.52%;
  top: 45.1%;
  width: 13.99%;
  aspect-ratio: 134 / 113;
}
.box.box_13 .box-image {
  background-image: url(../img/tecken/stjarngosse.png);
}

.box.box_14 {
  left: 56.78%;
  top: 35.46%;
  width: 13.15%;
  aspect-ratio: 126 / 124;
}
.box.box_14 .box-image {
  background-image: url(../img/tecken/kamin.png);
}

.box.box_15 {
  left: 87.27%;
  top: 21.36%;
  width: 11.9%;
  aspect-ratio: 114 / 103;
}
.box.box_15 .box-image {
  background-image: url(../img/tecken/hjarta.png);
}

.box.box_16 {
  left: 56.16%;
  top: 6.23%;
  width: 15.03%;
  aspect-ratio: 144 / 126;
}
.box.box_16 .box-image {
  background-image: url(../img/tecken/tavla.png);
}

.box.box_17 {
  left: 15.97%;
  top: 56.68%;
  width: 17.22%;
  aspect-ratio: 165 / 121;
}
.box.box_17 .box-image {
  background-image: url(../img/tecken/julskinka.png);
}

.box.box_18 {
  left: 34.34%;
  top: 50.74%;
  width: 11.27%;
  aspect-ratio: 108 / 115;
}
.box.box_18 .box-image {
  background-image: url(../img/tecken/krukvaxt.png);
}

.box.box_19 {
  left: 83.09%;
  top: 52.37%;
  width: 16.08%;
  aspect-ratio: 154 / 101;
}
.box.box_19 .box-image {
  background-image: url(../img/tecken/julkula.png);
}

.box.box_20 {
  left: 17.64%;
  top: 38.72%;
  width: 11.59%;
  aspect-ratio: 111 / 108;
}
.box.box_20 .box-image {
  background-image: url(../img/tecken/radio.png);
}

.box.box_21 {
  left: 21.92%;
  top: 77.3%;
  width: 11.69%;
  aspect-ratio: 112 / 140;
}
.box.box_21 .box-image {
  background-image: url(../img/tecken/grot.png);
}

.box.box_22 {
  left: 52.92%;
  top: 78.34%;
  width: 15.34%;
  aspect-ratio: 147 / 122;
}
.box.box_22 .box-image {
  background-image: url(../img/tecken/sack.png);
}

.box.box_23 {
  left: 49.37%;
  top: 55.49%;
  width: 17.64%;
  aspect-ratio: 169 / 120;
}
.box.box_23 .box-image {
  background-image: url(../img/tecken/paket.png);
}

.box.box_24 {
  left: 0.84%;
  top: 22.7%;
  width: 14.72%;
  aspect-ratio: 141 / 109;
}
.box.box_24 .box-image {
  background-image: url(../img/tecken/tomte.png);
}
