body {
  margin: 0;
}
* {
  box-sizing: border-box;
}
.collapse>input {
  display: none;
}
.collapse>input:checked+label .active {
  display: none;
}
.collapse>input:not(:checked)+label .not-active {
  display: none;
}
body:has(.collapse > input:checked) #rest {
  width: 2rem;
}
body:has(.collapse > input:checked) #rest .opis {
  display: none;
}
body:has(.collapse > input:checked) #rest .link {
  display: none;
}
body:has(.collapse > input:checked) #rest .collapse {
  padding: 1500% 25%;
}

#scene {
  display: inline-block;
  position: absolute;
  width: 100vw;
  height: 100vh;
  z-index:0;
}
#rest {
  height: 100vh;
  width: 10vw;
  z-index:1;
  background-color: #908070;
  opacity: 50%;
  position: relative;
  color: #FFEBCD;
  border-right: #908020;
  border-right-style: groove;
  transition: width 300ms;
}
#rest .opis {
  text-align: center;
}
h3 {
  font-size: 1.0vw;
}
h4 {
  font-size: 0.9vw;
}
#rest .link {
  display: block;
  width: 100%;
  overflow: auto;
  color: black;
  padding: 10px;
  box-sizing: border-box;
  position: absolute;
  bottom: 0px;
}
#rest .collapse {
  display: block;
  padding: 4.5vw;
}
label {
  object-fit: cover;
  cursor: pointer;
}
#container {
  display: flex;
  width: 100%;
}