﻿/* Layout */
.container {
    display: flex;
    background-color: #000000; /* Black background */
    color: #FFFFFF; /* White text default */
    font-family: 'CP437', 'Courier New', monospace;
}

/* Sidebar menu */
.sidebar {
    width: 220px;
    background-color: #000000;
    color: #FFFFFF;
    padding: 15px;
    border-right: 2px solid #777777; /* grey divider */
}

.sidebar h2 {
    font-size: 1.0em;
    text-align: center;
    margin-bottom: 15px;
    color: #FF7777; /* light red heading */
}

/* Menu list */
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin: 10px 0;
}

/* Button base */
.menu-btn {
    width: 100%;
    background-color: #000000;
    font-family: 'CP437', 'Courier New', monospace;
    padding: 8px;
    cursor: pointer;
    text-align: center;
    line-height: 1.4;
    white-space: normal;
    border: 2px solid #FFFFFF;
    transition: all 0.2s ease-in-out;
}

/* persistent highlighted (connected) state */
.menu-btn.active {
  /* fallback generic highlight if not overridden per-button */
  background-color: #444;
  color: #fff;
  transform: none;
  box-shadow: 0 0 6px rgba(255,255,255,0.06);
}

/* keep each button's hover color when active */
.sidebar li:nth-child(1) .menu-btn.active {
  background-color: #CC44CC; /* same as hover */
  color: #FFFFFF;
  border-color: #AAFFEE;
}
.sidebar li:nth-child(2) .menu-btn.active {
  background-color: #880000; /* same as hover */
  color: #FFFFFF;
  border-color: #EEEE77;
}
.sidebar li:nth-child(3) .menu-btn.active {
  background-color: #DD8855; /* same as hover */
  color: #000000;
  border-color: #AAFF66;
}

/* keep hover effect working for non-active buttons */
.menu-btn:hover:not(.active) {
  transform: translateY(-1px);
}

/* First button: Cyan text, purple hover */
.sidebar li:nth-child(1) .menu-btn {
    color: #AAFFEE; /* cyan */
    border-color: #AAFFEE;
}
.sidebar li:nth-child(1) .menu-btn:hover {
    background-color: #CC44CC; /* purple */
    color: #FFFFFF;
}

/* Second button: Yellow text, red hover */
.sidebar li:nth-child(2) .menu-btn {
    color: #EEEE77; /* yellow */
    border-color: #EEEE77;
}
.sidebar li:nth-child(2) .menu-btn:hover {
    background-color: #880000; /* red */
    color: #FFFFFF;
}

/* Third button: Light green text, orange hover */
.sidebar li:nth-child(3) .menu-btn {
    color: #AAFF66; /* light green */
    border-color: #AAFF66;
}
.sidebar li:nth-child(3) .menu-btn:hover {
    background-color: #DD8855; /* orange */
    color: #000000;
}

/* Main content */
.main {
    flex: 1;
    padding: 20px;
    background-color: #000000;
    color: #FFFFFF;
}

/* Terminal container fixed to 80x30 (655x480) */
.fTelnetContainer {
    width: 655px;
    height: 480px;
    margin: 0 auto;
    border: 2px solid #AAFFEE; /* cyan border */
    background-color: #000000;
    overflow: hidden;
}
.fTelnetContainer::-webkit-scrollbar { display: none; }
.fTelnetContainer { scrollbar-width: none; }

/* Splash image styling */
#splash {
    position: relative; /* positioning context for cursor */
    width: 655px;
    margin: 0 auto;
}
#splash img {
    display: block;
    width: 655px;
    height: 480px;
    border: 2px solid #AAFFEE; /* cyan border */
}

/* Blinking cursor overlay */
#cursor-line {
    position: absolute;
    bottom: 0;
    left: 8px;
    transform: translateY(-32px); /* move up 2 lines (16px × 2) */
    font-family: 'C64 Pro Mono', 'Courier New', monospace;
    font-size: 16px; /* match splash PNG font size */
}

/* Text prompt in PETSCII Red (#2) */
.press-return {
    margin-right: 8px;
    color: #880000; /* Commodore Red */
}

/* Cursor block in White (#1) */
.blinking-cursor {
    color: #FFFFFF; /* White PETSCII block */
    animation: blink 1s step-start infinite;
}

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