:root {
  --sky: #7bddff;
  --navy: #13374b;
  --yellow: #ffd500;
  --green: #008149;
  --text-color: #222;
  --accent: #ff4a2c;
  --max-width: 800px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  display: grid;
  justify-content: center;
  justify-items: center;
  padding: 0;
  min-height: 100vh;
  margin: 0;

  /* layered background */
  background: linear-gradient(var(--sky) 0px 80px, var(--green) 80px 100vh);
  background-color: var(--sky);
  background-repeat: no-repeat;
  background-size: cover;
}

.title {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 130%;
}

.app-title h3 a {
  text-decoration: none;
  color: inherit; /* 제목 색상 유지 */
}

.hero-banner {
  width: 100vw;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.app-title {
  position: absolute;
  align-self: center;
  align-items: center;
  text-align: center;
  z-index: 10;
  background: var(--sky);
  border-radius: 50rem;
  width: max-content;
  /* padding: 1rem; */
  height: 10rem;
}

#semi-title {
  font-size: 80%;
}

#semi-title h1 {
  font-weight: 800;
  font-size: 2.4rem;
}
#semi-title h3 {
  font-weight: 600;
}

#thanks {
  font-size: 1.6rem;
  font-weight: bold;
}

.coffee-button {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--green);
  color: white;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 50rem;
  font-size: 0.9rem;
  border: none;
  z-index: 20;
  transition: all 0.2s ease-in-out;
}

.coffee-button:hover {
  background: #025933;
}

main {
  z-index: 1;
  background: ivory;
  border-radius: 16px;
  padding: 1.5rem 2.5rem;
  margin: 4rem auto;
  max-width: var(--max-width);
  width: 100%;
  position: relative;
  transition: all 0.2s ease-in-out;
}

header {
  text-align: center;
  padding: 3rem 1rem 1rem;
  color: var(--navy);
}

header h1 {
  font-size: 2.4rem;
  font-weight: bold;
}

header p {
  font-size: 1.1rem;
  margin-top: 0.4rem;
  color: #444;
}

.download {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 3rem;
}

.download-button {
  display: inline-block;
  background: var(--accent);
  color: ivory;
  font-weight: 600;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 50rem;
  transition: all 0.2s ease-in-out;
  margin: 1rem;
  border: 2px solid ivory;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.download-button:hover {
  background-color: #da3316;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.version-info {
  font-size: 85%;
  font-weight: 400;
  color: rgb(238, 238, 211);
}

section {
  border-bottom: 2px solid #901111;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}
section:last-of-type {
  border-bottom: none;
  padding-bottom: 1.2rem;
}

/* #semi-paragraph {
  color: #d5ccbb;
} */
.intro {
  margin-top: 1rem;
}

.intro-image {
  display: flex;
  justify-content: space-around;
  padding: 2rem 0.5rem;
}

.guide-image,
.demo {
  width: 20rem;
}

.setting-demo {
  width: 75%;
  display: block;
  margin: 1rem;
}

.guide {
  margin-top: 2.5rem;
}

.intro h2,
.guide h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.intro p,
.guide p,
.guide ol {
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
}

.guide ol {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.guide li {
  margin-bottom: 0.5rem;
  list-style-type: decimal;
}

.guide img {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
}

.changelog {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

.changelog h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.changelog details {
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  background: lemonchiffon;
  border-radius: 0.5rem;
}

.changelog details:last-of-type {
  margin-bottom: 0;
}

.changelog summary {
  cursor: pointer;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0.5rem 0;
}

.changelog ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0rem;
}

.changelog li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.guide a,
.changelog a {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--accent);
  text-decoration: none;
}

.changelog a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: ivory;
  margin: 2rem 0;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.thanks-main {
  max-width: 1000px;
  width: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thanks-section {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: center;
  flex-direction: row;
  width: 100%;
}

.thanks-section p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
  margin: 0;
  text-align: center;
  align-self: center;
}

.qrcode-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: white;
  border-radius: 0.5rem;
  border: 3px solid #ffacc8;
}

.qrcode {
  width: 10rem;
  max-width: 100%;
  height: auto;
}

.banklogo {
  height: 32px;
  margin-top: 5px;
}

@media (max-width: 950px) {
  .title,
  #thanks {
    font-size: 100%;
  }
}

@media (max-width: 850px) {
  .download-button {
    font-size: 90%;
  }

  .title,
  #thanks {
    font-size: 90%;
  }

  #semi-title h1 {
    font-size: 2rem;
  }

  .thanks-main {
    padding: 0.9rem 1.8rem;
    max-width: 90%;
  }

  .thanks-section {
    flex-direction: column;
    gap: 1.5rem;
  }

  .qrcode {
    width: 8rem;
  }
}

@media (max-width: 768px) {
  .title {
    flex-direction: column;
    text-align: center;
    background-color: var(--sky);
    /* font-size: 90%; */
  }

  .download-button {
    padding: 0.8rem 1.6rem;
    font-size: 80%;
  }

  .app-title {
    height: 70%;
    margin: 2rem;
    padding: 0.5rem 1rem;
    position: static;
    font-size: 90%;
    height: 5rem;
  }

  .coffee-button {
    position: static;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .intro-image {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .guide-image,
  .demo {
    width: 60%;
  }

  .setting-demo {
    width: 100%;
    margin-left: -1.2rem;
  }

  .hero-banner {
    position: static;
    width: 100%;
    margin-top: -7rem;
  }

  .hero-banner-img {
    width: 100%;
    height: auto;
  }

  footer {
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  .hero-banner {
    margin-top: -5rem;
  }

  .hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
  }

  header h1 {
    font-size: 1.8rem;
  }

  #semi-title h1 {
    font-size: 1.7rem;
  }

  main {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .coffee-button {
    position: static;
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }

  .thanks-main {
    padding: 1rem 0.5rem;
  }

  .thanks-section {
    flex-direction: column;
    gap: 1.5rem;
  }

  .qrcode {
    width: 8rem;
  }

  footer {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    margin-top: -3rem;
  }

  .app-title {
    font-size: 80%;
  }

  #semi-title h1 {
    font-size: 1.4rem;
  }

  .app-title {
    height: 70%;
    margin: 2rem;
    padding: 0.5rem 1rem;
    position: static;
    font-size: 90%;
    height: 4rem;
  }

  .coffee-button {
    position: static;
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
  }

  .qrcode {
    width: 7rem;
  }

  .thanks-section p {
    font-size: 1rem;
  }

  header h1 {
    font-size: 1.6rem;
  }

  .intro p,
  .guide p,
  .guide li {
    font-size: 0.95rem;
  }
}
