:root {
  --nav-footer: #090c12;
  --background: #070c12;
  --con-bg-color: #090c12;
  --border: 1px solid #3f3f3f;
  --button: #0077ff;
  --package-color: #071629;
  --package-border: 1px solid #2b91ff;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  background-color: var(--background);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---Navigation Bar--- */

.nav-bar {
  background-color: var(--nav-footer);
  min-height: 70px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  color: white;
  font-size: 1.2rem;
}

.nav-menu a {
  font-weight: bold;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #ff4238;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: white;
}

.nav-menu {
  display: flex;
  gap: 20px;
  color: white;
}

.nav-menu.active {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: absolute;
  background-color: var(--background);
  top: 70px;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  gap: 1rem;
  z-index: 100;
}

.login-button {
  background-color: var(--button);
  width: 80px;
  height: 30px;
  border-radius: 5px;
  border-style: none;
  color: white;
  font-weight: bold;
}

/* ---Slider Design--- */

.slider-section {
  padding: 2rem 0;
}

.slider {
  height: 600px;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

.slides {
  width: 500%;
  height: 100%;
  display: flex;
}

.slides input {
  display: none;
}

.slide {
  width: 20%;
  transition: 0.6s;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Manual navigation */
.navigation-manual {
  position: absolute;
  width: 100%;
  bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.manual-btn {
  border: 2px solid #fff;
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.manual-btn:hover {
  background: #fff;
}

/* Control which slide shows */
#img1:checked ~ .first {
  margin-left: 0;
}

#img2:checked ~ .first {
  margin-left: -20%;
}

#img3:checked ~ .first {
  margin-left: -40%;
}

/* --- GAME SECTION --- */

.game-section {
  color: white;
  padding: 2rem 0px;
  text-align: center;
}

.game-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-top: 1rem;
}

.game-list a {
  text-decoration: none;
  color: rgb(255, 255, 255);
  font-weight: 550;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
  height: 260px;
  background-color: #071629;
  border-radius: 20px;
  border: var(--package-border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px #00e1ff86;
}

.game-image {
  width: 160px;
  height: 160px;
  border-radius: 20px;
  margin: 5px;
  object-fit: cover;
}

.game-card button {
  width: 60px;
  height: 30px;
  background-color: var(--button);
  font-weight: bold;
  border: none;
  color: white;
  border-radius: 150px;
  margin: 5px;
}

/* --- Second Page --- */

.container h2 {
  color: white;
  text-align: center;
}

.idverification {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--con-bg-color);
  border: var(--border);
  height: 100px;
  margin: 20px auto;
  border-radius: 10px;
  gap: 10px;
}

.playerId1 {
  text-align: center;
  width: 50vh;
  height: 50px;
  border: none;
  border-radius: 10px;
}

.idverification button {
  background-color: var(--button);

  color: white;
  width: 100px;
  height: 50px;
  border: none;
  border-radius: 10px;
}

.result {
  display: none;
}

.result.active {
  display: block;
  width: 90%;
  height: auto;
  background-color: var(--package-color);
  border: var(--package-border);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  color: rgb(45, 238, 7);
}

.result.error {
  display: block;
  width: 90%;
  height: auto;
  background-color: rgb(22, 0, 0);
  border: 1px solid red;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  color: rgb(255, 38, 0);
}

.result p {
  color: rgb(255, 255, 255);
}

/* Package list/grid container */

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr;
  border-radius: 20px;
  gap: 20px;
  background-color: var(--con-bg-color);
  border: var(--border);
  margin: 20px auto;
  padding: 20px 50px;
  text-align: center;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--package-color);
  border: var(--package-border);
  border-radius: 10px;
  padding: 10px;
}

.package-image {
  width: 100px;
}

.title {
  color: #ffffff;
  margin: 7px;
}

.package-price {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--button);
  width: 70%;
  height: 30px;
  border-radius: 10px;
  border-style: none;
  font-size: 1rem;
  font-weight: bold;
  color: white;
}

.qty-selecter button {
  width: 30px;
  height: auto;
  background-color: transparent;
  color: white;
  border: none;
}

.qty-selecter span {
  color: white;
}

/* ---checkout--- */

.checkout-page {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 20px auto;
}

.account-info-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 70%;
  background-color: var(--con-bg-color);
  border: var(--border);
  border-radius: 20px;
  padding: 20px;
  gap: 10px;
}

.account-info-card h4 {
  color: white;
}

.account-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.account-info > input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border-style: none;
}

