html {
  -ms-touch-action: none;
}

body, canvas, div {
  display: block;
  outline: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Remove spin of input type number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;

  cursor: default;
  color: #FFEB00;
  background-color: #FFEB00;

  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;

  display: flex;
  flex-direction: column;
}

canvas {
  background-color: #FFEB00;
}

#GameDiv, #Cocos3dGameContainer, #GameCanvas {
  width: 100%;
  height: 100%;
}
#iframe-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

#modal-content {
  width: 90%;
  max-width: 800px;
  height: 90%;
  max-height: 600px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  padding: 25px;

  animation: fadeIn 0.3s ease-out;
}

.modal-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  font-size: 40px;
  color: black;
  text-align: center;
  margin: 0 0 15px 0;
  flex-shrink: 0;
}

#modal-content iframe {
  width: 100%;
  height: 100%;
  border: 0;
  flex-grow: 1;
}

#close-iframe-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10000;

  width: 40px;
  height: 40px;
  border-radius: 20px;
  color: white;

  background-color: #333;
  color: white;
  border: 2px solid white;

  font-size: 24px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}