@font-face {
    font-family: cocon;
    src: url('cocon_ar.ttf')
}
@font-face {
    font-family: cocon_en;
    src: url('cocon.ttf')
}
@font-face {
    font-family: math;
    src: url('u2000.ttf') format("truetype")
}
html {
    direction: rtl
}
body {
    direction: rtl;
    overflow: hidden;
    font-family: cocon;
    text-align: center;
    background-color: transparent;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-size: 25px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none
}
.en html {
    direction: ltr
}
.en body {
    direction: ltr;
    font-family: cocon_en
}
p {
    margin: 0
}
#main {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 770px;
    width: 1160px;
    background: url(../img/loading.gif) no-repeat center center #fff;
    overflow: hidden;
    margin: auto
}
#title {
    font-size: 25px;
    position: absolute;
    top: 30px;
    right: 15px;
    padding: 15px;
    padding-right: 30px;
    height: 28px;
    z-index: 5;
    text-align: center
}
.en #title {
    left: 15px
}
#flowchart {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    display: none;
    cursor: default;
    position: absolute;
    top: 0;
    left: 0
}
#flowchart .level_text {
    display: block;
    width: 260px !important;
    text-align: center
}
#loading {
    left: 10px;
    position: absolute;
    top: 10px;
    z-index: 999
}
#progress {
    position: absolute;
    height: 10px;
    background-color: red;
    width: 0;
    bottom: 0;
    left: 0;
    z-index: 100
}
#play {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 999;
    display: none;
    opacity: .8;
    cursor: pointer;
    background: url(../img/play.png) center center no-repeat rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%
}
#flowchart svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 1160px;
    height: 650px
}

#flowchart div  {
    /*display: none*/
}
/*added to support matheq in levels text*/
.level_text span div {
     display:inline-block !important;
}

.secondline {
    border: 5px solid #3aa29d;
    width: 0;
    height: 0;
    display: none;
    position: absolute;
    right: 80px
}
.en .secondline {
    left: 80px
}
#popup {
    overflow: hidden;
    display: none;
    background: #FFF;
    /*line-height: 40px;*/
    font-size: 25px
}
#popup_content {
    height: 100%
}
#popup_txt {
    display: table-cell;
    width: 1100px;
    height: 300px;
    vertical-align: middle
}
#popup_txt.with_img {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0, 7, 26, 0.8);
    color: #FFF;
    z-index: 1;
    width: 99%;
    text-align: right;
    height: auto;
    padding-right: 22px;
    padding-bottom: 10px;
}
 .en #popup_txt.with_img {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0, 7, 26, 0.8);
    color: #FFF;
    z-index: 1;
    width: 100%;
    text-align: left;
    height: auto;
    padding-left: 22px;
    padding-bottom: 10px;
}
#popup_img {
    background: url(../img/loader.gif) center center no-repeat transparent;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0
}
#popup_img img {
    display: none;
      width: inherit;
    height: 100%
}
.cover_img {
    height: 56% !important
}
@media(max-height:780px) {
    #main {
        height: 500px;
        width: 900px
    }
    #title {
        font-size: 20px;
        top: 25px;
        right: 10px;
        padding: 10px;
        padding-right: 25px;
        height: 25px
    }
    .en #title {
        left: 10px
    }
    #flowchart .level_text {
        width: 190px !important
    }
    #loading {
        left: 7px;
        top: 7px
    }
    #progress {
        height: 7px
    }
    #flowchart svg {
        width: 895px;
        height: 500px
    }
    .secondline {
        border: 4px solid #3aa29d;
        right: 60px
    }
    .en .secondline {
        left: 60px
    }
    .horiz #popup {
        width: 95% !important;
        left: 0 !important;
        right: 0 !important;
        margin: auto !important;
        border: 0 !important
    }
    #popup {
        line-height: 30px;
        font-size: 20px
    }
    #popup_txt {
        width: 845px;
        height: 118px
    }
    .horiz #popup_txt.with_img {
        border: 4px solid #fff !important;
        border-radius: 15px !important;
        width: 44% !important;
        height: 76% !important;
        padding: 10px !important;
        text-align: right !important;
        right: auto !important;
        left: 0 !important
    }
    .horiz .popup #popup_txt.with_img {
        height: 89% !important
    }
    .en .horiz #popup_txt.with_img {
        text-align: left !important;
        right: 0 !important;
        left: auto !important
    }
    .horiz #popup_img {
        width: 425px !important;
        left: auto !important;
        right: 11px !important;
        border: 4px solid #fff !important;
        border-radius: 15px !important;
        height: 110px !important;
        top: 0 !important
    }
    .horiz .popup #popup_img {
        height: 180px !important;
        top: 15% !important
    }
    .en .horiz #popup_img {
        right: auto !important;
        left: 11px !important
    }
    .cover_img {
        height: 69% !important
    }
}
.horiz #popup #popup_content #popup_img.img_only {
    right: 0 !important;
    left: 0 !important;
    margin: auto !important
}
#skip_intro{
    position: absolute;
    width: 77px;
    height: 36px;
    bottom: 2%;
    cursor: pointer;
    background-repeat: no-repeat;
    background-color: #b4b4b4;
    border-radius: 10px;
    right: 1%;
    line-height: 36px;
    /* padding-right: 1%; */
    text-align: center;
    color: #0c0c0c;
    font-weight: 600;
}
@media screen and (max-width: 650px){
	#main{
		zoom:0.46;
	}
  }
@media screen and (min-width: 650px) and (max-width: 700px){
	#main{
		zoom:0.49;
	}  
  }
@media screen and (min-width: 700px) and (max-width: 750px){
	#main{
		zoom:0.53;
	}  
  }
@media screen and (min-width: 750px) and (max-width: 800px){
	#main{
		    zoom: 0.67;
	}  
  }
@media screen and (min-width: 800px) and (max-width: 850px){
	#main{
		zoom:0.65;
	}  
  }
@media screen and (min-width: 850px) and (max-width: 900px){
	#main{
		zoom:0.94;
	}  
  }
@media screen and (min-width: 900px){
	#main{
		zoom:0.8;
	}  
  }