.payment-method {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.payment-method-card {
  background-color: white;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 5px;
}

.payment-method-card p {
  margin-left: 15px;
}

.method-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.method-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 16px 20px;
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.method-item:hover,
.method-item:focus-within {
  border-color: #2b91ff;
  box-shadow: 0 0 0 2px rgba(43, 145, 255, 0.25);
}

.method-item.active {
  border-color: #2b91ff;
  box-shadow: 0 0 0 2px rgba(43, 145, 255, 0.25);
  background-color: #f3f7ff;
}

.method-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.method-copy {`r`n  flex: 1;`r`n  display: flex;`r`n  flex-direction: column;`r`n  gap: 4px;`r`n  color: #0b1623;`r`n  padding-left: 4px;`r`n}

.method-title {
  font-weight: 600;
}

.method-desc {
  color: #556171;
  font-size: 0.85rem;
}

.helper-text,
.field-hint {
  color: #9ca3af;
  font-size: 0.8rem;
  margin-top: 4px;
}

.field-hint {
  display: block;
}

.checkout-error {
  width: 100%;
  background-color: rgba(255, 87, 115, 0.12);
  border: 1px solid rgba(255, 87, 115, 0.4);
  color: #ff5773;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.account-info label {
  color: #d1d5db;
  font-size: 0.85rem;
}

.account-info input {
  background-color: #ffffff;
  color: #0b1623;
}

.account-info input[readonly] {
  background-color: #f1f5f9;
  color: #334155;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  color: #ffffff;
  margin-top: 10px;
}

.summary-row p {
  margin: 5px 0;
}

.pay-now button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.summary {
  width: 40%;
  background-color: var(--con-bg-color);
  border: var(--border);
  width: 400px;
  color: white;
  border-radius: 20px;
  padding: 20px;
  gap: 10px;
}

.summary p {
  margin: 5px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
}
.summary-empty {
  color: #9ca3af;
  font-size: 0.9rem;
  text-align: center;
  padding: 8px 0;
}
.summary-total {
  background-color: var(--button);
  margin-top: 10px;
  border-radius: 10px;
  color: #ffffff;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
}

.pay-now {
  width: 100%;
}

.pay-now button {
  background-color: var(--button);
  background: linear-gradient(
    90deg,
    rgba(0, 157, 255, 1) 0%,
    rgba(0, 55, 255, 1) 100%
  );
  border: none;
  border-radius: 10px;
  width: 100%;
  height: 40px;
  color: white;
}

/* Footer design*/

.footer-container {
  background-color: var(--nav-footer);
  padding: 50px 200px;
  color: white;
}

.footer-content {
  display: flex;
  justify-content: space-between;
}

.left h1 {
  font-size: 80px;
}

.right {
  display: flex;
  justify-content: center;
  gap: 50px;
}

.footer .right h4 {
  padding-bottom: 10px;
}

.copyright {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
}

.fa {
  padding: 10px;
  font-size: 30px;
  width: 20px;
  text-align: center;
  text-decoration: none;
}

.fa:hover {
  opacity: 0.7;
}

.fa-facebook {
  color: white;
}

.fa-twitter {
  color: white;
}

.fa-phone {
  color: white;
}

.fa-youtube {
  color: white;
}

@media (max-width: 768px) {
  .container {
    width: 100%;
  }
  .idverification {
    flex-direction: column;
    height: auto;
    margin: 20px 20px;
    padding: 20px;
  }

  .playerId1 {
    width: 90%;
    height: 40px;
  }

  .playerId1,
  .idverification button {
    width: 90%;
    height: 40px;
  }

  .grid-container {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    margin: 20px 20px;
    padding: 20px 20px;
  }

  .title {
    text-align: center;
  }

  .checkout-page {
    flex-direction: column;
    margin: 20px 20px;
  }

  .summary {
    width: auto;
  }

  .account-info-card {
    width: auto;
  }

  .slider {
    width: 90%;
    height: 100%;
  }

  .nav-bar {
    position: relative;
    width: 100%;
    padding: 0px 15px;
  }
  .nav-menu,
  .login {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .nav-bar.active {
    flex-direction: column;
    align-items: flex-end;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    padding: 30px 30px;
  }

  /*Game Div*/

  .game-list {
    gap: 10px;
    flex-wrap: wrap;
  }

  .game-list a p {
    margin: 0;
  }

  .game-card {
    width: 160px;
    height: auto;
    border-radius: 20px;
    padding: 7px;
  }

  .game-image {
    width: 130px;
    height: 130px;
    border-radius: 20px;
  }

  /*Footer*/

  .footer-container {
    padding: 30px 30px;
  }

  .footer-content {
    flex-direction: column;
  }

  .left h1 {
    font-size: 40px;
  }

  .right {
    justify-content: space-between;
    gap: 20px;
  }

  .footer .right h4 {
    padding-bottom: 0px;
  }

  .copyright {
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
  }

  .copyright p {
    font-size: 12px;
  }
}






