@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

* {
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #142347;
}

ol {
  padding: 1.25em;
}

li {
  font-size: 18px;
  color: white;
  margin-bottom: 5px;
}

.form-label {
  color: white;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 9999;
  /* Menetapkan z-index tinggi untuk menutupi konten */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 29, 48, 1);
  animation: changeBg 5s linear infinite;
}

@keyframes changeBg {
  to {
    filter: hue-rotate(360deg);
  }
}

.loader {
  position: absolute;
  width: 150px;
  height: 150px;
  background: linear-gradient(to top, #001d30 40%, #51eeee);
  border-radius: 50%;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.loader::before {
  content: '';
  position: absolute;
  background: #001d30;
  inset: 20px 20px 0 0;
  border-radius: 50%;
}

.loader::after {
  content: '';
  position: absolute;
  top: 50px;
  right: -8px;
  width: 40px;
  height: 40px;
  background: #51eeee;
  border-radius: 50%;
  box-shadow: 0 0 5px #51eeee, 0 0 25px #51eeee, 0 0 50px #51eeee, 0 0 75px #51eeee;
}

.radio-input {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  /* Ini akan membuat radio button beralih ke baris berikutnya jika tidak ada cukup ruang */
  /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
  font-size: 1em;
  font-weight: 600;
  color: white;
}

.radio-input input[type='radio'] {
  display: none;
}

.radio-input label {
  display: flex;
  align-items: center;
  padding: 0.625em;
  border: 0.0625em solid #ccc;
  background-color: #212121;
  border-radius: 0.3125em;
  margin-right: 0.75em;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.radio-input label:before {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #ccc;
  transition: all 0.3s ease-in-out;
}

.radio-input input[type='radio']:checked + label:before {
  background-color: red;
  top: 0;
}

.radio-input input[type='radio']:checked + label {
  background-color: #f5c336;
  color: #fff;
  border-color: #ccc;
  animation: radio-translate 0.5s ease-in-out;
}

@keyframes radio-translate {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateY(-0.625em);
  }

  100% {
    transform: translateX(0);
  }
}

.hidden {
  display: none;
}

/* Media query untuk perangkat seluler (misalnya, ponsel) */
@media screen and (max-width: 768px) {
  .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  #gambar_kapten {
    width: 30%;
    display: block;
    margin: 0 auto;
  }

  .content-header {
    background-color: #f5c336;
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }

  h1 {
    text-align: center;
    font-size: 35px;
    text-transform: uppercase;
    color: white;
    animation: bounceInDown 2s;
  }

  h3 {
    font-size: 21px;
    margin-bottom: 30px;
    color: white;
    animation: bounceInDown 2s;
  }

  .radio-input {
    flex-direction: column;
    /* tumpuk secara vertikal pada layar yang lebih kecil */
  }

  .radio-input label {
    margin-right: 0;
    /* hapus margin kanan pada layar yang lebih kecil */
    margin-bottom: 0.5em;
    /* tambahkan sedikit ruang di bawah setiap radio button */
  }
}

/* Media query untuk perangkat desktop atau layar yang lebih besar */
@media screen and (min-width: 769px) {
  .container {
    background-image: url('../frontend/assets/img/gambar_kapten.png');
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
  }

  #gambar_kapten {
    display: none;
  }

  .content {
    min-height: 96vh;
    backdrop-filter: blur(2px);
    background-color: rgba(20, 35, 71, 0.8);
    padding: 40px;
    animation: fadeIn 2s;
  }

  h1 {
    text-align: center;
    background-color: #f5c336;
    border-radius: 10px;
    font-size: 35px;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: white;
    animation: bounceInDown 2s;
  }

  h3 {
    border-radius: 10px;
    font-size: 21px;
    margin-bottom: 30px;
    color: white;
    animation: bounceInDown 2s;
  }
}
