:root {
    /* Dark Theme */
    --neon-green: #00ff88;
    --background: #0a0a0a;
    --text: #00ff88;
    --success: #38b000;

    --card-bg: rgba(0, 20, 15, 0.3);
    --border: 1px solid #00ff88;
    --glow: 0 0 15px rgba(0, 255, 136, 0.4);
    --code-bg: rgba(0, 30, 20, 0.3);
    
    /* Light Theme */
    --light-blue: #1a73e8;
    --light-background: #f5f5f5;
    --light-text: #2c3e50;
    --light-card-bg: rgba(255, 255, 255, 0.9);
    --light-border: 1px solid #1a73e8;
    --light-glow: 0 0 15px rgba(26, 115, 232, 0.2);
    --light-code-bg: rgba(241, 243, 244, 0.9);
}

/* Base Styles */
body {
    font-family: 'Courier New', monospace,'Roboto', sans-serif,Arial,'Segoe UI', Tahoma, Geneva, Verdana ;
    background: var(--background);
    color: var(--text);

    transition: background 0.3s, color 0.3s;
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    align-items: center;
}

/* Theme Switching */
body.light-mode {
    --neon-green: var(--light-blue);
    --background: var(--light-background);
    --text: var(--light-text);
    text-shadow: none;

    --card-bg: var(--light-card-bg);
    --border: var(--light-border);
    --glow: var(--light-glow);
    --code-bg: var(--light-code-bg);
}

/* Matrix Background */
body::before {
    content: '';
    position: fixed;
    width: 200%;
    height: 200%;
    background: 
        linear-gradient(transparent 90%, rgba(0, 255, 136, 0.05) 90%),
        repeating-linear-gradient(
            45deg,
            transparent 0%,
            transparent 2%,
            rgba(0, 255, 136, 0.02) 2%,
            rgba(0, 255, 136, 0.02) 4%
        );
    background-size: 4px 4px, 40px 40px;
    animation: matrix 40s linear infinite;
    z-index: -1;
}

body.light-mode::before {
    background: 
        linear-gradient(transparent 90%, rgba(26, 115, 232, 0.05) 90%),
        repeating-linear-gradient(
            45deg,
            transparent 0%,
            transparent 2%,
            rgba(26, 115, 232, 0.02) 2%,
            rgba(26, 115, 232, 0.02) 4%
        );
}

@keyframes matrix {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

/* Components */
.theme-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border: var(--border);
    border-radius: 20px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    transition: all 0.3s;
}

.theme-switch:hover {
    box-shadow: var(--glow);
}


.cyber-nav {
    background: var(--card-bg);
    padding: 1rem;
    border-bottom: var(--border);
    box-shadow: var(--glow);
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.cyber-nav a {
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.cyber-nav a:hover {
    background: rgba(0, 255, 136, 0.1);
}

.cyber-nav a.active {
    background: rgba(0, 255, 136, 0.2);
    box-shadow: var(--glow);
}


.lab-header {
    text-align: center;
    padding: 3rem 1rem;
    border-bottom: var(--border);
}

.glitch-text {
    font-size: 2.5rem;
    text-shadow: 0 0 20px var(--neon-green);
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% { text-shadow: 0 0 20px var(--neon-green); }
    50% { text-shadow: -2px 0 #ff003c, 2px 0 var(--neon-green); }
}

.hash-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.input-group, .output-group {
    background: var(--card-bg);
    border: var(--border);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--glow);
}

textarea {
    width: 100%;
    background: var(--code-bg);
    border: var(--border);
    color: var(--text);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    resize: vertical;
}

button {
    background: rgba(0, 255, 136, 0.1);
    color: var(--text);
    border: var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background: rgba(0, 255, 136, 0.2);
    box-shadow: var(--glow);
    filter: brightness(1.1);

}

.cyber-output {
    background: var(--code-bg);
    border: var(--border);
    padding: 1rem;
    border-radius: 5px;
    word-break: break-all;
    margin: 1rem 0;
}

.hash-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.info-card {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--glow);
    background: var(--code-bg);
    border: var(--border);
    color: var(--text);
}

.cyber-footer {
    margin-top: auto;
    text-align: center;
    padding: 2rem;
    border-top: var(--border);
}

@media (max-width: 768px) {
    .hash-section {
        grid-template-columns: 1fr;
    }
    
    .glitch-text {
        font-size: 1.8rem;
    }
}


/* General Styles */

  
 
  
  .container {
    display: flex;
    width: 100%;
    margin-top: 1rem;
  }
  
  .sidebar {
    width: 20%;
    background-color: #f4f4f4;
    padding: 1rem;
  }
  
  .sidebar nav ul {
    list-style: none;
    padding: 0;
  }
  
  .sidebar nav ul li {
    margin: 1rem 0;
  }
  
  .sidebar nav ul li a {
    text-decoration: none;
    color: #007BFF;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .content {
    width: 80%;
    padding: 1rem;
  }
  
  .matrix {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .row {
    display: flex;
    gap: 0.5rem;
  }
  
  .cell {
    width: 50px;
    height: 50px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    font-family: monospace;
  }
  
  
  .sbox-grid {
    display: grid;
    grid-template-columns: repeat(16, 40px);
    gap: 2px;
    margin-top: 1rem;
  }
  
  .sbox-cell {
    width: 40px;
    height: 40px;
    background-color: #9ac9b4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    font-family: monospace;
  }
  
  .sbox-cell:hover {
    background-color: #cce5ff;
    cursor: pointer;
  }
  
  .diagram {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
  }
  
  figcaption {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
  }
  
  /* Styling for the Overview Section */
  #overview h1, #overview h2, #overview h3 {
    margin-top: 1.5rem;
  }
  
  #overview ul {
    margin-left: 1.5rem;
  }
  
  #overview pre {
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    background: var(--code-bg);
    border: var(--border);
    color: var(--text);
  }



