/**
 * main.css — Stylesheet Utama SonicWave
 * Deskripsi: Mengatur tampilan global aplikasi generator frekuensi universal.
 * Catatan: Semua path aset sudah disesuaikan ke struktur folder modular.
 */

@import url('https://fonts.googleapis.com/css2?family=Titillium+Web&display=swap');

/* === Pengaturan Dasar Halaman === */
html {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  color: #000;
  background: #257;
  font-family: "Titillium Web", sans-serif;
  letter-spacing: 0;
  line-height: 1.2em;
  font-size: 15px;
  width: 100%;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  transition: color 6000ms linear;
}

/* === Latar Belakang Gambar Tetap === */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: url("../assets/images/bg.jpg") no-repeat center center fixed;
  background-size: cover;
  transition: opacity 0.5s ease;
  opacity: 0.3;
}

.dimmed {
  opacity: 0.05;
}

/* === Tipografi & Warna === */
.label {
  letter-spacing: 5px;
  font-size: 16px;
}

.value {
  font-size: 13px;
}

.highlight {
  color: #000;
  background: #fff;
  padding: 0 2px;
}

.white {
  color: #fff;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.red {
  color: #f00;
}

.reg {
  color: #000;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  font-size: 16px;
  vertical-align: top;
}

.black {
  color: #000;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* === Area Tooltip Follow-Cursor === */
.cursor-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(0, 170, 255, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transform: translate(15px, 15px);
  text-shadow: none;
}

.cursor-tooltip b.mod {
  color: #0af;
}

.vol {
  color: #000;
}

/* === Grup Slider === */
.group {
  border-radius: 10px;
  padding: 0 0 5px 0;
  width: 360px;
  margin: 5px auto;
  background: rgba(255, 255, 255, 0.3);
}

.group.black {
  border: 2px solid rgba(0, 0, 0, 0.9);
}

.group.white {
  border: 2px solid rgba(255, 255, 255, 1);
}

.group.grey {
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.sliderGroup {
  width: 320px;
  margin: 2px auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  border: 0 solid;
}

.sliderGroup>.label {
  width: 100%;
  text-align: left;
  margin-bottom: 5px;
}

.sliderGroup>div {
  flex: 1;
  margin-right: 4px;
  margin-left: 4px;
}

/* === Input Teks Nilai Slider === */
input[type="text"] {
  text-align: center;
  font-family: inherit;
  font-size: 13px;
  background-color: transparent;
  border: 0 solid;
  color: #000;
  margin: 0;
  padding: 0;
  min-width: 1ch;
}

input:focus {
  outline: none;
}

/* === Area Utama (Tile) === */
.tile1 {
  width: 100%;
  text-align: center;
}

.tile2 {
  width: 100%;
  text-align: left;
}

/* === Judul & Subjudul === */
#title {
  opacity: 1;
  letter-spacing: 2px;
  line-height: 20px;
  font-size: 44px;
  color: #fff;
  padding-top: 20px;
}

#subtitle {
  opacity: 1;
  padding-top: 12px;
  letter-spacing: 2px;
  font-size: 24px;
  color: #fff;
}

/* === Logo === */
.logo {
  padding: 0;
  margin-bottom: -2px;
  height: 36px;
  vertical-align: bottom;
}

