/* https://fonts.google.com */
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300:400,600&display=swap");

* {
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;

  background-color: #f5f6fa;
  padding: 10px 10px; /*TopBottom , LeftRight*/
  columns: #020202;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

button {
  border: 5px solid #9c0058;
  font-size: 30px;
  font-weight: 600;
  border-radius: 10px;
  background-color: #d31145;
  color: #ffffff;
}
button:hover {
  background-color: #9c0058;
}
button:focus {
  outline: none;
}

.modal-body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 30px;
  font-weight: 400;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  margin: 10px 5px;
  color: black;
}

#stage {
  padding: 0 auto;
  width: 1400px;
  padding: 0 0 100px;
}

.stage__left {
  margin: 20px 10px;
  padding: 20px 30px;
  box-sizing: border-box;
  width: 500px;
  height: 90vh;
  display: flex;
  align-items: flex-start;
}

.stage__right {
  margin: 20px 10px;
  padding: 20px 30px;
  box-sizing: border-box;
  width: 500px;
  height: 90vh;
  display: flex;
  align-items: flex-end;
}

.stage__right textarea {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  font-size: 20px;
  font-weight: 600;
  border: 5px solid #7f8fa6;
  padding: 10px 10px;
}

.stage__right textarea:focus {
  outline: none;
}

.ghost {
  display: none;
}

.perspective-on {
  -webkit-perspective: 1000px;
  -moz-perspective: 1000px;
  perspective: 1000px; /* Setting the perspective of the contents of the stage but not the stage itself*/
}
.perspective-off {
  -webkit-perspective: 0;
  -moz-perspective: 0;
  perspective: 0;
}

#rotate {
  margin: 0 auto 0;
  width: 900px;
  height: 220px;
  padding-top: 200px;
  /* Ensure that we're in 3D space */
  transform-style: preserve-3d;
}

.rotate__bottom {
  padding-top: 250px;
}

.ring {
  margin: 0 auto;
  height: 80px;
  width: 180px;
  float: left;
  transform-style: preserve-3d;
}
.slot {
  position: absolute;
  width: 180px;
  height: 80px;
  box-sizing: border-box;
  opacity: 0.9;
  color: #2f3640;
  background: #fff;
  border: solid 2px #d31145;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
}

.ring-red div {
  border: 3px solid #e84118;
  transition: background-color 6s, border 4s;
}

.bg-red {
  background-color: #c23616;
  transition: background-color 4s;
  color: #f5f6fa;
}

.backface-on {
  -webkit-backface-visibility: visible;
  -moz-backface-visibility: visible;
  backface-visibility: visible;
}

