/* rem and em do not depend on html font size in media queries, Instead 1rem = 1em = 16px
rem: root font size
em:current font size
*/

/* *************only screen******* */

/* **************************** */
/* Below 1344px (Smaller Desktops) */
/* **************************** */

@media (min-width: 1200px) {
  #commentboxcorrect{
    color: green;
    top: 420px;
    margin-left: -495px;
  }
  #commentboxleft{
    top: 0px;
    margin-left: 5px;
  }
  #commentboxleft1{
    top: 380px;
    margin-left: -495px;
  }
  #commentboxright{
    top: 0px;
    margin-left: -160px;
  }
  .canvas {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    margin-left: 15px;
  }
  #canvas-container{
    position: relative;
    left: 100px;
    bottom: 5px;
    height:450px;
  }
  #variables{
    width: 200%;
  }
  #simscreen {
    margin-left: -50px;
  }
}


/* **************************** */
/* Below 1200px (Lanscape Tablets) */
/* **************************** */

@media (max-width: 75em) {
  body {
    width: 100%;
    margin: unset;
  }
  .title-div h1 {
    font-size: 2.5rem;
  }
  .task-title {
    font-size: 2rem;
  }
  .tool-menu {
    font-size: 2rem;
  }
  .icons {
    width: 4rem;
    height: 4rem;
  }
  .ctrl-icons {
    width: 3rem;
    height: 3rem;
  }
  .canvas {
    display: block;
    width: 100%;
    height: 100%;
    margin-left: 130px;
  }
  #canvas-container{
    position: relative;
    height:500px;
  }
  .div__control img {
    width: 3rem;
    height: 2.8rem;
  }
  #variables{
    width: 200%;
  }
  #commentboxcorrect{
    top: 430px;
    margin-left: -732px;
  }
  #commentboxleft{
    top: -30px;
    margin-left: 5px;
  }
  #commentboxleft1{
    top: 430px;
    margin-left: -700px;
  }
  #commentboxright{
    top: -30px;
    margin-left: -257px;
  }
  #simscreen {
    margin-left: 190px;
  }
}

/* **************************** */
/* Below 944px ( Tablets) */
/* **************************** */

@media (max-width: 59em) {
  .tool-link:link,
  .tool-link:visited {
    gap: 0.5rem;
    font-size: 1.4rem;
    flex-direction: column;
  }

  .title-div h1 {
    font-size: 2rem;
  }

  .main__task-div {
    height: auto;
  }

  .sidebar {
    position: fixed;
    padding: 0;
    bottom: 0;
    left: 0;
    flex-direction: row;
    width: 100%;
    backdrop-filter: blur(10rem);
    z-index: 101;
    justify-content: space-evenly;
    border-radius: 0;
    scroll-behavior: auto;
  }
  .tool-menu {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 4rem;
    width: 100%;
    font-size: 2.4rem;
    justify-content: space-evenly;
    padding: 1rem;
  }
  .main-section {
    grid-template-columns: 1fr;
  }
  .logo-div {
    width: 6.5rem;
  }
  .icons {
    width: 3rem;
    height: 3rem;
  }
  .main__task-div:nth-child(4) {
    margin-bottom: 6rem;
  }
  .main-section {
    grid-template-columns: 1fr;
  }
  .canvas__div {
    grid-template-columns: 1fr;
  }
  .canvas {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    margin-left: 120px;
  }
  #canvas-container{
    position: relative;
    height:500px;
  }
  #commentboxcorrect{
    top: -35px;
    margin-left: 5px;
  }
  #commentboxleft{
    top: -25px;
    margin-left: 5px;
  }
  #commentboxleft1{
    top: -25px;
    margin-left: 5px;
  }
  #commentboxright{
    top: -20px;
    margin-left: 5px;
  }
  .copyright{
    margin-bottom: 65px; 
  }
  #variables{
    width: 100%;
  }
  #simscreen {
    margin-left: 150px;
  }
}

