@font-face {
  font-family: "lato";
  src: url(../font/Lato-Regular.ttf);
}
:root {
  --hijau : linear-gradient(135deg, #0c937b, #2ed9b3)
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f8fafc;
  color: #222;
}

header {
  background: #0c937b;
  padding: 15px;
  color: white;
}
.brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.nav-logo {
  width: 64px;
  height: 64px;
}
.logo {
  font-size: 2rem;
  font-weight: 600;

}

.search-bar {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  width: 40%;
  min-width: 200px;
}

.nav-buttons button {
  background: white;
  color: #0c937b;
  border: none;
  padding: 8px 14px;
  margin-left: 5px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.banner {
  background: url(../img/banner/desain-main.webp) no-repeat center/50rem;
  color: white;
  text-align: center;
  padding: 200px 20px;
  position: relative;
  
}
.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(3px);
  z-index: 0;

}
.banner-text {
  z-index: 99;
  position: relative;
}
.banner-text h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  
}

.banner-text p {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.btn {
  background: white;
  color: #0c937b;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: .3s;
}
.btn:active {
  transform:  translateY(5px);
}

.section {
  padding: 30px 20px;
  max-width: 1200px;
  margin: auto;
}

.section h3 {
  margin-bottom: 15px;
}

.popular-games {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  flex: 1 1 calc(33.3% - 20px);
  text-align: center;
  font-weight: 500;
  transition: .1s;
  cursor: pointer;
}
.card:hover {
  box-shadow: 0 0 10px #0c937b;
  transform: scale(1.01);
}

/* option */
.chooseBuy {
  height: 50px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 10px;
}
.chooseBuy > button {
  cursor: pointer;
  flex: 1 1 calc(33.33% / 20px);
  border: none;
  border-radius: 15px;
  background: #dfdfdf;
  margin: 0 5px;
  padding: 10px 20px;
  font-weight: 500;
  font-family: sans-serif;
  color: black;
  font-family: lato;
}
.chooseBuy > button:nth-child(1) {
  background: linear-gradient(0deg,#0eb193,#2ed9b3);
  color: white;
}
/* leaderboard */
.leaderboard {
  background-color: var(--hijau);
  display: flex;
  width: 100%;
  overflow-x: hidden;
}
.leaderboard::-webkit-scrollbar {
  display: none;
}
.group-name {
  display: flex;
  animation: spin 15s infinite linear;
  justify-content: center;
  align-items: center;
  gap: 1em; 
  padding-right: 1em;
}
.name {
  flex: 0 0 20em;
  border-radius: 20px;
  display: flex;
  align-items: center;
  height: 5em;
  justify-content: space-around;
  padding: 10px;
  background: var(--hijau);
  transition: .3s;


}
.name:hover {
  transform: scale(0.9);
}
.name >img {
  border-radius: 10px;
}
.name > p {
  font-family: lato;
  font-size: 20px;
  font-weight: bold;
  font-style: italic;
  color: #f0f0f0;

}

@keyframes spin {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
/* game list */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
}
.gameCard,.pulsaCard,.listrikCard {
  background: white;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  cursor: pointer;
}
.pulsaCard {display: none;}
.listrikCard {
  display: none;
  max-width: 300px;
}
.gameCard img {
  width: 100%;
  border-radius: 8px;
}
.pulsaCard img,.listrikCard img  {
  width: 50%;
  border-radius: 8px;
}
.gameCard:hover .buttonGameCard,.pulsaCard:hover .buttonGameCard,.listrikCard:hover .buttonGameCard {
  background: linear-gradient(0deg,#0eb193,#2ed9b3);
  color: white;
  box-shadow: 0 0 10px #dfdfdf;
}
.gameCard:hover ,.pulsaCard:hover ,.listrikCard:hover {
  transform: translateY(-5px);
}

.gameCard:active,.pulsaCard:active,.listrikCard:active {
    transform: translateY(0px);
}
.buttonGameCard {
  display: block;
  text-decoration: none;
  color: black;
  background: #dfdfdf;
  margin-top: 10px;
  flex: content;
  padding: 10px;
  border-radius: 10px;
  font-family: lato;
  transition: .2s;

}

/* footer */
.footer {
    background: #0f8c7a;
    color: white;
    padding: 40px 20px 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-section {
    width: 23%;
    margin-bottom: 25px;
}

.footer-section h4,
.footer-section h3 {
    margin-bottom: 10px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 6px 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}
.footer-logo {
  display: flex;
  align-items: center;
}
.footer-logo >img {
    width: 64px;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

/* gambar bergerak (naik-turun lembut) */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.social-icons {margin-bottom: 10px;}
.social-icons img,
.payment-logos img {
    width: 35px;
    margin-right: 8px;
    margin-top: 6px;
}

.payment-logos img {
    width: 90px;
    height: 30px;
    border-radius: 2.5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

/* Responsif */
@media (max-width: 800px) {
    .footer-section {
        width: 45%;
    }
}

@media (max-width: 500px) {
    .footer-section {
        width: 100%;
    }
}

