﻿* {
  box-sizing: border-box;
}
body {
    margin: 0;
    isolation: isolate;
    font-family: "Segoe UI", sans-serif;
    /*background: linear-gradient(135deg, #fff8dc, #e6f5e8 60%, #ccead3);*/
    background: url("Images/BG.jpg");
    line-height: 1.8;
}
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  bottom: -150px;
  width: clamp(55px, 6vw, 95px);
  height: clamp(85px, 10vw, 150px);
  background: center / contain no-repeat;
  pointer-events: none;
  animation: lantern-rise 18s linear infinite;
}
body::before {
  left: 2vw;
  background-image: url("Images/Lantern_1.png");
  animation-delay: -9s;
}
body::after {
  right: 2vw;
  background-image: url("Images/Lantern_2.png");
  animation-delay: -2s;
}
@keyframes lantern-rise {
  0% { transform: translateY(0) rotate(-6deg); opacity: 0; }
  10% { opacity: .9; }
  85% { opacity: .9; }
  100% { transform: translateY(calc(-100vh - 260px)) rotate(7deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; bottom: auto; top: 12vh; opacity: .8; }
}
/*.landing {
  max-width: 1120px;
  margin: auto;
  padding: 24px 32px;
  position: relative;
  isolation: isolate;
}*/
/*.landing::before {
  content: "";
  position: absolute;
  inset: 80px 0 0;
  background: url("Images/landing_bg1.jpg") center top / min(85%, 700px) auto
    no-repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: -1;
}*/
header {
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    display: flex;
    flex-direction: column;
    margin-top: 7%;
}
.store {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}
.store img {
  border-radius: 50%;
  object-fit: cover;
}
.store small {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}
nav {
  display: flex;
  gap: 4px;
}
nav a {
  padding: 8px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #215d3a;
  font-size: 14px;
  border-radius: 24px;
}
nav a[aria-current="true"] {
  background: #215d3a;
  color: white;
}
.hero {
  padding: 48px 0;
}
.intro {
  max-width: 720px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  padding: 5px 14px;
  background: #f5e7b5;
  border-radius: 24px;
  font-size: 14px;
  margin: 0 0 20px;
  color: #6b5517;
}
h1 {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 600;
  line-height: 1.6;
  margin: 0 0 18px;
}

.header-img {
    align-items: center;
}

.description {
    font-size: 16px;
    color: #526657;
    margin: 0 0 26px;
}
.register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 56px;
    /*padding: 14px 20px;*/
    background: #ffd400;
    color: #174b22;
    text-decoration: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 6px 18px #215d3a22;
    width: 40%;
    margin: 0 auto;
}
    .register:hover {
        /*background: #184e30;*/
        filter: brightness(.94);
    }
