body {
  background: #000;
  color: #999;
  font-size: 17px;
}

#unity-container {
  background-color: white;
  display: flex;
  position: relative;
  width: 100%;
  height: calc(100vh - 155px);
  min-width: 360px;
  box-sizing: border-box;
}

#unity-canvas-container * {
  border: 0;
  margin: 0;
  padding: 0;
}

#unity-canvas-container {
  position: relative;
  width: 100%;
  top: 50%;
  transform: translate(0%, -50%);
}

#unity-canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

#snake-io_728x90 {
  position: absolute;
  left: 50%;
  bottom: 4.5vh;
  transform: translate(-50%, 0) scale(1);
  width: 728px;
  height: 90px;
  z-index: -5;
}

@media screen and (max-width: 1024px) {
  #unity-container {
    width: 100vw;
    height: 98vh;
  }
}

@media screen and (max-width: 720px) {
  #unity-container {
    height: 75vh;
  }
}

/* Banner Media Queries */
/* In here, we resize the banner */
@media(max-width: 1400px) {
  #snake-io_728x90 {
    transform: translate(-50%, 0) scale(0.9);
  }
}

@media(max-width: 1200px) {
  #snake-io_728x90 {
    transform: translate(-50%, 0) scale(0.8);
  }
}

@media(max-width: 1150px) {
  #snake-io_728x90 {
    transform: translate(-50%, 0) scale(0.7);
  }
}

@media(max-width: 1140px) {
  #snake-io_728x90 {
    transform: translate(-50%, 0) scale(0.6);
  }
}

@media(max-width: 1024px) {
  #snake-io_728x90 {
    transform: translate(-50%, 0) scale(0.8);
  }
}

@media(max-width: 850px) {
  #snake-io_728x90 {
    transform: translate(-50%, 0) scale(0.7);
  }
}

#orientation-warning {
    display: none; 
}

@media only screen and (orientation: portrait) {
    
    #orientation-warning {
        display: flex; 
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #000;
        z-index: 99999;
        color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #unity-container {
        display: none !important;
    }
    phone-icon {
        font-size: 50px;
        margin-top: 20px;
        animation: rotate-icon 2s infinite ease-in-out;
    }
}

@keyframes rotate-icon {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(90deg); }
    100% { transform: rotate(90deg); }
}