  @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@100;300;400;500;600;700;800;900&display=swap');
  @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;600;700;900&display=swap');
  @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Symbols+2&display=swap');

  :root {
      --bright-pink: "#bd2979";
      --dark-pink: "#9b0958";
      --light-blue: "#12ffd4";
  }

  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "Noto Sans Hebrew";
      user-select: none;
      overflow: hidden;
  }

  a {
      text-decoration: none;
      color: white;
  }

  a :hover {
      color: #bd2979;
  }

  li {
      list-style-type: none;
  }

  img {
      -webkit-user-drag: none
  }

  #MainCanvas {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      background: white;
  }

  #nav-bar {
      display: flex;
      flex-direction: row;
      justify-content: space-between;

      width: 100vw;
      background-color: black;
      position: absolute;
      top: 0;
      left: 0;
      height: 50px;
  }

  .icon {
      fill: rgb(255, 255, 255);
      width: 30px;
      margin-right: 25px;
      margin-left: 25px;
  }

  .icon:hover {
      cursor: pointer;
      filter: brightness(0) invert(1);
  }

  #elements {
      display: flex;
      align-items: center;
  }

  #add-menu {
      height: 40px;
      display: block;
      background-color: rgb(78, 78, 78);
      border-radius: 30px;
      padding: 5px 50px;
  }

  #add-menu-ul {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: end;
      gap: 20px;
  }

  #add-menu img {
      height: 30px;
  }

  /* side menu */
  #side-menu {
      padding: 0px 30px;
      position: absolute;
      top: 50px;
      display: block;
      width: 400px;
      height: calc(100vh - 50px);
      background-color: black;
      left: calc(100vw - 400px);
  }

  #type-of-automat-select {
      position: absolute;
      top: 50px;
  }

  .side-menu-item-div ul {
      position: absolute;
      top: 25px;
      left: 11px;
  }

  .side-menu-item {
      font-family: "Noto Sans Hebrew";
      font-weight: 700;
      color: white;
      margin-bottom: 7px;
      border-radius: 7px;
      background: #2e2e2e;
      text-align: center;
      font-size: 25px;
      padding: 21px 29px;
  }


  .side-menu-item-div li.head {
      border-radius: 20px 20px 7px 7px;
  }

  .side-menu-item-div li.bottom {
      border-radius: 7px 7px 20px 20px;
  }

  .side-menu-item-div .active {
      background-color: #bd2979;
  }

  .disabled {
      background: #929292;
  }

  .side-menu-item:not(.disabled):hover {
      cursor: pointer;
      background-color: rgba(189, 41, 120, 0.41);
      transition: background-color 0.2s ease 0s;
  }

  .side-menu-item.active:hover {
      background-color: #bd2979;
  }

  #side-menu #bottom-content {
      margin-top: calc(100vh - 220px);
  }

  #side-menu #bottom-content a {
      float: right;
  }

  #side-menu #bottom-content img {
      width: 320px;
      float: right;
  }

  #side-menu #bottom-content #links {
      float: right;
      color: white;
      font-size: 25px;
      font-family: "Noto Sans Hebrew";
      font-weight: 600;
  }

  #side-menu #bottom-content #links a:hover {
      color: #bd2979;
  }

  #state,
  #mekabelState,
  #linkDesc:hover {
      cursor: pointer;
  }

  /*right-click-menu-circle*/

  #right-click-menu-circle {
      display: none;
  }

  #right-click-menu-circle {
      height: auto;
      width: 170px;
      border-radius: 10px;
      top: 100px;
      left: 100px;
      position: absolute;
      background-color: black;
      padding: 0;
      list-style: none;
  }


  #right-click-menu-circle li {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      padding: 8px;
  }

  #right-click-menu-circle img {
      width: 30px;
      margin-right: 8px;
  }

  #right-click-menu-circle p {
      color: white;
      margin: 0;
      flex: 1;
      text-align: right;
  }

  #right-click-menu-circle li:hover {
      border-radius: 10px;
      background-color: #333;
      cursor: pointer;
  }


  /*right-click-menu-arrow*/

  #right-click-menu-arrow {
      display: none;
  }

  #right-click-menu-arrow {
      height: auto;
      width: 170px;
      border-radius: 10px;
      top: 100px;
      left: 100px;
      position: absolute;
      background-color: black;
      padding: 0;
      list-style: none;
  }


  #right-click-menu-arrow li {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      padding: 8px;
  }

  #right-click-menu-arrow img {
      width: 30px;
      margin-right: 8px;
  }

  #right-click-menu-arrow p {
      color: white;
      margin: 0;
      flex: 1;
      text-align: right;
  }

  #right-click-menu-arrow li:hover {
      border-radius: 10px;
      background-color: #333;
      cursor: pointer;
  }

  /* check-word */

  #check-word-button {
      background-color: black;
      color: white;
      width: 200px;
      height: 50px;
      position: absolute;
      top: calc(100vh - 100px);
      border-radius: 0 30px 30px 0;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
  }

  #check-word-button p {
      text-align: center;
      font-weight: 900;
      display: inline-flex;
      align-items: center;
  }


  /* chceck-word-interface */

  #check-word-interface {
      display: none;
      color: white;
      background-color: black;
      position: absolute;
      top: calc(100vh - 300px);
      width: 250px;
      height: 180px;
      border-radius: 0 30px 30px 0;
      direction: rtl;
      padding: 20px;
  }

  #check-word-interface li {
      display: flex;
      align-items: center;
      margin-bottom: 20px;
  }

  #check-word-interface li:nth-child(3) {
      justify-content: center;
  }

  #check-word-interface input {
      width: 60%;
      display: inline;
      border-radius: 10px;
      height: 30px;
      padding: 10px;
      background-color: #f0f0f0;
      font-size: 20px;
      font-family: "Montserrat", "Open sans";
      font-weight: 700;
      margin-right: 10px;
      text-align: left;
      direction: ltr;

  }

  #check-word-interface #result-div {
      width: 60%;
      height: 30px;
      background-color: #ffffff;
      border-radius: 10px;
      padding: 5px;
  }

  #check-word-interface p {
      margin-left: 20px;
      font-weight: 700;
  }

  #check-word-interface button {
      background-color: hsl(0, 0%, 100%);
      color: rgb(0, 0, 0);
      text-decoration: none;
      border: none;
      border-radius: 20px;
      font-size: 20px;
      font-family: 'noto sans hebrew';
      font-weight: 700;
      padding: 5px 20px;
  }

  #check-word-interface button:hover {
      cursor: pointer;
  }

  /* popup */

  #popup-red {
      padding: 10px 50px;
      position: absolute;
      top: calc(100vh - 100px);
      background-color: white;
      border-radius: 30px;
      border: 2.5px solid rgb(255, 0, 0);
      color: rgb(217, 0, 0);
      font-size: 20px;
      font-weight: 600;
      left: -1000px;
  }

  #popup-red #content-red {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 30px;
  }

  #popup-red button {
      border-radius: 100%;
      width: 40px;
      height: 40px;
      font-size: 25px;
      font-weight: 900;
      background-color: rgb(217, 0, 0);
      color: white;
      border: none;
      cursor: pointer;
  }

  #popup-black {
      background-color: white;
      position: absolute;
      padding: 15px 40px;
      top: calc(100vh - 100px);
      border-radius: 60px;
      border: 3px solid black;
      font-size: 20px;
      font-weight: 600;
      left: -1000px;
  }

  #popup-black .content {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
  }

  #popup-black input {
      /* width: 200px;
      border-radius: 10px;
      height: 30px;
      padding: 10px;
      background-color: white;
      font-size: 20px;
      font-family: "Montserrat";
      font-weight: 700;
      margin-right: 10px; */
      width: 200px;
      border-radius: 10px;
      height: 40px;
      padding: 10px;
      background-color: white;
      font-size: 20px;
      font-family: "Montserrat";
      font-weight: 700;
      margin-right: 10px;
  }

  #popup-black button {
      padding: 10px 20px;
      background-color: black;
      color: white;
      border-radius: 30px;
      font-weight: 700;
      cursor: pointer;
      margin-right: 10px;
      border: none;
  }

  #popup-black button:hover {
      background-color: #bd2979;
      color: rgb(255, 255, 255);
      transition: background-color 0.2s ease 0s;
  }

  #popup-black p {
      display: inline-block;
  }

  .popup-active {
      display: flex;
  }

  /* stack-input-popup */

  #stack-input-popup {
      position: absolute;
      left: -1000px;
      top: calc(100vh - 120px);
      background-color: white;
      position: absolute;
      padding: 10px 30px;
      border-radius: 60px;
      border: 3px solid black;
      font-size: 20px;
      font-weight: 600;
  }

  #stack-input-popup .content {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
  }

  #stack-input-popup input {
      width: 100px;
      border-radius: 10px;
      height: 40px;
      padding: 10px;
      background-color: white;
      font-size: 20px;
      font-family: "Montserrat";
      font-weight: 700;
      margin-right: 10px;
  }

  #stack-input-popup .switchArrowDesc {
      text-align: center;
      font-size: 17px;
  }

  #stack-input-popup .button {
      padding: 10px 16px;
      background-color: black;
      color: white;
      border-radius: 30px;
      font-weight: 700;
      cursor: pointer;
      margin-right: 10px;
      border: none;
  }

  #stack-input-popup .add {
      padding: auto;
      font-size: 20px;
      margin-left: 50px;
  }

  #stack-input-popup .linkDesc-mode-selector {
      /* padding: 10px; */
      border: 3px solid black;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 500px;
  }

  #stack-input-popup .linkDesc-mode-selector button {
      padding: 10px 20px;
      border-radius: 10px;
      text-align: left;
      font-size: 16px;
      font-family: "Noto Sans Hebrew";
      background-color: white;
      color: black;
      font-weight: 700;
      border: none;
  }

  #stack-input-popup .linkDesc-mode-selector button p {
      display: flex;
      align-items: center;
      justify-content: center;
  }

  #stack-input-popup button:hover {
      background-color: #bd2979;
      color: white;
      cursor: pointer;
  }

  #stack-input-popup .linkDesc-mode-selector .no-change-button {
      border-radius: 0px;
  }

  #stack-input-popup .linkDesc-mode-selector .push-button {
      border-radius: 50px 0px 0px 50px;
  }

  #stack-input-popup .linkDesc-mode-selector .pull-button {
      border-radius: 0px 50px 50px 0px;
  }

  /* turing-input-popup */

  #turing-input-popup {
      position: absolute;
      left: -1000px;
      top: calc(100vh - 120px);
      background-color: white;
      position: absolute;
      padding: 10px 30px;
      border-radius: 60px;
      border: 3px solid black;
      font-size: 20px;
      font-weight: 600;
  }

  #turing-input-popup .content {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
  }

  #turing-input-popup input {
      width: 100px;
      border-radius: 10px;
      height: 40px;
      padding: 10px;
      background-color: white;
      font-size: 20px;
      font-family: "Montserrat";
      font-weight: 700;
      margin-right: 10px;
  }

  #turing-input-popup .switchArrowDesc {
      text-align: center;
      font-size: 17px;
  }

  #turing-input-popup .button {
      padding: 10px 16px;
      background-color: black;
      color: white;
      border-radius: 30px;
      font-weight: 700;
      cursor: pointer;
      margin-right: 10px;
      border: none;
  }

  /* why doesnt it work */
  #turing-input-popup button:hover {
      background-color: #bd2979;
      color: white;
      cursor: pointer;
  }

  #turing-input-popup .linkDesc-mode-selector {
      border: 3px solid black;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 30px;
  }

  #turing-input-popup .linkDesc-mode-selector button {
      padding: 10px 20px;
      border-radius: 0px;
      text-align: left;
      font-size: 16px;
      font-family: "Noto Sans Hebrew";
      background-color: white;
      color: black;
      font-weight: 700;
      border: none;
  }

  #turing-input-popup .linkDesc-mode-selector button p {
      display: flex;
      align-items: center;
      justify-content: center;
  }



  /* not-compatible-error */

  #not-compatible-error {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #bd2979;
      color: white;
      display: none;
  }


  #not-compatible-error-content h1 {
      font-size: 10vw;
      width: 60vw;
      direction: rtl;
      text-align: center;
      margin-bottom: 30px;
  }

  #not-compatible-error-content img {
      width: 60vw;
  }

  @media screen and (max-height: 800px) {
        #side-menu #bottom-content {
            float: right;
            margin-top: calc(100vh - 150px);
            display: flex;
            flex-direction: column;
        }

        #side-menu #bottom-content #links {
            float: right;
            display: flex;
            font-size: 15px;
            gap: 10px;
        }

        #side-menu #bottom-content #links a {
            float: right;
            font-size : 15px;
        }

        #side-menu #bottom-content img {
            width: 300px;
            float: right;
        }

        /* top-of-side-menu */

        #type-of-automat-select {
            margin-top: 0px;
            right: 30px;
            top: 10px;
        }

        #type-of-automat-select img {
            width: 310px;
        }
      
        .side-menu-item-div ul {
            position: absolute;
            top: 25px;
            left: 10px;
        }
      
        .side-menu-item {
            font-family: "Noto Sans Hebrew";
            font-weight: 700;
            color: white;
            margin-bottom: 7px;
            border-radius: 7px;
            background: #2e2e2e;
            text-align: center;
            font-size: 20px;
            padding: 20px 40px;
        }

    }

  