
body {
  background-color: black;
  color: white;
  font-family: "MingLiU", monospace;
  font-family: "MingLiU_HKSCS", monospace;
  font-family: "MingLiU_HKSCS-ExtB", monospace;
  font-family: "MingLiU-ExtB", monospace;
  font-family: "Courier", monospace;
  margin: 0;
  padding: 0;
  user-select: none;
  
 animation: fadeIn 3s;
  -webkit-animation: fadeIn 3s;
  -moz-animation: fadeIn 3s;
  -o-animation: fadeIn 3s;
  -ms-animation: fadeIn 3s;
}
@keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-moz-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-webkit-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-o-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-ms-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}


}



.terminal {
  line-height: 1.05;
  font-size: 100%;
  position: relative;
  height: 500px;
  overflow: hidden;
  width: 800px;
  flex-shrink: 0;
  margin: 50px auto;
 
  background-image: url("gifs/space.gif");
  
  background-color: black;
  padding: 20px;
  border: 6px double white;
  display: flex;
}


.left-half {
  align-items: center;
  display: flex;
  flex: 0.6;
  justify-content: center;
  padding: 20px;
  position: relative; 

  overflow: hidden;

}

.left-half img,
.left-half video {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.right-half {
  display: flex;
  flex-direction: column;
  flex: 0.4;
  min-width: 0;
  overflow: hidden;
}

.prompt {
  color: white;
    font-family: "MingLiU", monospace;
  font-family: "MingLiU_HKSCS", monospace;
  font-family: "MingLiU_HKSCS-ExtB", monospace;
  font-family: "MingLiU-ExtB", monospace;
  font-family: "Courier", monospace;
  display: flex;
  align-items: center; 
}


.input-line {
  
  border: 3px double white ;
  background-color: transparent;
  display: flex;
  margin-bottom: 5px;
  word-wrap: break-word;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  margin-bottom: 20px;
  margin-top: 2px;
}

.command-line {

  background-color: transparent;
  border: none;
  color: white;
  flex: 1;
    font-family: "MingLiU", monospace;
  font-family: "MingLiU_HKSCS", monospace;
  font-family: "MingLiU_HKSCS-ExtB", monospace;
  font-family: "MingLiU-ExtB", monospace;
  font-family: "Courier", monospace;
  outline: none;
  word-wrap: break-word;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  resize: none;
  overflow-y: auto;
  max-height: 40px;
}

.command-line::placeholder {
  color: white;
}

.output {
  flex: 1;
  line-height: 1.5;
  padding-top: 20px;
  text-align: justify;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.slate-bar-bottom {
  border-top: 6px double white ;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: darkslategrey;
  bottom: 0;
  height: 20px;
  left: 0;
  position: absolute;
  width: 100%;
  padding-left: 30px;
  padding-right: 30px;
}

.font-controls {
  display: flex;
  align-items: center;
 

}

.font-controls button {
    font-family: "MingLiU", monospace;
  font-family: "MingLiU_HKSCS", monospace;
  font-family: "MingLiU_HKSCS-ExtB", monospace;
  font-family: "MingLiU-ExtB", monospace;
  font-family: "Courier", monospace;
  
  margin-left: -47px;
  background-color: transparent;
  border-left: 6px double white;
  border-right: 6px double white;
  border-top: 1px solid white;
  color: white;
  cursor: pointer;
  padding: 2px 8px;
  margin-right: 60px; 
}

.font-controls button.red {
  color: orange;
border-left: 6px double red;
  border-right: 6px double red;
  border-top: 1px solid red;
}

.font-size-text {

}

.time-text {
letter-spacing: 0.00em;
margin-right: 30px;
}


.slate-bar-text {
 
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.075em;
}


.slate-bar-text-left {
  color: white;
font-size: 16px;
  margin-left: 30px;
}

.slate-bar-text-right {
  color: white;
 font-size: 16px;
  
  margin-right: 30px;
}

.slate-bar-top {
  border-bottom: 6px double white ;
  align-items: center;
  background-color: darkslategrey;
  display: flex;
  height: 20px;
  justify-content: space-between;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.video-player::-moz-media-controls {
  display: none;
}

.video-player::-ms-media-controls {
  display: none;
}

.video-player::-o-media-controls {
  display: none;
}

.video-player::-webkit-media-controls {
  display: none;
}

.video-player::-webkit-media-controls-enclosure {
  display: none;
}

.video-player::media-controls {
  display: none;
}

img, video, .gif-container {

  max-width: 100%;
  max-height: 100%;


  object-fit: cover;
}

.terminal-container {
  max-height: none;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent; 
  padding-right: 20px;
   flex-grow: 1; 
  height: auto; 
  overflow-y: auto;

}

.terminal-container::-webkit-scrollbar {
  width: 15px;
  height: 15px;

}

.terminal-container::-webkit-scrollbar-thumb {
  background-color: transparent; 
  border: 3px double white; 

}

.terminal-container::-webkit-scrollbar-track {
  background-color: transparent;

 
}



#terminal-container {
  max-height: 500px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow-x: auto;
}

#output div:last-child {
  display: block;
}

.justified {
  text-align: justify;
  text-justify: inter-word;
}

.line {
  text-align: justify;
  text-justify: inter-word;
  margin-bottom: 5px;
  word-wrap: break-word;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

#output {
  flex: 1;
  overflow-y: auto;
}

#command-line {
  word-wrap: break-word;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  font-size: 16px;
  max-height: 40px;
  width: 100%;
  box-sizing: border-box;
}

.image-container img,
.gif-container img {
  pointer-events: none;
}

.progress-bar {
  width: 50px; 
  height: 10px;
  background-color: #333;
  border-radius: 5px;
  margin-left: 10px;
  position: relative;
}

.progress {
  width: 50px; 
  height: 100%;
  border-radius: 5px;
  background-color: #4caf50;
  transition: width 0.3s;
}

.button-container {
  display: flex;
  justify-content: flex-end; 
  padding-right: 20px; 
  margin-top: 10px; 
}


.new-state-color {
  color: limegreen;
}

.new-state-text-color {
  color: #e06202 

}

.new-state-color .slate-bar-top{
  background-color: #470000; 
 border-bottom:6px double red ; 
}
.new-state-color .slate-bar-bottom {
  background-color: #470000; 
  border-top:6px double red ; 
}

.terminal.new-state-text-color .command-line::placeholder {
  color: limegreen; 
}

.terminal.new-state-text-color .output {
  color: red; 
}
.terminal.new-state-color {
  background-image: url("imgs/red.png");
  border: 6px double red;

}


.terminal-container.new-state-color::-webkit-scrollbar-thumb {
  background-color: none; 
  border: 3px double red;
}

.new-state-color .input-line{
  background-color: none; 
  border: 3px double red;
}

