div {
  width: 100%;
  height: auto;
}

.container {
  padding: 20px;
}

.activeCard {
  cursor: pointer;
  color: white;
  scale: 1.1;
  transition: 0.5s;
}

.flippedCard {
  cursor: default;
  background-color: lightgray !important;
  color: transparent;
  transition: 0.5s;
}

.row {
  text-align: center;
}

p, #cardA, #cardB {
  text-align: center;
  font-size: 35px;
}

.cardClass {
  border: 2px solid black;
  min-height: 250px;
  max-height: 300px;
  margin-bottom: 30px;
  border-radius: 20px;
  margin-left: 10px;
  text-align: center;
  font-size: 35px;
  transition: 0.375s;
}

.dieCard {
  background-color: #c8c9cc;
  vertical-align: middle;
  border: 2px solid black;
  margin-bottom: 30px;
  border-radius: 20px;
  margin-left: 10px;
  text-align: center;
  font-size: 35px;
  transition: 0.375s;
  padding: 20px;
}


.cannotSelect:hover {
  cursor: default !important;
}

.cardClass:hover {
  cursor: pointer;
}

button {
  margin-top: 25px;
  border-radius: 10px;
  padding: 10px;
  background-color: hotpink;
  text-align: center;
  transition: 0.375s;
}

button:not([disabled]) {
  scale: 1.5;
  transition: 0.375s;
  box-shadow: 0 0 20px 15px #f2f227;
}

#finalScoreContainer {
  text-align: center;
  font-size: 35px;
}



/*colored number cards*/

.cardClass:nth-child(1) {
  background-color: #ed374c;
}

.cardClass:nth-child(2) {
  background-color: #dc4f81;
}

.cardClass:nth-child(3) {
  background-color: #b95bb0;
}

.cardClass:nth-child(4) {
  background-color: #5082bf;
}

.cardClass:nth-child(5) {
  background-color: #4ebde6;
}

.cardClass:nth-child(6) {
  background-color: #47ad4d;
}

.cardClass:nth-child(7) {
  background-color: #dbca32;
}

.cardClass:nth-child(8) {
  background-color: #e2b840;
}

.cardClass:nth-child(9) {
  background-color: #e28842;
}



/*dice*/

.dice {
  position: relative;
  width: 100px;
  height: 100px;
  transform-style: preserve-3d;
  transition: transform .75s; 
}

.dot {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: -10px 5px 5px -10px;
  border-radius: 20px;
  background-color: #4C4184;
  box-shadow: inset 2px 2px #483d7d;
}

.dice-one, .dice-two {
  position: relative;
  margin: auto;
}

.side {
  position: absolute;
  background-color: #ffF;
  border-radius:5px;
  width: 100px;
  height: 100px;
  border: 1px solid #e5e5e5;
  text-align: center;
  line-height: 2em;
}



.side:nth-child(1) {
  transform: translateZ(1.4em); 
}

.side:nth-child(2) {
  transform: rotateY(-180deg) translateZ(1.4em); 
}

.side:nth-child(3) {
  transform: rotateY(-90deg) translateZ(1.4em); 
}

.side:nth-child(4) {
  transform: rotateX(90deg) translateZ(1.4em); 
}

.side:nth-child(5) {
  transform: rotateX(-90deg) translateZ(1.4em); 
}

.side:nth-child(6) {
  transform: rotateY(90deg) translateZ(1.4em); 
}


.show-1 {
  transform: rotateX(720deg) rotateZ(-720deg); 
}

.show-2 {
  transform: rotateX(-900deg) rotateZ(1080deg);
}

.show-3 {
  transform: rotateY(810deg) rotateZ(720deg); 
}

.show-4 {
  transform: rotateX(-810deg) rotateZ(-1080deg); 
}

.show-5 {
  transform: rotateX(450deg) rotateZ(-720deg); 
}

.show-6 {
  transform: rotateY(-450deg) rotateZ(-1440deg); 
}


.two-1, .three-1, .four-1, .five-1, .six-1 {
  top: 20%;
  left: 20%; 
}

.four-3, .five-3, .six-4 {
  top: 20%;
  left: 80%; }

.one-1, .three-2, .five-5 {
  top: 50%;
  left: 50%; }

.four-2, .five-2, .six-3 {
  top: 80%;
  left: 20%; }

.two-2, .three-3, .four-4, .five-4, .six-6 {
  top: 80%;
  left: 80%; }

.six-2 {
  top: 50%;
  left: 20%; }

.six-5 {
  top: 50%;
  left: 80%; 
}

.doubleRotateSpeed {
  transition: transform .375s
}







/* media rules */

@media (max-width: 1200px) {
  .cardClass {
    min-height: 250px;
    max-height: 250px;
    margin-bottom: 30px;
    margin-left: 10px;
    text-align: center;
    font-size: 35px;
  }
}