.slot p {
  font-size: 20px;
  font-weight: bold;
  line-height: 80px;
  margin: 0;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.go {
  display: block;
  margin: 0 auto 20px;
  padding: 10px 30px;
  font-size: 28px;
  cursor: pointer;
}
label {
  cursor: pointer;
  display: inline-block;
  width: 45%;
  text-align: center;
}
.tilted {
  transform: rotateY(45deg);
}
/*=====*/
.spin-0 {
  transform: rotateX(-3719deg);
}
.spin-1 {
  transform: rotateX(-3749deg);
}
.spin-2 {
  transform: rotateX(-3779deg);
}
.spin-3 {
  transform: rotateX(-3809deg);
}
.spin-4 {
  transform: rotateX(-3839deg);
}
.spin-5 {
  transform: rotateX(-3869deg);
}
.spin-6 {
  transform: rotateX(-3899deg);
}
.spin-7 {
  transform: rotateX(-3929deg);
}
.spin-8 {
  transform: rotateX(-3959deg);
}
.spin-9 {
  transform: rotateX(-3989deg);
}
.spin-10 {
  transform: rotateX(-4019deg);
}
.spin-11 {
  transform: rotateX(-4049deg);
}
/*=====*/
@keyframes back-spin {
  /*0%    { transform: rotateX(0deg); }*/
  100% {
    transform: rotateX(30deg);
  }
}
@keyframes tiltin {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(45deg);
  }
}
@keyframes tiltout {
  0% {
    transform: rotateY(45deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes spin-0 {
  0% {
    transform: rotateX(30deg);
  }
  100% {
    transform: rotateX(-3719deg);
  }
}
@keyframes spin-1 {
  0% {
    transform: rotateX(30deg);
  }
  100% {
    transform: rotateX(-3749deg);
  }
}
@keyframes spin-2 {
  0% {
    transform: rotateX(30deg);
  }
  100% {
    transform: rotateX(-3779deg);
  }
}
@keyframes spin-3 {
  0% {
    transform: rotateX(30deg);
  }
  100% {
    transform: rotateX(-3809deg);
  }
}
@keyframes spin-4 {
  0% {
    transform: rotateX(30deg);
  }
  100% {
    transform: rotateX(-3839deg);
  }
}
@keyframes spin-5 {
  0% {
    transform: rotateX(30deg);
  }
  100% {
    transform: rotateX(-3869deg);
  }
}
@keyframes spin-6 {
  0% {
    transform: rotateX(30deg);
  }
  100% {
    transform: rotateX(-3899deg);
  }
}
@keyframes spin-7 {
  0% {
    transform: rotateX(30deg);
  }
  100% {
    transform: rotateX(-3929deg);
  }
}
@keyframes spin-8 {
  0% {
    transform: rotateX(30deg);
  }
  100% {
    transform: rotateX(-3959deg);
  }
}
@keyframes spin-9 {
  0% {
    transform: rotateX(30deg);
  }
  100% {
    transform: rotateX(-3989deg);
  }
}
@keyframes spin-10 {
  0% {
    transform: rotateX(30deg);
  }
  100% {
    transform: rotateX(-4019deg);
  }
}
@keyframes spin-11 {
  0% {
    transform: rotateX(30deg);
  }
  100% {
    transform: rotateX(-4049deg);
  }
}

/* CHAT Area */
.chat__write-container {
  position: fixed;
  margin: 0 auto;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  /*box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25),
    0 18px 36px -18px rgba(0, 0, 0, 0.3), 0 -12px 36px -8px rgba(0, 0, 0, 0.025);*/
}
.chat__write {
  font-size: 20px;
  font-weight: 600;
  margin: 0 auto;
  bottom: 0px;
  width: 100%;
  /* border: 5px solid #40739e; */
  border-radius: 0;
  padding: 20px 60px;
  width: 100%;
  border: none;
  transition: width 0.5s ease-in, border-radious 0.5s ease-in,
    transform 0.5s ease-in;
}

.chat__write:focus {
  outline: none;
  width: 80%;
  margin: 0 auto;
  transform: translateY(-100px);
  border-radius: 40px;
  box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25),
    0 18px 36px -18px rgba(0, 0, 0, 0.3), 0 -12px 36px -8px rgba(0, 0, 0, 0.025);
}
.chat__write-column {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat__write-column:nth-child(2) {
  width: 80%;
}

.chat__write i {
  font-size: 22px;
  padding: 0px 5px;
}
.chat__icon {
  font-size: 30px;
  transition: opacity 0.3s ease-in-out;
}

.clear-text {
  cursor: pointer;
  color: black;
}

.chat__icon-left {
  position: absolute;
  left: 10px;
}

.chat__icon-right {
  position: absolute;
  right: 10px;
}

.chat__write:focus ~ .chat__icon {
  /* ~ is Sibling */
  opacity: 0;
}

@media screen and (max-width: 920px) {
  #rotate {
    width: 450px;
  }

  .ring {
    width: 90px;
  }
  .slot {
    width: 90px;
  }
  .rotate__bottom {
    padding-top: 180px;
  }
}
@media screen and (max-width: 520px) {
  #rotate {
    width: 225px;
  }

  .ring {
    width: 45px;
  }
  .slot {
    width: 45px;
  }
  .rotate__bottom {
    margin: 70px 70px;
  }
}

.shake {
  animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

.shake2 {
  animation: 0.8s shake2 infinite alternate;
}

@keyframes shake2 {
  0% {
    transform: skewX(-15deg);
  }
  5% {
    transform: skewX(15deg);
  }
  10% {
    transform: skewX(-15deg);
  }
  15% {
    transform: skewX(15deg);
  }
  20% {
    transform: skewX(0deg);
  }
  100% {
    transform: skewX(0deg);
  }
}
