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;
}

.position {
	position: absolute;
}

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


.pause {
      height: 70px;
      width: 70px;
      border-radius: 50%;
	background-color: transparent;
      background-image: url(/images/pause.webp);
      background-size: 100% 100%;
      top: calc(50% - 35px);
      right: calc(7.5vh - 35px);
      display: flex;
      justify-content: center;
      align-content: center;
      font-size: 40px;
      color: black;
}


.unpauseButt {
      bottom: 30%;
}

.saveButton {
      top: 30px;
      right: 50px;
      font-size: 40px !important;
}

.unpauseButton {
      border: none;
      background-color: transparent;
      font-size: 60px;
      color: rgb(255, 255, 255, 0.8);
      font-family: 'Passion One';
}

.unpauseButton:hover {
      color: rgb(255, 255, 255, 0.5);
}

.unpauseButton:active {
      color: rgb(255, 255, 255, 0.2);
}

.pauseOverlay {
      height: 100vh;
      width: 100vw;
      top: 0;
      left: 0;
      pointer-events: all;
      z-index: 100;
      background-color: rgba(0, 0, 0, 0.2);
      box-shadow: inset 0px 0px 500px 100px black;
      backdrop-filter: blur(20px);
      display: none;
}

.unpause {
      font-family: 'Passion One';
      font-size: 160px;
      color: rgb(255, 255, 255, 0.8);
      width: 1000px;
      height: 400px;
      top: calc(50% - 200px);
      left: calc(50% - 500px);
      z-index: 101;
      display: flex;
      justify-content: center;
      align-content: center;
}

@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: 1vh;
	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: 80vh;
  width: 80vh; 
  background-image: url("images/globeHolder.webp");
  background-repeat: no-repeat;
  background-size: contain;
  top: 9%;
  margin: auto;
}

.tray {
  height: 80vh;
  width: 80vh;
/*  background-color: whitesmoke;*/
  background-image: url("images/tray.webp");
  background-repeat: no-repeat;
  background-size: contain;
  margin-left: 10vw;
  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: 80vh;
  width: 80vh; 
/*  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;
}