@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap');

:root {
  --size1: 300px;
  --size2: 250px;
  --translateZ-size1: 150px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background-image: linear-gradient(to right, #99A3A3, #e9e9e9);
}

h1 {
  font-size: 28px;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.scene {
  width: var(--size1);
  height: var(--size1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  /* margin: 80px; */
  margin: 100px;
  perspective: 400px;
}

.cube {
  width: var(--size1);
  height: var(--size1);
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(-150px);
  transition: transform 1.5s;
}

.cube.show-front {
  transform: translateZ(-150px) rotateY(0deg);
}

.cube.show-right {
  transform: translateZ(-150px) rotateY(-90deg);
}

.cube.show-back {
  transform: translateZ(-150px) rotateY(-180deg);
}

.cube.show-left {
  transform: translateZ(-150px) rotateY(90deg);
}

.cube.show-top {
  transform: translateZ(-150px) rotateX(-90deg);
}

.cube.show-bottom {
  transform: translateZ(-150px) rotateX(90deg);
}

.cube__face {
  position: absolute;
  width: var(--size1);
  height: var(--size1);
  line-height: var(--size1);
  border: 1px solid #8e8e8e;
  font-size: 40px;
  color: #111;
  /* font-weight: bold; */
  text-align: center;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.2);
  background-color: rgb(255, 255, 255);
}

/* TO GO */
/*
.cube__face--front {
  background: hsla(0, 100%, 50%, 0.7);
  background: #ffffff33;

}

.cube__face--right {
  background: hsla(60, 100%, 50%, 0.7);
}


.cube__face--back {
  background: hsla(120, 100%, 50%, 0.7);
}

.cube__face--left {
  background: hsla(180, 100%, 50%, 0.7);
}

.cube__face--top {
  background: hsla(240, 100%, 50%, 0.7);
}

.cube__face--bottom {
  background: hsla(300, 100%, 50%, 0.7);
} */

.cube__face--front {
  transform: rotateY(0deg) translateZ(150px);
}

.cube__face--right {
  transform: rotateY(90deg) translateZ(150px);
}

.cube__face--back {
  transform: rotateY(180deg) translateZ(150px);
}

.cube__face--left {
  transform: rotateY(-90deg) translateZ(150px);
}

.cube__face--top {
  transform: rotateX(90deg) translateZ(150px);
}

.cube__face--bottom {
  transform: rotateX(-90deg) translateZ(150px);
}

/* Buttons */
input[type="radio"] {
  display: none;
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  background-color: rgba(255, 255, 255, 0.7);
  color: #999;
  border: 1px solid #999;
  letter-spacing: 1.3px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.btn:hover {
  color: #000;
  /* box-shadow: 0 0 0 1px #333, 0 0 0 2px #cce4d8; */
  /* box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4); */
}

.opacityContainer {
  padding-top: 26px;
}

.opacityText {
  color: #333;
  font-size: 14px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.toggleInput {
  display: flex;
  flex-direction: row;
  align-items: end;
  width: 276px;
  border: 1px solid #999;
  padding: 4px 0 8px 8px;
  margin-top: 2px;
}

#status {
  font-family: var(--fontFam);
  font-size: 14px;
  color: #666;
  letter-spacing: 1.2px;
  text-align: left;
  padding-left: 8px;
  margin: 4px;
}

.switch input {
  opacity: 0;
  width: 0px;
  height: 0px;
}

.slider2 {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  opacity: 0.7;
  -webkit-transition: 0.4s;
  transition: 0.4s ease-in-out;
}

.slider2:before {
  position: absolute;
  content: "";
  height: 8px;
  width: 8px;
  left: 8px;
  bottom: 6px;
  background-color: #333;
  -webkit-transition: 0.4s;
  transition: 0.4s ease-in-out;
}

.slider2:hover {
  background-color: rgba(255, 255, 255, 0.9);
  opacity: 1;
  transition: 0.4s ease-in-out;
}

input:checked+.slider2 {
  background-color: rgba(255, 255, 255, 0.7);
}

input:focus+.slider2 {
  transition: opacity 0.2s;
}

input:checked+.slider2:before {
  -webkit-transform: translateX(14px);
  -ms-transform: translateX(14px);
  transform: translateX(14px);
}

#copy {
  position: fixed;
  bottom: 0;
  text-align: center;
  background-color: transparent;
  color: #333;
  font-size: 13px;
  letter-spacing: 1.2px;
  padding-bottom: 12px;
}

#copy a {
  color: #666;
  text-decoration: underline;
  text-underline-offset: 5px;
}

#copy a:hover {
  color: var(--textColor);
}

@media only screen and (max-width: 565px) {

  .scene {
    margin: 40px;
  }
}

@media only screen and (max-width: 376px) {

  h1 {
    padding: 0;
    margin: 0;
  }

  #copy {
    line-height: 1.4;
  }

  .copy2 {
    display: block;
  }
}