* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "NES";
  src: url(/Asset/font/Pixel_NES.woff2) format("woff2");
}

@font-face {
  font-family: "bitOPSCReg";
  src: url(/Asset/font/8bitOperatorPlusSC-Regular.woff2) format("woff2");
}

@font-face {
  font-family: "bitOPSCBold";
  src: url(/Asset/font/8bitOperatorPlusSC-Bold.woff2) format("woff2");
}

@font-face {
  font-family: "bitOPReg";
  src: url(/Asset/font/8bitOperatorPlus8-Regular.woff2) format("woff2");
}

@font-face {
  font-family: "bitOPBold";
  src: url(/Asset/font/8bitOperatorPlus8-Bold.woff2) format("woff2");
}

@font-face {
  font-family: "marioDS";
  src: url(/Asset/font/Mario-Kart-DS.ttf) format("truetype");
}

@font-face {
  font-family: "retro";
  src: url(/Asset/font/retro_computer_personal_use.ttf) format("truetype");
}

@font-face {
  font-family: "pixel";
  src: url(/Asset/font/pixelmix.ttf) format("truetype");
}

body {
  min-height: 100vh;
  background-image: url(/Asset/background/background-1080p.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: rgb(240, 240, 240);
  image-rendering: pixelated;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 28px;
}

/* ==================== LAYOUT LAYAR LEBAR (3 KOLOM) ==================== */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
}

