/* root element for tabs  */
ul.tabs {
    list-style: none;
    margin: 0 !important;
    padding: 0;
    border-bottom: 1px solid #666;
    width: 100%; /* Changed from 1500px to stretch dynamically */
    min-height: 30px;
    height: auto; /* Allows the tab bar to grow if tabs wrap to a second line */
    display: flex; /* Modern layout property */
    flex-wrap: wrap; /* Allows tabs to wrap cleanly on narrower screens */
}

/* single tab */
ul.tabs li {
    float:left;
    text-indent:0;
    padding:0;
    margin:0 !important;
    list-style-image:none !important;
}

/* link inside the tab. uses a background image */
ul.tabs a {
    background: url(blue.png) no-repeat -553px 0;
    font-size:11px;
    display:block;
    height: 30px;
    line-height:30px;
    width: 81px;
    text-align:center;
    text-decoration:none;
    color:#333;
    padding:0px;
    margin:0px;
    position:relative;
    top:1px;
}

ul.tabs a:active {
    outline:none;
}

/* when mouse enters the tab move the background image */
ul.tabs a:hover {
    background-position: -553px -31px; 
    color:#fff;
}

/* active tab uses a class name "current". its highlight is also done by moving the background image. */
ul.tabs a.current, ul.tabs a.current:hover, ul.tabs li.current a {
    background-position: -553px -62px;
    cursor:default !important;
    color:#000 !important;
}

/* initially all panes are hidden */
.panes .pane {
    display:none;
}
