 /* {
    user-select: none;
    scrollbar-width: 10px;
} */
/* ::-webkit-scrollbar{
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-thumb {
    background-color: rgb(105, 105, 105);
    outline: 1px solid slategrey;
} */
body{
    height: 92vh;
    overflow: hidden;
    margin: 0;
    /* zoom: 0.75; */
    /* zoom: 0.75;
    transform: scale(0.75); */
}

.footer {
    height: 10vh;
    padding: 1px;;
    text-align: center;
    background-color: #f8f9fa;
    width: 100%;
    /* overflow: hidden; */
    background-color: rgb(228, 241, 197);
    border-top: 2px solid rgba(40, 40, 41, 0.7); /* Top border */
    border-right: 2px solid rgba(80, 80, 84, 0.7); /* Right border */
    border-bottom: 2px solid rgba(42, 42, 43, 0.7); /* Bottom border */
    border-left: 2px solid rgba(41, 42, 42, 0.7); /* Left border */
    box-shadow: 0 0 10px rgba(173, 216, 230, 0.8); /* Soft blue glow */
  }
#expandcnv,#fullscreen, #helpbtn, #cleardatabtn{
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: transparent;
    border-style: none;
    cursor: pointer;
}
#expandcnv svg{
    scale: 1.2;
    color: black;
}

#fullscreen{
    left: 170px;
    top: 3px;
    color: black;

}
#fullscreen svg{
    height: 20px;
    width: 20px;
    background-color: black;
}
#fullscreen:hover::after {
    content: "Toggle Fullscreen"; /* Tooltip text */
    position: absolute;
    top: 30px; /* Position above the button */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none; /* Prevents tooltip from blocking interactions */
    opacity: 1;
    transition: opacity 0.3s;
}



#helpbtn{
    top: 2px;
    left: 3px;
    font-size: large;
    background-color: #5dc4e9;
    border-radius: 2px;
    border-top: 1px solid rgba(40, 40, 41, 0.7); /* Top border */
    border-right: 1px solid rgba(80, 80, 84, 0.7); /* Right border */
    border-bottom: 1px solid rgba(42, 42, 43, 0.7); /* Bottom border */
    border-left: 1px solid rgba(41, 42, 42, 0.7); /* Left border */
    box-shadow: 0 0 10px rgba(173, 216, 230, 0.8); /* Soft blue glow */
    
}
#helpbtn:hover {
    background-color: #66efadfe;
}
#Experiment_name {
    /* position: relative; */
    top: 0;
    height: 4%;
    text-align: center;
    color: black;
    font-size: 1.5rem;
    border-top: 2px solid rgba(40, 40, 41, 0.7); /* Top border */
    border-right: 2px solid rgba(80, 80, 84, 0.7); /* Right border */
    border-bottom: 2px solid rgba(42, 42, 43, 0.7); /* Bottom border */
    border-left: 2px solid rgba(41, 42, 42, 0.7); /* Left border */
    box-shadow: 0 0 10px rgba(173, 216, 230, 0.8); /* Soft blue glow */
    background-color: rgb(228, 241, 197);
}

#Footer {
    top: 5px;
    height: 3.5%;
    text-align: center;
    color: black;
    font-size: 1.5rem;
    /* border: 1px solid rgba(173, 216, 230, 0.7); Light blue border with some transparency */
    box-shadow: 0 0 10px rgba(173, 216, 230, 0.8); /* Soft blue glow */
}

#cleardatabtn{
    top: 2px;
    left: 217px;
    color: black;
    font-size: 1.10rem;
    background-color: #5dc4e9;
    border-radius: 3px;
    border-radius: 2px;
    border-top: 1px solid rgba(40, 40, 41, 0.7); /* Top border */
    border-right: 1px solid rgba(80, 80, 84, 0.7); /* Right border */
    border-bottom: 1px solid rgba(42, 42, 43, 0.7); /* Bottom border */
    border-left: 1px solid rgba(41, 42, 42, 0.7); /* Left border */
    box-shadow: 0 0 10px rgba(173, 216, 230, 0.8); /* Soft blue glow */
}
#cleardatabtn:hover {
    background-color: #66efadfe; /* Darker green on hover */
}
#toggleSidebar{
    position: fixed;
    top : 0px;
    left : 164px;
}
#toggleSidebar:hover::after {
    content: "Toggle Sidebar"; /* Tooltip text */
    position: absolute;
    top: 30px; /* Position above the button */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none; /* Prevents tooltip from blocking interactions */
    opacity: 1;
    transition: opacity 0.3s;
}

.cnvcontcont{
    height: 100%;
    width: 98%;
    /* overflow: scroll; */
}
.cnvcont{
    height: 100%;
    width: 100%;
}
.cnvcont.full{
    height: 500%;
    width: 500%;
}
.sidebar.vr{
    position: fixed;
    display: flex;
    top: 6%;
    /* z-index: 0; */
    /* width: 15%;
    height: 100%; */
    right: 5px;
    flex-direction: column;
    height: 88%;
    overflow-x: hide;
    overflow-y: scroll;
    background-color: rgb(228, 241, 197);
    border-radius: 2px;
    border-top: 1px solid rgba(40, 40, 41, 0.7); /* Top border */
    /* border-right: 1px solid rgba(80, 80, 84, 0.7);  */
    border-bottom: 1px solid rgba(42, 42, 43, 0.7); /* Bottom border */
    border-left: 1px solid rgba(41, 42, 42, 0.7); /* Left border */
    box-shadow: 0 0 10px rgba(173, 216, 230, 0.8); /* Soft blue glow */
    
}
.sidebar.hr{
    margin-top: 10%;
    position: fixed;
    display: flex;
    bottom: 5px;
    left: 0;
    flex-direction: row;
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
}

