.device {
  width: 95%;
  height: 32rem;
  background-image: url('../resources/images/тамагочиsmLR.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;

  display: flex;
  justify-content: center;
}

.screen-dark{
  background-image: url('../resources/images/тамагочиэкранdark.png') !important;
}

.screen{
  position: relative;
  font-size: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #CFEDF2;
  color: #CFEDF2;
  width: 12.5rem;
  line-height: normal;

  position: absolute;
  top: 11rem;
  left: 50%;
  transform: translateX(-50%);

  background-image: url('../resources/images/тамагочиэкран.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  box-shadow:
    inset 0 0 5px rgba(35, 35, 35, 0.5),
    inset 0 2px 5px rgba(35, 35, 35, 0.5),
    inset 0 -2px 6px rgba(59, 59, 59, 0.2);

  flex-direction: column;
  max-height: 11rem;
  overflow: hidden;
  min-height: 11rem;
  padding: 0.25rem;
}

#status_light{
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

#tamagotchi__name{
  background-color: rgb(0, 0, 0, 0.75);
  padding: 0.25rem;
  top: -0.25rem;

}

#status_mess{
  position: absolute;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  top: 7.25rem;
  left: 0;
  right: 0;
  padding: 1rem;
}

.screen_buttons{
  display: flex;
  justify-content: space-evenly;
}
.screen_buttons button{
  width: 2.5rem;
  height: 2.5rem;
  background-color: #E8F5F8;
  border-color: #CFEDF2;
}

.screen_buttons button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.buttons button{
  padding: 1.5rem;
}

.statuses{
  display: flex;
  justify-content: space-evenly;
}

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

.hidden{
  display: none !important;
}