
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

html, body { 
  margin: 0; 
  padding: 0; 
  height: 100%; 
  width: 100%; 
  background-color: #050705; 
  font-family: 'IBM Plex Mono', monospace; 
  color: #33ff33; 
  display: flex;
  justify-content: center;
  overflow: hidden;
}

/* Terminal Container */

.terminal {
  width: 75%;
  height: 100vh;
  display: flex;
  position: relative;
  flex-direction: column;
  border-left: 1px solid rgba(51, 255, 51, 0.3);
  border-right: 1px solid rgba(51, 255, 51, 0.3);
  box-shadow: 0 0 20px rgba(51, 255, 51, 0.05);

  animation: flicker 0.2s infinite; 
}


@keyframes flicker {
  0% { 
    filter: brightness(1);
    text-shadow: 0 0 4px rgba(51, 255, 51, 0.6);
  }
  18% { 
    filter: brightness(0.92); 
    text-shadow: 0 0 2px rgba(51, 255, 51, 0.3);
  }
  22% { 
    filter: brightness(1.15); 
    text-shadow: 0 0 12px rgba(51, 255, 51, 0.9), -1px 0 rgba(255,0,0,0.4), 1px 0 rgba(0,0,255,0.4); 
  }
  26% { 
    filter: brightness(1);
    text-shadow: 0 0 6px rgba(51, 255, 51, 0.6);
  }
  78% { 
    filter: brightness(1.03);
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.5);
  }
  82% { 
    filter: brightness(0.88); 
    text-shadow: 0 0 1px rgba(51, 255, 51, 0.1);
  }
  100% { 
    filter: brightness(1.08);
    text-shadow: 0 0 8px rgba(51, 255, 51, 0.7);
  }
}

.terminal::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.05), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.05));
  z-index: 999; 
  background-size: 100% 2px, 6px 100%;
  pointer-events: none; 

}

.terminal-header {
  background-color: #0b0f0b;
  border-bottom: 2px solid #33ff33;
  padding: 12px 20px;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: bold;
  text-shadow: 0 0 5px #33ff33;
  text-align: center;
  overflow: hidden; 


}


.terminal-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 35px; 
  overflow-y: auto;
}

/* Title Section */

.title {
  text-align: center;
  text-shadow: 0 0 8px rgba(51, 255, 51, 0.6);
}

.title .header-text {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
}

.title .subtitle {
  font-size: 12px;
  letter-spacing: 6px;
  margin-top: 8px;
  color: rgba(51, 255, 51, 0.7);
}

.status-message {
  border: 1px dashed #33ff33;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  letter-spacing: 1px;
  background-color: rgba(51, 255, 51, 0.03);
  box-shadow: inset 0 0 10px rgba(51, 255, 51, 0.1);
}

/* Books Section */
.books p {
  margin: 0 0 10px 0;
  font-weight: bold;
  font-size: 14px;
}

.book-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 10px;
}

.book-list span {
  font-size: 15px;
  letter-spacing: 1px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.book-list span:hover {
  transform: translateX(5px); 
  text-shadow: 0 0 8px #33ff33;
}

/* Commands Section */
.commands {
  background-color: rgba(51, 255, 51, 0.02);
  padding: 20px;
  border-left: 3px solid #33ff33;
  border-right: 3px solid #33ff33;
}

.commands p {
  margin: 0 0 8px 0;
}

.commands p:last-child {
  margin-bottom: 0;
}

.commands span {
  color: #ffffff; 
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 3px;
}

/* Input Section */

.input-line {
  display: flex;
  align-items: center;
  margin-top: auto; 
  padding-top: 20px;
  border-top: 1px dashed rgba(51, 255, 51, 0.3);
}


.input-line::before {
  content: "USER@CANON_OS_> ";
  font-weight: bold;
  margin-right: 10px;
  letter-spacing: 1px;
  text-shadow: 0 0 5px #33ff33;
  user-select: none;
}

#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff; 
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  letter-spacing: 1px;
  caret-color: #33ff33; 
  caret-shape: block;
  text-shadow: 0 0 5px rgba(51, 255, 51, 0.8);
}



/* Footer Section */
.terminal-footer {
  background-color: #0b0f0b;
  border-top: 1px solid rgba(51, 255, 51, 0.3);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(51, 255, 51, 0.6);
}



header, footer {
  box-sizing: border-box;
}