div {
  box-sizing: border-box;
}

body {
  background: white;
  font-family: "Oswald", sans-serif;
}

.space-top {
  padding-bottom: 100px;
}
.space-bottom {
  padding-top: 100px;
}

.container2 {
  width: 65%;
  margin: auto;
}
.contact-box {
  max-width: 420px;
  margin: 10px auto;
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid #000;
  border-left: 4px solid #004aad;
  text-align: center;
  color: #000;
}

.contact-box p {
  margin: 0;
  font-size: 14px;
  color: #000;
}

.contact-box a {
  color: #000;
  font-weight: 600;
}

.floating-top {
  background: transfarant;
  top: 0;
  height: auto;
  left: 0;
  padding: 0px;
  position: fixed;
  text-align: center;
  width: 100%;
  z-index: 1001;
}
.floating-bottom {
  background: transfarant;
  bottom: 0;
  height: auto;
  left: 0;
  padding: 0px;
  position: fixed;
  text-align: center;
  width: 100%;
  z-index: 1001;
}

.footer {
  width: 100%;
  padding: 10px;
  color: black;
  text-align: center;
  background: #fff;
}

.head {
  width: 100%;
  padding: 20px;
  background: #fff;
  border: 1px solid #000;
}

.logo {
  display: block;
  width: 100%;
  height: 180px;
  background: url("/img/Logo-Prediksi-SDY.png") center no-repeat;
  background-size: 100% 100%;
  margin: auto;
}

.menu {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(to bottom, #2a5a8e, #000);
  border: 1px solid #000;
}

.menu a {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  color: black;
  margin: 0px;
  font-size: 18px;
}

.menu a:hover {
  color: black;
}

.content {
  width: 100%;
  border: 1px #000 solid;
}

a {
  color: #000;
  text-decoration: none;
}

h1,
h2,
h3 {
  text-align: center;
  color: black;
}

h3 {
  font-family: arial;
  margin: 40px 0px;
  color: black;
  font-size: 28px;
}

.title-head {
  font-size: 24px;
  text-decoration: none;
  color: black;
}

.title-footer {
  font-size: 28px;
  text-decoration: none;
  color: black;
}

.content p {
  text-align: left;
  font-size: 16px;
  color: black;
  margin: 10px;
}

.iklan-header {
  width: 100%;
  text-align: center;
}

.iframe-cunstom {
  width: 90%;
  margin: auto;
}

.out-link {
  list-style-type: square;
  margin: 0px 35px;
  color: black;
}

.out-link a {
  text-decoration: none;
  color: black;
}

a:hover {
  color: #ffffff;
}
@media only screen and (max-device-width: 1000px) {
  .floating-top img {
    width: 100%;
  }
  .floating-bottom img {
    width: 100%;
  }
  .headerbanner img {
    width: 100%;
  }
  .container2 {
    width: 100%;
  }

  .logo {
    width: 280px;
    height: 80px;
    margin: auto;
  }

  .menu a {
    display: block;
    font-size: 16px;
    border: 1px solid black;
  }

  .iklan-header {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background: #000;
  }

  .banner-float {
    position: fixed;
    width: 100%;
    text-align: center;
    bottom: 1px;
    z-index: 9999;
  }

  .banner-float img {
    width: 728px;
  }

  h3 {
    font-size: 14px;
  }

  .title-footer {
    font-size: 14px;
  }

  .banner-float {
    width: 100%;
  }

  .banner-top {
    width: 100%;
  }

  .banner-float img {
    width: 100%;
  }

  .banner-top img {
    width: 100%;
  }
  .iframe-cunstom {
    width: 100%;
  }
}

#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.popup-box {
  position: relative;
  width: 150px;
}

.popup-box img {
  width: 100%;
  height: auto;
  display: block;
}

.popup-close {
  position: absolute;
  top: -10px;
  right: -10px;
}
.tampil {
  display: block;
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
  border: 2px solid #ccc;
  border-radius: 3px;
  box-sizing: border-box;
}

.tampil img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* === MOBILE === */
@media screen and (max-width: 700px) {
  .popup-box {
    width: 65%;
  }
}
/* ======== RESPONSIVE HP (FIX TOTAL) ======== */
@media (max-width: 768px) {
  .floating-top,
  .floating-bottom {
    width: 100%; /* full layar */
    left: 0;
    transform: none;
  }

  .floating-top img,
  .floating-bottom img {
    width: 100%;
    height: auto;
    aspect-ratio: 378 / 35; /* tetap tipis & proporsional */
  }

  .tampil {
    border-width: 1px;
  }

  .headerbanner {
    max-width: 100%;
    background: #333;
  }

  .headerbanner img {
    width: 100%;
    height: auto;
    aspect-ratio: 378 / 35;
  }

  .banner-float {
    bottom: 5px;
  }

  .space {
    height: 90px;
  }
}
/* ======== RESPONSIVE HP (FIX TOTAL) ======== */
@media (max-width: 768px) {
  .floating-top,
  .floating-bottom {
    width: 100%; /* full layar */
    left: 0;
    transform: none;
  }

  .floating-top img,
  .floating-bottom img {
    width: 100%;
    height: auto;
    aspect-ratio: 378 / 35; /* tetap tipis & proporsional */
  }

  .tampil {
    border-width: 1px;
  }

  .headerbanner {
    max-width: 100%;
    background: #333;
  }

  .headerbanner img {
    width: 100%;
    height: auto;
    aspect-ratio: 378 / 35;
  }

  .banner-float {
    bottom: 5px;
  }

  .space {
    height: 90px;
  }
  .contact-box {
    max-width: 420px;
    margin: 10px auto;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-left: 4px solid #004aad;
    text-align: center;
    color: #000;
  }

  .contact-box p {
    margin: 0;
    font-size: 14px;
    color: #000;
  }

  .contact-box a {
    color: #000;
    font-weight: 600;
  }
  #popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }

  .popup-box {
    position: relative;
    width: 150px;
  }

  .popup-box img {
    width: 100%;
    height: auto;
    display: block;
  }

  .popup-close {
    position: absolute;
    top: -10px;
    right: -10px;
  }
  .tampil {
    display: block;
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
    border: 2px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
  }

  .tampil img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }
}

.iframe-cunstom {
  text-align: center;
}

.prediksi-image {
  max-width: 100%;
  height: auto;
}