[data-theme="dark"] {
    --background: #1a1a1a;
    --text: #e0e0e0;
    --card-bg: #2d2d2d;
}


.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary), #1976D2);
    color: white;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.s-box-grid {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 2px;
    background: var(--card-bg);
    padding: 2px;
    border-radius: 0.5rem;
}

.s-box {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 2px;
  background: #f8f9fa;
  padding: 10px;
  border-radius: 8px;
}



.s-box-cell {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.7rem;
    background: var(--background);
    cursor: pointer;
    transition: var(--transition);
}

.s-box-cell:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}



.state-cell {
    padding: 1rem;
    text-align: center;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.animate {
    animation: matrixFlow 1.5s ease-in-out;
}

@keyframes matrixFlow {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-20px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
}

.math-section {
    padding: 1.5rem;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 1rem;
    margin: 1rem 0;
}




.collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#subbytes-diagram {
    margin-top: 2rem;
  }
  
  .diagram-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }
  
  .matrix {
    display: grid;
    grid-template-columns: repeat(4, 50px);
    gap: 0.5rem;
  }
  
  .matrix .row {
    display: contents;
  }
  
  .matrix span {
    width: 50px;
    height: 50px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    font-family: monospace;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .matrix span:hover {
    background-color: #cce5ff; /* Highlight on hover */
    transform: scale(1.1); /* Slightly enlarge */
  }
  
  .arrow {
    font-size: 2rem;
    color: #007BFF;
  }
  
  .after span {
    background-color: #d4edda; /* Highlight substituted values */
  }
  
  /* Tooltip Styling */
  [data-tooltip] {
    position: relative;
  }
  
  [data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  

.container {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

.input-section {

  background: var(--card-bg);
    border: var(--border);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    min-width: 200px;
}

.steps {
  height: 200px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 15px;

}

.step {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.step-title {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.1em;
}

.hex-value {
    color: #27ae60;
    font-family: monospace;
    font-size: 0.9em;
    margin: 8px 0;
    word-break: break-all;
}

.binary-value {
    color: #c0392b;
    font-family: monospace;
    font-size: 0.85em;
    opacity: 0.8;
}



 
  
  nav ul {
    list-style: none;
    padding: 0;
  }
  
  nav ul li {
    display: inline;
    margin: 0 10px;
  }
  
  nav ul li a {
    color: white;
    text-decoration: none;
  }
  
  section {
    padding: 20px;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  form label {
    display: block;
    margin: 10px 0 5px;
  }
  
  form input, form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  form button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  form button:hover {
    background-color: #45a049;
  }
  
 

  
textarea, input {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  height: 100px;
}

#result-message {
  font-size: 1em;
  color: #555;
  margin-top: 10px;
  word-wrap: break-word;
}


table, th, td {
  border:1px solid black;
}



  
  
  .container {
    display: flex;
    width: 100%;
    margin-top: 1rem;
  }
  
  .sidebar {
    width: 20%;
    background-color: #f4f4f4;
    padding: 1rem;
  }
  
  .sidebar nav ul {
    list-style: none;
    padding: 0;
  }
  
  .sidebar nav ul li {
    margin: 1rem 0;
  }
  
  .sidebar nav ul li a {
    text-decoration: none;
    color: #007BFF;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .content {
    width: 80%;
    padding: 1rem;
  }
  
  .diagram-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .matrix {
    display: grid;
    grid-template-columns: repeat(4, 50px);
    gap: 0.5rem;
  }
  
  .matrix .row {
    display: contents;
  }
  
  .matrix span {
    width: 50px;
    height: 50px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    font-family: monospace;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .matrix span:hover {
    background-color: #cce5ff; /* Highlight on hover */
    transform: scale(1.1); /* Slightly enlarge */
  }
  
  .arrow {
    font-size: 2rem;
    color: #007BFF;
  }
  
  .operator {
    font-size: 2rem;
    color: #007BFF;
  }
  
  .after span {
    background-color: #d4edda; /* Highlight substituted values */
  }
  
  .result span {
    background-color: #d4edda; /* Highlight result */
    animation: highlight-result 1s ease-in-out forwards;
  }
  
  @keyframes highlight-result {
    from {
      background-color: #e0e0e0;
    }
    to {
      background-color: #d4edda;
    }
  }
  
  /* Tooltip Styling */
  [data-tooltip] {
    position: relative;
  }
  
  [data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .container {
      flex-direction: column;
    }
  
    .sidebar {
      width: 100%;
    }
  
    .content {
      width: 100%;
    }
  
    .diagram-container {
      flex-direction: column;
      align-items: center;
    }
  
    .matrix {
      grid-template-columns: repeat(4, 40px);
    }
  
    .matrix span {
      width: 40px;
      height: 40px;
      font-size: 0.8rem;
    }
  }



[data-theme="dark"] {
    --background: #1a1a1a;
    --text: #e0e0e0;
    --card-bg: #2d2d2d;
}



.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary), #1976D2);
    color: white;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.s-box-grid {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 2px;
    background: var(--card-bg);
    padding: 2px;
    border-radius: 0.5rem;
}

.s-box-cell {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.7rem;
    background: var(--background);
    cursor: pointer;
    transition: var(--transition);
}

.s-box-cell:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.state-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 10px;
    border-radius: 8px;
}


.state-cell {
    padding: 1rem;
    text-align: center;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.animate {
    animation: matrixFlow 1.5s ease-in-out;
}

@keyframes matrixFlow {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-20px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
}

.math-section {
    padding: 1.5rem;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 1rem;
    margin: 1rem 0;
}



.collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}



.agrid-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.agrid {
  display: grid;
  grid-template-columns: repeat(4, 50px);
  grid-gap: 5px;
}

.cell {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cccccc;
  background-color: #f9f9f9;
  font-family: monospace;
  font-size: 14px;
}

.cell.highlight {
  background-color: #ffcccb;
  border-color: #ff6347;
}


#info-box {
  margin: 20px 0;
  padding: 15px;
  background: var(--code-bg);
  border: 1px solid #cce;
  border-radius: 5px;
  font-size: 16px;
  color: var(--text);
}

#next-step-btn {
  padding: 12px 25px;
  font-size: 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#next-step-btn:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

#key-schedule {
  margin-top: 20px;
  text-align: left;
  font-family: monospace;
  font-size: 14px;
  max-height: 150px; /* Limit the height to show only 5 keys */
  overflow-y: auto; /* Enable scrolling if needed */
}

.word {
  margin: 5px 0;
  padding: 10px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.word.current {
  background-color: #d1e7dd;
  border-color: #badbcc;
  transform: scale(1.02);
}

.word.complete::after {
  content: "✅";
  float: right;
  font-size: 18px;
  color: #28a745;
}

/* Theory Box */
#theory-box {
  margin-top: 30px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  border: 1px solid #ddd;
  text-align: left;
}

#theory-box h2 {
  color: #333;
  margin-bottom: 10px;
}

