@font-face {
  font-family: alagard;
  src: url("/TemplateData/alagard.ttf");
}

@font-face {
    font-family: mono;
    src: url("/TemplateData/ubuntu-mono.ttf");
  }

body {
  padding: 0;
  margin: 0;
  background: rgb(26, 22, 16);
  font-family: mono;
  color: rgb(216, 212, 183);

}

body, html{
  scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.nav {
    background: rgb(13, 19, 32);
    border-bottom: 1px solid rgb(9, 8, 6);
    height: 80px;
    display: flex;
    -webkit-box-pack: center;
    justify-content: space-between;
    -webkit-box-align: center;
    padding: 0 20px;
    align-items: center;
}

.nav-inner {
    max-width: 1400px;
    display: flex;
    -webkit-box-pack: center;
    justify-content: space-between;
    -webkit-box-align: center;
    width: 100%;
    height: 100%;
    align-items: center;
    margin: auto;
}

.nav img {
    height: 35px;
    width: auto;
    image-rendering: pixelated;
}

@media(max-width: 560px) {
    .nav .button {
        display: none;
    }
    .nav {
        justify-content: center;
        height: 60px;

    }

    .nav img {
        height: 30px;
        width: auto;
    }
}

#unity-container {
  width: 960px;
  margin: auto;
  margin-top: 20px !important;
  position: relative;
}
#unity-container.unity-mobile {
  width: 100%;
  height: 100%;
}
.unity-mobile #unity-canvas {
  width: 100%;
  height: 100%;
}
#unity-loading-bar {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  display: none;
}
#unity-logo {
  width: 154px;
  height: 130px;
  background: url("unity-logo-dark.png")
    no-repeat center;
}
#unity-progress-bar-empty {
  width: 141px;
  height: 18px;
  margin-top: 10px;
  margin-left: 6.5px;
  background: url("progress-bar-empty-dark.png")
    no-repeat center;
}
#unity-progress-bar-full {
  width: 0%;
  height: 18px;
  margin-top: 10px;
  background: url("progress-bar-full-dark.png")
    no-repeat center;
}
#unity-footer {
  position: relative;
}
.unity-mobile #unity-footer {
  display: none;
}
#unity-webgl-logo {
  float: left;
  width: 204px;
  height: 38px;
  background: url("webgl-logo.png") no-repeat center;
}
#unity-build-title {
  float: right;
  margin-right: 10px;
  line-height: 38px;
  font-size: 18px;
}
#unity-fullscreen-button {
  float: right;
  width: 38px;
  height: 38px;
  background: url("fullscreen-button.png") no-repeat center;
}
#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none;
}

.message {
  padding: 10px;
  box-sizing: border-box;
}

#game-container {
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100dvh; /* change here from vh to dvh */
  margin: auto;
  background: black;
}

#canvas,
#loader {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  /* background: #231F20  */
}

#loader {
  display: flex;
  align-items: center;
  justify-content: center;
  background: url(/TemplateData/leaderboard-bg.png) repeat;

  transition: all 0.3s;
  pointer-events: none;
  color: white;
  flex-direction: column;
  font-family: alagard;
  color: rgb(142, 255, 89);
  text-shadow: rgb(0, 0, 0) 4px 4px 4px;
  font-size: 32px;
}

#loading-portal {
  image-rendering: pixelated;
  max-height: 500px;
  height: 100%;
  width: auto;
}

#copy {
    max-width: 900px;
    margin: auto;
    margin-top: 50px;
    line-height: 200%;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

strong {
    color: rgb(142, 255, 89);

}

a, a:visited {
    color: rgb(246, 218, 49);

}

#frame {
  position: absolute;
  z-index:10;
  width: 100%;
  pointer-events: none;
  height: 100%;
}

#frame img {
  position: absolute;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.button {
    border: 1px solid rgb(9, 8, 6);
    color: rgb(246, 218, 49);
    background: rgb(13, 19, 32);
    border-radius: 8px;
    font-family: mono;
    display: flex;
    justify-content: center;
    text-decoration: none;
    align-items: center;
    height: 3rem;
    width: auto;
    padding: 0px 1.5rem;
    cursor: pointer;
}

.button-row {
    display: flex;
    gap: 10px;
}

#choose-hero { display: none }

#leaderboard {
  position: fixed;
  width: 100%;
  height: 100%;
  max-width: 600px;
  max-height: 700px;
  overflow: scroll;
  right: 0;
  margin: auto;
  left: 0; 
  display: none;
  top: 25px;
  background:rgb(26, 22, 16);
  z-index: 12;
  opacity: 0;
  animation: fadeUp 0.3s forwards;
  border-radius: 8px;
  border: 1px solid rgb(246, 218, 49);
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.75);
  padding: 20px;
}

#leaderboard-inner {
  overflow: scroll;
}

strong {
  color: rgb(142, 255, 89);

}

#leaderboard #title {
  text-align: center;
  margin-bottom: 20px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid-container, .grid-item {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  padding: 10px;
}

.grid-title {
  background-color: #333;
  color: #fff;
  padding: 10px;
  font-weight: bold;
  text-align: center;
}


.grid-item {
  background-color: #f1f1f1;
  padding: 10px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.item {
  margin-bottom: 5px;
  text-align: center;
}

.tabs div {
  margin-bottom: 10px;
}
