body {
    /* Gradasi dari biru muda ke ungu lembut */
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb, #d4fc79, #96e6a1);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}
header {
    background: linear-gradient(to right, #C890A7, #7C444F);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}
/* Footer styles */
footer {
    background: linear-gradient(to right, #2e1b0e, #5d4229);
    color: #fff;
    text-align: center;
    padding: 1px 10px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
  }
  /* Products Section Styling */
  #mining {
      display: flex;
      flex-wrap: wrap; /* Membuat elemen ter-wrap ke bawah jika melewati lebar layar */
      gap: 10px; /* Jarak antar gambar */
      justify-content: center; /* Mengatur posisi gambar agar rata tengah */
      padding: 20px; /* Memberikan ruang di sekitar section */
  }

  .image-wrapper {
      flex: 1 1 calc(28% - 20px); /* Setiap gambar mengambil 25% lebar layar dikurangi jarak */
      max-width: calc(28% - 20px);
      box-sizing: border-box; /* Menghitung padding dan border dalam lebar elemen */
      border-radius: #fff solid 20px;
  }

  .image-wrapper img {
      width: 100%; /* Gambar memenuhi container */
      height: auto; /* Menjaga rasio aspek gambar */
      border-radius: 10px; /* Memberikan sudut tumpul pada gambar */
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Menambahkan bayangan */
  }

.header-container img.logo {
    height: 50px;
}
nav {
    display: flex;
    align-items: center;
}
nav #menu-toggle {
    display: none;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}
nav ul li {
    margin: 0;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
/* Hero Section */
.hero {
    position: relative;
    text-align: center;
}
.hero img {
    width: 100%;
    height: auto;
}
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.emboss-btn {
    background: #ffd700;
    color: #000;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    border:2px;
    cursor: pointer;
}
.emboss-btn:hover {
    background: #ffe066;
}

/* Member Button */
.member-button {
    position: fixed;
    bottom: 40px;
    right: 20px;
    background: #ffd700;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}
.member-button:active {
    background: #ffe066;
    transform: translateY(-5px);
}
 .legalitas{
    display: none;
 }

@media only screen and (max-width: 767px) and (orientation: portrait) {
    nav ul {
        display: none;
    }
    .image-wrapper {
        flex: 1 1 calc(100% - 50px); /* Setiap gambar mengambil 50% lebar layar pada perangkat kecil */
    }
    nav #menu-toggle {
        display: block;
        background: none;
        color: #fff;
        border: none;
        font-size: 20px;
    }
    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 10; /* Ensures it stays above other content */
      }
       /* Optional: Adjust padding or font-size for smaller screens */
    footer p {
        font-size: 12px;
        margin: 5px 0;
    }
    .member-button {
        position: fixed;
        bottom: 70px;}

        .legalitas {
            display: block;
        }
    
        .image-legal img {
            width: 100%;
            /* Lebar gambar mengikuti lebar layar ponsel */
            height: auto;
            /* Tinggi gambar disesuaikan secara otomatis */
            aspect-ratio: 2 / 1;
            /* Rasio lebar:tinggi = 2:1 (tinggi 50% lebih kecil dari lebar) */
        }
}

@media (max-width: 480px) {
    .image-wrapper {
        flex: 1 1 100%; /* Setiap gambar mengambil seluruh lebar layar pada perangkat sangat kecil */
    }
    #mining {
        display: flex;
        flex-wrap: wrap; /* Membuat elemen ter-wrap ke bawah jika melewati lebar layar */
        gap: 10px; /* Jarak antar gambar */
        justify-content: center; /* Mengatur posisi gambar agar rata tengah */
        padding: 20px; /* Memberikan ruang di sekitar section */
    }
         .legalitas {
             display: block;
         }
    
         .image-legal img {
             width: 100%;
             /* Lebar gambar mengikuti lebar layar ponsel */
             height: auto;
             /* Tinggi gambar disesuaikan secara otomatis */
             aspect-ratio: 2 / 1;
             /* Rasio lebar:tinggi = 2:1 (tinggi 50% lebih kecil dari lebar) */
         }
  
}
