
@font-face {
  font-family: 'BilloFont';
  src: url('BILLO___.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  background-image: url('win7.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding-top: 120px;

  font-family: Verdana, sans-serif;
  color: #000;
}


.side-nav {
  position: fixed;
  left: 30px;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.margin-button {
  width: 120px;
  padding: 12px 18px;

  text-align: center;
  text-decoration: none;

  font-size: 13px;
  font-weight: bold;
  color: #fff;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;

  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);

  transition: all 0.25s ease;
}

.margin-button:hover {
  background: rgba(255,255,255,0.35);
  border-color: #6ecbff;
  box-shadow: 0 0 20px rgba(110,203,255,0.6);
  transform: scale(1.05);
}


.window {
  width: 90%;
  max-width: 760px;

  background: rgba(255,255,255,0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.45);

  box-shadow:
    0 20px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.6);

  overflow: hidden;
}

.title-bar {
  height: 36px;
  padding: 0 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.55),
    rgba(255,255,255,0.25)
  );

  border-bottom: 1px solid rgba(255,255,255,0.4);

  font-size: 13px;
  font-weight: bold;
  color: #000;

  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}

.title-text {
  font-family: 'BilloFont', cursive;
  font-size: 18px;
}

/* Window buttons */
.window-buttons {
  display: flex;
  gap: 8px;
}

.window-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;

  background: radial-gradient(
    circle at top left,
    #fff,
    #aaa
  );

  border: 1px solid rgba(0,0,0,0.35);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6);
}


.window-content {
  padding: 32px;
  text-align: center;
}

h1, h2, h3 {
  font-family: 'BilloFont', cursive;
  margin-top: 0;
}


.iframe-wrap {
  width: 100%;
  height: 70vh;
  overflow: hidden;
  border-radius: 10px;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.4),
    0 6px 16px rgba(0,0,0,0.25);
}

.iframe-wrap iframe {
  width: 125%;
  height: 125%;
  border: none;

  transform: scale(0.8);
  transform-origin: top left;
}

/* =========================
   Blog Text Styling
========================= */
.blog-post {
  margin-bottom: 2rem;
}

.blog-post h2 {
  margin-bottom: 0.25rem;
}

.blog-post time {
  font-size: 0.85rem;
  opacity: 0.7;
}

.post-body {
  margin-top: 0.5rem;
}

.loading {
  opacity: 0.6;
  font-style: italic;
}


/* =========================
   Mobile Support
========================= */

@media (max-width: 768px) {

  body {
    padding-top: 80px;
  }

  /* ---------- Side Nav becomes top bar ---------- */
  .side-nav {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);

    flex-direction: row;
    gap: 10px;

    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.35);

    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 10000;
  }

  .margin-button {
    width: auto;
    padding: 8px 12px;
    font-size: 12px;
  }

  /* ---------- Window ---------- */
  .window {
    width: 95%;
    max-width: none;
    border-radius: 12px;
  }

  .title-bar {
    height: 34px;
    padding: 0 10px;
  }

  .title-text {
    font-size: 16px;
  }

  .window-buttons {
    gap: 6px;
  }

  .window-btn {
    width: 12px;
    height: 12px;
  }

  /* ---------- Window Content ---------- */
  .window-content {
    padding: 20px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.95rem;
  }

  /* ---------- Images ---------- */
  img {
    max-width: 100%;
    height: auto;
  }

  /* ---------- iframe ---------- */
  .iframe-wrap {
    height: 75vh;
  }

  .iframe-wrap iframe {
    transform: scale(0.9);
    width: 111%;
    height: 111%;
  }
}
