@font-face {
  font-family: 'BookkMyungjo-Bd';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2302@1.0/BookkMyungjo-Bd.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Pretendard-Regular';
  src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

h1, p, li {
  word-break: keep-all;
}

body {
  font-family: 'Pretendard-Regular';
  color: #f4d03f;
  background-color: #e74c3c;
  margin: 0;
  font-size: 18px;
}

p {
  font-size: 20px;
  margin: 20px;
  line-height: 2;
}

#title {
  font-family: 'BookkMyungjo-Bd';
  display: block;
  color: #f4d03f;
  font-size: 64px;
  text-align: center;
  border-bottom: 1px solid #f4d03f;
  padding: 20px;
  margin: 0;
}

#grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  border-bottom: 1px solid #f4d03f;
  padding: 5px;
}

#other-link {
  text-align: right;
  padding-right: 10px;
}

#other-link a {
  text-decoration: none;
  color: #f4d03f;
}

#other-link a:hover {
  color: white;
  border-color: white;
}

.welcome {
  padding-left: 10px;
  position: relative;
  overflow: hidden;  /* 텍스트가 밖으로 넘치지 않게 */
  white-space: nowrap;
  height: 20px;
}

.scroll-text {
  position: absolute;
  white-space: nowrap;
  color: #f4d03f;
  animation: scroll-left 20s linear infinite;
  padding-left: 100%;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (max-width:800px){

  #title {
    font-family: 'BookkMyungjo-Bd';
    display: block;
    color: #f4d03f;
    font-size: 42px;
    text-align: center;
    border-bottom: 1px solid #f4d03f;
    margin: 0;
  }

  #grid {
      display: flex;
      flex-direction: column;
      gap: 5px;
      width: 100%;
  }

  .welcome {
    position: relative;
    overflow: hidden;  /* 텍스트가 밖으로 넘치지 않게 */
    white-space: nowrap;
    height: 20px;
    /* border-bottom: 1px solid #f4d03f; */
    padding: 0 0 5px 0;
  }

  #other-link {
    width: 100vw;
    box-sizing: border-box;
    text-align: center;
    padding: 5px 0 0 0;

  }
}