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

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Sarabun", sans-serif;
  color: #2d2430;
  background: #fff8f0;
  overflow-x: hidden;
}

h1,
h2,
h3,
button,
nav {
  font-family: "Kanit", sans-serif;
}


/* HERO */

.hero {
  min-height: 85vh;
  padding: 80px 8%;
  color: white;

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: relative;
  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #54266f,
      #984b88,
      #e18a61
    );

  border-radius: 0 0 60px 60px;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.tag {
  display: inline-block;

  padding: 9px 16px;

  border-radius: 50px;

  background: rgba(255,255,255,.15);

  border: 1px solid rgba(255,255,255,.3);
}

.hero h1 {
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: .9;

  margin: 25px 0;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.8;

  max-width: 650px;
}

.buttons {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

button {
  border: none;
  cursor: pointer;

  padding: 13px 20px;

  border-radius: 14px;

  background: white;
  color: #54266f;

  font-size: 1rem;

  transition: .25s;
}

button:hover {
  transform: translateY(-4px);
}

button.outline {
  color: white;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.4);
}


/* VINYL */

.vinyl {
  width: 380px;
  height: 380px;

  border-radius: 50%;

  background:
    repeating-radial-gradient(
      circle,
      #211d27 0px,
      #211d27 4px,
      #342d3b 5px,
      #342d3b 9px
    );

  box-shadow:
    0 30px 70px rgba(0,0,0,.35);

  animation: rotate 15s linear infinite;

  display: flex;
  justify-content: center;
  align-items: center;
}

.vinyl-center {
  width: 110px;
  height: 110px;

  border-radius: 50%;

  background: #ffbd68;

  color: #54266f;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 45px;
}

@keyframes rotate {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}


/* NAV */

nav {
  width: 90%;
  max-width: 1100px;

  margin: -25px auto 0;

  padding: 10px;

  background: rgba(255,255,255,.9);

  backdrop-filter: blur(15px);

  border-radius: 20px;

  box-shadow: 0 15px 40px rgba(0,0,0,.12);

  display: flex;
  justify-content: center;

  gap: 8px;

  position: sticky;
  top: 10px;

  z-index: 100;
}

nav a {
  text-decoration: none;
  color: #382d39;

  padding: 10px 16px;

  border-radius: 12px;
}

nav a:hover {
  background: #eee4ff;
  color: #6840c5;
}


/* SECTION */

main {
  width: min(1100px, 92%);
  margin: auto;
}

.section {
  padding: 90px 0 20px;
}

.title {
  text-align: center;
  margin-bottom: 40px;
}

.title span {
  color: #7c4dff;
  font-family: "Kanit";
  font-weight: bold;
}

.title h2 {
  font-size: 2.8rem;
  margin: 10px 0;
}

.title p {
  color: #756b75;
  line-height: 1.7;
}


/* INTRO */

.intro-card {
  padding: 35px;

  border-radius: 28px;

  background: rgba(255,255,255,.9);

  box-shadow: 0 18px 50px rgba(72,45,31,.12);
}

.intro-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.intro-card > p {
  color: #756b75;
  line-height: 1.8;
}

.facts {
  display: grid;
  gap: 15px;
  margin-top: 25px;
}

.fact {
  display: flex;
  gap: 15px;
  align-items: center;
}

.fact > span {
  width: 48px;
  height: 48px;

  display: flex;
  justify-content: center;
  align-items: center;

  background: #f0e7ff;

  border-radius: 14px;

  font-size: 22px;
}

.fact p {
  color: #756b75;
}


/* REGIONS */

.regions {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 16px;
}

.region {
  min-height: 270px;

  padding: 25px;

  border-radius: 25px;

  color: white;

  box-shadow: 0 15px 35px rgba(0,0,0,.15);

  transition: .3s;

  cursor: pointer;

  overflow: hidden;
}

.region:hover {
  transform:
    translateY(-10px)
    rotate(-1deg);
}

.region .emoji {
  font-size: 45px;
}

