
body{
  background:#191919;
  color:white;
}
 @media print {
      @page {
        margin: 0;
    }

    /* Adds margins back to the body content so text doesn't go to the edge */
   
       body * {
    visibility: hidden;
  }

  /* Make the specific div and all of its children visible */
  #paper *, #staff  {
    visibility: visible;
  }

  /* Position the specific div at the top left of the printed page */
  #staff, #paper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    /* Optional: further styling for print layout (e.g., remove shadows, set text size) */
  }
}
textarea {
  background: #333333;
  color: #ffffff;
}
textarea:disabled {
  background: #555555;
  color: #dddddd;
}
.tab{
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  margin-right:-5px;
  margin-bottom:1px;

}

button{
  border-radius: 8px;
  border:1px solid #ccc;
  background-color: #037a9b;
  color:white;
}
button:hover{
  background-color:white;
  color:#0099C3;
}
button:active{
 background-color: black;
  color:white;
   top: -3px;
    
  position: relative;
}
.enigma-help{
  background-color: rgba(43, 130, 2, 0.704);
  color:white;
  font-size:14px;
  font-style: normal;

}
.settings-button{
  border:1px solid black;
  
  text-align:center;
  background:white;
  color:coral;
  width:150px;
}
.settings-button:hover{
  background:coral;
  color:white;
}
.encode-button {
   border:1px solid black;
  background: white;
 color:#0099C3;
  text-align:center;
  background-size: 100% 50%;
  width:150px;
}
.ovr-button{
  color:rgba(43, 130, 2, 0.704);
   border:1px solid black;
  text-align:center;
  background: white;
  text-align:center;
  background-size: 100% 50%;
  width:150px;
}
.ovr-button:hover{
  color:white;
  background:rgba(43, 130, 2, 0.704);
  
}
.help-button {
 color:rgba(13, 13, 13, 0.704);
   border:1px solid black;
  text-align:center;
  background: white;
  text-align:center;
  background-size: 100% 50%;
  width:150px;
}
.help-button:hover{
  color:white;
  background:rgb(255, 0, 0);
  
}
.decode-button {
   border:1px solid black;
  text-align:center;
      background:white;
  color:#ce4100d9;
    /*linear-gradient(120deg, transparent 1em, #ce4100d9 1.05em , #ce4100d9 1.5em, transparent 1.45em, transparent 2em, #ce4100d9 2.05em) top no-repeat,
    linear-gradient(-300deg, transparent 1em, #ce4100d9 1.05em , #ce4100d9 1.5em, transparent 1.45em, transparent 2em, #ce4100d9 2.05em) bottom no-repeat ;*/
  background-size: 100% 50%;
  width:150px;
  
}
.decode-button:hover{
  background:#ce4100d9;
  color:white;

}
.encode-button:hover{
  background:#0099C3;
 color:white;
  overflow-x: auto;
  text-overflow: unset;
}
 
#rotors {
  margin-left: 0px;
  margin-bottom: 0px;
}

.rotor-panel {
  border: 1px solid #2f2f2f;
  border-radius: 8px;
  background: linear-gradient(180deg, #5d5d5d 0%, #3e3e3e 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.35);
  color: #f2f2f2;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto 1fr auto;
  row-gap: 0;
  min-height: 220px;
  padding: 8px;rotor-panel
}

.rotor-panel * {
  color: inherit;
}

.rotor-top-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: start;
}

.rotor-title {
  color: #f2f2f2;
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-bottom: 0;
  text-align: center;
}

.rotor-set-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}

.rotor-set-input {
  width: 54px;
  text-align: center;
  font-family: monospace;
  font-size: 13px;
  letter-spacing: 0.01em;
  border: 1px solid #222; 
  border-radius: 4px;
  background: #d9d9d9;
  color: #111;
  padding: 2px 4px;
}

.rotor-action-btn,
.rotor-reset-btn {
  background: #c3c3c3;
  color: #111;
  border: 1px solid #202020;
}

.rotor-action-btn:hover,
.rotor-reset-btn:hover {
  background: #efefef;
  color: #111;
}

.rotor-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  align-self:center;
}

.rotor {
  display: inline-block;
  margin-right: 0px;
}
.note-window{
  display: inline-block;
  background: #0099C3;
  color: white;
  border: 2px silver solid;
  padding: 6px;
  width: 30px;
  height: 30px;
  text-align: center;
  font-size:12px;
  box-shadow: inset 0px 18px 6px -12px #191919, inset 0px -18px 6px -12px #191919;
}
.note-knob{
  display: inline-block;
  position: relative;
  top: 11px;
}
.note-knob-button{
  background:#0099C3;
  height: 25px;
  width: 25px;
}
#rotors .rotor-window {
  display: inline-block;
  background: #171717;
  color: #f5f5f5;
  border: 2px solid #8f8f8f;
  padding: 6px;
  width: 30px;
  height: 30px;
  text-align: center;
  font-size:12px;
  box-shadow: inset 0 10px 8px -8px #6e6e6e, inset 0 -10px 8px -8px #000;
}

.rotor-knob {
  display: inline-block;
  position: relative;
  top: 11px;
}

#rotors .rotor-knob-button {
  background:#252525;
  border: 1px solid #8f8f8f;
  color: #f2f2f2;
  height: 25px;
  width: 25px;
}

#rotors .rotor-knob-button:hover {
  background: #3a3a3a;
  color: #fff;
}

.rotor-reset-row {
  margin-top: 0;
  padding-top: 0;
  align-self: end;
  text-align: center;
}


#nodiv{
  display:block;
}
.switch-field {
	display: flex;
  padding:5px;
	margin-bottom: 6px;
	overflow: hidden;
}

.switch-field input {
	position: absolute !important;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	width: 1px;
	border: 0;
	overflow: hidden;
}

.switch-field label {
	background-color: #e4e4e4;
	color: rgba(0, 0, 0, 0.6);
	font-size: 14px;
	line-height: 1;
	text-align: center;
	padding: 8px 16px;
	margin-right: 10px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
	transition: all 0.1s ease-in-out;
}

.switch-field label:hover {
	cursor: pointer;
}

.switch-field input:checked + label {
	background-color: #0a0a0a;
  color:white;
	box-shadow: none;
}

.switch-field label:first-of-type {
	border-radius: 4px 0 0 4px;
}

.switch-field label:last-of-type {
	border-radius: 0 4px 4px 0;
}
.switch-field input[type="checkbox"]:active {
  top: 3px;
  left: 2px;
  position: relative;
	background: black;
    color:white;

}

#output {
  margin-top: 0;
  border: 0;
}

#strip-viewport {
  width: 1000px;
  max-width: 100%;
  margin: 8px auto 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #2b3142;
  border-radius: 8px;
  background: linear-gradient(180deg, #1b202b 0%, #141923 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.35);
  padding: 6px 0;
}

#strip-container {
  width: max-content;
  min-width: 100%;
}

#strip-container svg {
  display: block;
  height: 250px;
  width: auto;
}
