.main-container {
  background-color: var(--clr-body-clr);
}
.title-div-container {
  width: 100%;
  height: 100%;
  background-color: var(--clr-container-clr);
  z-index: 105;
  position: relative;
  padding: 0.5rem 0.5rem;
}

.title-div {
  display: flex;
  gap: 5rem;
  background-image: linear-gradient(
    to bottom,
    var(--clr-side-background2),
    var(--clr-side-background3)
  );
  border-radius: 1rem;
  z-index: 105;
  position: relative;
}
.logo-div {
  /* align-self: flex-start; */
  display: inline-block;
  margin-left: 2rem;
}

h1 {
  flex: 0 0 1;
  display: inline-block;
  align-self: center;
  margin: auto;
  /* vertical-align: middle; */
}
/* bolts */
.round {
  display: inline-block;
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: linear-gradient(
    to bottom,
    rgba(248, 242, 242, 0.855),
    rgba(247, 237, 237, 0.855),
    rgba(192, 190, 190, 0.855)
  );
  box-shadow: 0 0 0 0.3rem rgba(255, 255, 255, 0.55);
}

.left-top {
  left: 1rem;
  top: 1rem;
}
.left-bottom {
  left: 1rem;
  bottom: 1rem;
}
.right-top {
  right: 1rem;
  top: 1rem;
}
.right-bottom {
  right: 1rem;
  bottom: 1rem;
}
.title-div h1 {
  justify-self: center;
  font-size: 2.4rem;
  color: var(--clr-text-clr);
  text-transform: uppercase;
}
.container {
  padding: 0 0 0.5rem 0.5rem;
  display: flex;
  flex-direction: row;
  background-color: var(--clr-container-clr);
  /* height: 100vh; */
  gap: 0.5rem;
}

/* ********************** */
/* *******SIDEBAR******* */
/* ********************** */

.sidebar {
  /* background-color: gray; */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background-color: #fffcfc;
  box-shadow: 0 1rem 1rem 0 rgba(177, 176, 176, 0.855);
  padding: 1.2rem 1.6rem;
  border-radius: 0.9rem;
  left: 0;
}

.logo-div {
  padding: 0.8rem 0;
  width: 8rem;
}

.logo {
  width: 100%;
}

.tool-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  font-size: 2rem;
}

.tool-link:link,
.tool-link:visited {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #333;
}

.tool-link[title="Variables"] {
  color: var(--clr-title-background);
}
.tool-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tool-list span {
  display: inline-block;
  font-size: 1.6rem;
}

.icons {
  width: 4rem;
  height: 4rem;
  color: var(--clr-title-background);
  
}

/* ****************** */
/* *****MAIN******* */
/* ****************** */
.main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: scroll;
}

.task-title {
  font-size: 1.8rem;
  padding: 0.2rem 1.6rem;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;

  background-image: linear-gradient(
    to bottom,
    var(--clr-side-background2),
    var(--clr-side-background3)
  );
  color: var(--clr-text-clr);
  letter-spacing: 0.15rem;
}

.task-variable {
  background-image: linear-gradient(
    to bottom,
    var(--clr-side-background3),
    var(--clr-side-background2)
  );
}

.main-section {
  display: grid;
 
  grid-template-columns: 50fr 50fr;
  gap: 0.5rem;
  overflow-y: auto;
  overflow: hidden;
  scroll-behavior: smooth;
  padding: 0 0.5rem 0 0;
}

.main__task-div {
  width: 100%;
  background-color: #ffffffc9;
  border-radius: 0.9rem;
 
  max-height: 100%;
  font-size: 1.6rem;
  border: 0.5rem solid var(--clr-text-clr);
}

.main__task-div:nth-child(1) {
  position: relative;
  grid-column: 1/-1;

}

.main__task-div:nth-child(4) {
  grid-column: 1/-1;
  /* grid-row: 1/4; */
}

  
.footer {
  font-size: 1.2rem;
  /* padding: 0 1rem; */
  grid-column: 1/-1;
  text-align: center;
  background-image: linear-gradient(
    to bottom,
    var(--clr-side-background3),
    var(--clr-side-background2)
  );
  color: var(--clr-text-clr);
  margin-bottom: 0;
}

.div__control {
 
  margin-top: 0.35rem;
  margin-right: 1rem;
}

.div__control img {
  width: 3rem;
  height: 3rem;
  cursor: pointer;
}

.ctrl-icons {
  cursor: pointer;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: var(--clr-title-background);
  color: var(--clr-text-clr);
}

/* ************simulation*********** */

/* canvas */
.canvas__div {
  width: 100%;
  border: 1px solid var(--clr-title-background);
  background-color: #fff;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  flex-wrap: wrap;
  flex-direction: row;
  height: auto;
  border-bottom-right-radius: 1rem;
  border-bottom-left-radius: 1rem;
}
/* canvas#simscreen2 {
  position: absolute;
 
  top: 250px;
  height: 400px;
  width: 550px;
} */