@media (max-width: 992px) { 
  .cardClass {
    min-height: 100px;
    max-height: 100px;
    margin-bottom: 30px;
    margin-left: 10px;
    text-align: center;
    font-size: 30px;
  }

  .side {
    width: 75px;
    height: 75px;
  }

  .dot {
    width: 15px;
    height: 15px;
    margin: -8px 0px 0px -8px;
  }

  .dice {
    width: 75px;
    height: 75px;
  }

  .side:nth-child(1) {
    transform: translateZ(1em); 
  }

  .side:nth-child(2) {
    transform: rotateY(-180deg) translateZ(1em); 
  }

  .side:nth-child(3) {
    transform: rotateY(-90deg) translateZ(1em); 
  }

  .side:nth-child(4) {
    transform: rotateX(90deg) translateZ(1em); 
  }

  .side:nth-child(5) {
    transform: rotateX(-90deg) translateZ(1em); 
  }

  .side:nth-child(6) {
    transform: rotateY(90deg) translateZ(1em); 
  }
}


@media (max-width: 768px) { 
  .cardClass {
    min-height: 100px;
    max-height: 100px;
    margin-bottom: 30px;
    margin-left: 10px;
    text-align: center;
    font-size: 25px;
  }

  .side {
    width: 75px;
    height: 75px;
  }

  .dot {
    width: 15px;
    height: 15px;
    margin: -8px 0px 0px -8px;
  }

  .dice {
    width: 75px;
    height: 75px;
  }

  .side:nth-child(1) {
    transform: translateZ(1em); 
  }

  .side:nth-child(2) {
    transform: rotateY(-180deg) translateZ(1em); 
  }

  .side:nth-child(3) {
    transform: rotateY(-90deg) translateZ(1em); 
  }

  .side:nth-child(4) {
    transform: rotateX(90deg) translateZ(1em); 
  }

  .side:nth-child(5) {
    transform: rotateX(-90deg) translateZ(1em); 
  }

  .side:nth-child(6) {
    transform: rotateY(90deg) translateZ(1em); 
  }
}


@media (max-width: 576px) { 
  .cardClass {
    min-height: 75px;
    max-height: 75px;
    margin-bottom: 10px;
    margin-left: 25px;
    text-align: center;
    font-size: 20px;
    width: 25%;
  }

  .side {
    width: 50px;
    height: 50px;
  }

  .dot {
    width: 12px;
    height: 12px;
    margin: -6px 0px 0px -6px;
  }

  .dice {
    width: 50px;
    height: 50px;
  }

  .side:nth-child(1) {
    transform: translateZ(0.7em); 
  }

  .side:nth-child(2) {
    transform: rotateY(-180deg) translateZ(0.7em); 
  }

  .side:nth-child(3) {
    transform: rotateY(-90deg) translateZ(0.7em); 
  }

  .side:nth-child(4) {
    transform: rotateX(90deg) translateZ(0.7em); 
  }

  .side:nth-child(5) {
    transform: rotateX(-90deg) translateZ(0.7em); 
  }

  .side:nth-child(6) {
    transform: rotateY(90deg) translateZ(0.7em); 
  }

  button {
    margin-top: 15px;
    border-radius: 10px;
    padding: 10px;
    background-color: hotpink;
    text-align: center;
    transition: 0.375s;
    font-size: 10px;
    width: 70px;
  }

  button:not([disabled]) {
    scale: 1.5;
    transition: 0.375s;
    box-shadow: 0 0 20px 15px #f2f227;
  }

  #finalScoreContainer {
    text-align: center;
    font-size: 25px;
  }
}

@media (max-width: 575px) {
    .cardClass {
    min-height: 75px;
    max-height: 75px;
    margin-bottom: 10px;
    margin-left: 25px;
    text-align: center;
    font-size: 20px;
    width: 25%;
  }

  .side {
    width: 50px;
    height: 50px;
  }

  .dot {
    width: 12px;
    height: 12px;
    margin: -6px 0px 0px -6px;
  }

  .dice {
    width: 50px;
    height: 50px;
  }

  .dieCard {
    max-width: 45%;
  }

  .side:nth-child(1) {
    transform: translateZ(0.7em); 
  }

  .side:nth-child(2) {
    transform: rotateY(-180deg) translateZ(0.7em); 
  }

  .side:nth-child(3) {
    transform: rotateY(-90deg) translateZ(0.7em); 
  }

  .side:nth-child(4) {
    transform: rotateX(90deg) translateZ(0.7em); 
  }

  .side:nth-child(5) {
    transform: rotateX(-90deg) translateZ(0.7em); 
  }

  .side:nth-child(6) {
    transform: rotateY(90deg) translateZ(0.7em); 
  }



}
