*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  background-color: #f5f5f5;
  color: #222;
  line-height: 1.6;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

.nav-left .title {
  font-size: 30px;
  font-weight: 700;
  color: #222;
  text-decoration: none;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-center > .menu {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-center > .menu > li {
  position: relative; 
  width: max-content !important;  
}

.nav-center > .menu > li > a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #666;
  font-weight: 500;
  font-size: 16px;
}

.nav-center > .menu > li > a:hover {
  color: #222;
}

.submenu {
  display: none;          
  position: absolute;
  top: 100%;                
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  border: 1px solid #ddd;
  min-width: 180px;
  padding: 8px 0;
  z-index: 1000;
  list-style: none;
  margin: 0;
}

.submenu li a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.submenu li a:hover {
  background-color: #f5f5f5;
}

.nav-center > .menu li:hover > .submenu,
.nav-center > .menu li:focus-within > .submenu {
  display: block;
}

.nav-right {
  margin-left: auto;
  display: flex;
  gap: 16px;
}

.nav-left {
  margin-right: auto; 
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.icon-btn img {
  width: 40px;
  height: 40px;
}

main {
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 24px 40px;
}

.section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 32px;
  margin-left: 30px;
  margin-right: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e5e5e5;
}

.section p {
  margin: 4px 0 10px;
  font-size: 16px;
  color: #333;
}

.banner-img {
  width: 70%;
  max-width: 1000px;
  height: auto;
  z-index: 2;
  position: relative;
  display: block;
}

.logo-img {
  width: 150px;
  height: auto;
}

.footer {
  border-top: 1px solid #e5e5e5;
  background-color: #ffffff;
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  color: #999;
  font-size: 14px;
  font-weight: 600;
}
  
body {
  margin: 0;
  padding: 0;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: #333;
  background: #fafafa;
}

.section-wrapper {
  width: 80%;
  max-width: 1500px;
  margin: 80px auto;
  padding: 0 40px;
}

.section-number {
  font-size: 70px;
  color: #d0d0d0;
  font-weight: 300;
  margin-top: 40px;
  margin-bottom: 40px;
}

.section-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 40px;
}

.section-text {
  font-size: 14px;
  line-height: 1.8;
  color: #777;
  max-width: 1000px;
}

.page-header,
.bird-section {
  text-align: center;
  margin-top: 50px;
}

.category {
  color: #ff6f00;
  font-weight: bold;
  margin-bottom: 5px;
}

.main-title {
  font-size: 32px;
  font-weight: 700;
}

.subtitle {
  color: #777;
  font-size: 15px;
  margin-top: 5px;
}

.main-image-section {
  display: flex;
  justify-content: center;
  margin: 50px 0;
}

.main-jjong-img {
  width: 100%;
  max-width: 1000px;
}

.howto-section {
  max-width: 1100px;
  margin: 80px auto;
  display: flex;
  justify-content: center;
  gap: 80px;
}

.howto-left {
  flex: 0 0 420px;  
  max-width: 100%;
  margin: 0 auto;
}

.howto-list {
  margin-top: 20px;
  padding-left: 20px;
}

.button-row {
  margin-top: 30px;
}

.app-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  margin-right: 10px;
  font-size: 14px;
}

.android {
  background-color: #ff8600;
}

.ios {
  background-color: #ffb700;
}

.mobile-preview {
  width: 300px;
  border-radius: 16px;
}

.line-section {
  max-width: 1200px;
  margin: 100px auto;
  display: flex;
  gap: 50px;
}

.line-left {
  flex: 1;
}

.line-store-btn {
  background: #ff6f00;
  padding: 10px 18px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  margin-top: 10px;
  display: inline-block;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  font-size: 14px;
}

th, td {
  border: 1px solid #555;
  padding: 8px;
  text-align: left;
}

.yellow {
  background-color: #fff9d6; 
  font-weight: bold;
  text-align: center;
}

.section table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

.privacy {
  margin: 20px auto; 
  font-size: 14px;
  width: fit-content;
  display: flex;
  gap: 10px;
  justify-content: center; 
  align-items: center;
  list-style: none;
}

