/* ---------------------- VARIABLES --------------------- */
:root {
  --width-block-size: calc(100vw / 21);
  --heigh-block-size: calc(100vh / 15);
}

body {
  margin: 0;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  background-color: tomato;
}

section {
  display: flex;
}

/* -------------------- START SCREEN -------------------- */
.initial,
.won {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: bisque;
  padding: 1rem;
  border-radius: 8px;
}

.initial h1 {
  font-family: "Press Start 2P", cursive;
  font-size: 1rem;
  line-height: 1.5rem;
}

button {
  font-family: "Press Start 2P", cursive;
  padding: 10px;
}

/* ---------------------- MAP STYLE --------------------- */
.w,
.empty,
.start,
.end {
  width: var(--width-block-size);
  height: var(--heigh-block-size);
  display: grid;
  place-items: center;
}

div.w {
  background-image: url(img/wallBlock.jpg);
  background-size: cover;
}

div.empty,
div.start {
  background-image: url(img/grass.png);
  background-size: cover;
}
div.end {
  background-image: url(img/door.png);
  background-size: cover;
  border: 1px solid black;
  box-sizing: border-box;
}

#game {
  display: none;
  place-items: center;
}

/* ------------------ PLAYER CHAR STYLE ----------------- */
#jaum {
  width: calc(var(--width-block-size) / 1.1);
  height: calc(var(--heigh-block-size) / 1.1);
  background-color: bisque;
  border-radius: 50%;
}

.rotate {
  transform: rotate(359deg);
  transition: 1s;
}

.eyes {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 5px;
}

.eye {
  width: 40%;
  height: 40%;
  background-color: white;
  border-radius: 50%;
}

.pupil {
  width: 40%;
  height: 40%;
  background-color: black;
  border-radius: 50%;
  margin: 26% auto;
}

.mouth {
  width: 20%;
  height: 30%;
  border: 2px solid black;
  border-radius: 50%;
  margin: auto;
  position: relative;
  top: -57%;
}

/* ----------------------- EXTRAS: ---------------------- */
.hidde {
  display: none;
}
