@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@400;700&display=swap');

body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Sarabun', sans-serif;
  background: #fbe7a2;
  overflow-x: hidden;
}

.cover-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('bg1.png') center center/cover no-repeat, linear-gradient(135deg, #fbe7a2 60%, #e6c15b 100%);
  z-index: 0;
  width: 100vw;
  height: 100vh;
  filter: brightness(0.98) blur(1px);
}

.cover-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8px;
  box-sizing: border-box;
}

.cover-card {
  display: flex;
  flex-direction: row;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 16px;
  align-items: center;
  max-width: 900px;
  width: 100%;
  gap: 40px;
  position: relative;
}

.cover-img-frame {
  width: 100%;
  max-width: 600px;
  height: auto;
  border: 6px solid #e6c15b;
  box-shadow: 0 0 24px 8px #ffe066, 0 0 0 2px #fffbe6;
  border-radius: 16px;
  overflow: hidden;
  margin: 24px auto 40px auto;
  padding: 0;
  position: relative;
  display: block;
  box-sizing: border-box;
  left: unset;
  transform: none;
}

.cover-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0;
  /* margin-bottom: 40px; */
  left: unset;
  transform: none;
  position: static;
  box-sizing: border-box;
}

.cover-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.cover-logo {
  width: 70px;
  margin-bottom: 8px;
}

.cover-message p {
  margin: 0 0 8px 0;
  color: #7a5a1a;
  font-size: 1.15em;
}

.cover-message h1 {
  margin: 0 0 8px 0;
  color: #b48c1e;
  font-size: 2.2em;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px #fffbe6;
}

.cover-buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 18px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8px;
  box-sizing: border-box;
  justify-items: center;
}

.cover-btn {
  background: #fffbe6;
  border: 2px solid #e6c15b;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(180, 140, 30, 0.10);
  color: #7a5a1a;
  font-size: 1.1em;
  font-weight: 700;
  padding: 18px 32px;
  min-width: 220px;
  margin: 0 auto;
  transition: all 0.18s cubic-bezier(.4,2,.6,1);
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-btn:hover, .cover-btn:focus {
  background: #ffe9a2;
  color: #b48c1e;
  box-shadow: 0 4px 24px rgba(180, 140, 30, 0.18);
  transform: translateY(-2px) scale(1.04);
}
.cover-btn.primary {
  background: #b48c1e;
  color: #fffbe6;
  border: 2px solid #7a5a1a;
}
.cover-btn.primary:hover, .cover-btn.primary:focus {
  background: #7a5a1a;
  color: #ffe9a2;
}
.cover-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
  opacity: 0.0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cover-btn:hover::after, .cover-btn:focus::after {
  opacity: 1;
  animation: btn-shine 0.7s linear;
}
@keyframes btn-shine {
  0% {
    left: -75%;
    opacity: 0.0;
  }
  10% {
    opacity: 0.7;
  }
  50% {
    left: 120%;
    opacity: 0.7;
  }
  100% {
    left: 120%;
    opacity: 0.0;
  }
}

.btn-img {
  width: 100%;
  max-width: 420px;
  min-width: 100px;
  height: auto;
  border-radius: 14px;
  margin: 0 auto;
  display: block;
  box-shadow: none;
  background: none;
  border: none;
  padding: 2px 0;
}
.cover-btn:hover .btn-img, .cover-btn:focus .btn-img {
  transform: scale(1.08);
}

@media (max-width: 900px) {
  .cover-card {
    flex-direction: column;
    padding: 32px 16px;
    gap: 24px;
  }
  .cover-img-frame {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 600px) {
  .cover-card {
    padding: 0;
    max-width: 100vw;
    margin-bottom: 12px;
  }
  .cover-img-frame {
    width: calc(100vw - 16px);
    max-width: 98vw;
    margin: 16px auto 40px auto;
    box-sizing: border-box;
    padding: 0 4vw;
  }
  .cover-img {
    width: 100%;
    max-width: 100%;
    margin: 0;
    margin-bottom: 40px;
    left: 0;
    transform: none;
    position: static;
    box-sizing: border-box;
  }
  .cover-buttons {
    grid-template-columns: 1fr;
    max-width: 98vw;
    padding: 0 4vw;
  }
  .cover-btn {
    min-width: 0;
    width: 100%;
    font-size: 1em;
    padding: 12px 8px;
  }
  .btn-img {
    width: 100%;
    max-width: 88vw;
    min-width: 100px;
    height: auto;
    border-radius: 14px;
    margin: 0 auto 0 auto;
    display: block;
    box-shadow: none;
    background: none;
    border: none;
  }
}

@media (min-width: 601px) {
  .cover-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 18px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8px;
    box-sizing: border-box;
    justify-items: center;
    justify-content: center;
    align-content: center;
  }
  .btn-img {
    max-width: 420px;
  }
  .cover-img-frame {
    max-width: 900px;
    border-radius: 16px;
  }
} 