.register span {
  font-size: 24px;
}
.landing-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.landing-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 6px 22px;
  border: 0;
  border-radius: 999px;
  font: 600 16px/1.4 "Segoe UI", sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.landing-action.view-coupons {
  background: #fff;
  color: #174b22;
}
.landing-action.register-action {
  background: #ffd400;
  color: #174b22;
}
.landing-action:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.landing-action:not(:disabled):hover {
  filter: brightness(.94);
}
.hint {
  font-size: 13px;
  color: #526657;
  margin: 14px 0 0;
}
.how {
  padding: 28px 0;
  border-top: 1px solid #c3d7c7;
}
h2 {
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 24px;
}
ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
li {
  display: flex;
  gap: 12px;
}
.number {
  flex-shrink: 0;
  background: #f5e7b5;
  color: #6b5517;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-size: 13px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 7px;
}
li p {
  font-size: 14px;
  color: #526657;
  margin: 0;
}
footer {
  text-align: center;
  padding: 16px 0;
  color: #526657;
  font-size: 13px;
}
a:focus-visible {
  outline: 3px solid #947019;
  outline-offset: 4px;
}
.hero p {
    text-align: center;
}
@media (max-width: 700px) {
  body {
    min-height: 100vh;
    min-height: 100dvh;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }
  .landing {
    padding: 20px 18px;
  }
  header img{
      height: 60px
  }
  #img2{
      height: 100px;
  }
    #img3 {
        height: 80px;
        margin-top: 25px;
    }
  .hero {
    padding: 15px 5px 32px 5px;
  }
  .hero p{
      padding-bottom: 10px;
  }
  .landing::before {
    inset: 100px 0 0;
    background-size: 95% auto;
  }
    .coupon-actions button{
        border-radius: 999px;
    }
    .store {
        font-size: 16px;
    }
  .store img {
    width: 42px;
    height: 42px;
  }
  nav a {
    padding: 8px;
    font-size: 13px;
  }
  h1 {
    font-size: 28px;
  }
  ol {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .how {
    padding: 24px 0;
  }
  .register {
    width: 100%;
  }
  .landing-actions {
    gap: 12px;
    flex-wrap: nowrap;
  }
  .landing-action {
    min-width: 0;
    flex: 1;
    padding: 7px 8px;
    font-size: 14px;
    white-space: nowrap;
  }
}
@media (max-width: 700px) and (max-height: 700px) {
  body {
    background-size: 100% 100vh;
    background-size: 100% 100dvh;
  }
}
.coupon-count {
    margin: 0 0 22px;
    text-align: center;
    /*font-size: 14px;*/
    font-size: clamp(10px, 3.4vw, 16px);
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px #103d22, 0 2px 5px #103d22, 0 0 8px #103d22;
}
#couponDetails {
  width: calc(100% - 32px);
  max-width: 360px;
  max-height: 70vh;
  overflow: auto;
  border: 1px solid #dbc985;
  border-radius: 18px;
  padding: 16px;
  background: #fffdf4;
  color: #214733;
  font-family: inherit;
}
#couponDetails::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
#couponDetails { font-size: 13px; }
#couponDetails h2 {
  font-size: 17px;
  margin-bottom: 12px;
}
.coupon-numbers {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.coupon-numbers li {
  display: block;
  padding: 6px 10px;
  background: #edf5e9;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.coupon-close {
  font: inherit;
  border: 0;
  background: #21613d;
  color: white;
  padding: 10px 22px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
}
button:focus-visible {
  outline: 3px solid #947019;
  outline-offset: 4px;
}


button.register {
  border: 0;
  padding: 0;
  font-family: inherit;
  line-height: inherit;
}
.register:disabled,
.register:disabled:hover {
  background: #d3dbd5;
  color: #5b665f;
  box-shadow: none;
  cursor: not-allowed;
}
#couponDetails .coupon-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
#couponDetails .register {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 13px;
  gap: 8px;
}
#couponDetails .register span { font-size: 18px; }
#couponDetails .coupon-close { font-size: 13px; padding: 8px 12px; }

@media (min-width: 901px) {
  body {
    min-height: 100vh;
    background: #0c5710 url("Images/Desktop_Background.jpg") center center / cover no-repeat fixed;
  }
  .landing {
    width: min(50vw, 860px);
    min-height: 100vh;
    padding: 6vh 5vw 5vh;
  }
  .landing header {
    margin: 0;
    align-items: center;
    gap: 0;
  }
  .landing #img1 {
    width: min(20vw, 260px);
    height: auto;
  }
  .landing #img2 {
    position: fixed;
    top: 7vh;
    right: 5vw;
    width: min(40vw, 640px);
    height: auto;
  }
  .landing #img3 {
    width: 100%;
    height: auto;
    margin-top: 7vh;
  }
  .landing .hero { padding: 3vh 0 0; }
  .landing .landing-actions { justify-content: space-between; gap: 18px; }
  .landing .landing-action { flex: 1; min-height: 54px; }

    .coupon-count {
        margin: 0 0 40px;
    }
    }