canvas#simscreen {
  position: absolute; 
  top: 66px;
  height: 414px;
  width: 557px;
  left: 4em;
  
}
.ab{
  margin-left: 150px;
}

#canvas-container {
  display: flex;
  width: 100%;
 
  height: 58rem;
  flex-direction: column;
}
#canvas {
  border-left: 1px solid rgba(177, 176, 176, 0.855);
  width: 100%;
  height: 100%;
}
/* .comments_sec {
  display: flex;
  align-items: center;
  justify-content: space-around;
} */

.img-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
 
}

.circuit-dia {
  display: inline-block;
  position: relative;
  text-align: center;

  height: auto;
}

.circuit-dia img {
  width: 100%;
}
.cross-img {
  display: flex;
  position: relative;
  
  height: auto;
  align-items: center;
  justify-content: center;
}
.cross-img img {
  width: 100%;
}

.other-sec {
 
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
  justify-content: center;
}
.tooltip {
  font-weight: 500;
  position: absolute;
  top: -2rem;
  left: 0;
  background-color: rgba(247, 247, 247, 0.5);
  padding: 0.5rem;
  font-size: 1.1rem;
 
  display: none;
}
.circuit-dia:hover span,
.cross-img:hover span {
  display: block;
}
.canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#graphscreen1,
#graphscreen2 {
  border-top: 1px solid var(--clr-title-background);
}
/* **********VARIABLES**************** */
#variables {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  
}
.settings-sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.variables-sections,
.control-sections {
  padding: 1rem 1rem 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1rem;
}
.comment-sections {
  padding: 1rem 1rem 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1rem;
}
.var-div {
  display: flex;
  flex-direction: column;

  row-gap: 1rem;
  column-gap: 2rem;
  
}

.input-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
}

.input-container label {
  margin-left: -5rem;
}
.input-container span + span {
  margin-right: 4rem;
}

.var-spinner {
  display: inline-block;
}

.var-slider {
  width: 15rem;
  margin-left: 10rem;
}

/********************************************/
#comments {
  color: #1b1b1b;
  align-self: stretch;
}
#answers {
  position: absolute;
  top: 50rem;
  left: 1rem;
  z-index: 100;
}
.control-sections {
  height: 100%;
}


.datatable {
  position:relative;
  width: 80px;
  font-size: 12px;
  text-align: center;
  top: 5em;
  left: -382px;
}
.datatable2{
  position:relative;

  font-size: 12px;

  top: 2em;
  left: 511px;
}
.datatable table {
  border: 1px solid #000011;
  border-collapse: collapse;
  width: 120px;
  margin-top: 110px;
  margin-left: 410px;
  
  
  
}
.datatable th {
  border: 1px solid #000011;
  width: 52px;
}
.datatable td {
  border: 1px solid #000011;
  width: 52px;
}
.datatable p {
  position: relative;
  font-size: 10px;
  left: -10px;
}
div#experiments{
  position: relative;
  left:20rem;
  top:20rem;
  width:40rem;
 
   z-index: 10;
   
 }

#legendicon {
  background-image: url("../images/legendicon.png");
  position: absolute;
  left: 710px;
  top: 578px;
  height: 24px;
  width: 24px;
  border: double;
}
#legend {
  position: absolute;
  left:490px;
  top: 500px;
  height: 0px;
  width: 220px;
  border: solid 0px;
  z-index:100;
  overflow: hidden;
  /* transition: height 0.3s ease; */
}
#legendicon:active ~ #legend,
#legendicon:hover + #legend {
  height: 80px; /* Set the desired height */
  border: solid 1px; /* Add a border for visibility */
}
#titleincanvas {
  position:absolute;
  left: 300px;
  top: 38px;
  

}
div#commentboxleft {
  position: absolute;
  left: 16px;
  top: 507px;
  height: 65px;
  width: 285px;
  text-align: left;
  font-size: 16px;
  
}
div#commentboxleft1 {
  position: absolute;
  left: 16px;
  top: 507px;
  height: 65px;
  width: 285px;
  text-align: left;
  font-size: 16px;
  
}
div#commentboxright {
  position: absolute;
  left: 354px;
  top: 517px;
  height: 65px;
  width: 285px;
  text-align: right;
  font-size: 16px;
  
}
div#newComment{
  position: relative;
  left: 10px;
  top: 20px;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  width:auto;
  padding: 1px 22px;
  margin-top: 130px;
  margin-left: 10px;
  z-index: 1;
 
}

#questionsAcc,#questionsOffset,#questionsForce{
  position: absolute;
  top: 42rem;
  left: 1rem;
}
#startExperiment ,#stopExperiment ,#resetExperiment {
  font-size: 1.3rem;
  padding: 8px;
  margin-top: 1rem;
  border-radius: 0.5rem;
  position: relative;
  top: -4px;
  background-image: linear-gradient(
    to bottom,
    var(--clr-side-background2),
    var(--clr-side-background3)
  );
  color: var(--clr-text-clr);
  border: none;
  cursor: pointer;
}
.var-controls{
  display: flex;
  flex-direction: row;
  gap: 21rem;
 
  
}