/* Reset CSS */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f0f0f0; overflow-x: hidden; } #searchInput { width: calc(100% - 40px); /* Full width minus padding */ padding: 10px 20px; margin: 20px 20px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 25px; font-size: 16px; background-color: #f9f9f9; transition: all 0.3s ease-in-out; box-shadow: 0 4px 8px rgba(0,0,0,0.1); } .background-image { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: url('background.gif'); background-size: cover; background-position: center; z-index: -1; opacity: 0.7; filter: blur(2px); } .container { max-width: 800px; margin: 50px auto; padding: 20px; background-color: rgba(255, 255, 255, 0.9); box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); border-radius: 10px; } .header { text-align: center; margin-bottom: 40px; } .company-logos { display: flex; justify-content: center; align-items: center; margin-bottom: 5px; } .logo { width: 140px; height: auto; margin: 0 0px; filter: grayscale(70%); transition: all 0.3s ease; } .logo:hover { transform: scale(1.1); filter: grayscale(0%); } h1 { font-size: 2.8em; margin-bottom: 15px; color: #00b9ad; } .social-media { display: flex; justify-content: center; gap: 20px; margin-top: 20px; } .social-icon { color: #00b9ad; font-size: 1.8em; text-decoration: none; transition: color 0.3s; } .social-icon:hover { color: #333; } .links { display: flex; flex-direction: column; gap: 30px; } .category { background-color: #fefefe; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); display: none; /* Default hidden */ } .category-title { font-size: 2.2em; color: #333; margin-bottom: 20px; } .link { display: block; background-color: #feb47b; color: white; text-decoration: none; padding: 15px; border-radius: 5px; text-align: center; transition: background-color 0.3s; position: relative; overflow: hidden; margin-bottom: 11px; /* Tambahkan margin bottom untuk jarak antar tombol */ } .link i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 1.2em; } .link:hover { background-color: #ff7e5f; } /* .link { display: block; background-color: #feb47b; color: white; text-decoration: none; padding: 15px; border-radius: 5px; text-align: center; transition: background-color 0.3s; position: relative; overflow: hidden; } .link i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 1.2em; } .link:hover { background-color: #ff7e5f; } /* Dropdown styles */ .dropdown { position: relative; text-align: center; /* Membuat tombol dan teks keterangan di tengah */ margin-bottom: 20px; } */ .category-description { font-size: 1.2em; color: #666; margin-bottom: 10px; } .dropbtn { background-color: #cddc29; color: white; padding: 18px 40px; font-size: 18px; border: none; cursor: pointer; border-radius: 5px; transition: background-color 0.3s; } .dropbtn:hover, .dropbtn:focus { background-color: #707a03; } .dropdown-content { display: none; position: absolute; background-color: #f9f9f9; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1; /* Menempatkan dropdown di atas elemen lain */ border-radius: 5px; overflow: hidden; margin-top: 5px; left: 50%; /* Menggeser dropdown ke tengah */ transform: translateX(-50%); /* Menggeser dropdown ke tengah */ } .dropdown-content a { color: black; padding: 12px 16px; text-decoration: none; display: block; transition: background-color 0.3s; } .dropdown-content a:hover { background-color: #f1f1f1; } .show { display: block; } /* Container for links */ .links { display: flex; flex-direction: column; gap: 30px; position: relative; /* Untuk menempatkan konten link di atas background */ } .category { background-color: #fefefe; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); display: none; /* Default hidden */ position: relative; z-index: 0; /* Menempatkan konten link di bawah dropdown */ } .category-title { font-size: 2.2em; color: #333; margin-bottom: 20px; } .link { display: block; background-color: #60c0d0; color: white; text-decoration: none; padding: 15px; border-radius: 5px; text-align: center; transition: background-color 0.3s; position: relative; overflow: hidden; } .link i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 1.2em; } .link:hover { background-color: #025b6b; } /* Footer styles */ .footer { background-color: #60c0d0; color: #060303; text-align: center; padding: 15px 0; position: fixed; width: 100%; bottom: 0; font-size: 1em; }