@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Inter:700|Inter:400');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
  }

  :root {
    --bg-color-light: #f4f4f4;
    --text-color-light: #222;
    --bg-color-dark: #1a1a2e;
    --text-color-dark: #f4f4f4;
    --button-bg: #c4b5fd;
    --button-shadow: #7c3aed;
    --bg-color: #1f2428;
    --text-color: #fff;
    --main-color: #0ef;
  }

  html, body {
    overflow-x: hidden; 
  }

  body, header, nav a, button {
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    margin: 0;
    min-height: 100vh;
  }

  body.dark-mode {
    background-color: #1E1E2E;
    color: #f4f4f4;
  }

header {
    width: 100%;
    background:  #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid black;
    position: fixed;
    z-index: 1000;
  }

  header.dark-mode {
    background-color: #181825;
    color: #c4b5fd;
  }

  header .logo {
      display: flex;
      align-items: center;
  }

  header .logo img {
      width: 50px;
      height: 50px;
  }

  header button {
    display: flex; /* Menggunakan flex untuk posisi yang lebih rapi */
    align-items: center; /* Pusatkan teks secara vertikal */
    justify-content: center; /* Pusatkan teks secara horizontal */
    padding: 10px 15px; /* Ubah padding agar tombol tidak terlalu tinggi */
    font-size: 16px;
    text-decoration: none;
    color: #000;
    background-color: #57C84D;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 #000;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    width: fit-content; /* Tombol hanya selebar teksnya */
}

header button:hover {
    transform: translate(4px, 4px); 
    box-shadow: 0.1px 0.1px 0 #000; 
    background-color: #57C84D;
    border-color: #000;
    color: #000;
}

