@font-face {
    font-family: 'Nazanin';
    src: url('fonts/Nazanin.eot?#') format('eot'), url('fonts/Nazanin.woff') format('woff'), url('fonts/Nazanin.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}
.body {
    width: 100%;
    margin: 2px;
    color: #000000;
    font-family: 'Nazanin';
    background-color: #ffffff;
    font-size: 60px;
    direction: rtl;
}
.header {
    padding-left: 2%;
    padding-right: 2%;
    background-color: #0066cc;
    color: white;
    font-size: 0.8em;
    text-align: right;
}

.header table td p {
    margin: 0;
    padding: 0;
    font-size: 0.5em;
}

.header table td a {
    margin: 0;
    padding: 0;
    font-size: 1em;
    text-decoration:none;
    color:white;
}
.header table td a:hover {
    background-color: lightgray;
    color: #0066cc;
}
.Title {
    padding-left: 2%;
    padding-right: 2%;
    font-family: 'Nazanin';
    color:black;
    text-align: right;
}
.Title h1 {
    font-size: 1.2em;
    font-weight: bold;
    line-height: 0;
    padding-bottom:0.5em;
    padding-top:0.5em;
}
.Title p {
    font-size: 0.7em;
    font-style:italic;
    line-height: 0.5em;
}
.MainMenu {
    padding-left: 0%;
    padding-right: 0%;
    background-color: #0066cc;
    font-size: 0.8em;
    height:1em;
}

.MainMenu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.MainMenu li {
    float: left;
}

.MainMenu li a {
    font-family: 'Nazanin';
    font-size: 0.6em;
    display: block;
    color: white;
    text-align: center;
    text-decoration: none;
    height: 1.76em;
}

.MainMenu li a:hover {
    background-color: lightgray;
    color: #0066cc;
}
.MainBody {
    font-family: 'Nazanin';
    padding-left: 1%;
    padding-right: 1%;
    text-align: justify;
}

.MainBody h2 {
    font-size: 0.8em;
    color: #0066cc;
}

.MainBody h3 {
    font-size: 0.6em;
    color: #0066cc;
}
.MainBody table {
}
.MainBody table td {
    vertical-align: top;
}

.SystemMenu table {
    table-layout: fixed;
    word-wrap: break-word;
    width: 100%;
    background-color: white;
}
.SystemMenu table tr {
    height:2em;
}

.SystemMenu table td {
    color: #000099;
    font-size: 0.5em;
    border-bottom: 2px solid black;
    vertical-align: middle;
}

.SystemMenu table td a {
    text-decoration: none;
}

.SystemMenu table td:hover {
    background-color: #0066cc;
    color: white;
}
.SystemMenu table td a:hover {
}
.SelectedSubject p {
    font-size: 0.4em;
    margin: 0.5em;
}
.LinkMenu{
    background: #0066cc;;
    color: white;
}
.LinkMenu table td {
    color: #000099;
    font-size: 0.5em;
    border-bottom: 2px solid black;
    vertical-align: middle;
    border: none;
}
.LinkMenu table td a{
    margin-right: 2em;
    color:white;
}
.LinkMenu table td ul li{
    margin-right: 2em;
}
.LinkMenu table td ul li a {
    font-size: 1em;
    margin-right: 0em;
}
.LinkMenu table td a {
    text-decoration: none;
}
.TextBody {
    vertical-align: top;
    background-color: white;
    min-height:10em;
}
.TextBody h1 {
    font-size: 1.2em;
    color: black;
    text-align: center;
}
.TextBody p, .TextBody ol{
    font-size: 0.5em;
}
.TextBody ol li, .TextBody ul li {
    font-size: 1em;
    margin-right: 1em;
    
}
.TextBody ol li ul li {
    font-size: 0.9em;
}
.TextBody p a, .TextBody ol li a, .TextBody ul li a, .TextBody ol li ul li a {
    text-decoration: none;
}
.Footer {
    padding-left: 10%;
    padding-right: 10%;
    background-color: blue;
    color: white;
    text-align: center;
    height: 1em;
}
.Footer a {
    font-size: 0.4em;
    vertical-align: middle;
}

.Panel {
    height: 60%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 20%;
    right: 0;
    background-color: white;
    overflow-x: hidden;
    overflow-y: scroll;
    transition: 0.5s;
    box-shadow: 10px 10px 5px #aaaaaa;
}
.Panel table td h2 {
    font-size:0.8em;
    color: #0066cc;
    padding:0;
    margin:0;
}
.Panel table td a {
    font-size: 0.5em;
    text-decoration:none;
}
.tooltip {
    visibility: hidden;
    position: fixed;
    width: 40%;
    top: 0;
    left: 0;
    z-index: 2;
    background-color: #FFFFCC;
    font-size: 25px;
    padding: 10px;
    border: solid 1px;
    box-shadow: 10px 10px;
    border-radius: 5px;
}
.close {
    position: absolute;
    right: 0.8em;
    top: 0.8em;
    width: 0.8em;
    height: 0.8em;
    opacity: 0.3;
}

.close:hover {
    opacity: 1;
}

.close:before, .close:after {
    position: absolute;
    left: 0.4em;
    content: ' ';
    height: 0.8em;
    width: 2px;
    background-color: #333;
}

.close:before {
    transform: rotate(45deg);
}

.close:after {
    transform: rotate(-45deg);
}
.image{
    height: 1em;
    margin-left: 0.1em;
    vertical-align:middle;
}
@media only screen and (max-width: 900px) {
    .body {
        font-size: 7vw;
    }
}

@media only screen and (max-width: 300px) {
    .body {
        font-size: 12vw;
    }
}
