@import url('https://fonts.cdnfonts.com/css/japanese-style');
@import url('https://fonts.cdnfonts.com/css/funny-samurai');
@import url('https://fonts.cdnfonts.com/css/almost-japanese');
@import url('https://fonts.cdnfonts.com/css/japanese-brush');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
@import url("https://fonts.googleapis.com/css?family=Arvo|Electrolize|Iceberg|Oleo Script Swash Caps|Poppins|Big+Shoulders+Display|Rubik+Glitch");
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&family=JetBrains+Mono&family=Source+Code+Pro&display=swap');

:root {
    --warna1: var(--kem-putih, #ffffff);   /* putih utama */
    --warna2: var(--kem-merah, #a62a16);   /* merah utama */
    --warna3: #cacaca;
    --warna4: #b30000;
    --warna5: #fff5f0;

    /* Kemerdekaan (pastikan tetap ada) */
    --kem-merah: #a62a16; /* merah bendera */
    --kem-putih: #ffffff; /* putih bendera */
    --kem-emas: #f5ce6d;  /* aksen emas */
}

.Poppins {
  font-family: "Poppins";
}

.japanese-style {
  font-family: "Japanese Style";
}

.funny-samurai {
  font-family: "Funny Samurai";
}

.almost-japanese {
  font-family: "Almost Japanese";
}

.japanese-brush {
  font-family: 'Japanese Brush';
}

.Arvo {
  font-family: Arvo, sans-serif;
}

.Electrolize {
  font-family: Electrolize, sans-serif;
}

.Iceberg {
  font-family: Iceberg, sans-serif;
}

.BigShouldersDisplay {
  font-family: "Big Shoulders Display", sans-serif;
}

.BigShouldersDisplay-Bold {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: bold;
}

.glitch {
  font-family: "Rubik Glitch", system-ui;
}

/* Dracula Theme */
.hljs {
    display: block;
    overflow-x: auto;
    padding: 0.5em;
    background: #282a36;
    color: #f8f8f2;
}
  
/* Keywords */
.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-type,
.hljs-name,
.hljs-strong {
  color: #ff79c6;
}

/* Tags */
.hljs-built_in,
.hljs-link,
.hljs-section {
  color: #8be9fd;
}

/* Strings and Templates */
.hljs-string,
.hljs-meta,
.hljs-addition,
.hljs-variable,
.hljs-template-tag,
.hljs-template-variable {
  color: #f1fa8c;
}

/* Titles and Attributes */
.hljs-title,
.hljs-attr,
.hljs-meta-keyword {
  color: #50fa7b;
}

/* Comments and Quotes */
.hljs-comment,
.hljs-quote {
  color: #6272a4;
  font-style: italic;
}

/* Numbers and Symbols */
.hljs-number,
.hljs-symbol,
.hljs-bullet {
  color: #bd93f9;
}

/* Deletions */
.hljs-deletion {
  color: #ff5555;
}

/* Emphasis */
.hljs-emphasis {
  font-style: italic;
}

/* Bold */
.hljs-strong {
  font-weight: bold;
}
  

.fira-code {
  font-family: 'Fira Code', monospace;
}

.jetbrains-mono {
  font-family: 'JetBrains Mono', monospace;
}

.source-code-pro {
  font-family: 'Source Code Pro', monospace;
}


:root {
    --original-screen-height: calc(100vh);
    --original-screen-width: calc(100vw);
}

* {
    scroll-behavior: smooth;
}

.body-bg {
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, var(--kem-putih) 50%, var(--kem-merah) 50%);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: var(--kem-merah);
    height: var(--original-screen-height);
}

/* Untuk handphone */
/*@media only screen and (max-width: 768px) {
    .body-bg {
        background-image: url('/assets/image/bg2.png');
    }
}*/
/* Untuk desktop */
/*@media only screen and (min-width: 769px) {
    .body-bg {
        background-image: url('/assets/image/bg.png');
    }   
}*/

.scroll-x {
    overflow-x: scroll;
}
.scroll-y {
    overflow-y: scroll;
}

/* Mengubah warna scroll bar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--kem-merah);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7a1e12; /* sedikit lebih gelap saat hover */
}

.round-circle {
    border-radius: 50%;
}
.rounded {
    border-radius: 10px;
}
.rounded-lg {
    border-radius: 20px;
}
.rounded-xl {
    border-radius: 30px;
}
.rounded-full {
    border-radius: 50%;
}

.padding {
    padding: 10px 15px;
}

.padding2 {
    padding: 20px 30px;
}

