/* General body styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0e1011; /* Dark blue-gray background */
    color: #e1ecf4; /* Light text color */
    overflow-x: hidden;
}


.question-title {
    border-left: 6px solid #7f7eff;
    padding-left: 0.5em;
}

/* Sidebar Styles */
.sidebar {
    width: 240px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #08080a; /* Slightly lighter dark background */
    padding: 20px;
    box-sizing: border-box;
    font-size: 16px;
    color: #d0e1f9; /* Soft light blue for text */
    z-index: 10;
    overflow-y: auto;
    border-right: 1px solid #55527b;
}

.sidebar h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #f0f8ff; /* Light blue for headings */
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    color: #d0e1f9;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: 1px solid #ffffff2e;
    border-radius: 0.7em;
}

.selected {
    border-left: 6px solid #7f7eff !important;
}

.sidebar ul li a:hover {
    background-color: #55527b; /* Soft blue-gray hover effect */
    color: #ffffff;
}

/* Sidebar Buttons */
.sidebar .btn, .sidebar .skip-btn {
    background-color: #2c2b3a; /* Muted light blue-gray background for buttons */
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s ease;
}

.sidebar .btn:hover, .sidebar .skip-btn:hover {
    background-color: #55527b; /* Light blue hover effect */
}

/* Content Area */
.content {
    margin-left: 240px; /* Space for sidebar */
    padding: 20px;
    width: 100%;
    z-index: 1;
    position: relative;
}

/* Question Styles */
.question {
    font-size: 18px;
    margin-bottom: 30px;
    /* font-weight: bold; */
    color: #f0f8ff; /* Light blue text for questions */
    display: block; /* Visible initially */
    transition: opacity 0.3s ease;
}

.question-desc {
    font-weight: normal;
    max-width: 70%;
}

/* Terminal iframe styles */
.terminal {
    width: 100%;
    height: 324px;
    border-radius: 8px;
    background-color: #1a0a2a; /* Deep purple base */
    border: 2px solid #c66cff; /* Neon purple border */
    margin-top: 30px;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(198, 108, 255, 0.8),
                inset 0 0 15px rgba(156, 77, 255, 0.6);
    transition: all 0.3s ease;
}

/* Neon scan lines effect */
.terminal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 2px,
        rgba(198, 108, 255, 0.1) 3px,
        rgba(198, 108, 255, 0.1) 4px
    );
    animation: scan 5s linear infinite;
}

/* Holographic grid overlay */
.terminal::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        linear-gradient(90deg, 
            transparent 49%, 
            rgba(198, 108, 255, 0.1) 50%, 
            transparent 51%),
        linear-gradient(0deg, 
            transparent 49%, 
            rgba(198, 108, 255, 0.1) 50%, 
            transparent 51%);
    background-size: 4px 4px;
    opacity: 0.3;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Cyberpunk-style corner brackets */
.terminal:hover {
    box-shadow: 0 0 35px rgba(198, 108, 255, 1),
                inset 0 0 25px rgba(156, 77, 255, 0.8);
    transform: translateY(-2px);
}

.terminal:hover::before {
    animation: scan 2s linear infinite;
}

/* Optional: Add flicker animation */
@keyframes flicker {
    0% { opacity: 0.9; }
    20% { opacity: 1; }
    30% { opacity: 0.85; }
    40% { opacity: 0.95; }
    50% { opacity: 0.8; }
    60% { opacity: 1; }
    100% { opacity: 0.9; }
}

.terminal {
    animation: flicker 5s infinite;
}

/* Flag (for WebSocket matches) */
.flag {
    font-size: 1.5em;
    margin-top: 20px;
    padding: 10px;
    background-color: #33bb55; /* Yellow-orange flag background */
    display: none;
    border-radius: 5px;
    /* font-weight: bold; */
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 50px;
    font-size: 14px;
    color: #b0c4de; /* Light gray for footer text */
    position: fixed;
    text-align: center;
    width: 100%;
    padding: 2rem;
    bottom: 0;
}

/* Minimalistic focus on content */
body, .content, .sidebar {
    font-family: 'Roboto', sans-serif;
}

/* Sidebar active link */
.sidebar ul li a.active {
    background-color: #4f5c6a;
}

/* Clean, minimalistic layout */
body {
    display: flex;
    flex-direction: row;
}