/* ---------- KOLOM KIRI ---------- */
.leftpage {
  width: 295px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.logs {
  background-color: rgba(0, 0, 0, 0.94);
  border: 3px solid rgb(240, 240, 240);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 2px rgb(0, 0, 0),
    0 0 0 1px rgba(240, 240, 240, 0.25),
    4px 4px 0 rgba(0, 0, 0, 0.7);
  width: 100%;
  height: 410px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}

.logs h1 {
  font-family: "bitOPSCBold", sans-serif;
  font-size: 27px;
  text-align: center;
  margin-bottom: 6px;
  user-select: none;
}

.logs .scrollable-content {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgb(240, 240, 240) rgb(0, 0, 0);
}

.logs .scrollable-content::-webkit-scrollbar {
  width: 4px;
}

.logs .scrollable-content::-webkit-scrollbar-track {
  background-color: rgb(0, 0, 0);
}

.logs .scrollable-content::-webkit-scrollbar-thumb {
  background-color: rgb(240, 240, 240);
  border-radius: 4px;
}

.logs p1,
.logs p {
  font-family: "bitOPBold", sans-serif;
  font-size: 14px;
  display: block;
  margin-top: 6px;
  margin-bottom: 1px;
  line-height: 1.15;
  text-align: left;
}

.logs li {
  list-style-type: none;
  margin-left: 0;
  padding: 3px 0 4px 36px;
  background-image: url(/Asset/icon/favicon.ico);
  background-repeat: no-repeat;
  background-position: -14px center;
  background-size: auto;
  font-size: 13.5px;
  font-family: "bitOPReg", sans-serif;
  letter-spacing: -0.5px;
  line-height: 1.25;
  text-align: left;
  overflow: visible;
}

.about {
  background-color: rgba(0, 0, 0, 0.94);
  border: 3px solid rgb(240, 240, 240);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 2px rgb(0, 0, 0),
    0 0 0 1px rgba(240, 240, 240, 0.25),
    4px 4px 0 rgba(0, 0, 0, 0.7);
  width: 100%;
  min-height: 155px;
  padding: 14px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}

.about a {
  text-decoration: none;
  color: rgb(240, 240, 240);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.2s ease;
  user-select: none;
}

.about {
  background-color: rgba(0, 0, 0, 0.94);
  border: 3px solid rgb(240, 240, 240);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 2px rgb(0, 0, 0),
    0 0 0 1px rgba(240, 240, 240, 0.25),
    4px 4px 0 rgba(0, 0, 0, 0.7);
  width: 100%;
  min-height: 155px;
  padding: 12px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}

.about a {
  text-decoration: none;
  color: rgb(240, 240, 240);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 0.2s ease;
  user-select: none;
}

.about a:hover {
  transform: scale(1.12);
}

.about img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.diary .DIARY,
.me .ME,
.doc .DOC {
  font-family: "bitOPSCReg", sans-serif;
  font-size: 16px;
  line-height: 1.15;
  text-align: center;
  color: rgb(240, 240, 240);
}

/* ---------- KOLOM TENGAH ---------- */
.midpage {
  flex: 1;
  max-width: 780px;
  min-width: 0;
}

.content {
  background-color: rgba(0, 0, 0, 0.94);
  border: 3px solid rgb(240, 240, 240);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 2px rgb(0, 0, 0),
    0 0 0 1px rgba(240, 240, 240, 0.25),
    4px 4px 0 rgba(0, 0, 0, 0.7);
  width: 100%;
  padding: 28px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content h1 {
  font-family: "NES", sans-serif;
  font-size: 36px;
  text-align: center;
  margin-bottom: 10px;
  user-select: none;
}

.content > p {
  font-family: "pixel", sans-serif;
  font-size: 13.5px;
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  width: 100%;
  border-bottom: 2px solid rgba(240, 240, 240, 0.25);
}

.frame {
  width: 100%;
  padding: 4px;
}

#contentPlaceholder {
  font-family: "bitOPReg", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  white-space: pre-line;
  text-align: left;
}

/* ---------- KOLOM KANAN ---------- */
.rightpage {
  width: 285px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.waktu {
  background-color: rgba(0, 0, 0, 0.94);
  border: 3px solid rgb(240, 240, 240);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 2px rgb(0, 0, 0),
    0 0 0 1px rgba(240, 240, 240, 0.25),
    4px 4px 0 rgba(0, 0, 0, 0.7);
  width: 100%;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.time,
.visitor {
  color: rgb(0, 255, 0);
  font-family: "bitOPSCReg", sans-serif;
  font-size: 15px;
  text-align: center;
}

.clock {
  font-size: 20px;
  font-family: "pixel", sans-serif;
  letter-spacing: 2px;
  text-align: center;
  color: rgb(240, 240, 240);
}

.result {
  font-size: 13px;
  font-family: "pixel", sans-serif;
  color: rgb(220, 220, 220);
  text-align: center;
  min-height: 16px;
}

.status {
  background-color: rgba(0, 0, 0, 0.94);
  border: 3px solid rgb(240, 240, 240);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 2px rgb(0, 0, 0),
    0 0 0 1px rgba(240, 240, 240, 0.25),
    4px 4px 0 rgba(0, 0, 0, 0.7);
  width: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.status h1 {
  font-family: "bitOPSCBold", sans-serif;
  font-size: 25px;
  text-align: center;
  width: 100%;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(240, 240, 240, 0.25);
}

#statusImage {
  position: static;
  transform: none;
  max-width: 92px;
  max-height: 92px;
  object-fit: contain;
}

#statusText {
  font-family: "bitOPBold", sans-serif;
  font-size: 15px;
  text-align: center;
}

.chatbox {
  background-color: rgba(0, 0, 0, 0.94);
  border: 3px solid rgb(240, 240, 240);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 2px rgb(0, 0, 0),
    0 0 0 1px rgba(240, 240, 240, 0.25),
    4px 4px 0 rgba(0, 0, 0, 0.7);
  width: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.chatbox h1 {
  font-family: "bitOPSCBold", sans-serif;
  font-size: 25px;
  text-align: center;
  width: 100%;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(240, 240, 240, 0.25);
  user-select: none;
}

.chatbox p {
  font-family: "pixel", sans-serif;
  font-size: 11.5px;
  text-align: center;
  line-height: 1.45;
  user-select: none;
}

.chatbox iframe {
  width: 100%;
  max-width: 245px;
  height: 195px;
  border: none;
  border-radius: 4px;
  margin-top: 4px;
}

/* ==================== FOOTER ==================== */
footer {
  margin-top: 24px;
  padding: 8px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.copyright {
  font-family: "pixel", sans-serif;
  font-size: 13px;
  letter-spacing: 6px;
  line-height: 24px;
  text-align: center;
  user-select: none;
}

/* ==================== RESPONSIF TABLET & HP (GARIS PUTIH DEFAULT) ==================== */
@media (max-width: 960px) {
  body {
    background-attachment: scroll;
    padding: 14px 12px;
  }

  .container {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .leftpage,
  .midpage,
  .rightpage {
    width: 100%;
    max-width: none;
    gap: 14px;
  }

  .logs,
  .about,
  .content,
  .waktu,
  .status,
  .chatbox {
    border: 3px solid rgb(255, 255, 255);
    border-radius: 8px;
    box-shadow: none;
  }

  .logs {
    height: 240px;
  }

  .logs h1 {
    font-size: 22px;
  }

  .logs li {
    font-size: 13.5px;
    padding: 3px 0 5px 30px;
  }

  .about {
    min-height: 120px;
    padding: 12px 8px;
  }

  .about img {
    width: 44px;
    height: 44px;
  }

  .content {
    min-height: auto;
    padding: 20px 16px;
  }

  .content h1 {
    font-size: 24px;
    line-height: 1.3;
  }

  .content > p {
    font-size: 12px;
  }

  #contentPlaceholder {
    font-size: 16px;
    line-height: 1.5;
  }

  .chatbox p {
    font-size: 11px;
  }

  .chatbox iframe {
    max-width: 100%;
    height: 210px;
  }

  .copyright {
    font-size: 11px;
    letter-spacing: 2px;
    line-height: 20px;
  }
}