/* ==========================================
   CYBER Internet Café – GeoCities CSS Style
   ========================================== */

:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray: #808080;
  --color-blue: #0000ff;
  --color-lime: #00ff00;
  --color-yellow: #ffff00;
  --color-red: #ff0000;
}

/* --- Base --- */
body {
  margin: 0;
  padding: 0;
  background: var(--color-black) url('assets/starfield.gif') repeat;
  color: var(--color-lime);
  font-family: "Times New Roman", Times, Baskerville, Georgia, serif;
  font-size: 12pt;
  line-height: 1.4;
  overflow: hidden;
}

p,
td,
th,
li,
input,
textarea,
button,
select {
  font-size: 12pt;
}

/* Retro scrollbars */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray);
  box-shadow: inset 1px 1px 0 var(--color-gray), inset -1px -1px 0 var(--color-white);
}

::-webkit-scrollbar-thumb {
  background: var(--color-white);
  border-top: 2px solid var(--color-white);
  border-left: 2px solid var(--color-white);
  border-right: 2px solid var(--color-gray);
  border-bottom: 2px solid var(--color-gray);
  box-shadow: 1px 1px 0 var(--color-black);
}

::-webkit-scrollbar-button {
  background: var(--color-white);
  border-top: 2px solid var(--color-white);
  border-left: 2px solid var(--color-white);
  border-right: 2px solid var(--color-gray);
  border-bottom: 2px solid var(--color-gray);
  width: 16px;
  height: 16px;
  display: block;
}

/* --- Frameset Layout --- */
#frameset {
  display: grid;
  grid-template-columns: 220px 4px 1fr;
  height: 100vh;
  width: 100vw;
  box-sizing: border-box;
}

#nav-frame {
  grid-column: 1;
  height: 100vh;
  overflow-y: auto;
  background-color: var(--color-gray);
  border-right: 2px inset var(--color-white);
  box-sizing: border-box;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#frame-divider {
  grid-column: 2;
  background-color: var(--color-gray);
  box-shadow: inset 1px 1px 0 var(--color-white), inset -1px -1px 0 var(--color-gray);
  height: 100vh;
  cursor: col-resize;
}

#main-frame {
  grid-column: 3;
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 20px 30px;
  text-align: center;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-family: "Times New Roman", Times, serif;
  color: var(--color-yellow);
  text-shadow: 1px 1px 0 var(--color-gray);
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-size: 12pt;
  text-align: center;
}

h1 {
  border-bottom: 3px double var(--color-yellow);
  padding-bottom: 5px;
  display: inline-block;
}

h2 {
  border-bottom: 2px dashed var(--color-gray);
  padding-bottom: 3px;
  display: inline-block;
}

h3 {
  color: var(--color-yellow);
  text-shadow: 1px 1px 0 var(--color-black);
}

a {
  color: var(--color-yellow);
  text-decoration: underline;
}

a:visited {
  color: var(--color-red);
}

a:hover {
  color: var(--color-white);
  background-color: var(--color-blue);
  cursor: pointer;
}

/* --- Sidebar Nav --- */
.nav-menu {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  width: 100%;
}

.nav-item {
  margin-bottom: 12px;
  text-align: left;
}

.nav-link {
  color: var(--color-yellow);
  text-decoration: underline;
  font-size: 12pt;
  font-weight: bold;
  background: transparent;
  transition: all 0.1s ease;
  display: inline-block;
}

.nav-link:visited {
  color: var(--color-yellow);
}

.nav-link:hover {
  color: var(--color-blue) !important;
  background: transparent;
}

.nav-link.active {
  color: var(--color-blue) !important;
  background: transparent;
}

/* --- Visitor Counter --- */
.counter-box {
  margin: 15px 0;
  text-align: center;
  align-self: center;
}

.counter-title {
  font-size: 12px;
  color: var(--color-white);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.counter-digits {
  background: var(--color-black);
  color: var(--color-red);
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  font-size: 20px;
  padding: 3px 8px;
  border: 3px inset var(--color-gray);
  display: inline-block;
  letter-spacing: 3px;
}

/* --- Sidebar Footer --- */
.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-top: auto;
  padding-bottom: 15px;
  width: 100%;
  align-self: flex-start;
}

.badges-container p {
  color: var(--color-white);
  text-align: left;
  margin: 0;
}

.email-link {
  font-weight: bold;
  color: var(--color-yellow);
}

/* --- Content Sections --- */
.content-section {
  display: none;
}

.content-section.active {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-sizing: border-box;
}

.section-content {
  flex: 0 0 auto;
}

.section-footer {
  margin-top: auto;
  flex: 0 0 auto;
}

/* --- Pixelated Image (under-construction gif, logo) --- */
.img-pixel {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

/* --- Hero Banner --- */
.hero-header {
  background: var(--color-black);
  border: 3px outset var(--color-gray);
  padding: 2px;
  margin-bottom: 25px;
  box-sizing: border-box;
}

.hero-inner {
  border: 1px inset var(--color-gray);
  padding: 15px 10px;
  text-align: center;
  background-color: var(--color-black);
}

.hero-header img {
  width: 300px;
  max-width: 100%;
  height: auto;
}

.hero-tagline {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: var(--color-white);
  letter-spacing: 4px;
  font-weight: bold;
  text-shadow: 2px 2px 0 var(--color-black);
  text-transform: uppercase;
  margin-bottom: 5px;
}

/* --- Marquee --- */
.marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: var(--color-black);
  font-family: 'Courier New', Courier, monospace;
  color: var(--color-red);
}