.nodebtn:active{
    background-color: rgb(52, 37, 75);
}
.sidebar.hr > .nodebtn{
    padding: 10px 15px;
    margin: 2px 5px;

}
#pulse{
    animation: pulse 1s linear infinite;
}
@keyframes pulse {
    0%{
        background-color: red;
    }
    50%{
        background-color: #222;
    }
}
#actionpanel{
    position: fixed;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    display: none;
    flex-direction: column;
    width: 120px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}
#actionpanel button{
    padding: 10px 5px;
    margin: 2px 0;
    border-radius: 2px;
    z-index: 1000;
}
#actionpanel div{
    position: absolute;
    top: 0;
    right: 0;
    font-size: 2rem;
    translate: 50% -50%;
    background-color: white;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}
/* Main help container */
#helpcontainer {
    height: 80%;
    width: 95%;
    position: fixed;
    /* top: 10%; */
    left: 4%;
    background-color: rgba(0, 0, 0, 0.3);
    display: none;
    /* align-items: center; */
    /* justify-content: center; */
}

/* Display help container when active */
#helpcontainer.active {
    display: flex;
}

/* Inner help content box */
#innerhelp {
    width: 80%; /* Adjust width as needed */
    /* max-width: 1300px; Set a maximum width for larger screens */
    height: 95vh; /* Adjust height to fit most screen sizes */
    background-color: white;
    border-radius: 5px;
    padding: 15px;
    position: relative;
    overflow-y: auto; /* Enable vertical scrolling for full content */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Close button styling */
#innerhelp > div {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    transform: translate(-50%, 0);
    cursor: pointer;
}

/* Styles for list items */
#innerhelp ul li {
    margin: 10px 0;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Style images within content */
#innerhelp img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

/* Smooth scrolling effect */
#innerhelp {
    scroll-behavior: smooth;
}

kbd{
    background-color: #333;
    color: #ddd;
    padding: 3px 6px;
    border-radius: 2px;
} 
.nodebtn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 21px;
    background-color:black; /* Set the background color */
    border: none;
    border-radius: 5px;
    color: #f4efeff6; /* Set the text color */
    font-size: 16px; /* Set the font size */
    margin: 8px;

}
.Component_heading{
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 15px 21px; */
    background-color:rgb(65, 69, 72); /* Set the background color */
    border: none;
    border-radius: 5px;
    color: #f4efeff6; /* Set the text color */
    font-size: 12px; /* Set the font size */
    margin: 8px;
}
  .icon1 {
    background-image: url('./images/group.png');
    width: 45px;
    background-size: cover;
    height: 44px;
    margin-right: 10px; /* Adjust the spacing between the icon and text */
    border-radius: 5px ;
  }
  .icon2 {
    background-image: url('./images/junction.png');
    width: 45px;
    background-size: cover;
    height: 44px;
    margin-right: 10px; /* Adjust the spacing between the icon and text */
    border-radius: 5px ;
  }
  .icon3 {
    background-image: url("./images/input.png");
    background-size: cover;
    width: 45px;
    height: 25px;
    margin-right: 10px; /* Adjust the spacing between the icon and text */
    border-radius: 5px ;
  }
  .text {
    margin-top: 2px; /* Adjust the vertical alignment of the text */
  }
  .text {
    margin-top: 2px; /* Adjust the vertical alignment of the text */
  }
  .icon4 {
    background-image: url('./images/output.png');
    width: 45px;
    background-size: cover;
    height: 44px;
    margin-right: 10px; /* Adjust the spacing between the icon and text */
    border-radius: 5px ;
  }
  .icon11 {
    background-image: url('./images/D_flip.png');
    width: 100px;
    background-size: cover;
    height: 44px;
    margin-right: 10px; /* Adjust the spacing between the icon and text */
    border-radius: 5px ;
  }
  .icon12 {
    background-image: url('./images/JK_flip.png');
    width: 80px;
    background-size: cover;
    height: 68px;
    margin-right: 10px; /* Adjust the spacing between the icon and text */
    border-radius: 5px ;
  }
  .icon5 {
    background-image: url('./images/and.png');
    width: 160px;
    background-size: cover;
    height: 60px;
    margin-right: 10px; /* Adjust the spacing between the icon and text */
    border-radius: 5px ;
  }
  .icon6 {
    background-image: url('./images/or.png');
    width: 108px;
    background-size: cover;
    height: 46px;
    margin-right: 10px; /* Adjust the spacing between the icon and text */
    border-radius: 5px ;
  }
  .icon7 {
    background-image: url('./images/not.png');
    width: 160px;
    background-size: cover;
    height: 47px;
    margin-right: 10px; /* Adjust the spacing between the icon and text */
    border-radius: 5px ;
  }
  .icon8 {
    background-image: url('./images/nand.png');
    width: 138px;
    background-size: cover;
    height: 49px;
    margin-right: 10px; /* Adjust the spacing between the icon and text */
    border-radius: 5px ;
  }
  .icon9 {
    background-image: url('./images/nor.png');
    width: 143px;
    background-size: cover;
    height: 49px;
    margin-right: 10px; /* Adjust the spacing between the icon and text */
    border-radius: 5px ;
  }
  .icon10 {
    background-image: url('./images/xor.png');
    width: 150px;
    background-size: cover;
    height: 58px;
    margin-right: 10px; /* Adjust the spacing between the icon and text */
    border-radius: 5px ;
  }
  .nodebtn:hover {
    background-color: rgba(179, 224, 243, 0.947);
    color: black;
  }