@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;
    align-items: center;
    width: 100vw;
    background-color: black;
    position: absolute;
    top: 0;
    left: 0;
    height: 2.5vw;
}

#nav-bar .right-side {
    display: flex;
    align-items: center;
    margin-right: 25px;
}

#nav-bar .left-side {
    display: flex;
    align-items: center;
    gap: 1.8vw;
    margin-left: 1.2vw;
}

#nav-bar .left-side #add-icon {
    margin-right: 1.5vw;
}

.icon {
    fill: rgb(255, 255, 255);
    width: 1.3vw;
}

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

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

#add-menu {
    height: 2vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(78, 78, 78);
    border-radius: 30px;
    padding: 0.5vw 2vw;
}

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

#add-menu-ul li img{
    display: flex;
    align-items: center;
    justify-content: center;
}

#add-menu img {
    width: 1.3vw;
}

/* side menu */
#side-menu {
    padding: 0px 1vw;
    position: absolute;
    top: 2.5vw;
    display: block;
    height: 100vh;
    background-color: black;
    left: calc(100vw - 20vw);
    width: 20vw;
    /* min-width: 250px; */
}

#type-of-automat-select {
    margin-top: 30px;
    position: relative;
    float: right;
}

#type-of-automat-select img {
    height: 22vw;
}

.side-menu-item-div ul {
    position: absolute;
    top: 1vw;
    left: 0.55vw;
}

.side-menu-item {
    font-family: "Noto Sans Hebrew";
    font-weight: 700;
    color: white;
    margin-bottom: 0.4vw;
    border-radius: 0.5vw;
    background: #2e2e2e;
    text-align: center;
    font-size: 1.2vw;
    padding: 1.05vw 1.6vw;
    white-space: nowrap;
}

.side-menu-item-div li.head {
    border-radius: 1.2vw 1.2vw 0.5vw 0.5vw;
}

.side-menu-item-div li.bottom {
    border-radius: 0.5vw 0.5vw 1.2vw 1.2vw;
}

.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 - 11vw);
    display: flex;
    flex-direction: column;
    align-items: right;
}

#side-menu #bottom-content img {
    width: 15vw;
    float: right;
}

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

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

#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;
    border-radius: 0.5vw;
    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: 0.5vw;
}

#right-click-menu-circle li p{
    font-size: 0.8vw;
    margin-left: 1vw;
}

#right-click-menu-circle img {
    width: 1.5vw;
    margin-right: 0.6vw;
}

#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: 10vw;
    border-radius: 0.5vw;
    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: 0.5vw;
}

#right-click-menu-arrow img {
    width: 1.5vw;
    margin-right: 0.6vw;
}

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

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

/* check-word */

#check-word-button {
    background-color: rgb(0, 0, 0);
    color: white;
    position: absolute;
    top: calc(100vh - 5vw);
    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;
    padding: 0.7vw 2.3vw;
    font-size: 0.9vw;
}

#check-word-button p img {
width: 1vw;
}

/* chceck-word-interface */

#check-word-interface {
    display: none;
    color: white;
    background-color: black;
    position: absolute;
    bottom: 6vw;
    border-radius: 0 1vw 1vw 0;
    direction: rtl;
    padding: 0.7vw 1.6vw;
}

#check-word-interface li {
    margin-bottom: 1vw;
    display: flex;
    align-items: center;
    justify-content: center;
    align-items: center;
}

#check-word-interface li:nth-child(3) {
    margin-bottom: 0px;
}

#check-word-interface p {
    font-weight: 700;
    width: 4vw;
    font-size: 1vw;
}

#check-word-interface input {
    width: 6vw;
    display: inline;
    border-radius: 0.5vw;
    height: 1.5vw;
    padding: 0.5vw;
    background-color: #f0f0f0;
    font-size: 1vw;
    font-family: "Montserrat", "Open sans";
    font-weight: 700;
    text-align: left;
    direction: ltr;
}

#check-word-interface #result-div {
    width: 6vw;
    height: 1.5vw;
    background-color: #ffffff;
    border-radius: 0.5vw;
    padding: 5px;
}


#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: 1vw;
    font-family: 'noto sans hebrew';
    font-weight: 700;
    padding: 0.2vw 1vw;
}

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

/* popup */

#popup-red {
    padding: 0.8vw 2.5vw;
    border: 0.15vw solid rgb(217, 0, 0);
    position: absolute;
    top: calc(100vh - 6vw);
    background-color: white;
    border-radius: 1000px;
    color: rgb(217, 0, 0);
    font-size: 1.2vw;
    font-weight: 600;
    left: -1500px;
}

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

#popup-red button {
    padding: 0.3vw 0.9vw;
    background-color: rgb(209, 0, 0);
    color: white;
    border-radius: 30vw;
    font-weight: 900;
    cursor: pointer;
    border: none;
    font-size: 1vw;
    text-align: center;
}

/* timed-popup */

#timed-popup {
    padding: 0.8vw 2.5vw;
    position: absolute;
    top: calc(75px);
    background-color: white;
    border-radius: 1000px;
    background-color: black;
    color: rgb(255, 255, 255);
    font-size: 1.2vw;
    font-weight: 600;
    left: -1500px;
}