.marquee-text {
  display: inline-block;
  padding-left: 100%;
  animation: marquee-anim 35s linear infinite;
}

@keyframes marquee-anim {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* --- Flat Highlight Title --- */
.rainbow-text {
  font-weight: bold;
  display: inline-block;
  text-transform: uppercase;
  animation: rainbow-cycle 5s infinite;
}

@keyframes rainbow-cycle {

  0%,
  100% {
    color: var(--color-white);
  }

  25% {
    color: var(--color-blue);
  }

  50% {
    color: var(--color-yellow);
  }

  75% {
    color: var(--color-red);
  }
}

/* --- Section Heading Wrapper (centered h2) --- */
.section-heading {
  text-align: center;
  margin: 20px 0;
}

/* --- Retro Information Table --- */
.retro-table {
  border: 3px outset var(--color-gray);
  border-spacing: 2px;
  max-width: 60%;
  width: 100%;
  margin: 25px auto;
  text-align: left;
  background-color: var(--color-black);
  border-collapse: separate;
}

.retro-table th {
  background-color: #000080;
  color: var(--color-yellow);
  font-family: "Times New Roman", Times, Baskerville, Georgia, serif;
  font-size: 12pt;
  padding: 6px 10px;
  border: 1px inset var(--color-gray);
  text-align: left;
}

.retro-table td {
  color: var(--color-lime);
  font-size: 12pt;
  border: 1px inset var(--color-gray);
  line-height: 1.4;
  font-family: "Times New Roman", Times, Baskerville, Georgia, serif;
  padding: 10px;
}

.retro-table td b {
  color: var(--color-yellow);
}

.retro-table.wide-table {
  max-width: 90%;
}

.retro-table ul {
  list-style-type: square;
  margin-top: 5px;
  margin-bottom: 0;
  padding-left: 20px;
}

.under-construction {
  padding: 10px;
}

/* --- Page Footer (webring + copyright) --- */
.page-footer-rule {
  border: 1px dashed var(--color-gray);
  margin: 30px 0;
}

.copyright {
  font-weight: bold;
  color: var(--color-yellow);
}

/* Webring Links overrides */
.webring-prev,
.webring-prev:visited,
.webring-next,
.webring-next:visited {
  color: var(--color-yellow);
  text-decoration: underline;
}

.webring-prev:hover,
.webring-next:hover {
  color: var(--color-white) !important;
  background-color: var(--color-blue);
}

.disclaimer {
  font-size: 10pt;
  color: var(--color-gray);
}

/* Paragraph text highlighting */
#main-frame p {
  background-color: var(--color-black);
  padding: 6px 10px;
  margin-bottom: 1em;
}

#main-frame p.disclaimer,
#main-frame p.copyright,
#main-frame p:has(.webring-prev),
#main-frame p:has(.webring-next) {
  background-color: transparent;
  padding: 0;
}

/* --- Visualisation Gallery (Google style cards) --- */
.visualisation-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 25px auto;
  width: 100%;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
}

.gallery-thumb {
  width: 200px;
  height: 140px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  margin-top: 8px;
  font-size: 11pt;
  color: var(--color-white);
  font-weight: bold;
  font-family: 'Times New Roman', Times, serif;
}

.gallery-action {
  font-size: 12pt;
  margin-top: 4px;
}

.gallery-action a {
  color: var(--color-yellow);
  text-decoration: underline;
}

/* --- Screen Warning (Desktop Only Alert) --- */
#desktop-only-warning {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-black);
  color: var(--color-lime);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  padding: 20px;
}

#desktop-only-warning .warning-content {
  border: 3px double var(--color-red);
  padding: 30px;
  background-color: #0b0b0b;
  max-width: 450px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#desktop-only-warning img {
  display: block;
  margin: 0 auto 10px auto;
}

#desktop-only-warning h1 {
  display: block;
  text-align: center;
  color: var(--color-red);
  font-family: 'Courier New', Courier, monospace;
  font-size: 16pt;
  margin-top: 10px;
  margin-bottom: 15px;
  border-bottom: 2px dashed var(--color-red);
  padding-bottom: 5px;
}

#desktop-only-warning p {
  font-size: 12pt;
  line-height: 1.4;
  margin-bottom: 15px;
}

#desktop-only-warning b {
  color: var(--color-yellow);
}

.blinking-text {
  font-weight: bold;
  color: var(--color-yellow);
  margin-top: 15px;
  font-family: 'Courier New', Courier, monospace;
  animation: blink-anim 1s step-end infinite;
}

@keyframes blink-anim {
  50% {
    opacity: 0;
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  #desktop-only-warning {
    display: flex;
  }

  #frameset {
    display: none;
  }
}