body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    flex-direction: column;
}

.container {
    display: flex;
    flex-direction: row;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    width: 100%;
}

h1 {
    grid-column: span 2;
    text-align: center;
    margin-bottom: 20px;
}

.iteration-control {
    grid-column: span 2;
    text-align: center;
    margin-bottom: 20px;
}

.iteration-control button {
    margin: 5px;
}

.input-control {
    grid-column: span 2;
    text-align: center;
    margin-bottom: 20px;
}

.input-control label {
    margin-right: 10px;
}

.input-control input {
    padding: 5px;
    font-size: 16px;
    width: 60px;
    text-align: center;
}

.code-window, .visual-window, .memory-window {
    flex: 1;
    margin: 10px;
    background-color: white;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}


.code-window h3, .visual-window h3, .memory-window h3 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
}

.code-window {
    font-size: 20px;
}

.code-window pre {
    text-align: left;
    margin: 0;
}

.code-window span {
    display: inline;
    padding: 2px 0;
}

.highlight-arrow {
    stroke: red !important;
}

.highlight-text {
    fill: red !important;
    color: red !important;
}


.highlight {
    background-color: rgb(255, 255, 115);
}

.visual-window {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.memory-window {
    grid-column: span 2;
    text-align: center;
}

.memory-block {
    display: flex;
    align-items: center;
    margin: 10px;
}

.variable-name {
    background-color: #e8e8e8;
    border: 1px solid #000000;
    padding: 10px;
    border-radius: 5px;
}

.variable-name-highlight {
    background-color: yellow; /* Light yellow highlight */
    border: 3px solid #ff6a00;
    padding: 10px;
    border-radius: 5px;
}

.pointer {
    width: 30px;
    height: 2px;
    background-color: black;
    margin: 0 10px;
    position: relative;
}

.pointer::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -10px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent black;
}

.memory-value {
    background-color: #e8e8e8;
    border: 1px solid rgb(0, 0, 0);
    border-radius: 5px;
    padding: 10px;
    min-width: 40px;
    text-align: center;
}

button {
    margin-left: 5px;
    padding: 2px 5px;
    font-size: 12px;
    cursor: pointer;
}

.hidden {
    display: none;
}

#interactive-element {
    background-color: white;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.light-blue {
    background-color: #d6d6d6 !important;
}

.visual-window {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* align-items: flex-start; */
    /* padding-left: 20px;
    padding-right: 20px; */
    
}

#visual {
    display: grid;
    grid-template-columns: repeat(12, 50px);
    grid-gap: 5px;
}

.visual-box {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
    background-color: #ffe;
    border-radius: 5px;
    position: relative;
}

.visual-box.light-blue {
    background-color: #d6d6d6;
}

.nested-list {
    display: flex;
    flex-direction: column;
}

.inner-list {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.list-index {
    background-color: #d6d6d6;
    padding: 5px;
    border-radius: 5px;
    margin-right: 5px;
}
.index-value {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: small;
    color: gray;
}

.list-value {
    background-color: #e8e8e8;
    padding: 5px 10px;
    border: 1px solid rgb(0, 0, 0);
    border-radius: 5px;
    position: relative;
    margin-top: 5px;
}



/* THIS IS WITH IMAGES ON TOP */
.papers-container { 
    display: flex;
    justify-content: space-between; 
    gap: 20px; 
}

.paper-with-image {
    display: flex;
    flex-direction: column;
    align-items: center;
}



.lined-paper {
    width: 250px;
    height: 250px;
    background-color: #ffffff;
    border: 2px solid #000000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1; /* Keep text above the background */
}

.lined-paper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('cb.png'); /* Background image for the conveyor belt */
    background-size: cover;
    opacity: 0.3; 
    z-index: -1; 
    pointer-events: none; 
}


.paper-image {
    width: 190px; /* Adjust size of the image as needed */
    height: 240px;
    
    
}

.list-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 5px;
    border-bottom: 1px solid #ccc; /* Optional for better visibility */
}

.index {
    font-weight: bold;
    margin-right: 10px;
    font-size: 19px;
}

.value {
    background-color: None;
    font-size: 19px;
}




.total-box1 {
    position: relative;
    width: 150px;
    height: 180px;
    top: 30px;
 
   
   
    text-align: center;
    padding: 2px;
    box-sizing: border-box;
    background-image: url('totalimgb.jpg'); /* Background image for the conveyor belt */
    background-size: cover;
}

.total-box2 {
    position: relative;
    width: 150px;
    height: 180px;
    top: 30px;
   
   
    text-align: center;
    padding: 2px;
    box-sizing: border-box;
    background-image: url('totalimghigh.png'); /* Background image for the conveyor belt */
    background-size: cover;
}

.total-box-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.total-value {
    font-size: 30px;
    font-weight: bold;
    color:#000000;
    margin-top: 17px; 
}

.total-value2 {
    font-size: 30px;
    font-weight: bold;
    color:#ff6a00;
    margin-top: 17px; 
}



.list-container {
    display: flex;
    align-items: center;
    background-color: rgb(255, 255, 255);
    border: 3px solid #d6d6d6;
    padding: 5px 10px;
    border-radius: 5px;
    position: relative;
}

.index-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 5px;
    position: relative;
}
.total-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 5px;
    position: relative;
    width: 300px;
    
    
}


.highlight-item {
    background-color: #ffff99; /* Light yellow highlight */
    border: 3px solid #ff6a00;
    color: #ff6a00;
}



/* Highlight visited item index */
.highlight-visited {
    background-color: #c8e6c9;
    border: 1px solid #9ccd8b;
    color: #000000; /* Highlight visited items in green */
    
}


.highlight-item-index {
    background-color: yellow; /* Light yellow highlight */
    border: 3px solid #ff6a00; /* Yellow border */

}



/* Highlight visited item index */
.highlight-visited-index {
    background-color: lightblue;
    border: 1px solid #000000; /* Yellow border */
    color: #000000; /* Highlight visited items in green */
    
}

.banner {
    position: absolute;
    top: 10px;
    right: 50px;
    margin: 10px; /* Optional margin to add space from the edges */
    width: 330px; /* Adjust the width as needed */
    height: auto; /* Keep the aspect ratio of the image */
}


button {
    background-color: #ffffff; /* Green background */
    border: none; /* Remove borders */
    color: rgb(0, 0, 0); /* White text */
    padding: 10px 20px; /* Add some padding */
    text-align: center; /* Center the text */
    text-decoration: none; /* Remove underline */
    display: inline-block; /* Get the buttons to align properly */
    font-size: 16px; /* Increase font size */
    font-weight: bold;
    margin: 4px 2px; /* Add some margin */
    cursor: pointer; /* Pointer/hand icon */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s; /* Smooth transitions */
    outline: 2px solid rgba(0, 0, 0, 0.2); /* Add outline */
}

button:hover {
    background-color: #bdd5d7; /* Darker green on hover */
}

button:active {
    background-color: #e4edef; /* Even darker when clicked */
    box-shadow: 0 2px #666; /* Reduce shadow when clicked */
    transform: translateY(2px); /* Move button down on click */
}




  
  
  