@font-face {  
  font-family: "TaameyDavid";  
  src: url(TaameyDavidCLM-Medium.ttf) format("truetype"); /* non-IE */  
} 

#navigator {
    width: 100%;
    padding: 0;
    height: 14px;
    z-index: 999;
}
#navigator a {
    display: inline-block;
    width: 10px;
    height: 10px;
    text-indent: -999em;
    background: #fff;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    box-shadow: 0 0 1px 1px #707173;
    margin-right: 10px;
}
#navigator a {
    background: #404040;
}
#navigator a.activeSlide {
    background: #FFFFFF;
}

#menu-page {
    background: url(pic2.jpg) /* #f0f0f0*/; 
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* A bit custom styling */
.my-page .ui-listview li .ui-btn p {
	font-size: 1.0em;
    color: #505050;
	text-shadow: 0px 0px 0px #F3F3F3;
}
.my-page .ui-listview li .ui-btn .ui-li-aside {
    color: #eee;
}

h1 {
    text-align: center;
    color: #995555;
}

h3 {
	text-decoration:underline;
	font-weight:bold;
}

.hl {
	background: #ffff00;
}

.mt h2 {
    text-align: center;
    color: #009955;
    text-decoration:overline underline;
}

#t-page {    
	font-family: TaameyDavid !important;
    background: #f0f0f0 /*url(lgrey011.jpg)*/; 
}

#t-cont {
    padding-top: 0;
}

.mt {
    text-align: center;
}

html{ 
    direction:rtl;    
}

gr1 {
    animation: color-change 3s;

}

gr2 {
    animation: color-change 3s;
    animation-delay: 3s;
}

gr3 {
    animation: color-change 3s;
    animation-delay: 6s;

}
    @keyframes color-change {
        25% { color: red; }
        50% { color: blue; }
        75% { color: red; }
        100% { color: green; }
    }

.if {
    display:flex;
}

iframe.iframe-c {
    width:400px;
    height:320px;
    overflow:hidden;
    margin: 0 auto;
    background: #f9f9f9;

}

/* First breakpoint is 22.5em (360px). 2 column layout. Tiles 125x125 pixels incl. margin at the breakpoint. */
@media ( min-width: 22.5em ) {
    #a-back-parent {
        float:left;
        height: 30;
    }
    #a-back {
        width:80;
        height:60;
    }

    #t-page {    
        font-size:110%;
    }
    .my-page .ui-content {
        padding: .250em; /* 4px */
    }
    .my-page .ui-listview li {
        float: right;
        width: 47.6%; /* 50% incl. 2 x 1.2% margin */
        height: 10.71em; /* 232p */
        margin: .250em 1.2%;
    }
    .my-page .ui-listview li > .ui-btn {
        -webkit-box-sizing: border-box; /* include padding and border in height so we can set it to 100% */
        -moz-box-sizing: border-box;
        -ms-box-sizing: border-box;
        box-sizing: border-box;
        height: 100%;
        background-color: transparent; 
    }
    .my-page .ui-listview li.ui-li-has-thumb .ui-li-thumb {
        height: 99%; /* To keep aspect ratio. */
        max-width: 100%;
        max-height: none;
        position:absolute;
        top:0;
        left:0; 
        width:100%;
         
    }
    /* Make all list items and anchors inherit the border-radius from the UL. */
    .my-page .ui-listview li,
    .my-page .ui-listview li .ui-btn,
    .my-page .ui-listview .ui-li-thumb {
        -webkit-border-radius: inherit;
        border-radius: inherit;
    }
    /* Hide the icon */
    .my-page .ui-listview .ui-btn-icon-right:after {
        display: none;
    }
    /* ui-li-aside has class .ui-li-desc as well so we have to override some things. */
    .my-page .ui-listview .ui-li-aside {
        padding: .125em .625em;
        width: auto;
        min-height: 0;
        top: 0;
        left: auto;
        bottom: auto;
        /* Custom styling. */
        background: #990099;
        background: rgba(153,0,153,.85);
        -webkit-border-top-right-radius: inherit;
        border-top-right-radius: inherit;
        -webkit-border-bottom-left-radius: inherit;
        border-bottom-left-radius: inherit;
        -webkit-border-bottom-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    /* If you want to add shadow, don't kill the focus style. */
    .my-page .ui-listview li {
        -moz-box-shadow: 0px 0px 9px #111;
        -webkit-box-shadow: 0px 0px 9px #111;
        box-shadow: 0px 0px 9px #111;
    }
    /* Images mask the hover bg color so we give desktop users feedback by applying the focus style on hover as well. */
    .my-page .ui-listview li > .ui-btn:hover {
        -moz-box-shadow: 0px 0px 12px #33ccff;
        -webkit-box-shadow: 0px 0px 12px #33ccff;
        box-shadow: 0px 0px 12px #33ccff;
    }
    /* Animate focus and hover style, and resizing. */
    .my-page .ui-listview li,
    .my-page .ui-listview .ui-btn {
        -webkit-transition: all 500ms ease;
        -moz-transition: all 500ms ease;
        -o-transition: all 500ms ease;
        -ms-transition: all 500ms ease;
        transition: all 500ms ease;
    }
}

/* First breakpoint is 30em (480px). 2 column layout. Tiles 250x250 pixels incl. margin at the breakpoint. */
@media ( min-width: 30em ) {
    .my-page .ui-content {
        padding: .25em; /* 4px */
    }
    .my-page .ui-listview li {
        float: right;
        width: 47.6%; /* 25% incl. 2 x 1.2% margin */
        height: 9.85em; /* p */
        margin: .25em 1.2%;
    }
    #t-page {    
        font-size:120%;
    }
}



/* First breakpoint is 48em (768px). 3 column layout. Tiles 250x250 pixels incl. margin at the breakpoint. */
@media ( min-width: 48em ) {
    .my-page .ui-content {
        padding: .5625em; /* 9px */
    }
    .my-page .ui-listview li {
        float: right;
        width: 30.9333%; /* 33.3333% incl. 2 x 1.2% margin */
        height: 14.5em; /* 232p */
        margin: .5625em 1.2%;
    }
    #t-page {    
        font-size:130%;
    }
}

/* Second breakpoint is 63.75em (1020px). 4 column layout. Tiles will be 250x250 pixels incl. margin again at the breakpoint. */
@media ( min-width: 63.75em ) {
    #a-back-parent {
        float:left;
        height: 0;
    }
    .my-page .ui-content {
        padding: .625em; /* 10px */
    }
    /* Set a max-width for the last breakpoint to prevent too much stretching on large screens.
    By setting the max-width equal to the breakpoint width minus padding we keep square tiles. */
    .my-page .ui-listview {
        max-width: 62.5em; /* 1000px */
        margin: 0 auto;
    }
    /* Because of the 1000px max-width the width will always be 230px (and margin left/right 10px),
    but we stick to percentage values for demo purposes. */
    .my-page .ui-listview li {
        width: 23%;
        height: 230px;
        margin: .625em 1%;
    }
    #t-page {    
        font-size:150%;
    }
}
/* For this demo we used images with a size of 310x310 pixels. Just before the second breakpoint the images reach their max width: 1019px - 2 x 9px padding = 1001px x 30.9333% = ~310px */