.add-button, .simulation-button{
    display: inline-block;
    width: 120px;
    height: 35px;
    border-radius: 50px;
    background-color: #6b3225;
    border: none;
    color: white;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    margin: 30px;
}

.add-button:hover{
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.15);
}

.add-button:active{
    opacity: 0.5;
}

.simulation-button:hover{
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.15);
}

    .simulation-button:active{
        opacity: 0.7;
    }

.main-div{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 60px;
}

.sub-main-div{
    display: flex;
    flex-direction: column;
    width: 200px;
    height: 250px;
    border: 2px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    margin-right: 55px;
    margin-bottom: 40px;
}

.main-input, .courses-inputs {
    background-color: #efefefd3;
    width: 100%;
    padding: 11px;
    box-sizing: border-box;
    border: none;
    outline: none;
    font-size: 15px;
}

.main-input{
    background-color: rgba(220, 120, 120, 0.7);
    color: #FAFAFA;
    padding: 15px;
}

.main-input::placeholder{
    color: #e5c9c2;
}

.courses-inputs::placeholder{
    color: #696866b0;
}

.header {
    background-color: #333;
    color: #fff;
}

.content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #f9f9f9;
}

hr{
    color: #333;
    background-color: #333;
    width: 200px;
    height: 1px;
    margin: 0%;
}



    :root{
        --dark-tris:#B75BFF;
        --light-tris: #3AD9C6;
        --arroe-color: ;
        --node-color: #FFf8DC ;
        --stroke-node-color: #6C5E5E;
        --node-name-color: black ;
        --stroke-node-name: white;
        --arrow-color: #222222;
    }

    #runButton{

        cursor: pointer;
    }
    #darkTris{
fill: var(--dark-tris);
    }
#lightTris{
fill: var(--light-tris);
}

#darkTri,
#darkTri2,
#lightTri{

    transition: all 1s ease;
}
#darkTri2{
    transform: translateX(-100%);
}
svg:hover #lightTri{
    transform: translateX(20%);
}
svg:hover #darkTri{
    transform: translateX(100%);
}
svg:hover #darkTri2{
    transform: translateX(5%);
}

#nodeName{
    
    left:0; top:0; width:100%; height:100%;
    stroke-width: 2px;
    stroke: var(--stroke-node-name);
stroke-opacity: 0.3;
fill: var(--node-name-color);
fill-opacity:0.9;

 font-size:10pt;
 font-weight: bold;
 font-family:Arial;
 text-anchor:middle;
  overflow:visible;
  
}


#arrow{
    fill:var(--arrow-color);
    fill-opacity:0.7;
}
ellipse{
    
     fill-opacity:0.5;
     stroke-width: 2px;
     stroke: var(--stroke-node-color);
     stroke-opacity:0.5;

}
#container{
    display: flex;
  justify-content: center; 
  align-items: center;
}
.container{
    display: flex;
  justify-content: center; 
  align-items: center;
}
#sortSimulation,#wholesvg-container,#traverseSimulation{
    display: inline-block;
    min-width: 70%;
    max-width: 70%;
    min-height: 270px; 
    border: 1px solid black; 
    padding: 50px;
    border-radius: 5px;
border-width: 4px;
border-color: rgba(202, 60, 60, 0.548);  
border-style: dashed;  
    
}
#simulation{
    display: inline-block;
    min-width: 70%;
    max-width: 70%;
    min-height: 500px; 
    
    border: 1px solid black; 
   
    border-radius: 5px;
border-width: 4px;
border-color: rgba(202, 60, 60, 0.548);  
border-style: dashed;  
    
}
#simulation {
    position: relative; /* Ensure relative positioning */
    width: 100%; /* Fill the width of the parent container */
    height: 100%; /* Fill the height of the parent container */
    overflow: hidden; /* Prevent SVG from overflowing */
}

#simulation svg {
    position: absolute; /* Ensure absolute positioning */
    top: 0; /* Align to the top of the container */
    left: 0; /* Align to the left of the container */
    width: 100%; /* Fill the width of the container */
    height: 100%; /* Fill the height of the container */
}
#runButton{
    
    justify-content: left; 
}
.subsSim,.subsSims{
    display: inline-block;
}

@keyframes simNodes {
    from {
        transform: translateX(-100%);
      }
      to {
        transform: translateX(0);
      }
}


#node,#arrow{
    animation: simNodes 1s;
 
}
h2 {
    font-family: Arial, sans-serif; 
    font-size: 24px; 
    font-weight: bold; 
    color: #501212; 
    text-align: center; 
    padding: 20px 0; 
    margin: 0; 
    text-shadow: 2px 2px 4px rgba(238, 72, 72, 0.3);
    
    border-radius: 10px; 
    
  }
  #buttonContainer,#traBtnContainer{
    display: flex;
  min-width: 70%;
    max-width: 70%;
    min-height: 250px; 
    justify-content:right; 

  }
  @keyframes wholeSimulation {
    from {
        transform: translateY(-100%);
      }
      to {
        transform: translateY(0);
      }
}

#simulation-container.animate{
    animation: wholeSimulation 1s;
}
#topologysort-container.animate{
    animation: wholeSimulation 1s;
}
#traverse-container.animate{
    animation: wholeSimulation 1s;
}
#sortCourses,#traverseSimBtn{
    padding: 20px;
max-width: 190px;
max-height: 35px;
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #8d6055;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#showGraphButton:hover {
    background-color: #b3938a;
  }
  
  #showGraphButton:active {
    background-color: #5c382f;
  }
  
#svg-container {
    width: 800px;
    height: 600px;
    position: relative; /* Ensure positioning context for absolute positioning of nodes */
}
.link {
    stroke: #999; /* Color of the lines */
    stroke-width: 2px; /* Width of the lines */
}