﻿/* Responsive Tabs - menucool.com/jquery-tabs */

#demopage { padding:0px; margin:0 auto;}
#demopage h1 {text-align:center;}
#demopage h2 {margin:5px 0;}

ul.rtabs{
    text-align:left; /*set to left, center, or right to align the tabs as desired*/    
    font-size:0;
    margin:0;
    padding:0;
    list-style-type:none;
}
        
ul.rtabs li
{
    margin:0;
    margin-right:4px; /*gap between tabs. Set it to -1px for no gap.*/
    padding:0;
    display:inline;
}
        
ul.rtabs li a
{
    padding:0 16px; /* It determines tab width */
    display:inline-block;   
    font-weight:normal;
    font-size:14px;
    line-height:34px;/* height of tabs */
    text-decoration: none;
    color:#ffffff;
    background:#0a9300;
    outline:none;
    border:1px solid #0a9300;
    border-bottom:none;
    position:relative;
}
        
ul.rtabs li a:link, ul.rtabs li a:visited
{
    color:#ffffff;
}
        
ul.rtabs li a:hover
{
    border-color: #0a9300; /*color #1*/
    background:#0a9300;
}
  
/*selected tab style */
ul.rtabs li.selected a
{
    color:#0a9300;
    font-weight:normal;
    border-color:#0a9300; /*color #1*/
    background:#ffffff; /*color #2*/
    z-index:3;
}   
        
/*selected tab style on hover */
ul.rtabs li.selected a:hover
{
    text-decoration:none;
}

/* container of content panels */
div.panel-container
{
    border:1px solid #0a9300; /*color #1*/ 
    background:#ffffff; /*color #2*/
    position:relative;    
    padding:0px; margin:0px;
    outline:none;
    margin-top:-1px;
}

/* content panel */       
div.panel-container > div
{
    padding:7px;
    /* The two settings below should not be changed. */
    display: block;
    margin:0px;
}  
div.panel-container div.inactive
{
    display: none;
}

/* loading image before ajax content is retrieved. Only applicable when Ajax is used.*/
div.ajaxLoading {background:transparent url(loading.gif) no-repeat center center; height:150px; width:20px; font-size:0;padding:0; margin:0 auto; }


/* For mobiles */
@media only screen and (max-width:560px){
    ul.rtabs{
        box-sizing:border-box;
        border-left:1px solid #0a9300;
        border-top:1px solid #0a9300;
        min-width:260px;
    }

    ul.rtabs li{
        display:inline-block;
        box-sizing:border-box;
        margin-right:0;
        width:50%; /* set it to 100% for one column, 33.33% for three-column */
    }

    ul.rtabs li:last-child:nth-child(odd){
        width:100%;
    }

    ul.rtabs li a {
        border:none;
        border-right:1px solid #ccc;
        border-bottom:1px solid #ccc;
        display:block;
        padding:0;
        text-align:center;
        border-radius:0;
    }

    ul.rtabs li.selected a {
        background-color:#fff;
        background-image: linear-gradient(#fff, #fff 50%, #f4f4f4 50%, #fafafa);
    }

    div.panel-container {
        border-radius:0;
        min-width:260px;
        box-sizing:border-box;
    }
}