/* **************************** */
/* Below 820px (Smaller Tablets) */
/* **************************** */
@media (max-width: 48em) {
  .main-section {
    grid-template-columns: 1fr;
  }
  .canvas__div {
    grid-template-columns: 1fr;
  }
  .canvas {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    margin-left: 70px;
  }
  #canvas-container{
    position: relative;
    height:450px;
  }
  #commentboxcorrect{
    top: -35px;
    margin-left: 5px;
  }
  #commentboxleft{
    top: -25px;
    margin-left: 5px;
  }
  #commentboxleft1{
    top: -25px;
    margin-left: 5px;
  }
  #commentboxright{
    top: -20px;
    margin-left: 5px;
  }
  #variables{
    width: 100%;
  }
  .copyright{
    margin-bottom: 70px; 
  }
  .tool-menu {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 4rem;
    width: 100%;
    font-size: 2.4rem;
    justify-content: space-evenly;
    padding: 1rem;
  }
  #simscreen {
    margin-left: 60px;
  }
}

/* **************************** */
/* Below 704px (Smaller Tablets) */
/* **************************** */
@media (max-width: 44em) {
  .canvas__div {
    grid-template-columns: 1fr;
  }
  .img-div {
    flex-direction: column;
  }
  .title-div {
    gap: 0rem;
    text-align: center;
  }
  .round {
    width: 0.6rem;
    height: 0.6rem;
  }
  .logo-div {
    width: 8.5rem;
    padding: 0.8rem 0 0.8rem 3.3rem;
  }
  .main__task-div:nth-child(4) {
    margin-bottom: 6rem;
  }
  .circuit-dia {
    width: 40%;
  }
  .cross-img {
    width: 60%;
  }
  .canvas {
    display: block;
    width: 100%;
    height: 100%;
    margin-left: 10px;
    border: none;
  }
  #canvas-container{
    position: relative;
    height:400px;
  }
  #commentboxcorrect{
    top: -35px;
    margin-left: 5px;
  }
  #commentboxleft{
    top: -25px;
    margin-left: 5px;
  }
  #commentboxleft1{
    top: -25px;
    margin-left: 5px;
  }
  #commentboxright{
    top: -20px;
    margin-left: 5px;
  }
  #variables{
    width: 100%;
  }
  .copyright{
    margin-bottom: 70px; 
  }
  .tool-menu {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    font-size: 2.4rem;
    justify-content: space-evenly;
    padding: 1rem;
  }
  #simscreen {
    margin-left: 20px;
  }
}

/* **************************** */
/* Below 540px (Smaller Tablets) */
/* **************************** */
@media (max-width: 34em) {
  .container {
    padding: 0.5rem;
    gap: 1rem;
  }

  .title-div h1 {
    padding: 0.2rem;
    font-size: 1.6rem;
  }
  .div__control {
    gap: 2rem;
  }
  .ctrl-icons {
    width: 2.5rem;
    height: 2.5rem;
  }
  .task-title {
    font-size: 1.7rem;
  }
  .logo-div {
    width: 8.5rem;
    padding: 0.8rem 0 0.8rem 1rem;
  }
  label,
  select,
  input,
  p {
    display: inline-block;
    font-size: 1.5rem;
  }
  .copyright{
    margin-bottom: 70px; 
  }
  .main {
    gap: 0.5rem;
  }
  .main-section {
    gap: 0.5rem;
  }
  .sidebar {
    border-radius: 0;
  }
  .canvas {
    display: block;
    width: 100%;
    height: 100%;
    margin-left: 5px;
    border: none;
  }
  .div__control img {
    width: 2.7rem;
    height: 2.5rem;
  }
  .tooltip {
    font-size: 1rem;
  }
  #variables{
    width: 100%;
  }
  .tool-menu {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    font-size: 2.4rem;
    justify-content: space-evenly;
    padding: 1rem;
  }
  #simscreen {
    margin-left: -10px;
    width: 100%;
  }
  #canvas-container{
    position: relative;
    height:300px;
  }
  #commentboxcorrect{
    top: -35px;
    margin-left: 5px;
  }
  #commentboxleft{
    top: -25px;
    margin-left: 5px;
  }
  #commentboxleft1{
    top: -25px;
    margin-left: 5px;
  }
  #commentboxright{
    top: -20px;
    margin-left: 5px;
  }
}
/* 

- Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

 */
