.container {
  background-color: var(--clr-container-clr);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  max-height: 100vh;
}
.title-div-container {
  width: 100%;
  height: 100%;
  background-color: var(--clr-container-clr);
  z-index: 105;
  position: relative;
  padding: 0.25rem;
  grid-column: 1/-1;
}
.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;
  text-align: center;
}
.logo-div {
  display: inline-block;
  margin-left: 2rem;
}

h1 {
  flex: 0 0 1;
  display: inline-block;
  align-self: center;
  margin: auto;
}

.title-div h1 {
  justify-self: center;
  font-size: 2.8rem;
  color: var(--clr-text-clr);
  text-transform: uppercase;
}

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

.sidebar {
  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;
  margin: 0.25rem;
  border-radius: 0.9rem;
  left: 0;
  cursor: pointer;
}

.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;
  cursor: pointer;
}
.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;
  overflow-x: hidden;
  margin: 0.25rem;
  margin-bottom: 0;
  border-radius: 0.9rem;
}

.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: repeat(2, 1fr); */
  grid-template-columns: 1fr;
  gap: 0.5rem;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 0 0.25rem 0 0;
}
.main__task-div {
  width: 100%;
  background-color: #ffffffc9;
  border-radius: 0.9rem;
  /* padding: 1.5rem; */
  max-height: 100%;
  font-size: 1.6rem;
  border: 0.5rem solid var(--clr-text-clr);
  /* overflow-y: hidden; */
  overflow-x: hidden;
}

.main__task-div:nth-child(1) {
  position: relative;
  grid-column: 1/-1;
  /* overflow-y: hidden; */
}

.main__task-div:nth-child(2) {
  grid-column: 1/-1;
  /* overflow-y: hidden; */
}

.title-control-div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  background-image: linear-gradient(
    to bottom,
    var(--clr-side-background3),
    var(--clr-side-background2)
  );
}

.footer {
  font-size: 1.2rem;
  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: 1fr;
  overflow-x: hidden;
}

.grid-container img {
  max-width: 100%; /* Ensure image scales within the parent */
  height: auto; /* Maintain aspect ratio */
  margin: auto; /* Centering fallback for block-level elements */
}
.div1 {
  display: flex;
  justify-content: center; /* Center the image horizontally */
  align-items: center; /* Center the image vertically */
  position: relative;
  /* grid-template-columns: 1fr 1fr 1fr; */
}

.div1 {
  position: relative; /* Make this the reference point for the bulb */
}

.container1 {
  margin: auto;
  max-width: 100%;
  padding: 10px;
}

.table-title {
  font-size: 16px;
  background-color: black;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.table-container {
  overflow-x: auto; /* Enable horizontal scrolling for small screens */
  margin: 0 auto;
  padding: 10px;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.practice {
  display: flex;
  flex-direction: column;
  gap: 0em;
  padding: 2rem;
}

canvas {
  width: 80%;
  height: 100%;
  margin: 0 auto;
}

.image-container img {
  width: 100%; /* Makes the image responsive */
  height: auto; /* Maintains the aspect ratio of the image */
}

.table-div {
  grid-column: 2/3;
  grid-row: 1/3;
  align-self: start;
  max-height: 500px;
  overflow-y: scroll;
}

#truth-table th {
  text-align: center;
  background-color: #0bbeb4;
  /* border-color: #000000; */
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
}

table {
  border-collapse: collapse; /* Ensures single line borders */
}

table,
th,
td {
  border: 1px solid black; /* Defines the border */
}

th,
td {
  /* padding: 7.5px; */
  text-align: center;
}

.input {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 0rem;
  margin-top: 0.5rem;
}

.input-select {
  display: flex;
  gap: 2rem;
}

.input div:nth-child(2) {
  align-self: center;
}

.settings-sections {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center horizontally */
  text-align: center;
  padding: 10px;
}

/* Main container with two columns */
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 20px;
  align-items: center;
  padding: 20px;
}

/* Left Section - Image styling */
.image-container img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  border: 1px;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}

/* Right Section - Grid for inputs */
.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns of equal width */
  gap: 10px; /* Add gap between input boxes */
}

.input-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.input-cell label {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}

.input-cell select {
  width: 100%; /* Make input box take full column width */
  height: 40px;
  padding: 0px 10px;
  font-size: 16px;
  border: 1px solid black;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  outline: none;
  text-align: left;
  text-align-last: left;
  transition: border-color 0.3s ease-in-out;
}

/* .input-cell select:focus {
  border-color: #4caf50;
} */

/* Button styling */
.buttons {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background-color: #4caf50;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.buttons:hover {
  background-color: #45a049;
}

/* Responsive Design */
/* @media screen and (max-width: 768px) {
 

  .buttons {
    width: 100%;
  }
} */

.grid select {
  width: 100px; /* Set a uniform width for all select elements */
  padding: 5px;
}

.buttons {
  padding: 8px;
  border-radius: 0.5rem;
  background-image: linear-gradient(
    to bottom,
    var(--clr-side-background2),
    var(--clr-side-background3)
  );
  color: var(--clr-text-clr);
  border: none;
  cursor: pointer;
  margin-top: 18px;
}

button {
  padding: 5px 15px;
  cursor: pointer;
}
