* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, #818181, #212121);
  background: #787878;
}
.parent-container {
  max-width: 850px;
  width: 100%;
  height: 600px;
  background: #000000;
  background: #fff;
  margin: 0px auto !important;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(12, 1fr);
  grid-template-areas:
    "aaaa aaaa aaaa"
    "bbbb cccc cccc"
    "dddd cccc cccc"
    "eeee cccc cccc"
    "ffff ffff ffff";
}
.item-1 {
  grid-area: "a";
  grid-column: span 12;
  background: #ccc;
}
.item-1 h5 {
  font-size: 30px;
}
.item-2 {
  grid-area: "b";
  grid-column: span 4;
  background: #ccc;
  background: #e7fed3;
  background: #fff;
  background: linear-gradient(135deg, #c9f6a1, #d6edfb) !important;
  border-radius: 5px;
  /* border: 2px solid #dbdbdb; */
  position: relative;
  z-index: 0;
  animation: glow-blink 1s linear infinite;
}
@keyframes glow-blink {
  0% {
    border-right: 2px solid;
    border-image: linear-gradient(135deg, #ff9e35, #ffffff) 1;
  }
  50% {
    border-right: 2px solid;
    border-image: linear-gradient(135deg, #00f7ff, #007d00) 1;
  }
  100% {
    border-right: 2px solid;
    border-image: linear-gradient(135deg, #00f7ff, #ffffff) 1;
  }
}

.item-2 #input-selection {
  font-size: 24px;
  padding: 5px;
  border-radius: 4px;
  width: 90%;
  background: transparent;
}
.item-3 {
  grid-area: "c";
  grid-column: span 8;
  grid-row: span 4;
  background: #ccc;
}
.item-4 {
  grid-area: "d";
  grid-column: span 4;
  background: #ccc;
  background: #ecd8fb;
  background: linear-gradient(135deg, #edddf9, #b1d1ff);
  /* background: transparent; */
  /* border: 2px solid #ccc; */
}
.item-4 p {
  font-size: 18px;
  padding: 10px;
}
.item-5 {
  grid-area: "e";
  grid-column: span 4;
  grid-row: span 2;
  background: #ccc;
  background: #f6eee5;
  background: linear-gradient(135deg, #f4e2cd, #bddbf4);
}
.item-5 table {
  font-size: 20px;
}
.item-5 table tr th,
.item-5 table tr td {
  font-size: 24px;
  padding: 5px 10px;
}
#table-and {
  display: none;
}
#table-or {
  display: none;
}
#table-not {
  display: none;
}

.item-6 {
  grid-area: "f";
  grid-column: span 12;

  background: #ccc;
  background: #ceedf5;
  background: linear-gradient(135deg, #cfeff7, #e0fbb4);
}
.item {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  /* border-radius: 5px; */
}
.item-6 {
  justify-content: left;
  align-items: flex-start;
  padding-top: 10px;
  height: 100px;
}
.item-1 {
  height: 70px;
  background: linear-gradient(135deg, #fae4a7, #b1befc);
}
.item-2 {
  height: 70px;
}
.item-4 {
  height: 160px;
  align-items: flex-start;
}
.item-5 {
  height: 220px;
  overflow-y: auto;
  padding: 20px 0;
}
.item-3 {
  height: 255px;
}
#step-information {
  font-size: 17px;
  padding-inline: 15px;
}

.diagram-1 {
  width: 100%;
  height: 100%;
  background: rgb(140, 140, 229);
  background: #fff;
  position: relative;
  display: none;
}
.diagram-1 .main-circuit-line {
  width: 260px;
  height: 200px;
  /* background: red; */
  position: absolute;
  top: 30px;
  left: 20px;
  border: 2px solid #000;
}
.diagram-1 .switch {
  height: 39px;
  width: 74px;
  border-radius: 5px;
  background: #ccc;
  background: linear-gradient(135deg, #cccccc, #f8f8f8);
  position: absolute;
  top: 14px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  border: 2px solid #000;
}
.diagram-1 .switch-1 {
  left: 50px;
}
.diagram-1 .switch-2 {
  left: 150px;
}
.diagram-1 .switch .background-oval {
  height: 15px;
  width: 60px;
  background: #909090;
  /* background: transparent; */
  /* border: 1px solid #000; */
  border-radius: 6px;
  position: absolute;
  top: 10px;
  left: 5px;
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55); */
  transition: 0.2s ease-in-out;
}
.diagram-1 .switch .circular-head {
  height: 25px;
  width: 25px;
  background: #5b5b5b;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  left: 5px;
  transition: 0.2s;
}

.diagram-1 .switch .background-oval.on {
  background: linear-gradient(135deg, #84e691, #09be21);
  background: #5fd66f;
  transition: 0.2s;
}
.diagram-1 .switch .circular-head.on {
  left: 40px;
  background: linear-gradient(135deg, #176c23, #3ce753, #7ee775);
  background: #00b118;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.37);
  transition: 0.2s;
}
.diagram-1 .battery {
  height: 45px;
  width: 100px;
  background: #ff6868;
  background: linear-gradient(135deg, #ffb7b7, #ff6363);
  border-radius: 3px;
  position: absolute;
  top: 205px;
  left: 100px;
  display: flex;
  justify-content: space-between;
  padding-inline: 10px;
  border: 2px solid #000;
}
.diagram-1 .bulb {
  width: 80px;
  height: 50px;
  /* background: #ccc; */
  position: absolute;
  top: 100px;
  left: 275px;
}
.diagram-1 .bulb .line {
  width: 6px;
  height: 4px;
  background: red;
  background: linear-gradient(135deg, #ccc, #323232);
  position: absolute;
  border: 1px solid #000;
  border-radius: 2px;
}
.diagram-1 .bulb .line-1 {
  height: 16px;
  top: 20px;
  left: 0;
}
.diagram-1 .bulb .line-2 {
  height: 20px;
  top: 18px;
  left: 5px;
}
.diagram-1 .bulb .line-3 {
  height: 25px;
  top: 15.5px;
  left: 10px;
  z-index: 3;
}
.diagram-1 .bulb .light {
  height: 35px;
  width: 35px;
  border-radius: 50%;
  background: yellow;
  background: linear-gradient(135deg, #f5f5f5, #b6b6b6);

  position: absolute;
  top: 11px;
  left: 12px;
}

.diagram-2 {
  width: 100%;
  height: 100%;
  background: rgb(140, 140, 229);
  background: #fff;
  position: relative;
  display: none;
}
.diagram-2 .main-circuit-line {
  width: 260px;
  height: 200px;
  /* background: red; */
  position: absolute;
  top: 30px;
  left: 20px;
  border: 2px solid #000;
}
.diagram-2 .inner-line {
  width: 260px;
  height: 1px;
  border: 1px solid #000;
  background: #000;
  position: absolute;
  top: 90px;
  left: 20px;
}
.diagram-2 .switch {
  height: 39px;
  width: 74px;
  border-radius: 5px;
  background: #ccc;
  background: linear-gradient(135deg, #cccccc, #f8f8f8);
  position: absolute;
  top: 14px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  border: 2px solid #000;
}
.diagram-2 .switch-1 {
  left: 50px;
}
.diagram-2 .switch-2 {
  left: 50px;
  top: 70px;
}
.diagram-2 .switch .background-oval {
  height: 15px;
  width: 60px;
  background: #909090;
  border-radius: 6px;
  position: absolute;
  top: 10px;
  left: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.diagram-2 .switch .circular-head {
  height: 25px;
  width: 25px;
  background: #5b5b5b;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  left: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.diagram-2 .switch .background-oval.on {
  background: linear-gradient(135deg, #84e691, #09be21);
  background: #5fd66f;
  transition: 0.2s;
}
.diagram-2 .switch .circular-head.on {
  left: 40px;
  background: linear-gradient(135deg, #176c23, #3ce753, #7ee775);
  background: #00b118;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.37);
  transition: 0.2s;
}

.diagram-2 .battery {
  height: 45px;
  width: 100px;
  background: #ff6868;
  background: linear-gradient(135deg, #ffb7b7, #ff6363);
  border-radius: 3px;
  position: absolute;
  top: 205px;
  left: 100px;
  display: flex;
  justify-content: space-between;
  padding-inline: 10px;
  border: 2px solid #000;
}
.diagram-2 .bulb {
  width: 80px;
  height: 50px;
  /* background: #ccc; */
  position: absolute;
  top: 100px;
  left: 275px;
}
.diagram-2 .bulb .line {
  width: 6px;
  height: 4px;
  background: red;
  background: linear-gradient(135deg, #ccc, #323232);
  position: absolute;
  border: 1px solid #000;
  border-radius: 2px;
}
.diagram-2 .bulb .line-1 {
  height: 16px;
  top: 20px;
  left: 0;
}
.diagram-2 .bulb .line-2 {
  height: 20px;
  top: 18px;
  left: 5px;
}
.diagram-2 .bulb .line-3 {
  height: 25px;
  top: 15.5px;
  left: 10px;
  z-index: 3;
}
.diagram-2 .bulb .light {
  height: 35px;
  width: 35px;
  border-radius: 50%;
  background: yellow;
  background: linear-gradient(135deg, #f5f5f5, #b6b6b6);

  position: absolute;
  top: 11px;
  left: 12px;
}

.diagram-3 {
  width: 100%;
  height: 100%;
  background: rgb(140, 140, 229);
  background: #fff;
  position: relative;
  display: none;
}
.diagram-3 .main-circuit-line {
  width: 260px;
  height: 200px;
  /* background: red; */
  position: absolute;
  top: 30px;
  left: 20px;
  border: 2px solid #000;
}
.diagram-3 .inner-line {
  height: 200px;
  width: 1px;
  background: rgb(0, 0, 0);
  position: absolute;
  left: 230px;
  top: 30px;
}

.diagram-3 .switch {
  height: 39px;
  width: 74px;
  border-radius: 5px;
  background: #ccc;
  background: linear-gradient(135deg, #cccccc, #f8f8f8);
  position: absolute;
  top: 14px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  border: 2px solid #000;
}

.diagram-3 .switch-2 {
  left: 195px;
  top: 100px;
  transform: rotate(-90deg);
}
.diagram-3 .switch .background-oval {
  height: 15px;
  width: 60px;
  background: #909090;
  border-radius: 6px;
  position: absolute;
  top: 10px;
  left: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.diagram-3 .switch .circular-head {
  height: 25px;
  width: 25px;
  background: #5b5b5b;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  left: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.diagram-3 .switch .background-oval.on {
  background: linear-gradient(135deg, #84e691, #09be21);
  background: #5fd66f;
  transition: 0.2s;
}
.diagram-3 .switch .circular-head.on {
  left: 40px;
  background: linear-gradient(135deg, #176c23, #3ce753, #7ee775);
  background: #00b118;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.37);
  transition: 0.2s;
}
.diagram-3 .battery {
  height: 45px;
  width: 100px;
  background: #ff6868;
  background: linear-gradient(135deg, #ffb7b7, #ff6363);
  border-radius: 3px;
  position: absolute;
  top: 205px;
  left: 100px;
  display: flex;
  justify-content: space-between;
  padding-inline: 10px;
  border: 2px solid #000;
}
.diagram-3 .bulb {
  width: 80px;
  height: 50px;
  /* background: #ccc; */
  position: absolute;
  top: 100px;
  left: 275px;
}
.diagram-3 .bulb .line {
  width: 6px;
  height: 4px;
  background: red;
  background: linear-gradient(135deg, #ccc, #323232);
  position: absolute;
  border: 1px solid #000;
  border-radius: 2px;
}
.diagram-3 .bulb .line-1 {
  height: 16px;
  top: 20px;
  left: 0;
}
.diagram-3 .bulb .line-2 {
  height: 20px;
  top: 18px;
  left: 5px;
}
.diagram-3 .bulb .line-3 {
  height: 25px;
  top: 15.5px;
  left: 10px;
  z-index: 3;
}
.diagram-3 .bulb .light {
  height: 35px;
  width: 35px;
  border-radius: 50%;
  background: yellow;
  background: linear-gradient(135deg, #f5f5f5, #b6b6b6);

  position: absolute;
  top: 11px;
  left: 12px;
}

.glow-on {
  background: linear-gradient(135deg, #f8f81d, #ffc532) !important;
  box-shadow: 0 2px 25px rgba(255, 176, 17, 0.912) !important;
}

/* .diagram-1{display: block;} */
/* .diagram-2{display: block;} */
/* .diagram-3{display: block;} */
.active-display {
  display: block !important;
}
@keyframes blink {
  0% {
    background: transparent;
  }
  50% {
    background: linear-gradient(135deg, #ffff00, rgb(251, 194, 133));
  }
  100% {
    background: transparent;
  }
}
.animation-blink {
  animation: blink 1s linear infinite;
}
.switch:hover {
  cursor: pointer;
}

@media (max-width: 700px) {
  .parent-container {
    width: 99vw;
    height: calc(95vh - 10px);
    margin: 10px auto;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(11, 1fr);
    /* background: blue; */
    /* margin-block: auto; */
  }
  .item-1 {
    grid-area: "a";
    grid-column: span 12;
    grid-row: span 1;
  }
  .item-3 {
    grid-area: "c";
    grid-column: span 12;
    grid-row: span 4;
    /* background: #9898d3; */
    grid-column-start: 1;
    grid-row-start: 2;
    grid-column-end: 13;
    grid-row-end: 6;
  }
  .item-2 {
    grid-area: "b";
    grid-column: span 6;
    grid-row: span 1;
  }
  .item-4 {
    grid-area: "d";
    grid-column: span 6;
    /* grid-row: span 3; */
    grid-area: 7/1/10/7;
  }
  .item-5 {
    grid-area: "e";
    grid-column: span 6;
    /* grid-row: span 4; */
    grid-area: 6/7/10/13;
  }
  .item-6 {
    grid-area: "f";
    /* grid-column: span 12;
    grid-row: span 2; */
    grid-area: 10/1/12/13;
  }

  .diagram-1 .switch-1 {
    top: 14px;
    left: 50px;
  }
  .diagram-1 .switch-2 {
    top: 14px;
    left: 150px;
  }
  .item-1 h5 {
    font-size: 24px;
  }
  @keyframes glow-blink {
    0% {
      border-top: 2px solid;
      border-image: linear-gradient(135deg, #ff9e35, #ffffff) 1;
    }
    50% {
      border-top: 2px solid;
      border-image: linear-gradient(135deg, #00f7ff, #007d00) 1;
    }
    100% {
      border-top: 2px solid;
      border-image: linear-gradient(135deg, #00f7ff, #ffffff) 1;
    }
  }
  .item-1 {
    height: 100%;
  }
  .item-2 {
    height: 100%;
  }
  .item-4 {
    height: 100%;
  }
  .item-5 {
    height: 100%;
  }
  .item-6 {
    height: 100%;
  }
}