#theory-box p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

#theory-box ul {
  padding-left: 20px;
}

#theory-box li {
  margin-bottom: 5px;
}


.step {
  background: var(--code-bg);
  padding: 15px;
  margin: 10px 0;
  border: var(--border);
  border-radius: 5px;
}
.step h2 {
  color: #333;
}
pre {
  padding: 10px;
  border-radius: 3px;
  font-size: 16px;
  overflow-x: auto;
  background: var(--code-bg);
  border: var(--border);
  color: var(--text);
}
.highlight {
  color: red;
}




#animation-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.matrix {
  display: grid;
  grid-template-columns: repeat(4, 50px);
  grid-template-rows: repeat(4, 50px);
  margin: 10px;
  border: 2px solid #333;
}

.matrix div {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ccc;
  font-size: 14px;
  background-color: white;
  transition: background-color 0.5s ease;
}

#step-description {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

.highlighted {
  background-color: lightblue !important;
}

.highlighted-operation {
  background-color: lightgreen !important;
}

.highlighted-result {
  background-color: lightcoral !important;
}


.n1 {
  color: #0b0b0b;
}






.learning-path {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.path-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.path-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1 1 300px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: red;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.25rem;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}



@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 0.5rem;
    text-align: center;
  }

  .content {
    width: 100%;
    padding: 1rem;
  }

  .hash-section {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .sbox-grid {
    grid-template-columns: repeat(8, 1fr); /* fewer columns on smaller screens */
  }

  .glitch-text {
    font-size: 1.8rem;
  }

  .theme-switch {
    top: 10px;
    right: 10px;
    padding: 8px 12px;
  }

  .lab-header {
    padding: 2rem 1rem;
  }

  .cyber-nav {
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
  }

  button, textarea {
    font-size: 1rem;
  }

  .diagram-container {
    flex-direction: column;
  }

  .matrix {
    grid-template-columns: repeat(2, 50px);
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  .sbox-grid {
    grid-template-columns: repeat(4, 1fr); /* even fewer columns on very small screens */
  }

  .glitch-text {
    font-size: 1.5rem;
  }

  .matrix span, .cell {
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }

  .sbox-cell {
    font-size: 0.6rem;
    padding: 0.3rem;
  }

  .state-cell {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


.content img,
.card img,
.box img,
.diagram img {
  max-width: 100%;
  height: auto;
}

