* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #000;
  height: 100vh;
}

.calcada {
  display: flex;
  flex: 1;
  justify-content: space-around;
  align-items: flex-end;
}

.controles {
  height: 100px;
  background-color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 10px;
  margin-bottom: 10px;
}

.controles .mostrador {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #22f522;
  border: 10px solid #666;
  width: 200px;
  height: 100%;
  border-radius: 8px;
  font-size: 2.5rem;
  font-family: "VT323", monospace;
}

.controles button {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-size: 2rem;
  border: 6px solid #999;
}

.controles button.destaque {
  border-color: #ffff00;
}

.rua {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 100px;
  background-color: #777;
  border-top: 10px solid #fff;
}

.rua > .faixa {
  flex: 1;
  height: 10px;
  background-color: #ddd;
}

.arvore {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arvore::before {
  content: "";
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: #008000;
}

.arvore::after {
  content: "";
  width: 20px;
  height: 100px;
  background-color: #4d3131;
}

.predio {
  display: flex;
  width: 500px;
  height: 100%;
  background-color: #319da0;
  gap: 10px;
}

.coluna {
  display: flex;
  flex-direction: column;
  background-color: #0006;
  flex: 2;
}

.andar {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex: 1;
  border-bottom: 2px solid #fff;
}

.porta {
  width: 40%;
  height: 80%;
  background-color: #a52a2a;
  border: 5px solid #fff6;
  border-bottom-width: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 5%;
}

.porta::after {
  content: "";
  width: 30%;
  height: 15%;
  border-radius: 5px;
  background-color: #fff9;
}

.terreo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.janela {
  background-color: #068888;
  border: 5px solid #fffc;
  height: 50%;
  width: 40%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.janela::after {
  content: "";
  position: absolute;
  border: 1px solid #fffc;
  top: 0;
  height: 100%;
  width: 1px;
}

.janela::before {
  content: "";
  position: absolute;
  border: 1px solid #fffc;
  left: 0;
  width: 100%;
  height: 1px;
}

.poco {
  display: flex;
  justify-content: center;
  background-color: #fff9;
  flex: 1;
  position: relative;
}

.elevador {
  border: 3px solid #000;
  border-top-width: 10px;
  background-color: #fffa;
  width: 80%;
  height: 100px;
  position: absolute;
  bottom: 0;
}

@media (max-width: 767px) {
  .controles {
    flex-direction: column;
  }
  
  .arvore {
    display: none;
  }
}

@media (max-width: 850px) {
  .controles .mostrador {
    border: 5px solid #666;
    width: 100px;
    height: auto;
    font-size: 1.5rem;
  }

  .botoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .controles button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1rem;
    border-width: 3px;
  }

  .rua {
    gap: 15px;
  }

  .arvore::before {
    width: 75px;
    height: 75px;
  }

  .arvore::after {
    width: 10px;
    height: 100px;
  }

  .calcada {
    gap: 10px;
  }

  .predio {
    width: 250px;
    height: 100%;
  }
}