html {
  background: #f59e33;
}

.container-wrapper{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

@media only screen and (orientation: landscape) {
  .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    width: calc(100% / 12.05);
    height: calc(100% / 12.05);
    margin: 10px;
  }
}

@media only screen and (orientation: portrait) {
  .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    width: calc(100% / 6.05);
    margin: 10px;
  }
}

@media screen and (max-width: 700px) {
  .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    width: calc(100% / 6.05);
    height: calc(100% / 6.05);
    margin: 10px; /* Add margin between containers*/
  }
}

.container > .door {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 100%;
  /* background-color: #59130c; */
  border-radius: 2%;
  text-align: center;
  cursor: pointer;
  transition: transform 0.5s ease-in-out;
  transform-origin: left center;
  z-index: 2; /* Set doors in front */
}

.container > .door  > img {
  max-width: 100%;
  max-height: 100%;
  border: 1px solid #59130c;
  border-radius: 2%;
}

.hidden {
  visibility: hidden;
}

.doorContents {
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 100%;
  height: 100%;
  /* background-color: #59130c; */
  /* border: 1px solid #59130c; */
  /* border-radius: 2%; */
  text-align: center;
  visibility: hidden;
  z-index: 1; /* Set contents behind */
  box-sizing: border-box;
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-container > img {
  position: relative;
  top: 5%;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid #59130c;
  border-radius: 2%;
}

.image-container > .confirm {
  position: absolute;
  bottom: 0vh;
  left: 50%;
  right: -35%;
  transform: translateX(-50%);
  background-color: #c8411b;
  color: #ffffff;
  display: inline-block;
  text-decoration: none;
  padding: 4px 12px;
  text-align: center;
  transition: all 200ms linear;
  font-weight: 500;
  font-size: 0.8rem;
  font-family: "Lato", Arial, sans-serif;
  border: none;
  border-radius: 15px;
}

.image-container > .confirm:not(.confirmed):hover, .confirm:not(.confirmed):focus, .confirm:not(.confirmed):active {
  background-color: #f59e33
}

.confirmed {
  position: absolute;
  bottom: 0vh;
  left: 50%;
  right: -35%;
  transform: translateX(-50%);
  background-color: #c8411b;
  color: #ffffff;
  display: inline-block;
  text-decoration: none;
  padding: 8px 12px;
  text-align: center;
  transition: all 200ms linear;
  font-weight: 500;
  font-size: 0.7rem;
  font-family: "Lato", Arial, sans-serif;
  border: none;
  border-radius: 5%;
}