html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  background-image: url("background.png");

  color: #0F7CA7 ;

  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.container {
  display: flex;
  flex-direction: row-reverse;
}
.games{
  margin: 30px 80px 60px 80px;
}

.credit_container{
  margin: 5px;
  
}
.credits{
  color:whitesmoke;
  font-size: x-large;
  
}

.item:nth-child(2) {
  align-self: end;
}

.item:nth-child(5) {
  place-self: end center;
  text-align: center;

  line-height: 10px;

  font-family: "Pretendard Variable", Pretendard, -apple-system,
    BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI",
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  font-size: large;
}

input,
button,
button * {
  font-family: "Pretendard Variable", Pretendard, -apple-system,
    BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI",
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

#game {
  line-height: 0px;
}

#canvas {
  border-radius: 25px 25px 0 0;
    color: #0F7CA7 ;
    border: 6px solid #808080;
    border-bottom: none;

}

#floor {
  width: 480px;
  background: #40627d ;
  border: 6px solid #808080;
  border-top: none;
  border-radius: 0 0 25px 25px;
}

#overlay {
  width: 480px;
  height: 700px;
  position: absolute;
  display: flex;
  align-items: center;

  flex-direction: row;
  justify-content: center;
  gap: 10px;
  transform: translateY(80px);
}

#playAgainButton {
  padding-left: 15px;
  padding-right: 15px;
  width: fit-content;
  height: 35px;
  font-size: 20px;
}

button {
  border-radius: 10px;
  color: #fafafa;
  background: #E3E3E3
  ;
  outline: none;
  cursor: pointer;
  border: none;
}

.container button {
  width: 225px;
  height: 50px;
}

a {
  color: white;
}

#links {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: center;
  justify-content: center;
}

@media (max-aspect-ratio: 100/149) {
  body {
    font-size: xx-large;
    overflow: hidden;

  }

  #game {
    height: 100%;
  }

  #canvas {
    border-radius: 0;
  }

  #floor {
    border-radius: 0;
  }

  .container {
    grid-template-columns: 1fr;
    grid-template-rows: 10fr 1fr 1fr;
    display: flex;
    justify-content: center;

   
  }

  .item:nth-child(1) {
    order: 2;
    text-align: center;
  }

  .item:nth-child(2) {
    order: 1;
  }

  .item:nth-child(5) {
    order: 3;
    grid-column: 1;
  }

  .empty {
    display: none;
  }

  #overlay p {
    font-size: 0.48em;
  }
}