.padding3 {
    padding: 30px 45px;
}

.padding4 {
    padding: 40px 60px;
}

.kaca {
    backdrop-filter: blur(5px);
}

.kaca-hitam {
    background-color: #00000040;
    backdrop-filter: blur(5px);
}

.kaca-putih {
    background-color: #ffffff40;
    backdrop-filter: blur(5px);
}

.kaca-emas {
    background-color: #f5ce6d40;
    backdrop-filter: blur(5px);
}

.kaca-merah {
    background-color: #a62a1640;
    backdrop-filter: blur(5px);
}

.btn1 {
    background-color: var(--kem-merah);
    color: var(--kem-putih);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.08);
    transition: transform .18s ease, background-color .18s ease;
}

.btn1:hover {
    background-color: #7a1e12;
    color: var(--kem-putih);
    transform: translateY(-2px) scale(1.03);
}


.btn2 {
    background-color: var(--kem-putih);
    color: var(--kem-merah);
    padding: 10px 20px;
    border: 2px solid var(--kem-merah);
    border-radius: 5px;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.btn2:hover {
    background-color: var(--kem-merah);
    color: var(--kem-putih);
    transform: translateY(-2px) scale(1.03);
}

.bg-emas {
    background-color: #f5ce6d;
}

.bg-merah {
    background-color: #a62a16;
}

.bg-abu {
    background-color: #d3d3d3;
}
.bg-hitam {
    background-color: #000000;
}
.bg-putih {
    background-color: #ffffff;
}

.emas {
    color: #f5ce6d;
    font-weight: bold;
}
.merah {
    color: var(--kem-merah);
    font-weight: bold;
}
.putih {
    color: var(--kem-putih);
    font-weight: bold;
}

.border-emas {
    border: 2px solid #f5ce6d;
}
.border-merah {
    border: 2px solid var(--kem-merah);
}
.border-putih {
    border: 2px solid var(--kem-putih);
}

.bg-emas-opacity-50 {
    background-color: rgba(245, 206, 109, 0.5);
}
.bg-merah-opacity-50 {
    background-color: rgba(166, 42, 22, 0.5);
}
.bg-putih-opacity-50 {
    background-color: rgba(255, 255, 255, 0.5);
}


.box {
    padding: 15px 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.flex-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  align-content: normal;
}

.flex-items {
  display: flex;
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  align-self: auto;
  order: 0;
}

.flex {
    display: flex;
}
.flex-row {
    flex-direction: row;
}
.flex-column {
    flex-direction: column;
}
.flex-wrap {
    flex-wrap: wrap;
}
.flex-nowrap {
    flex-wrap: nowrap;
}
.flex-center {
    justify-content: center;
    align-items: center;
}
.flex-start {
    justify-content: flex-start;
    align-items: flex-start;
}
.flex-end {
    justify-content: flex-end;
    align-items: flex-end;
}
.flex-between {
    justify-content: space-between;
    align-items: center;
}
.flex-around {
    justify-content: space-around;
    align-items: center;
}
.flex-evenly {
    justify-content: space-evenly;
    align-items: center;
}
.flex-column-reverse {
    flex-direction: column-reverse;
}
.flex-row-reverse {
    flex-direction: row-reverse;
}
.flex-align-start {
    align-items: flex-start;
}
.flex-align-end {
    align-items: flex-end;
}
.flex-align-center {
    align-items: center;
}


.w-100 {
    width: 100px;
}
.w-200 {
    width: 200px;
}
.w-300 {
    width: 300px;
}
.w-400 {
    width: 400px;
}
.w-500 {
    width: 500px;
}
.w-600 {
    width: 600px;
}
.w-700 {
    width: 700px;
}
.w-full {
    width: 100%;
}

.h-100 {
    height: 100px;
}
.h-200 {
    height: 200px;
}
.h-300 {
    height: 300px;
}
.h-400 {
    height: 400px;
}
.h-500 {
    height: 500px;
}
.h-600 {
    height: 600px;
}
.h-700 {
    height: 700px;
}
.h-full {
    height: 100%;
}

.-w-100 {
    min-width: 100px;
}
.-w-200 {
    min-width: 200px;
}
.-w-300 {
    min-width: 300px;
}
.-w-400 {
    min-width: 400px;
}
.-w-500 {
    min-width: 500px;
}
.-w-600 {
    min-width: 600px;
}
.-w-700 {
    min-width: 700px;
}

.-h-100 {
    min-height: 100px;
}
.-h-200 {
    min-height: 200px;
}
.-h-300 {
    min-height: 300px;
}
.-h-400 {
    min-height: 400px;
}
.-h-500 {
    min-height: 500px;
}
.-h-600 {
    min-height: 600px;
}
.-h-700 {
    min-height: 700px;
}

.gap-10 {
    gap: 10px;
}
.gap-20 {
    gap: 20px;
}
.gap-30 {
    gap: 30px;
}
.gap-40 {
    gap: 40px;
}
.gap-50 {
    gap: 50px;
}
.gap-60 {
    gap: 60px;
}
.gap-70 {
    gap: 70px;
}
.gap-80 {
    gap: 80px;
}
.gap-90 {
    gap: 90px;
}
.gap-100 {
    gap: 100px;
}

/* Tema Kemerdekaan 17 Agustus */
.theme-kemerdekaan {
    background: linear-gradient(180deg, var(--kem-putih) 50%, var(--kem-merah) 50%);
    color: var(--kem-merah);
    min-height: var(--original-screen-height);
}

/* Header khusus (pita/strip) */
.header-kemerdekaan {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(90deg, rgba(0,0,0,0.03), rgba(0,0,0,0.02));
    border-bottom: 4px solid rgba(0,0,0,0.06);
}
.header-kemerdekaan .title {
    font-family: "Big Shoulders Display", sans-serif;
    font-weight: 800;
    color: var(--kem-merah);
    letter-spacing: 1px;
    font-size: 1.6rem;
}

/* Bendera kecil (ikon) */
.flag {
    width: 96px;
    height: 56px;
    border: 2px solid var(--kem-merah);
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    background: linear-gradient(180deg, var(--kem-merah) 50%, var(--kem-putih) 50%);
}

/* Badge 17 Agustusan */
.badge17 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(45deg, var(--kem-merah), #d3442a);
    color: var(--kem-putih);
    font-weight: 800;
    font-family: "Big Shoulders Display", sans-serif;
    box-shadow: 0 6px 18px rgba(166,42,22,0.18);
    transform-origin: center;
    animation: badge-pulse 2.2s infinite;
    gap: 8px;
}
@keyframes badge-pulse {
    0% { transform: scale(1); box-shadow: 0 6px 18px rgba(166,42,22,0.18); }
    50% { transform: scale(1.06); box-shadow: 0 10px 24px rgba(166,42,22,0.24); }
    100% { transform: scale(1); box-shadow: 0 6px 18px rgba(166,42,22,0.18); }
}

/* Utility warna dan latar */
.text-merah { color: var(--kem-merah) !important; }
.text-putih { color: var(--kem-putih) !important; }
.bg-merah-putih {
    background: linear-gradient(180deg, var(--kem-putih) 50%, var(--kem-merah) 50%);
}

/* Kembang api sederhana (bisa diletakkan di container dengan beberapa .spark) */
.firework {
    position: relative;
    width: 24px;
    height: 24px;
    pointer-events: none;
}
.firework .spark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    transform-origin: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff6b3, var(--kem-emas));
    box-shadow: 0 0 8px rgba(245,206,109,0.9), 0 0 18px rgba(245,206,109,0.6);
    animation: spark-fly 900ms ease-out forwards;
    opacity: 0;
}
.firework .spark:nth-child(1){ transform: translate(-2px,-12px); animation-delay: 0ms; }
.firework .spark:nth-child(2){ transform: translate(10px,-8px); animation-delay: 50ms; }
.firework .spark:nth-child(3){ transform: translate(12px,6px); animation-delay: 100ms; }
.firework .spark:nth-child(4){ transform: translate(-6px,8px); animation-delay: 150ms; }
.firework .spark:nth-child(5){ transform: translate(-12px,0px); animation-delay: 200ms; }

@keyframes spark-fly {
    0% { opacity: 1; transform: scale(0.6) translate(0,0) rotate(0deg); filter: blur(0); }
    60% { opacity: 1; transform: scale(1.05) translate(0,-10px) rotate(30deg); filter: blur(0.6px); }
    100% { opacity: 0; transform: scale(0.3) translate(0,-30px) rotate(90deg); filter: blur(2px); }
}

/* Ornamen pita di sudut */
.ribbon-kemerdekaan {
    position: absolute;
    right: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--kem-merah), var(--kem-emas));
    color: var(--kem-putih);
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Responsive kecil: perbaikan ukuran bendera & badge */
@media (max-width: 480px) {
    .flag { width: 72px; height: 44px; }
    .badge17 { padding: 8px 12px; font-size: 0.9rem; }
}