.slider-container {
  position: relative;
  width: 350px;     
  flex: 0 0 350px;   
  margin: 0 0 auto;
  overflow: hidden;
  border-radius: 20px;
}

.slider {
  display: flex;
  transition: transform 0.4s ease;
}

.slide {
  width: 350px;         
  flex-shrink: 0;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  border-radius: 50%;
  padding: 8px 10px;
  cursor: pointer;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.a {
  text-decoration: none;
  color: inherit;
  outline: none;
}

.history-title {
  text-align: center;
  font-size: 48px;
  margin: 0;
}

.history-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;   
  gap: 5px;
  margin-top: 5px;
  margin-bottom: 20px;
}

.history-row img {
  width: 120px;
  height: auto;
}

.history-main-emoji {
  width: 55px;
}

body.dark-mode {
  background-color: #121212;
  color: #e6e6e6;
}

body.dark-mode .navbar {
  background-color: #1c1c1c;
  border-bottom-color: #ffffff;
}

body.dark-mode .nav-left .title {
  color: #ffffff;
}

body.dark-mode .nav-center > .menu > li > a {
  color: #ffffff;
}

body.dark-mode .nav-center > .menu > li > a:hover {
  color: #ffffff;
}

body.dark-mode .submenu {
  background-color: #1f1f1f;
  border-color: #333;
}

body.dark-mode .submenu li a {
  color: #ffffff;
}

body.dark-mode .submenu li a:hover {
  background-color: #333;
}

body.dark-mode .section {
  background-color: #1c1c1c;
  border-color: #ffffff;
  color: #ffffff;
}

body.dark-mode .section p {
  color: #ffffff;
}

body.dark-mode .subtitle {
  color: #919191;
}

body.dark-mode .footer {
  background-color: #1c1c1c;
  color: #aaa;
  border-top-color: #ffffff;
}

body.dark-mode table {
  border-color: #333;
}

body.dark-mode th,
body.dark-mode td {
  border: 1px solid #444;
  background-color: #484848;
  color: #e0e0e0;
}

body.dark-mode .yellow {
  background-color: #ffae67;
  color: #ffffff;
}

@media (max-width: 1024px) {
  .button-row {
    display: flex;
    flex-direction: column; 
    align-items: flex-start; 
    gap: 8px;
  }

  .button-row .app-btn {
    margin-right: 0;
  }
    .today-section {
    flex-direction: column;
    gap: 30px;
  }

  .today-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .line-sticker-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features {
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .nav-left {
    order: 1;
  }

  .nav-right {
    order: 2;
    margin-left: auto;
  }

  .nav-center {
    width: 100%;
    order: 3;
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }

  .nav-center > .menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    margin: 0;
    padding: 0;
  }

  .nav-center > .menu > li {
    position: relative;   
  }

  .submenu {
    position: absolute;
    top: 100%;
    left: 0%;
    transform: none;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 8px 0;
    margin: 0;
    min-width: 140px;
  }

  .submenu li a {
    padding: 6px 12px;
  }

  .howto-section {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .howto-left {
    flex: 0 0 auto;
    width: 100%;
    text-align: left;
  }

  .slider-container {
    flex: 0 0 auto;
    margin: 0 0 auto;
  }

  .slicer-center {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .today-grid {
    grid-template-columns: repeat(1, 1fr);
    order: 1;
  }

  .today-info {
    order: -1;
  }
  .line-sticker-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 350px;
  }

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

  .line-left {
    order: -1;
  }

  .line-sticker-grid img {
    width: 100%;
  }

  .section-logo-img {
    width: 22px;
  }

  .today-section {
    margin: 40px auto;
  }

  .service-list {
    flex-direction: column !important;
    align-items: center;
    gap: 24px;
    margin-left: 0 !important;
  }

  .service-list div {
    text-align: center;
  }

  table {
    font-size: 12px;
  }
  th, td {
    padding: 6px;
  }
}

@media (max-width: 480px) {
  .history-title {
    font-size: 28px;
  }

  .history-row {
    gap: 3px;
    margin-bottom: 16px;
  }

  .history-row img {
    width: 50px;
  }

  .history-main-emoji {
    width: 80px;
  }
}
