html,
body {
  background-color: #000;
  color: #000;
  border: 0px;
  margin: 0px;
  padding: 0px;
  font-family: sans-serif;
}

html,
body {
  min-height: 100%;
}

.emscripten {
  height: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding-right: 0;
  color: #000;
}
div.emscripten {
  height: 100%;
  text-align: center; 
}

/* the canvas *must not* have any border or padding, or mouse coords will be wrong */
canvas.emscripten {
  width: 100%;
  height: 100%; 
  display: block;
}
textarea.emscripten {
  width: 80%;
  font-family: monospace; 
}

.loadingAnimContainer {
  width: 64px;
  height: 64px;
  margin: 16px auto 10px auto;
  transition: 0.5s linear all;
}

.loadingAnimContainer.hidden {
  opacity: 0;
}

.loadingRing {
  position: relative;
  width: 64px;
  height: 64px;
}

.loadingRing div {
  width: 50px;
  height: 50px;
  position: absolute;
  box-sizing: border-box;
  display: block;
  margin: 8px;
  border: 8px solid #99ff00;
  border-radius: 50%;
  /* animation: loadingRing 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite; */
  animation: loadingRing 0.8s linear infinite;
  border-color: #99ff00 transparent transparent transparent;
}

.loadingRing div:nth-child(1) {
  animation-delay: -0.4s;
}


@keyframes loadingRing {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*
progress {
  height: 2em;
  border: 0;
  border-radius: 6px;
  background-color: #007604;
}
progress::-webkit-progress-bar {
  height: 2em;
  border: 0;
  border-radius: 6px;
  background-color: #007604;
}
progress::-webkit-progress-value {
  height: 2em;
  border: 0;
  border-radius: 6px;
  background-color: #16e01c;
}
progress::-moz-progress-bar {
  height: 2em;
  border: 0;
  border-radius: 6px;
  background-color: #16e01c;
}
*/

/* Fix/prevent form zoom-in on mobile devices tap */
@media screen and (max-width: 767px) {
    input, select, textarea {
      font-size: 16px !important;
    }
}

#loaderContainer.hidden {
  opacity: 0;
}

.loader-container {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-direction: column;
  transition: 0.5s linear all;
}

.loader {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center;
}

.progress-elements-container {
  width: 100%;
  position: fixed;
  bottom: 32px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.hypehype-logo {
  margin: 0 auto;
  max-width: 90vw;
}

.hypehype-logo img {
  max-width: 90vw;
  height: auto;
}

#flutterVersionContainer {
  margin: 0;
  text-align: center;
  color: rgb(55, 55, 55);
}

.progress-bar-container.hidden {
  opacity: 0;
}

.progress-bar-container {
  width: 300px;
  height: 64px;
  position: absolute;
  left: 0;
  right: 0;
  margin: 32px auto 10px auto;
  transition: 0.5s linear all;
}

.progress-bar-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 24px;
  height: 32px;
  border-radius: 6px;
  background-color: #000;
}

.progress-bar {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 6px;
  background: repeating-linear-gradient(
    to right, 
    #99ff00 0%, 
    #359700 40%, 
    #359700 60%,
    #99ff00 100%  
  );
  background-size: 200% auto;
  background-position: 0% 100%;
  animation: gradientAnim 1.3s infinite;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
}

@keyframes gradientAnim { 
  0% { background-position: 0 0; }
  100% { background-position: -200% 0; }
}


#loaderInfoText {
  position: relative;
  width: 100%;
  height: 30px;
} 

#loaderInfoText h3 {
  left: 0;
  right: 0;
  position: absolute;
  font-size: 1.4em;
  margin: 0 auto;
  text-align: center;
  text-transform: uppercase;
  color: #99ff00;
  font-weight: normal;
  font-family: Roboto, 'San Francisco', Helvetica, Arial, san-serif;
  transition: 0.5s linear all;
}

#loaderInfoText h3.hidden {
  opacity: 0;
}


#canvas-container {
  width: 100%; 
  height: 100%; 
  margin: 0 auto;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

#mobile-box.closed {
  display: none;
}

.mobileBox {
  width:  100vw;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(2px);
  color: #000;
  color: #fff;
}

