@font-face {
  font-family: 'Soft Marshmallow';
  src:
    url('font/SoftMarshmallow.woff2') format('woff2'),
    url('font/SoftMarshmallow.woff') format('woff');
}

@font-face {
  font-family: 'Montserrat-Reguler';
  src: url(font/Montserrat-Regular.ttf) format('truetype');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
}

body {
  background-repeat: no-repeat;
  background-image: url(../bahan/Vektor/bg/bg_lomba.png);
  background-size: 100% auto;
  /* background-color:  #FAF3A1; */
  background-position: top center;
  background-attachment: scroll;
  min-height: 100vh;
  overflow-x: hidden;
  color: white;
  font-family: "Montserrat", sans-serif;
}

.bg .blp {
  display: flex;
  position: relative;
  justify-content: ;
  
  height: ;
}

h1 {
  text-align: center;
  color: #fff;
  letter-spacing: 2px;
  font-size: 60px;
  font-weight: 700; 
  font-family: 'Soft Marshmallow', cursive;
  padding-bottom: 100px;
  text-shadow: 6px 6px 8px rgba(0, 0, 0, 0.45);
  padding-top: 100px;
}

/* ==== Halaman Utama: card-left grid ==== */
.main-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 200px;
  max-width: 1200px;
  margin: auto;
}

.row {
  display: flex;
  justify-content: center;
}

.card-left {
  background-color: #fffefe;
  border: 1px solid #ccc;
  border-radius: 16px;
  border: #000 2px solid;
  max-width: 300px;
  width: 100%;
  height: 400px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 10px 10px 10px navy;
}

.card-left:hover {
  transform: scale(1.05);
}

.card-left h4 {
  font-size: 20px;
  font-weight: 1200;
  text-align: center;
  color: #000;
  font-family: 'Montserrat-Regular', cursive;
}

.card-left .logo {
  max-width: 250px;
  max-height: 250px;
  object-fit: contain;
  padding-left: 12px;
}

.card-left button {
  padding: 6px;
  height: 50px;
  font-family: 'Soft Marshmallow', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #eee;
  cursor: pointer;
  transition: background-color 2 ease-in-out;
}

.card-left button:hozver {
  background-color: zrgb(7, 54, 118);
  color: #fff;
}

@media (min-width: 1100px) {
.main-container {
  padding-bottom: 600px;
}
}
@media (max-width: 1048px) {
  body {
    padding-top: 200px;
    padding-bottom: 500px;
    background-image: url(../bahan/Vektor/bg/bg_lomba-mobile.png);
  }
  .main-container {
    grid-template-columns: repeat(1fr);
    row-gap: 320px;
  } 
  .card-left {
    max-width: 300px;
  }
}


@media (max-width: 800px) {
body {
  
}
  .main-container {
    margin-bottom: -150px;
    grid-template-columns: 1fr;
    gap: 100px;
  }

h1 {
  font-size: 50px;
  margin-top: -100px;
} 


  .card-left {
    height: 350px;
    width: 300px;
    padding: 16px;
  }
  .card-left .logo {
    padding-left: 20px;
    padding-bottom: 10px;
  }
 
}


/* ==== POPUP MODAL STYLE ==== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
 background :rgba(254, 252, 252, 0.656);
  margin: 20px auto;
  border: 4px solid #000;
  padding: 15px;
  border-radius: 16px;
  width: 95%;
  max-width: 800px;
  animation: fadeIn 0.3s ease forwards;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
}

/* Isi modal: selalu 4 kolom × 2 baris */
.modal .isi {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 10px;
}
.modal .isi-tk {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: repeat(1, auto);
  gap: 20px;
}

.modal-content h3 {
  font-family: 'Soft Marshmallow', cursive;
  font-size: 25px;
  justify-content: center;
  display: flex;
  padding-bottom: 20px;
  font-weight: 900;
  margin-top: -20px;
  text-shadow: 6px 6px 8px rgba(0, 0, 0, 0.45);
  letter-spacing: 2px;
}

.modal .card-isi {
  /* background-image: linear-gradient(-135deg, #c4db6f, #31c4f3); */
  border-radius: 8px;
  background-color: #dcdada;
  border: 0.5px solid #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.modal .card-isi img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.modal .card-isi h5 {
  font-size: 12px;
  color: rgb(4, 27, 141);
  text-align: center;
  font-family: "Montserrat", sans-serif;
}

.modal .btn {
  justify-content: center;
  text-align: center;
}

.modal .close {
  font-size: 40px;
  cursor: pointer;
  font-weight: 800;
}

/* Mobile: kecilkan gambar & font di modal */
@media (max-width: 768px) {
  body {
  }
  
  .modal .card-isi img {
    width: 40px;
    height: 40px;
  }
  .modal .card-isi h5 {
    font-size: 10px;
  }
}

/* Tombol */
.btn {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 20px;
}

.petunjuk, .daftar {
  padding: 4px;
  width: 200px;
  height: 35px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  border: 2px #000 solid;
  color: #fff;
  font-size: 20px;
}

.petunjuk {
  background-color: rgb(62, 109, 236);
}

.daftar {
  background-color: rgb(52, 246, 22);
}

@media (max-width: 540px) {
  body{background-image: url(../bahan/Vektor/bg/540-daftar.png);}
  .main-container {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-bottom: 50px;
  }
  
}