@font-face {
  font-family: "KOFIHDrLEEJWTTF-B";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2210-2@1.0/KOFIHDrLEEJWTTF-B.woff2")
    format("woff2");
  font-weight: 700;
  font-style: normal;
}

body {
  background-color: #c7b6cb;
}

* {
  font-family: "KOFIHDrLEEJWTTF-B";
}

#first,
#second,
#third {
  margin-top: 5px;
}

#first {
  color: yellow;
}

#second {
  color: gray;
}

#third {
  color: #a47c6d;
}

#title2 {
  margin-top: 2.5%;
  margin-bottom: 50px;
  text-align: center;
  width: 100%;
}

#homego {
  margin-top: 20px;
}

#nameinput {
  border-radius: 5px;
  border: 1px solid rgb(218, 218, 218);
  box-sizing: border-box;
  text-align: center;
  height: 50px;
  width: 260px;
  font-size: 16px;
  line-height: normal;
  /* padding-top: 10px; */
  word-break: keep-all;
  overflow: hidden;
  white-space: nowrap;
  font-weight: bold;
  margin-top: -70px;
}

.ranking {
  display: flex;
}

.rank {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#buttoninput {
  background-color: red;
  border: 0px;
  color: white;
  margin-top: 80px;
  background-color: #b31908;
  border-radius: 5px;
  width: 150px;
  height: 60px;
}

#input {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* top: 50%; */
  /* -webkit-transform: translate(-50%, -50%); */
  /* transform: translate(-50%, -50%); */
  /* position: absolute; */
  /* top: 50%; */
  /* left: 50%; */
}

#form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}

#game {
  width: 8.75em;
  margin: 0 auto;
  font-size: 4em;
  font-weight: bold;
  padding-top: 2%;
  display: none;
}

#board {
  width: 100%;
  height: 8.75em;
  margin: 0 auto;
  background-color: #1e253d;
  border-radius: 3%;
  position: relative;
}

#result-box {
  width: 100%;
  height: 100%;
  color: white;
  font-size: 1em;
  display: none;
  z-index: 2;
  position: absolute;
  top: 0;
  left: 0;
}

#result-background {
  width: 100%;
  height: 100%;
  border-radius: 3%;
  opacity: 0.8;
}

#result-message {
  width: 80%;
  height: 15%;
  font-size: 1em;
  text-align: center;
  position: absolute;
  top: 20%;
  left: 10%;
}

#result-tile-container {
  width: 100%;
  height: 23%;
  margin: 0 auto;
  text-align: center;
  position: absolute;
  top: 40%;
}

#result-tile {
  width: 23%;
  height: 100%;
  border: solid 0.1em white;
  font-size: 1em;
  display: inline-block;
}

.result-button {
  width: 30%;
  height: 8%;
  border: none;
  font-size: 0.35em;
  color: white;
  background-color: #1e253d;
  opacity: 0.8;
  display: none;
  position: absolute;
  top: 72%;
  left: 35%;
}

.result-button:active {
  top: 72.2%;
  background-color: black;
}

#tiles {
  width: 96%;
  height: 96%;
  font-size: 1em;
  text-align: center;
  color: white;
  position: relative;
  top: 2%;
  left: 2%;
}

#tiles .tile {
  width: 23%;
  height: 23%;
  margin: 1%;
  background-color: #374364;
  border-radius: 3%;
  position: relative;
  float: left;
}

.tile span,
#result-tile span {
  height: 100%;
  width: 100%;
  display: block;
  line-height: 1.8;
  position: relative;
}

.tile .small-text,
#result-tile .small-text {
  font-size: 0.75em;
  line-height: 2.4;
}

.tile .smallest-text,
#result-tile .smallest-text {
  font-size: 0.65em;
  line-height: 2.7;
}

#message-box {
  width: 100%;
  height: 1em;
  margin-top: 0.2em;
  font-size: 0.3em;
  text-align: center;
  color: #374364;
}

#menu {
  width: 100%;
  font-size: 1em;
  text-align: center;
  color: #1e253d;
  margin-top: 0.2em;
  /* overflow: auto; */
}

#restart {
  width: 30%;
  font-size: 0.9em;
  float: left;
  position: relative;
  top: 0.25em;
}

#simulate {
  width: 30%;
  opacity: 0.2;
  float: right;
  position: relative;
  top: 0.15em;
}

#title {
  width: 40%;
  display: inline-block;
  /* float: left; */
  position: relative;
  left: 0.1em;
}

#credit {
  font-size: 0.2em;
  position: relative;
  top: -0.75em;
}

#credit a {
  text-decoration: none;
  color: #374364;
  opacity: 0.4;
}

#credit a:hover {
  opacity: 1;
}

@media screen and (max-height: 768px) and (orientation: landscape) {
  #game {
    font-size: 3em;
  }
}

@media screen and (max-width: 480px) and (orientation: portrait) {
  #game {
    font-size: 2em;
  }
}
