* {
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}
html {
  font-family: system-ui, sans-serif;
}
body {
  background:#f3f3f3;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}
#container {
  max-width: 1200px;
  width: 100%;
  margin: auto;
  border: 1px solid #ccc;
  padding: 10px 10px;
  box-sizing: border-box;
  background-color: #fff;
  overflow: hidden;
}

.even-roll {
  transition: transform 3.5s ease-out;
}
.odd-roll {
  transition: transform 1.25s ease-out;
}

.dot {
  align-self: center;
  /* background-color: #676767; */
  border-radius: 50%;
  /* box-shadow: inset -0.15rem 0.15rem 0.25rem rgba(0, 0, 0, 0.5); */
  display: block;
  height: 2.5rem;
  justify-self: center;
  width: 2.5rem;
}
.even-roll[data-roll="1"] {
  transform: rotateX(360deg) rotateY(720deg) rotateZ(360deg);
}
.even-roll[data-roll="2"] {
  transform: rotateX(450deg) rotateY(720deg) rotateZ(360deg);
}
.even-roll[data-roll="3"] {
  transform: rotateX(360deg) rotateY(630deg) rotateZ(360deg);
}
.even-roll[data-roll="4"] {
  transform: rotateX(360deg) rotateY(810deg) rotateZ(360deg);
}
.even-roll[data-roll="5"] {
  transform: rotateX(270deg) rotateY(720deg) rotateZ(360deg);
}
.even-roll[data-roll="6"] {
  transform: rotateX(360deg) rotateY(900deg) rotateZ(360deg);
}
.odd-roll[data-roll="1"] {
  transform: rotateX(-360deg) rotateY(-720deg) rotateZ(-360deg);
}
.odd-roll[data-roll="2"] {
  transform: rotateX(-270deg) rotateY(-720deg) rotateZ(-360deg);
}
.odd-roll[data-roll="3"] {
  transform: rotateX(-360deg) rotateY(-810deg) rotateZ(-360deg);
}
.odd-roll[data-roll="4"] {
  transform: rotateX(-360deg) rotateY(-630deg) rotateZ(-360deg);
}
.odd-roll[data-roll="5"] {
  transform: rotateX(-450deg) rotateY(-720deg) rotateZ(-360deg);
}
.odd-roll[data-roll="6"] {
  transform: rotateX(-360deg) rotateY(-900deg) rotateZ(-360deg);
}
[data-side="1"] {
  transform: rotate3d(0, 0, 0, 90deg) translateZ(8rem);
}
[data-side="2"] {
  transform: rotate3d(-1, 0, 0, 90deg) translateZ(8rem);
}
[data-side="3"] {
  transform: rotate3d(0, 1, 0, 90deg) translateZ(8rem);
}
[data-side="4"] {
  transform: rotate3d(0, -1, 0, 90deg) translateZ(8rem);
}
[data-side="5"] {
  transform: rotate3d(1, 0, 0, 90deg) translateZ(8rem);
}
[data-side="6"] {
  transform: rotate3d(1, 0, 0, 180deg) translateZ(8rem);
}
/* [data-side="1"] .dot:nth-of-type(1) {
  grid-area: five;
} */
[data-side="2"] .dot:nth-of-type(1) {
  grid-area: one;
}
[data-side="2"] .dot:nth-of-type(2) {
  grid-area: nine;
}
[data-side="3"] .dot:nth-of-type(1) {
  grid-area: one;
}
[data-side="3"] .dot:nth-of-type(2) {
  grid-area: five;
}
[data-side="3"] .dot:nth-of-type(3) {
  grid-area: nine;
}
[data-side="4"] .dot:nth-of-type(1) {
  grid-area: one;
}
[data-side="4"] .dot:nth-of-type(2) {
  grid-area: three;
}
[data-side="4"] .dot:nth-of-type(3) {
  grid-area: seven;
}
[data-side="4"] .dot:nth-of-type(4) {
  grid-area: nine;
}
[data-side="5"] .dot:nth-of-type(1) {
  grid-area: one;
}
[data-side="5"] .dot:nth-of-type(2) {
  grid-area: three;
}
[data-side="5"] .dot:nth-of-type(3) {
  grid-area: five;
}
[data-side="5"] .dot:nth-of-type(4) {
  grid-area: seven;
}
[data-side="5"] .dot:nth-of-type(5) {
  grid-area: nine;
}
[data-side="6"] .dot:nth-of-type(1) {
  grid-area: one;
}
[data-side="6"] .dot:nth-of-type(2) {
  grid-area: three;
}
[data-side="6"] .dot:nth-of-type(3) {
  grid-area: four;
}
[data-side="6"] .dot:nth-of-type(4) {
  grid-area: six;
}
[data-side="6"] .dot:nth-of-type(5) {
  grid-area: seven;
}
[data-side="6"] .dot:nth-of-type(6) {
  grid-area: nine;
}

button {
  align-self: center;
  background-color: #004db0;
  border: none;
  color: #333;
  font-size: 15px;
  font-weight: normal;
  justify-self: center;
  padding: 10px 10px;
  margin-top: 12px;
  color: #fff;
  border-radius: 3px;
}
button:hover {
  cursor: pointer;
}

span.text {
  position: absolute;
  padding: 10px;
  left: 0;
  right: 0;
  text-align: center;
  top: 10%;
  bottom: 0;
  font-weight: bold;
  font-size: 20px;
}

ul {
  margin-left: 1rem;
}

input{
  width: 70px;
}

#chart {
    width: 100%;
}

@media (min-width: 900px) {
  .dice {
    perspective: 1300px;
  }
}


@media (max-width: 800px) {
  *{
    font-size: 12px;
  }
  button {
    font-size: 13px;
  }

  #chart {
    height: 280px;
  }

}