/* popup-black */

#popup-black {
    background-color: white;
    position: absolute;
    top: calc(100vh - 6vw);
    border-radius: 30vw;
    padding: 0.8vw 2.5vw;
    border: 0.15vw solid black;
    font-size: 1.2vw;
    font-weight: 600;
    left: -1500px; 
}

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

#popup-black input {
    width: 5vw;
    border-radius: 0.5vw;
    height: 2vw;
    padding: 0.5vw;
    background-color: white;
    font-size: 1.3vw; 
    font-family: "Montserrat";
    font-weight: 700;
    margin-right: 1vw;
}


#popup-black button {
    padding: 0.6vw 1.2vw;
    background-color: black;
    color: white;
    border-radius: 30vw;
    font-weight: 700;
    cursor: pointer;
    margin-right: 1vw;
    border: none;
    font-size: 0.8vw;
}

#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;
    top: calc(100vh - 6vw);
    background-color: white;
    position: absolute;
    padding: 0.3vw 2.5vw;
    border: 0.15vw solid black;
    border-radius: 30vw;
    font-size: 1.2vw;
    font-weight: 600;
    left: -1500px; 
}

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

#stack-input-popup input {
    width: 5vw;
    border-radius: 0.5vw;
    height: 2vw;
    padding: 0.5vw;
    background-color: white;
    font-size: 1.3vw; 
    font-family: "Montserrat";
    font-weight: 700;
    margin-right: 1vw;
}

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

#stack-input-popup .button {
    padding: 0.6vw 1vw;
    background-color: black;
    color: white;
    border-radius: 60vw;
    font-weight: 700;
    cursor: pointer;
    margin-right: 0.9vw;
    border: none;
    font-size: 0.8vw;
}

#stack-input-popup .add {
    padding: auto;
    font-size: 2vw;
    margin-left: 5vw;
}

#stack-input-popup .linkDesc-mode-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1vw;
}

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

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

#stack-input-popup .linkDesc-mode-selector .no-change-button {
    height: 2vw;
    padding: 0px 1vw;
    border-radius: 0px;
    border-right: none;
    border-left: none;
}

#stack-input-popup .linkDesc-mode-selector .push-button {
    height: 2vw;
    padding: 0px 1vw;
    border-radius: 0.5vw 0px 0px 0.5vw;
}

#stack-input-popup .linkDesc-mode-selector .pull-button {
    height: 2vw;
    padding: 0px 1vw;
    border-radius: 0px 0.5vw 0.5vw 0px;
}

/* turing-input-popup */

#turing-input-popup {
    position: absolute;
    top: calc(100vh - 6vw);
    background-color: white;
    position: absolute;
    padding: 0.3vw 2.5vw;
    border: 0.15vw solid black;
    border-radius: 30vw;
    font-size: 1.2vw;
    font-weight: 600;
    left: -1500px; 
}

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

#turing-input-popup input {
    width: 5vw;
    border-radius: 0.5vw;
    height: 2vw;
    padding: 0.5vw;
    background-color: white;
    font-size: 1.3vw; 
    font-family: "Montserrat";
    font-weight: 700;
    margin-right: 1vw;
}

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

#turing-input-popup .button {
    padding: 0.6vw 1vw;
    background-color: black;
    color: white;
    border-radius: 60vw;
    font-weight: 700;
    cursor: pointer;
    margin-right: 0.9vw;
    border: none;
    font-size: 0.8vw;
}

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

#turing-input-popup .linkDesc-mode-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1vw;
}

#turing-input-popup .linkDesc-mode-selector button {
    height: 2vw;
    text-align: left;
    font-size: 1vw;
    font-family: "Noto Sans Hebrew";
    background-color: white;
    color: black;
    font-weight: 700;
    border: 0.1vw solid black;
    border-radius: 0.5vw;
    padding: 0vw 1vw;
}

#turing-input-popup .linkDesc-mode-selector .left-button{
    border-radius: 0.5vw 0 0 0.5vw;
}
#turing-input-popup .linkDesc-mode-selector .right-button{
    border-radius: 0 0.5vw 0.5vw 0;
    border-left: 0;
}


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

/* tutorial-popup */

#tutorial-popup {
    position: absolute;
    left: 200px;
    top: 75px;
    background-color: #bd2979;
    color: white;
    padding: 1.6vw 1.2vw;
    border-radius: 15px;
    display: flex;
    flex-direction: row-reverse;
    flex-direction: column;
    display: none;
}

#tutorial-popup .content-area {
    display: flex;
    flex-direction: row-reverse;
    gap: 1.2vw;
}

#tutorial-popup .content-area .headline {
    text-align: right;
    font-size: 1.6vw;
    font-weight: 700;
}

#tutorial-popup .content-area .content {
    direction: rtl;
    float: right;
    text-align: right;
    font-size: 1vw;
    width: 30vw;
}

#tutorial-popup img {
    width: 8vw;
}

#tutorial-popup button {
    background-color: white;
    color: #bd2979;
    padding: 10px 30px;
    border: none;
    border-radius: 500px;
    cursor: pointer;
}

#tutorial-popup button a {
    color: #bd2979;
    font-weight: 700;
}

/* 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;
}