/* === Tombol Kontrol (Ikon) === */
.ctrlImg {
  height: 30px;
  width: 30px;
  margin: 6px;
  cursor: pointer;
  transition: 100ms linear;
  opacity: 0.8;
  filter: invert(0%) drop-shadow(2px 2px 5px #222);
}

.ctrlImg:hover {
  filter: invert(100%) drop-shadow(2px 2px 5px #ccc);
  opacity: 1;
}

/* === Tombol Pemilih Lapisan (Ikon Angka) === */
.selImg {
  height: 24px;
  width: 24px;
  margin: 6px 6px 0 6px;
  cursor: pointer;
  transition: 100ms linear;
  opacity: 0.8;
}

.selImg:hover {
  opacity: 1;
}

.active {
  filter: invert(100%);
  opacity: 1;
}

.superactive {
  opacity: 1;
  filter: invert(100%);
}

/* === Bagian Kontrol === */
.ctrSection {
  padding: 15px 40px;
  border: 0 solid blue;
}

/* === Konten Artikel === */
.section {
  margin: 40px 40px 40px 47px;
  padding: 20px 40px;
  text-align: left;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
}

.sectionLast {
  margin: 0;
  padding: 0 10% 15px 10%;
  text-align: center;
  font-size: 13px;
  line-height: 1.2em;
}

h1 {
  padding: 0;
  text-align: left;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.2em;
}

h2 {
  padding: 0;
  text-align: left;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.2em;
  color: #07a;
  font-style: italic;
}

h3 {
  padding: 0;
  text-align: left;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2em;
}

p {
  padding: 0;
}

a {
  color: #000;
}

a:hover {
  color: #06a;
}

a.nounderline {
  text-decoration: none;
}

a.white {
  color: #fff;
}

a.white:hover {
  color: #fff;
}

blockquote {
  padding: 0.25em 1.5em 0.5em 1.5em;
  margin: 0 0 1em;
  border-left: 1px dotted #666;
  color: #000;
  font-style: italic;
  clear: both;
}

/* === Area Sentuh Radio (Mobile) === */
#radioTouch {
  position: fixed;
  width: 256px;
  height: 256px;
  top: 25px;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  background-image: url("../assets/images/tap.png");
  background-size: 256px;
  background-repeat: no-repeat;
  display: none;
  z-index: 99;
}

/* === Kustomisasi jQuery UI Slider === */
.ui-slider-horizontal {
  height: 2px;
  border: solid 0 #888;
  background: #000;
}

.ui-slider .ui-slider-handle {
  top: 50%;
  margin-top: -9px;
  margin-left: -9px;
  height: 14px;
  width: 14px;
  border: solid 2px #000;
  border-radius: 50%;
  background: rgba(255, 255, 255, 1);
  cursor: pointer;
  outline: none;
}

/* === Navigasi Overlay (Hamburger Menu) === */
.overlayNav {
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 99;
  left: -100%;
  top: 0;
  background: #257;
  background: radial-gradient(ellipse at center, rgba(70, 150, 190, 1) 0%, rgba(16, 72, 113, 1) 100%);
  overflow-x: hidden;
  transition: 0.5s;
  opacity: 0.98;
}

.overlayWarning {
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 999999;
  right: -100%;
  top: 0;
  background: #257;
  background: radial-gradient(ellipse at center, rgba(70, 150, 190, 1) 0%, rgba(16, 72, 113, 1) 100%);
  overflow-x: hidden;
  transition: 0.5s;
  opacity: 0.98;
}

/* === Tombol Hamburger === */
.upperLeft {
  position: fixed;
  left: 10px;
  top: 10px;
  width: 26px;
  height: 26px;
  opacity: 0.8;
  cursor: pointer;
  z-index: 999;
  background-size: contain;
  visibility: hidden;
  filter: invert(0%);
}

.upperLeft:hover {
  filter: invert(100%);
}

/* === Menu Navigasi === */
.navCentered {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0;
  width: 80%;
  transform: translate(-50%, -50%);
  text-align: center;
  border: 0 dotted #f00;
}

.navLink {
  padding: 2vh;
  font-size: 22px;
  color: #000;
  cursor: pointer;
  line-height: 1.5em;
  letter-spacing: 2px;
}

.navLink:hover {
  color: #fff;
}

.sectionBottomLikes {
  position: absolute;
  width: 100%;
  left: 0;
  right: 0;
  bottom: 20px;
  border: 0 solid rgba(255, 255, 255, 0.5);
  text-align: center;
  transition: 0.5s;
}

/* === Animasi Tampil/Sembunyikan === */
.show {
  animation: cssAnimationVisible 0s ease-in 0.5s forwards;
  animation-fill-mode: forwards;
}

.hide {
  animation: cssAnimationHidden 0s ease-in 0.5s forwards;
  animation-fill-mode: forwards;
}

@keyframes cssAnimationHidden {
  to {
    visibility: hidden;
  }
}

@keyframes cssAnimationVisible {
  to {
    visibility: visible;
  }
}

/* === Responsif: Layar Kecil === */
@media screen and (max-height: 480px) {
  .sectionBottomLikes {
    display: none;
  }
}

@media screen and (max-height: 640px) {
  #title {
    display: none;
  }

  #subtitle {
    display: none;
  }
}

@media screen and (max-width: 640px) {
  .section {
    padding: 10px 20px;
  }

  body {
    background: #257;
    background: radial-gradient(ellipse at center, rgba(34, 85, 119, 1) 0%, rgba(50, 105, 140, 1) 100%);
  }
}