html {
      overflow: hidden;
      font-family: Palatino, Palatino Linotype, Palatino LT STD, Book Antiqua, Georgia, serif;
      color: whitesmoke;
}

body {
      background-color: whitesmoke;
      background-image: url("images/background.webp");
      background-repeat: no-repeat;
      background-size: cover;
}

.screenKeeper {
      top: 0px;
      left: 0px;
      width: 1920px;
      height: 1080px;
      transform-origin: 0% 0%;
}

.position {
      position: absolute;
}

.inventory {
      height: 162px;
      width: 100%;
      top: -108px;
      left: 0;
      display: flex;
      justify-content: center;
      gap: 96px;
      z-index: 10;
      background-color: transparent;
      background-image: url(/images/inventoryBackground.webp);
      background-size: 100% 100%;
      opacity: 50%;
}

@font-face {
      font-family: 'Passion One';
      font-style: normal;
      font-weight: 700;
      font-display: swap;
      src: url(https://fonts.gstatic.com/s/passionone/v18/Pby6FmL8HhTPqbjUzux3JEMq007vyJc.woff2) format('woff2');
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.inventoryItem {
      height: 80%;
      display: flex;
      justify-content: center;
      margin-top: 11px;
      margin-bottom: auto;
      filter: drop-shadow(-1px 1px 1px rgba(50, 50, 0, 0.5));
}


.dragItem {
      position: absolute !important;
      z-index: 20;
}

.imgcontainer {
      /* position: absolute; */
      /*    filter: drop-shadow(-1px 6px 3px rgba(50, 50, 0, 0.5));*/
}

.imgcontainer img {
      max-height: 100%;
      max-width: 100%;
      pointer-events: none;
      object-fit: contain;
}

.board {
      display: grid;
      grid-template-columns: auto auto;
      align-items: left;
      justify-content: left;
}

.globe {
      position: absolute;
      height: 864px;
      width: 864px;
      background-image: url("images/globeHolder.webp");
      background-repeat: no-repeat;
      background-size: contain;
      top: 9%;
      margin: auto;
}

.tray {
      height: 864px;
      width: 864px;
      /*  background-color: whitesmoke;*/
      background-image: url("images/tray.webp");
      background-repeat: no-repeat;
      background-size: contain;
      margin-left: 192px;
      display: flex;
      align-items: center;
      justify-content: center;
      clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.gameBack {
      height: 864px;
      width: 864px;
      /*  background-color: whitesmoke;*/
      background-image: url("images/board.webp");
      background-repeat: no-repeat;
      background-size: contain;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
}

.piece {
      height: 100%;
      width: 100%;
      background-image: url("images/piece.webp");
      transition: all 0.2s ease-out;
      background-repeat: no-repeat;
      background-size: contain;
      margin: auto;
}

.face {
      display: block;
      width: 100%;
      height: 100%;
      position: absolute;
      backface-visibility: inherit;
}

.die {
      width: 100px;
      height: 100px;
      transform-style: preserve-3d;
      position: relative;
}

.perspective {
      position: absolute;
      left: 67%;
      top: 35%;
      display: flex;
      perspective: 500px;
      perspective-origin: 200% -50%;
}

.front {
      background-image: url("images/1.webp");
      background-color: rgb(60, 157, 210);
      background-repeat: no-repeat;
      background-size: contain;
      transform: translateZ(50px);
      box-shadow: inset 100px 100px rgb(0, 0, 0, 0.3);
}

.back {
      background-image: url("images/2.webp");
      background-color: rgb(60, 157, 210);
      background-repeat: no-repeat;
      background-size: contain;
      transform: rotateY(180deg) translateZ(50px);
      box-shadow: inset 100px 100px rgb(0, 0, 0, 0.3);
}

.right {
      background-image: url("images/3.webp");
      background-color: rgb(60, 157, 210);
      background-repeat: no-repeat;
      background-size: contain;
      transform: rotateY(90deg) translateZ(50px);
      box-shadow: inset 100px 100px rgb(0, 0, 0, 0.3);
}

.left {
      background-image: url("images/4.webp");
      background-color: rgb(60, 157, 210);
      background-repeat: no-repeat;
      background-size: contain;
      transform: rotateY(-90deg) translateZ(50px);
      box-shadow: inset 100px 100px rgb(0, 0, 0, 0.3);
}

.top {
      background-image: url("images/5.webp");
      background-color: rgb(60, 157, 210);
      background-repeat: no-repeat;
      background-size: contain;
      transform: rotateX(90deg) translateZ(50px);
      box-shadow: inset 100px 100px rgb(0, 0, 0, 0.3);
}

.bottom {
      background-image: url("images/6.webp");
      background-color: rgb(60, 157, 210);
      background-repeat: no-repeat;
      background-size: contain;
      transform: rotateX(-90deg) translateZ(50px);
      box-shadow: inset 100px 100px rgb(0, 0, 0, 0.3);
}

.rolling {
      animation-name: roll;
      animation-duration: 0.75s;
}

/*@keyframes roll {
  0% {
    transform: rotate3d(0);
  }
  20% {
    transform: rotate3d(0, 1, 0, 180deg);
  }
  40% {
    transform: rotate3d(-1, 0, 0, 90deg);
  }
  60% {
    transform: rotate3d(0, 1, 0, 90deg);
  }
  80% {
    transform: rotate3d(0, -1, 0, 90deg);
  }
  100% {
    transform: rotate3d(1, 0, 0, 90deg);
  }
}*/

@keyframes roll {
      0% {
            transform: rotate3d(1, 1, 0, 0deg);
      }

      20% {
            transform: rotate3d(1, 1, 0, 72deg);
      }

      40% {
            transform: rotate3d(1, 1, 0, 144deg);
      }

      60% {
            transform: rotate3d(1, 1, 0, 216deg);
      }

      80% {
            transform: rotate3d(1, 1, 0, 288deg);
      }

      100% {
            transform: rotate3d(1, 1, 0, 360deg);
      }
}

.button {
      background-color: whitesmoke;
      border: none;
      border-radius: 4px;
      color: #747474;
      font-weight: bold;
      padding: 4px 8px;
      text-align: center;
      font-size: 20px;
      font-family: Palatino, Palatino Linotype, Palatino LT STD, Book Antiqua, Georgia, serif;
      margin: 5px 0px;
      opacity: 0.9;
      transition: 0.3s;
      display: inline-block;
      text-decoration: none;
      cursor: pointer;
}

.button:hover {
      opacity: 1
}

.button:active {
      background-color: white;
}

.button2 {
      z-index: 3;
      position: absolute;
      left: 220px;
      top: 76%;
      background: transparent;
      border: none;
      width: 300px;
      height: 120px;
}

#backButton {
      position: absolute;
}

.inputs {
      margin: auto;
      margin-top: 1px;
      text-align: center;
      font-size: 14px;
      width: 60px;
}

.inputs:focus,
.button:focus {
      outline: none;
}