*{
  color: rgb(0, 0, 0);
}
:root {
  --primary-color: #ecb248;
}

/* From Uiverse.io by kennyotsu-monochromia */ 
/* .container {
  width: 100%;
  height: 100%;
  --color: #E1E1E1;
  background-color: #F3F3F3;
  background-image: linear-gradient(0deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent),
      linear-gradient(90deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent);
  background-size: 55px 55px;
} */

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fa;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  /* background-color: #fff; */
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
}

header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  color: #000000;
}

.logo img{
  width: 50px;
  margin: 5px;
}

header nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #000000;
  font-weight: 600;
}

header nav a:hover {
  color: #007bff;
}

header .auth-buttons button {
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
}

header .auth-buttons .login {
  background-color: #fff;
  color: #333;
  box-shadow: 0 1px 0 1px #000;
  border: 2px solid #fff;
}

header .auth-buttons .signup {
  background-color: var(--primary-color);
  box-shadow: 0 1px 0 1px #000;
  border: 2px solid #fff;
  color: #fff;
}

header .auth-buttons .signup:active {
  transform: scale(0.9);
}

header .auth-buttons .login:active {
  transform: scale(0.9);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #182e53;
  border: 2px solid #fff;
  color: #fff;
  box-shadow: 0 2px 0 1px #000;
  padding: 0rem;
  overflow: hidden;
  border-radius: 15px;
  margin: 0.5rem 2rem;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.hero .content {
  max-width: 600px;
}

.hero .content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero .content p {
  margin-bottom: 1.5rem;
}

.hero .content .read-more {
  display: inline-block;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  background-color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}


.container-section {
  display: flex;
  flex-wrap: wrap;
  /* Membuat elemen turun ke baris baru jika tidak muat */
  gap: 2rem;
  /* Jarak antar elemen */
  padding: 1rem 2rem;
  /* Ruang di sekitar container */
}

.section {
  padding: 0rem;
}

.section-proker {
  flex: 1 1 calc(33.333% - 2rem);
  /* Mengatur setiap elemen untuk mengambil 1/3 lebar container */
  min-width: 300px;
  /* Lebar minimum untuk menjaga tampilan tetap baik di perangkat kecil */
  box-sizing: border-box;
  /* Termasuk padding dalam perhitungan ukuran */
}

.section h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.documentation {
  display: flex;
  gap: 1.3rem;
}

/* From Uiverse.io by Mike11jr */
.btn {
  display: block;
  padding: 1.1em 2em;
  background: none;
  margin-top: 2rem;
  border: 2px solid #fff;
  font-size: 15px;
  color: #131313;
  width: 100%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  border-radius: 12px;
  background-color: var(--primary-color);
  font-weight: bolder;
  box-shadow: 0 1px 0 1px #000;
}

.btn:before {
  content: "";
  position: absolute;
  width: 100px;
  height: 120%;
  background-color: #ff6700;
  top: 50%;
  transform: skewX(30deg) translate(-550%, -50%);
  transition: all 0.5s;
}

.btn:hover {
  background-color: #4cc9f0;
  color: #fff;
  box-shadow: 0 2px 0 2px #0d3b66;
}

.btn:hover::before {
  transform: skewX(30deg) translate(150%, -50%);
  transition-delay: 0.1s;
}

.btn:active {
  transform: scale(0.9);
}

.artworks img {
  width: 160px;
  height: 190px;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.recent-searches {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1rem;
}

.card {
  width: 190px;
  height: 254px;
  overflow: hidden;
  border-radius: 30px;
  border: 2px solid #fff;
  background: var(--primary-color);
  /* box-shadow: 15px 15px 30px #a1a1a1,
      -15px -15px 30px #ffffff; */
  box-shadow: 0 1px 0 1px #000;

}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-searches .search-item {
  padding: 0.5rem 1rem;
  background-color: #fff;
  border-radius: 100px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recent-searches .search-item img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.categories {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.view-more {
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background: white;
  border: none;
  width: 100%;
  padding: 0.5rem;
  font-size: 1.1rem;
  margin-top: 0.9rem;
  
  border-radius: 100px;
}

.categories .category-item {
  padding: 1rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

footer {
  padding: 1rem;
  text-align: center;
  background-color: #f1f1f1;
  margin-top: 2rem;
}

/* button yellow */
/* From Uiverse.io by TCdesign-dev */
#bottone1 {
  padding-bottom: 16px;
  padding-top: 16px;
  border-radius: 100px;
  border: 2px solid #fff;
  box-shadow: 0 1px 0 1px #000;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
  background: var(--primary-color);
  font-family: inherit;
  cursor: pointer;
  transition: 0.4s;
}

#bottone1:active {
  transform: scale(0.97);
}

/* cards category */
.cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cards .red {
  background-color: #f4ca3f;
}

.cards .blue {
  background-color: #f6a23b;
}

.cards .green {
  background-color: #c5c522;
}

.cards .card {
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100px;
  gap:5px;
  width: 250px;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: 400ms;
}
.cards .card .card-img{
  flex-shrink: 0;
  width: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px;
  border-radius: 8px;
  font-size: 50px;
  height: 80%;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-position: center;
  object-fit: cover;
}

.card-content {
  height: 100%;
  text-align: start;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

.card-content span {
  font-size: 1.5rem;
  font-weight: bolder;
  margin-bottom: 5px;
}

.card-content p {
  font-size: 0.7rem;
  color: #2b2b2b;
  margin-top: 5px;
}



.cards .card p.tip {
  font-size: 1em;
  font-weight: 700;
}

.cards .card p.second-text {
  font-size: .7em;
}

.cards .card:hover {
  transform: scale(1.1, 1.1);
}

.cards:hover>.card:not(:hover) {
  filter: blur(10px);
  transform: scale(0.9, 0.9);
}



/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
  header {
    padding: 1rem;
    align-items: flex-start;
  }

  header nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    background-color: white;
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    top: 0px;
    z-index: 999;
    padding: 10px;
  }

  .auth-buttons{
    display: flex;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .hero .content h1 {
    font-size: 2rem;
  }

  .hero img {
    width: 100%;
    height: auto;
  }

  .container-section {
    flex-direction: column;
    gap: 1rem;
  }

  .section-proker {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .card {
    width: 100%;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .cards .card {
    width: 100%;
    max-width: 300px;
  }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
  header {
    padding: 0.5rem;
    display: flex;
    align-items: center;
  }

  header nav a {
    margin: 0.5rem 0;
    font-size: 0.9rem;
  }

  
header .auth-buttons button {
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

header .auth-buttons .login {
  background-color: #fff;
  color: #333;
  box-shadow: 0 1px 0 1px #000;
  border: 2px solid #fff;
}

header .auth-buttons .signup {
  background-color: var(--primary-color);
  box-shadow: 0 1px 0 1px #000;
  border: 2px solid #fff;
  color: #fff;
}

header .auth-buttons .signup:active {
  transform: scale(0.9);
}

header .auth-buttons .login:active {
  transform: scale(0.9);
}

  .hero{
    margin: 0 5px;
    width: 100vw;
    padding: 0;
    background-color: white;
  }
  .hero img{
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .hero .content h1 {
    font-size: 1.5rem;
  }

  .hero .content p {
    font-size: 0.9rem;
  }

  .container-section{
    padding: 0.5rem;
  }

  .documentation {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Membuat 2 kolom */
    grid-gap: 1rem;
  }

  .documentation .card{
    border-radius: 10px;
  }

  .cards{
    padding: 0;
  }

  .btn {
    font-size: 0.8rem;
    padding: 0.8em 1em;
  }

  .recent-searches .search-item {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }

  .categories .category-item {
    padding: 0.5rem;
  }

  .view-more{
    margin-top: 0rem;
  }

  .card {
    width: 100%;
    height: 100px;
  }

  .cards .card {
    height: auto;
    padding: 1rem;
  }

  footer {
    padding: 0.5rem;
  }
}