.region h3 {
  font-size: 1.8rem;
  margin: 15px 0 5px;
}

.region p {
  line-height: 1.6;
  opacity: .9;
}

.region button {
  margin-top: 20px;

  padding: 8px 13px;

  background: rgba(255,255,255,.15);

  color: white;

  border: 1px solid rgba(255,255,255,.4);
}

.north {
  background: linear-gradient(145deg,#efb35f,#a95436);
}

.isan {
  background: linear-gradient(145deg,#ef7d61,#a82d49);
}

.central {
  background: linear-gradient(145deg,#70b99d,#266d66);
}

.south {
  background: linear-gradient(145deg,#63b7e5,#24578b);
}


/* DETAIL */

.detail-card {
  margin-top: 25px;

  padding: 35px;

  background: white;

  border-radius: 28px;

  box-shadow: 0 18px 50px rgba(72,45,31,.12);

  animation: fadeIn .5s ease;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 18px;

  margin-bottom: 25px;
}

.detail-header > div:first-child {
  width: 75px;
  height: 75px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 20px;

  background: #f0e7ff;

  font-size: 40px;
}

.detail-header h2 {
  font-size: 2rem;
}

.detail-header p {
  color: #756b75;
}

.detail-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 18px;
}

.detail-grid > div {
  background: #faf7fb;

  padding: 22px;

  border-radius: 18px;
}

.detail-grid h3 {
  margin-bottom: 10px;
}

.detail-grid p {
  color: #665c67;
  line-height: 1.8;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* QUIZ */

.quiz {
  padding: 35px;

  color: white;

  background:
    linear-gradient(
      135deg,
      #241a3a,
      #553176
    );

  border-radius: 30px;

  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}

.quiz > span {
  color: #ffd27c;
  font-family: "Kanit";
}

.quiz h2 {
  margin: 10px 0 25px;
  font-size: 2rem;
}

.progress {
  height: 10px;

  background: rgba(255,255,255,.15);

  border-radius: 50px;

  overflow: hidden;

  margin-bottom: 25px;
}

#progressBar {
  width: 0;
  height: 100%;

  background: linear-gradient(
    90deg,
    #ffc76d,
    #ff76b7
  );

  transition: .4s;
}

.question {
  font-family: "Kanit";

  font-size: 1.35rem;

  line-height: 1.6;
}

.answers {
  display: grid;
  gap: 10px;

  margin-top: 18px;
}

.answer {
  text-align: left;

  color: white;

  background: rgba(255,255,255,.08);

  border: 1px solid rgba(255,255,255,.15);

  font-family: "Sarabun";
}

.answer.correct {
  background: #15966c;
}

.answer.wrong {
  background: #b84457;
}

#feedback {
  min-height: 35px;

  margin-top: 15px;

  color: #ffd27c;
}

.next {
  margin-top: 10px;

  background: white;
  color: #54266f;
}

.next:disabled {
  opacity: .4;
  cursor: not-allowed;
}


/* FOOTER */

footer {
  margin-top: 90px;

  padding: 45px;

  text-align: center;

  color: #ddd3e2;

  background: #221b2d;

  line-height: 1.8;
}


/* SCROLL ANIMATION */

.reveal {
  opacity: 0;

  transform: translateY(35px);

  transition: .8s;
}

.reveal.show {
  opacity: 1;

  transform: translateY(0);
}


/* RESPONSIVE */

@media(max-width:900px) {

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .vinyl {
    position: absolute;
    width: 300px;
    height: 300px;

    right: -100px;
    bottom: -80px;

    opacity: .4;
  }

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

}

@media(max-width:600px) {

  .hero {
    padding: 60px 6%;
  }

  .hero h1 {
    font-size: 4rem;
  }

  nav {
    overflow-x: auto;
    justify-content: flex-start;
    white-space: nowrap;
  }

  .regions,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .title h2 {
    font-size: 2rem;
  }

  .quiz,
  .detail-card,
  .intro-card {
    padding: 22px;
  }

}
