header {
  background-color: rgba(0, 0, 0, 0.5); /* black with 50% transparency */
  height: 40px;
  color: white;
}

.fileMenuItems{
width: 100%;
color: blue;
}

.subheading{
  background-color: rgba(0, 0, 0, 0.5); /* black with 50% transparency */
  height: 40px;
  color: white;
  font-size: large;
}

.windows-bar {
  display: flex;
  justify-content: flex-start; /* changed from center to flex-start */
  align-items: center;
  height: 100%;
  padding: 0 10px;
}

.file-dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: white;
  color: black;
  font-size: 20px;
  border: none;
  cursor: pointer;
  width: 100px;
  border-radius: 20px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  z-index: 1;
}

.dropdown-content button {
  color: #333;
  padding: 12px 16px;
  text-decoration:dotted;
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
}

.dropdown-content button:hover {
  background-color: #ddd;
}

.file-dropdown:hover .dropdown-content {
  display: block;
}

.flag-register{
  padding: 16px;
  float: left;
  opacity: .9; /* set opacity to 90% */
}

.CPU-registers, .PPU-registers{
  padding: 16px;
  float: left;
  opacity: .9; /* set opacity to 90% */
}

registersText{
  margin: 6px;
  font-weight: bolder;
  font-size: 18px;
  display:flex;
  align-items: center;
  justify-content: center;
  border: outset aqua;
  background-color: black;
  color: white;
}

.wram-header,
.vram-header,
.prgrom-header {
  font-size: 32px;
  font-weight: bolder;
  border: outset aqua;
  display: flex;
  align-items: center;      /* X axis */
  justify-content: center;  /* Y axis */
  padding: 10px;
  margin: 10px;
  background-color: rgba(0, 0, 0, 0.5); /* black with 50% transparency */
  color: white;
  margin-top: 20px;
}

.debug, .debug2, .debug3 { /* PRGROM, VRAM, WRAM scrolling/ styling */
  height: 250px;
  padding: 16px;
  overflow-y: scroll;
  overflow-x: scroll;
  opacity: 0.9; /* set opacity to 90% */
}

.GeneratedTable {
  /*(text-align: center;*/
  width:100%;
  background-color:#FFFFFF;
  border-collapse:collapse;border-width:1px;
  border-color:#000000;
  border-style:solid;
  color: white;
  }
  
.GeneratedTable td, table.GeneratedTable th {
  border-width:1px;
  border-color:aqua;
  border-style:solid;
  padding:.5px;
  }

  table.GeneratedTable tx {
  border-width:1px;
  border-color:aqua;
  border-style:solid;
  padding:.5px;
  }
  
  .GeneratedTable thead {
  background-color:none;
  }

  table thead th.sticky {
    padding: 3px;
    position: sticky;
    top: 0;
    z-index: 1;
    width: 25vw;
    border: solid;
  }

  td[id^='A'], td[id^='X'], td[id^='Y'], td[id^='S'], td[id^='PC']  {
    color: blue;
  }

  td[id^='P'],
  td[id^='O'] {
    color: blue;
  }

  .addressClass{
    background-color: black;
  }

  loc{ /* "offset" text styling */
    font-size: 18px;
    color: yellow;
  }

  /*
  locContainer,locContainer2,locContainer3{
    color:white;
  }
  */

  .openFile{
    display: flex;
    float:right;
    width: 350px;
    color: yellow;
  }

 .stepButton{
  width: 100%;
  }

  .zpg-cells {
    background-color: rgb(234, 221, 223);
  }

  .stack-cells {
    background-color: rgb(220, 243, 186);
  }

  .wramCells{
    color: blue;
  }

  .vramCells{
    color:rgb(191, 45, 69);
  }

  .cartspace2{
    color: black;
  }

  .cartspace1{
    color: red;
  }

/* Make the parent container only as wide as its contents */
.instruction-step {
  text-align: center;         /* center inline-block children */
  padding: 0;
  margin: 0 auto;
}

/* CRT panel itself */
.crt-panel {
  display: inline-block;
  width: 330px;
  height: px;
  background: #060606;
  border: 2px solid #0f0;
  border-radius: 6px;
  box-sizing: border-box;
  padding: 8px;
  font-family: 'Courier New', monospace;
  color: #0f0;
  text-shadow: 0 0 4px #0f0;
  vertical-align: top;
}

/* Top display area */
.crt-display {
  /*height: 100px;*/
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  text-align: left;
}

/* Labels */
.crt-label {
  font-size: 13px;
  color: #6f6;
}

/* Instruction / operand text lines */
.crt-line {
  background: rgba(0,255,0,0.07);
  border: 1px solid rgba(0,255,0,0.18);
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Button container */
.crt-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  align-items: stretch;
}

/* Buttons */
.crt-btn {
  flex: none;
  width: 100%;
  padding: 6px 0;
  
  border: 1px solid rgba(0,255,0,0.45);
  color: #010;
  font-size: 13px;
  cursor: pointer;
  border-radius: 3px;
  font-family: inherit;
  font-weight: bold;
  
  transition: background 0.18s, color 0.12s;
}

.crt-btn:hover {
  color: rgb(192, 6, 244);
}

/* Fuzzy CRT effect for step box or output area */
.crt-step-box {
  background: #001100;
  border: 1.5px solid #0f0;
  border-radius: 4px;
  padding: 6px 8px;
  font-weight: 600;
  font-size: 15px;
  color: #0f0;
  font-family: 'Courier New', monospace;
  text-shadow:
    0 0 3px #0f0,
    0 0 7px #0f0,
    0 0 10px #3f3,
    0 0 15px #0f0;
  filter: drop-shadow(0 0 3px #0f0);
  /* (optional): subtle scanlines, add a background image for more authenticity */
}

/* Generated table inside instruction-step area */
.instruction-step > .GeneratedTable {
  width: auto !important;
  max-width: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  table-layout: auto !important;
}

.wramCells.highlighted-cell,
.vramCells.highlighted-cell,
.cartspace1.highlighted-cell,
.cartspace2.highlighted-cell,
.highlighted-cell {
  background-color: #ffd966 !important;
  color: #222 !important;
  outline: 2px solid #d6b400;
}
.edited-cell { background-color: #c6efce !important; }

.wramCells:hover,
.vramCells:hover,
.cartspace1:hover,
.cartspace2:hover {
  background-color: yellow !important;
}