.mobileBoxBgOverlay {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.mobileBoxContent {
  width: 94%;
  max-width: 640px;
  min-height: 20%;
  margin-bottom: 20px;
  padding-bottom: 32px;
  position: absolute;
  bottom: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: nowrap;
  border-radius: 16px;
  z-index: 2;
  background: rgba(0, 0, 0, 1);
  border: 1px solid #b1fb4f;
  /* background: #b1fb4f; */
}

.flexRow {
  padding-top: 1rem;
  text-align: center;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.flexRow.row1 {
  width: 100%;
  margin-bottom: 0;
  padding: 0.25rem 0.5rem 0 0;
  text-align: right;
  flex-grow: 0;
  flex-shrink: 1;
}

.flexRow.row2 {
  width: 99%;
}

.flexRow.row2,
.flexRow.row3,
.flexRow.row4 {
  text-align: center;
  padding-top: 0.5rem;
}

/* .downloadLink {
  width: 90%;
  flex-grow: 2;
} */

.hypeLogoSmall {
  width: auto;
  height: 100px;
  margin: -20px auto 12px auto;

  display: block;
}

.mobileBox h2 {
  max-width: 87%;
  margin: 1rem auto 1.8rem auto;
  margin-top: 0;
  padding: 0 10px;
  text-align: center;
  font-weight: bold;
  font-size: 1.8rem;
  line-height: 2rem;
  color: #fff;
}

.mobileBox p {
  max-width: 99%;
  text-align: center;
  font-size: 1rem;
  padding: 0 10px;
  margin: 0 0 1rem 0;
  color: #fff;
}

.downloadLink a,
.downloadLink .continueOnBrowser {
  color: #fff;
  text-decoration: none;
  min-width: 250px;
  margin: 0 auto;
  text-align: center;
  display: inline-block;
  text-transform: none;
  border-radius: 12px;
  font-size: 1.25rem;
  padding: 8px;
  border: 0;
  background: #b1fb4f;
  box-shadow: none;
  color: #000;
}

.downloadLink a {
  margin-top: 1rem;
  font-weight: bold;
}

.downloadLink button,
.downloadLink button:visited {
  color: #220914;
}

.downloadLink .continueOnBrowser {
  font-size: 0.9rem;
  color: #fff;
  border: 1px solid #5e5e5e;
  background: #303030;
}

.downloadLink img {
  width: auto;
  height: 64px;
}

.mobileBoxCloseButton {
  background: transparent;
  border: transparent;
  color: #e01e74;
  color: #b1fb4f;
  display: inline-block;
  font-size: 1.2rem;
  padding: 0.25em 0.6em;
}


/* Account preview */

#input_footer {
  position: fixed;
  bottom: -50px;
  width: 100%;
  z-index: 1;
  transition: bottom .5s;
  transition-timing-function: ease-out;
}

#accountPreview {
  justify-content: center;
  display: flex;
  background-color: #000000;
  height: 100%;
  width: 100%;
  z-index: 1;
  position: absolute;
  flex-direction: column;
}

#hypePreview {
  justify-content: center;
  display: flex;
  padding: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  position: absolute;
  flex-direction: column;
  background-color: #000000;
}

#previewScroll {
  overflow-y: scroll;
}

#previewScroll::-webkit-scrollbar {
  display: none;
}

#accountPreview p,
#hypePreview p {
  color: #e6e6e6;
}

#accountDetails {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  object-fit: contain;
  width: 320px;
  margin: 0 auto;
}

#displayName {
  color: #e6e6e6;
  font-size: 16px;
}

#profilePicture {
  max-width: 100%;
  max-height: 100%;
  border-radius: 50%;
}

.hypeImageContainer {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
}

.hypeImageContainer img {
  width: 100%;
  margin: 0;
  padding: 0;
  height: auto;
  border-radius: 16px;
  display: block;
}

#hypePreview button.playHypeButton {
  display: block;
  margin: 0 auto;
  margin-top: 16px !important;
  margin-bottom: 16px !important;
  width: 90%;
  max-width: 320px;
  height: 50px;
  border: 0;
  border-radius: 16px;
  background-color: #8dea02 !important;
  font-size: 28px;
  font-weight: bold;
  color: #000 !important;
}

#title {
  text-align: center;
  color: #8dea02;
}

#description {
  text-align: center;
}

#socialCounters {
  display: flex;
  text-align: center;
  justify-content: center;
}

#socialCounters div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 12px;
  padding-right: 12px;
}

#socialCounters h3 {
  color: #e6e6e6;
  padding-bottom: 4px;
  margin-bottom: 0px;
}

#socialCounters p {
  color: #9f9f9f;
  padding-top: 0px;
  padding-bottom: 0px;
  margin-top: 0px;
}

#socialCounters div p {
  text-align: center;
}

#hypeGrid {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  justify-content: center;
  align-content: start;
  /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  grid-row-gap: 20px;
  grid-column-gap: 5px;
  /* background: blue; */
}


#hypeGrid .hypePreview {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* background: red; */
}


#hypeGrid .hypePreview .crop {
  max-width: 160px;
  max-height: 284px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 32px;
  /* background: orange; */
}


.crop a {
  text-decoration: none;
}

.crop a,
.crop a img {
  width: auto;
  max-height: 100%;
  display: block;
}



#input_footer.showKeyboard {
  bottom: 0;
}
