/**
 * index.scss
 * - Add any styles you want here!
 */
:root {
  --bg-color: #3d2924;
  --green: #032E2D;
  --brown: #433C2F;
  --kurt: #b48e34;
  --lilu: #b6501e;
  --dylan: #403986;
  --arabella: #9a4685;
  --prota: #905bb2;
}

body {
  margin: 0;
  background-color: var(--green);
  display: flex;
  align-content: center;
  justify-content: center;
  justify-items: center;
  align-items: center;
  min-height: 100vh;
  color: #fff;
  image-rendering: pixelated;
}

* {
  background-repeat: no-repeat;
}

.app {
  background-color: var(--green);
  width: 1027px;
  height: 544px;
  position: relative;
}

.scene {
  width: 358px;
  height: 428px;
  background-image: url("../assets/fondo_3-4_big.gif");
  position: absolute;
  top: 10px;
  left: 10px;
}

.scene .hour {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.fire {
  width: 38px;
  height: 64px;
  background-image: url("../assets/fire_4_big.gif");
  position: absolute;
  top: 200px;
  left: 160px;
}

.fire.intensity-0 {
  background-image: url("../assets/fire_0_big.gif");
}

.fire.intensity-1 {
  background-image: url("../assets/fire_1_big.gif");
}

.character.arabella {
  width: 38px;
  height: 64px;
  background-image: url("../assets/animacion_arabella-big.gif");
  position: absolute;
  top: 230px;
  left: 113px;
  z-index: 1;
}

.character.dylan {
  width: 38px;
  height: 64px;
  background-image: url("../assets/animacion_dylan-big.gif");
  position: absolute;
  top: 250px;
  left: 190px;
  z-index: 2;
}

.character.prota {
  width: 38px;
  height: 64px;
  background-image: url("../assets/animacion_prota-big.gif");
  position: absolute;
  top: 185px;
  left: 210px;
}

.character.kurt {
  width: 32px;
  height: 58px;
  background-image: url("../assets/animacion_kurt-big.gif");
  position: absolute;
  top: 205px;
  left: 123px;
}

.character.lilu {
  width: 32px;
  height: 54px;
  background-image: url("../assets/animacion_lilu-big.gif");
  position: absolute;
  top: 236px;
  left: 216px;
  z-index: 1;
}

.stats {
  position: absolute;
  top: 450px;
  left: 10px;
  width: 358px;
  display: grid;
  align-items: center;
  grid-template-columns: auto auto;
}

.stat {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  align-content: center;
}

.stats .label {
  font-size: 24px;
}

.stat .bar {
  width: 156px;
  height: 22px;
  background-image: url("../assets/barra_empty.png");
  top: 0px;
  left: 0px;
}

.hungry .bar.progress-1 {
  background-image: url("../assets/barra_hungry_1.png");
}

.hungry .bar.progress-2 {
  background-image: url("../assets/barra_hungry_2.png");
}

.hungry .bar.progress-3 {
  background-image: url("../assets/barra_hungry_3.png");
}

.hungry .bar.progress-4 {
  background-image: url("../assets/barra_hungry_4.png");
}

.light .bar.progress-1 {
  background-image: url("../assets/barra_light_1.png");
}

.light .bar.progress-2 {
  background-image: url("../assets/barra_light_2.png");
}

.light .bar.progress-3 {
  background-image: url("../assets/barra_light_3.png");
}

.light .bar.progress-4 {
  background-image: url("../assets/barra_light_4.png");
}

.bag {
  width: 76px;
  height: 92px;
  background-image: url("../assets/icon_bolsa.png");
  justify-self: flex-end;
  position: relative;
}

.bag .quantity {
  position: absolute;
  top: 3px;
  right: 4px;
}

.textbox {
  width: 640px;
  min-height: 500px;
  position: absolute;
  left: 380px;
  top: 20px;
  background-image: url("../assets/cajatexto_tile.png");
  background-repeat: repeat-y;
  background-size: contain;
  display: flex;
  align-content: center;
  justify-content: center;
  justify-items: center;
  align-items: center;
}

.text-container {
  width: 90%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-flow: column;
  justify-content: center;
  justify-items: center;
  align-items: center;
  align-content: center;
}

.textbox:before {
  content: '';
  position: absolute;
  top: -10px;
  width: 100%;
  height: 17px;
  display: block;
  background-image: url("../assets/cajatexto_partesuperior.png");
  background-repeat: no-repeat;
}

.textbox:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 17px;
  display: block;
  background-image: url("../assets/cajatexto_parteinferior.png");
  background-repeat: no-repeat;
}

.dialog {
  border-radius: 5px;
  padding: 10px 15px;
  min-height: 34px;
  padding-left: 65px;
  background-position: 15px 50%;
  display: flex;
  flex-flow: column;
  justify-content: center;
  justify-items: center;
  align-items: center;
  align-content: center;
}

.dialog.kurt {
  border-radius: 5px;
  background-color: var(--kurt);
  background-image: url("../assets/icon_kurt.png");
}

.dialog.dylan {
  border-radius: 5px;
  background-color: var(--dylan);
  background-image: url("../assets/icon_dylan.png");
}

.dialog.arabella {
  border-radius: 5px;
  background-color: var(--arabella);
  background-image: url("../assets/icon_arabella.png");
}

.dialog.prota {
  border-radius: 5px;
  background-color: var(--prota);
  background-image: url("../assets/icon_maincharacter.png");
}

.dialog.lilu {
  border-radius: 5px;
  background-color: var(--lilu);
  background-image: url("../assets/icon_lilu.png");
}
