﻿@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;
}

body {
  font-family: Pretendard-Regular, sans-serif;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  font-size: 16px;
  background-color: #f0f0f0;
}

.title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin: 10px 0 20px 0;
}
.how-to-use {
  text-align: center;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

.tip-container {
  margin-bottom: 35px;
  font-size: 16px;
}

.tip,
.tip-example {
  text-align: center;
  color: #838383;
  line-height: 20px;
}

.tip-example {
  margin-top: 7px;
  font-size: 13px;
  line-height: 16px;
  color: #afafaf;
}

.search-container {
  text-align: center;
  margin-bottom: 35px;
}
.search-container input {
  font-family: Pretendard-Regular, sans-serif;
  padding: 8px 13px;
  width: 200px;
  border: 1.5px solid #424242;
  border-radius: 13px;
  background-color: rgb(245, 245, 245);
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
    rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  transition: all 0.1s ease;
}

.search-container input::placeholder {
  color: #a3a3a3;
}

.search-container input:focus {
  outline: none;
  color: #292727;
  border: 1.7px solid #141414;
  transform: scale(1.01, 1.01);
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}
.grid-item {
  text-align: center;
}
.grid-item img {
  width: 100%;
  height: auto;
  cursor: pointer;
  box-shadow: rgba(99, 99, 99, 0.1) 0px 2px 8px 0px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.grid-item img:hover {
  transform: scale(1.05, 1.05);
}

#load-more {
  font-family: Pretendard-Regular, sans-serif;;
  margin: 25px auto;
  display: block;
  background-color: rgb(245, 245, 245);
  border-radius: 13px;
  box-sizing: border-box;
  color: #111827;
  font-size: 14px;
  line-height: 1.25rem;
  padding: 5px 10px;
  text-align: center;
  text-decoration-thickness: auto;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

#load-more:hover {
  background-color: rgb(249, 250, 251);
}

#load-more:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

#load-more:focus-visible {
  box-shadow: none;
}

.scroll-top-btn {
  font-size: 12px;
  color:#636363;
  display: none;
  position: fixed;
  width: 2rem;
  height: 2rem;
  bottom: 1.875rem;
  right: 1.875rem;
  z-index: 100;
  background-color: rgb(250, 250, 250);
  border-radius: 50%;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.scroll-top-btn:hover {
  background-color: rgb(249, 250, 251);
}

.scroll-top-btn.show {
  display: block;
}

#notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #414141;
  color: rgb(250, 250, 250);
  padding: 10px 20px;
  border-radius: 20px;
  display: none;
}

@media screen and (max-width: 480px) {
  .grid-container {
    width: 100%;
  }
}