header button#menuButton {
    font-size: 20px; /* Sesuaikan ukuran ikon */
    padding: 10px; /* Padding yang lebih proporsional */
    width: 40px; /* Tetapkan lebar yang proporsional agar tidak lonjong */
    height: 40px; /* Tetapkan tinggi yang sama dengan lebar */
    display: none;
    align-items: center;
    justify-content: center;
}

  .nav-links {
    margin-right: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    background-color: #fff;
    border-radius: 10px;
    list-style: none;
  }

  .nav-links a {
    position: relative;
    display: flex;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    color: #333;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px; 
    width: 0; 
    height: 2px; 
    background-color: #000; 
    transition: width 0.3s ease; 
  }

  .nav-links a:hover {
      color: #000;
  }

  .nav-links a:hover::after {
    width: 100%;
  }

  .theme-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 2px solid #4a4a4a;
    padding: 5px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 2px #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  }

  .theme-switcher:hover {
    background: #d4d4d4;
    transform: translate(4px, 4px); 
    box-shadow: 0.1px 0.1px 0 #000; 
    background-color: #fff;
    border-color: #000;
    color: #000;
  }

  .theme-switcher .btn::after {
    margin-left: 8px;
    font-size: 16px;
    transition: transform 0.2s ease;
  }

  .theme-switcher i {
    font-size: 1.5rem;
    color: #4a4a4a;
  }

  .theme-switcher.dark-mode i {
    color: #f4f4f4;
  }

  main {
    top: -15vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1500px;
    padding: 230px;
    gap: 50px;
    position: relative;
  }

  .tos h1 {
    color: #57C84D;
    font-size: 50px;
  }

  .tos h2 {
    margin-top: 10px;
    font-size: 20px;
  }

  .tos p {
    font-size: 18px;
    color: #000;
    margin: 15px 0;
    line-height: 1.5;
    font-family: arial;
  }

  .footer-container {
    width: 100vw;
    position: relative;
    display: grid;
    grid-template-columns: 500px repeat(4, 1fr);
    padding-left: 10px;
    margin-bottom: 3vh;
  }
  
  .footer-logo {
    max-width: 100px;
    margin-bottom: 10px;
    padding-left: 50px;
  }
  
  footer p {
    color: #555;
    margin-bottom: 2rem;
    font-family: "Inter", "Roboto", "Poppins", sans-serif;
    padding-left: 50px;
  }
  
  .accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    font-family: "Inter", "Roboto", "Poppins", sans-serif;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    padding-left: 60px;
  }
  
  .accordion-content {
    display: block;
    padding: 10px;
  }
  
  .accordion-content a {
    display: block;
    color: #555;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    font-size: 15px;
    font-family: "Inter", "Roboto", "Poppins", sans-serif;
    padding-left: 50px;
  }
  
  .accordion-content a:hover {
    color: #57C84D;
  }
  
  .copyright {
    width: 100vw;
    padding-left: 50px;
    margin-bottom: 3vh;
    font-family: "Inter", "Roboto", "Poppins";
    text-align: left;
    color: #555;
    font-size: 15px;
  }
  
  /* Untuk layar dengan lebar maksimum 1200px */
  @media (max-width: 1200px) {
      main {
          padding: 120px;
          gap: 35px;
      }
      .faq-container {
          width: 75%;
      }
  }
  
  /* Untuk layar dengan lebar maksimum 992px */
  @media (max-width: 992px) {
      main {
          flex-direction: column;
          align-items: center;
          padding: 80px;
      }
      .image-grid {
          grid-template-columns: repeat(2, 1fr);
          gap: 20px;
      }
      .faq-container {
          width: 85%;
      }
      footer {
          display: grid;
          grid-template-columns: repeat(2, 1fr);
          text-align: center;
          gap: 20px;
      }
  }
  
  /* Untuk layar dengan lebar maksimum 768px */
  @media (max-width: 768px) {
    header {
      padding: 15px 50px;
    }
    .nav-links {
      display: none; /* Sembunyikan menu navigasi saat pertama kali masuk */
    }
  
    .nav-links.open {
      margin-top: 10px;
      display: flex; /* Tampilkan menu saat tombol ditekan */
      margin-bottom: 10px;
    }
  
    .nav-links.open a {
      font-size: 13px; /* Sesuaikan ukuran font */
  }
  
    header button#menuButton{
      display: flex;
      position: absolute;
      top: 25px; /* Geser ke atas */
      left: 87%; /* Pusatkan tombol */
      margin-right: 0; /* Hapus margin kiri */
    }       
    
    .logo.hidden {
      display: none;
    }
  
    header .logo {
      height: 30px;
    }
  
    .container {
      padding: 20px;
  }
  
    main {
      flex-direction: column;
      padding: 20px;
      align-items: center;
      gap: 20px;
      text-align: left;
      max-width: 100%;
  }

  .tos {
      margin-top: 25vh;
      padding: 20px;
      text-align: left;
  }

  .tos h1 {
      font-size: 28px;
      text-align: center;
  }

  .tos h2 {
      font-size: 20px;
      margin-top: 15px;
  }

  .tos p, .tos ul {
      font-size: 16px;
      line-height: 1.6;
      text-align: justify;
  }

  .tos ul {
      padding-left: 20px;
  }

  .tos ul li {
      margin-bottom: 10px;
  }
  
  .footer-container {
      display: flex;
      flex-direction: column;
      gap: 10px;
  }
  
  .footer-logo {
    text-align: left;
    padding-left: 10px;
    margin-bottom: 10px;
  }
  
  footer p {
    width: 95%;
    text-align: left;
    padding-left: 10px;
  }
  
  .accordion-item {
      border-bottom: 1px solid #b3b3b3;
      width: 97%;
  }
  
  .accordion-header {
      width: 100%;
      text-align: left;
      background: none;
      border: none;
      font-size: 16px;
      font-weight: bold;
      padding: 10px;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      pointer-events: all;
  }
  
  .accordion-content {
      display: none;
      padding: 10px;
  }
  
  .accordion-content a {
      display: block;
      padding: 10px 0;
      text-decoration: none;
      color: #333;
      text-align: left;
  }
  
  .logo {
      text-align: center;
      margin-top: 20px;
      padding-left: 20px;
  }
  
  .copyright {
      text-align: center;
      padding: 10px;
      font-size: 14px;
      padding-left: 50px;
  }
    }
  
  /* Untuk layar dengan lebar maksimum 576px */
@media (max-width: 576px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    justify-content: center;
    margin-bottom: 10px;
    margin-right: 15px;
  }

  header .logo img {
    align-items: center;
    width: 50px;
    height: 50px;
  }

.theme-switcher {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #fff;
  border: 2px solid #4a4a4a;
  padding: 3px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 2px 2px #000;
  display: none;
}

footer {
  display: grid;
  grid-template-columns: 4fr;
  text-align: center;
  gap: 1.5rem;
  padding-left: 30px;
}

footer .column p {
  font-size: 13px;
  margin-right: 50px;
}

footer .column {
  text-align: center;
}

.copyright {
  text-align: center;
  font-size: 13px;
  margin-right: 50px;
}
}
  