/*
  now includes mobile overrides for better responsiveness on smaller screens.
  the base styles are designed for desktop, while the media query adjusts the
  layout and typography for mobile devices.
*/

/* =========================
   BASE (DESKTOP / DEFAULT)
   ========================= */

body {
  background: url("assets/bg_tile.gif");
  font-family: Consolas;
  font-size: 12px;
  color: #000;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: Consolas;
  src: url('https://rubinbizarre.neocities.org/consola.ttf');
}

button {
  border: none;
  color: #000;
  padding: 14px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  font-family: Consolas;
}

.page {
  /* width: 760px; */
  width: calc(100% - 48px);
  margin: 20px auto;
  background: #fff;
  border: 2px solid #000;
  border-collapse: collapse;
}

.sidebar {
  width: 180px;
  vertical-align: top;
  padding: 10px;
  background: #e6e6e6;
  border-right: 2px solid #000;
}

.content {
  padding: 15px;
}

h2, h3 {
  margin-top: 0;
}

.sub, .status {
  font-size: 11px;
  color: #555;
}

ul {
  padding-left: 18px;
}

li {
  margin-bottom: 6px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #0000cc;
  text-decoration: underline;
}

a:hover {
  background: yellow;
}

.c {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  position: relative;
  bottom: 10px;
  width: 100%;
}

/* =========================
   MOBILE OVERRIDES
   ========================= */

@media screen and (max-width: 768px) {

  /* Page background still visible, but not overwhelming */
  body {
    font-size: 14px;
    background-color: #fff; /* your red, but calmer */
  }

  /* Fully flatten table layout */
  table.page,
  table.page tr,
  table.page td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* The main page container */
  .page {
    margin: 12px auto;
    width: calc(100% - 24px);
    background: #ffffff;
    border: 2px solid #000;
  }

  /* Sidebar becomes top section */
  .sidebar {
    padding: 14px 12px;
    background: #e6e6e6;
    border-right: none;
    border-bottom: 2px solid #000;
  }

  /* Space out sidebar lists */
  .sidebar h3 {
    margin-bottom: 6px;
  }

  .sidebar ul {
    margin-top: 4px;
    margin-bottom: 10px;
    padding-left: 18px;
  }

  /* Main content area */
  .content {
    padding: 14px 12px 18px 12px;
  }

  /* Improve vertical rhythm */
  p {
    margin-top: 0.6em;
    margin-bottom: 0.8em;
  }

  hr {
    margin: 12px 0;
  }

  /* Prevent images from blowing out layout */
  img {
    max-width: 100%;
    height: auto;
  }

  h2 {
    font-size: 18px;
  }

  h3 {
    font-size: 15px;
  }

  .sub {
    font-size: 12px;
  }
}