.content {
    padding-left: 20px;
    padding-top: 20px;
    position: relative;
    z-index: 1;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 100;
    padding-top: 20px;
}

/* Clean scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #34495e;
}

::-webkit-scrollbar-thumb {
    background: #55527b;
    border-radius: 10px;
}

/* Button hover */
.sidebar ul li a:hover {
    background-color: #55527b;
    color: #ffffff;
}

button {
    padding: 1rem 2rem;
    outline: none;
    background-color: #2c2b3a;
    color: #e2e2e2;
    border-radius: 0.5em;
    border-style: solid;
    border: 0;
    margin: none;
}

button:hover {
    transition: 1s all;
    background-color: #55527b;
}

#fullscreen {
    display: none;
    position: fixed;
    z-index: 1010;
    top: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
    padding: 0.2em;
}

#fullscreen img {
    width: 40px;
}

.fullscreen {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    left: 0;
    margin: 0;
    height: 100%;
    border: 0;
}

.xterm-viewport {
    overflow: clip !important;
}


blockquote {
    border-left: 1px solid #c69dd2;
    padding-left: 1em;
    font-weight: lighter;
    font-style: italic;
    margin: 1em;
}

#logo {
    width: 30px;
    margin-right: 0.5em;
}

#logo-text {
    color: #fff;
    line-height: 30px;
    display: flex;
    font-weight: bold;
    font-size: 24px;
    font-family: "Quantico", sans-serif;
    font-weight: 700;
    font-style: normal;
}

code {
    display: block;
    background-color: rgb(37, 35, 43);
    color: #fff;
    font-weight: thin;
    font-size: 24px;
    font-family: "Quantico", sans-serif;
    font-style: normal;
    padding: 1em;
    border-radius: 6px;
    border: 1px solid #b400ff;
    text-shadow: 0 0 8px rgba(180,0,255,0.4);
}

code-inline {
    padding: 0 0.5em;
    /* margin: 0 0.5em; */
    border-radius: 0.5em;
    border: 1px solid #7f7eff;
    font-family: "Quantico", sans-serif;
    font-style: normal;
}

.lore {
  font-family: 'Courier New', monospace;
  background: #1a001a;
  border: 1px solid #b400ff;
  padding: 50px 25px 25px 140px;
  margin: 0;
  color: #f0a0ff;
  text-shadow: 0 0 8px rgba(180,0,255,0.4);
  opacity: 0;
  animation: terminalAppear 1.2s ease-out forwards,
             terminalGlitch 3s infinite;
  position: relative;
  min-height: 140px;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(180,0,255,0.3);
  overflow: visible;
}

@keyframes terminalAppear {
  0% { opacity: 0; transform: translateX(-30px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes terminalGlitch {

  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

.lore::before {
  content: "";
  background: #2a002a url('/static/robot_small.png') no-repeat center/contain;
  width: 120px;
  height: 120px;
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 12px #b400ff);
  z-index: 2;
  border-radius: 50%;
  border: 2px solid #b400ff;
}

.lore::after {
  content: "V.E.G.A. AI Transmission";
  position: absolute;
  top: 15px;
  left: 25px;
  background: #2a002a;
  padding: 6px 15px;
  font-size: 0.9em;
  color: #e090ff;
  border: 1px solid #b400ff;
  border-radius: 4px;
  text-shadow: 0 0 8px #b400ff;
}

@keyframes headerPulse {
  0%, 100% { opacity: 0.8; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.2); }
}

.message-text {
  animation: textReveal 1.2s steps(40) forwards;
  overflow: hidden;
  white-space: nowrap;
  margin: 0;
  font-size: 1.1em;
  line-height: 1.4;
}

@keyframes textReveal {
  from { width: 0; }
  to { width: 100%; }
}


.expandable {
}

.expand-btn {
  cursor: pointer;

  margin: 0;
  position: relative;
  transition: all 0.3s ease;
}

.expand-btn h3:hover {
  background: #2a002a;
}

.expand-btn h3 {
    padding: 1em;
}

.expand-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.toggle-input {
  display: none;
}

.toggle-input:checked ~ .expand-content {
  max-height: 1000px; /* Adjust based on content needs */
  padding: 15px;
}

.toggle-input:checked + .expand-btn::after {
  transform: rotate(90deg);
}

.sidebar a {
    text-decoration: none;
    color: inherit;
}
