/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #f0f0f0;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: fadeIn 1s ease forwards;
}

/* Background image with overlay */
body .bg {
  position: fixed;
  margin-top: 10px;
  top: 0;
  left: 0;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  z-index: -1;
  animation: zoomIn 20s ease-in-out infinite alternate;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(30, 30, 60, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.7);
  z-index: 1000;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  animation: slideDown 0.8s ease forwards;
}

.kepala {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.kepala .logo .img2 {
  height: 50px;
  width: auto;
  animation: fadeIn 1.5s ease forwards;
}

.kepala .daftarlogin {
  display: flex;
  gap: 1rem;
}

.kepala .daftarlogin a {
  text-align: center;
  background-color: #6c63ff;
  width: 15vw;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
  animation: fadeIn 1.5s ease forwards;
}

.kepala .daftarlogin a:hover,
.kepala .daftarlogin a:focus {
  background-color: #574b90;
}

/* Marquee */
.marque {
  margin-top: 0.5rem;
  background: linear-gradient(90deg, rgba(108, 99, 255, 0.3), rgba(154, 140, 255, 0.5));
  height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 25px;
  padding: 0 1.5rem;
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.8);
  animation: fadeIn 2s ease forwards, pulseGlow 3s ease-in-out infinite;
  position: relative;
  gap: 15px;
  border: 1px solid rgba(108, 99, 255, 0.6);
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.8);
  }
  50% {
    box-shadow: 0 0 30px rgba(154, 140, 255, 1);
  }
}

.marque span {
  white-space: nowrap;
  display: inline-block;
  animation: marquee 25s linear infinite;
  font-weight: 800;
  color: #f0e6ff;
  z-index: 1;
  font-size: 1.3rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(154, 140, 255, 0.9), 0 0 15px rgba(108, 99, 255, 0.7);
  user-select: none;
  cursor: default;
  align-self: center;
  filter: drop-shadow(0 0 2px rgba(154, 140, 255, 0.8));
}

/* Banner */
.benner {
  margin-top: 150px;
  display: flex;
  justify-content: center;
  animation: fadeIn 2s ease forwards;
}

.benner .img {
  max-width: 80%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
  border: 4px solid #6c63ff;
  transition: transform 0.3s ease;
}

.benner .img:hover {
  transform: scale(1.05);
}

/* Bottom navigation */
.header-bawah {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #6c63ff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 70px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.7);
  z-index: 1000;
  animation: slideUp 0.8s ease forwards;
}

.header-bawah .icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #f0e6ff;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s ease;
}

.header-bawah .icon:hover,
.header-bawah .icon:focus {
  color: #d1c4e9;
}

.header-bawah .icon img {
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
  border-radius: 50%;
  background-color: #9a8cff;
  padding: 5px;
  box-shadow: 0 0 8px rgba(154, 140, 255, 0.7);
  transition: transform 0.3s ease;
}

.header-bawah .icon:hover img,
.header-bawah .icon:focus img {
  transform: scale(1.2);
}

/* Content */
.konten {
  margin-top: 20px;
  padding: 1rem;
  background: linear-gradient(135deg, #6c63ff, #9a8cff);
  border-radius: 20px;
  max-width: 900px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  color: #f0e6ff;
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.6);
  animation: fadeIn 2.5s ease forwards;
}

.listtogel {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.listtogel .togel {
  background-color: #aea4ff;
  color: #222;
  font-weight: 700;
  padding: 10px 50px;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.listtogel .togel:hover,
.listtogel .togel:focus {
  background-color: #271df0;
  transform: scale(1.2);
  transition: all 0.5s;
  color: #fff;
}

.logohk {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.logohk img {
  width: 40%;
  border-radius: 15px;
  filter: drop-shadow(0 3px 0px rgba(0,0,0,0.7))drop-shadow(2px 0 2px rgba(0,0,0,0.7));
  transition: transform 0.3s ease;
}

.logohk img:hover {
  transform: scale(1.2);
}

.isitogel {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 20px;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
  margin-bottom: 30px;
  min-height: 200px;
  color: #222;
}
 .isitogel .poster {
  width: 100%;
  display: flex;
  justify-content: center;
 }
  .isitogel .poster img {
    padding: 20px;
    border-radius: 10%;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
    width: 70%;
  }
.bg-penjelasan {
  margin-bottom: 15vh;
  background: linear-gradient(135deg, #ff00bf, #ff6ec4);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 30px rgba(255, 0, 191, 0.6);
  animation: fadeIn 3s ease forwards;
}

.bg-penjelasan h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.bg-penjelasan .jls-1 p {
  font-weight: 600;
  line-height: 1.5;
}
.isitogel .table {
  background-color: yellow;
  width: 100%;
  display: flex;
  justify-content: center;
}
.isitogel .table table {
  text-align: center;
  font-size: 1.2rem;
  width: 100%;
}
.isitogel .table table td {
  width: 40%;
  height: 5vh;
}
.isitogel .table table thead {
  font-size: 1.5rem;
  width: 100%;
  height: 8vh;
}

.jadwaltogel {
  width: 100%;
}
.jadwaltogel table {
  font-weight: bolder;
  color: #222;
  background-color: yellow;
  width: 100%;
}
  /* Container loading */
  #isitogel {
    text-align: center;
  }

  /* Spinner */
  .spinner {
    border: 8px solid #f3f3f3; /* background circle */
    border-top: 8px solid #0f1724; /* colored part */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /* Text loading */
  #isitogel p {
    font-size: 20px;
    color: #0f1724;
  }
/* Animations */
@keyframes marquee {
  0% {
    transform: translateX(150%);
  }
  100% {
    transform: translateX(-150%);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .isitogel .table table thead {
    font-size: 1.1rem;
  }
  .isitogel .table table {
    font-size: 1rem;
  }
  body .bg {
    margin-top: 100px;
  }
  header {
    padding: 0.5rem 0.5rem;
  }
  .kepala {
    width: 100%;
    justify-content: space-between;
    height: auto;
    gap: 0.5rem;
  }
  .kepala .logo .img2 {
    height: 40px;
    width: auto;
  }
  .kepala .daftarlogin a {
    text-align: center;
    margin-right: 10px;
    width: 20vw;
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  .benner {
    margin-top: 130px;
    padding: 0 10px;
  }
  .benner .img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
  }
  .konten{
    width: 100%;
  }
  .header-bawah {
    height: 60px;
    padding: 0 10px;
    justify-content: space-between;
  }
  .header-bawah .icon img {
    width: 28px;
    height: 28px;
  }
  .header-bawah .icon {
    font-size: 1rem;
  }
  .listtogel {
    flex-direction: column;
    gap: 12px;
    padding: 0 10px;
  }
  .listtogel .togel {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 12px 0;
    border-radius: 25px;
  }
  .logohk img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 15px;
    filter: drop-shadow(0 2px 0 rgba(0,0,0,1));
  }
  .isitogel {
    min-height: 150px;
    padding: 15px;
    font-size: 1rem;
  }
  .isitogel .poster img {
    width: 100%;
  }
  .bg-penjelasan {
    padding: 15px;
    margin-bottom: 12vh;
  }
  .bg-penjelasan p {
    font-size: 0.8rem;
  }
  .bg-penjelasan h1 {
    font-size: 1.3rem;
  }
}
