/* GENERAL */
img {
    max-width: 100%;
    height: auto;
}

/* NAVBAR PRIMARY */
#navbar-primary {
    margin-bottom: 0;
}

#navbar-primary .navbar-toggle .icon-bar {
    background-color: #5cb85c;
}

/* HEADER PRIMARY */
#header-primary {
    padding-top: 30px;
    padding-bottom: 30px;
    background-color: #5cb85c;
    background-image: linear-gradient(bottom, rgb(92, 184, 92) 0%, rgb(56, 153, 56) 100%);
    background-image: -o-linear-gradient(bottom, rgb(92, 184, 92) 0%, rgb(56, 153, 56) 100%);
    background-image: -moz-linear-gradient(bottom, rgb(92, 184, 92) 0%, rgb(56, 153, 56) 100%);
    background-image: -webkit-linear-gradient(bottom, rgb(92, 184, 92) 0%, rgb(56, 153, 56) 100%);
    background-image: -ms-linear-gradient(bottom, rgb(92, 184, 92) 0%, rgb(56, 153, 56) 100%);
    text-align: center;
}

#header-primary .site-title {
    color: #ffffff;
    display: block;
}

#header-primary .site-tagline {
    color: #ffffff;
    display: block;
}

/* BREADCRUMB PRIMARY */
#breadcrumb-primary {
    background-color: #f5f5f5;
}

#breadcrumb-primary .breadcrumb {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
}

/* FOOTER PRIMARY */
#footer-primary {
    background-color: #111111;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 30px;
}

/* CONTENT */
#content {
    margin-top: 30px;
}

#content .archive .hentry + .hentry {
    margin-top: 30px;
}

/* SIDEBAR */
#sidebar {
    margin-top: 30px;
}

#sidebar .widget + .widget {
    margin-top: 30px;
}

/* COMMENTS */
#comments {
    padding-left: 0;
}

#comments .media {
    margin-top: 25px;
}

#comments .avatar {
    display: block;
    float: left;
}

#comments ul {
    padding-left: 58px;
}

/* ALIGN AND CAPTION */
p.align-center {
    text-align: center;
}

p.align-right {
    text-align: right;
}

p.align-left {
    text-align: left;
}

.media-caption {
    max-width: 100%;
}

.media-caption img {
    float: none !important;
}

.media-caption .media-caption-text {
    margin-top: 10px;
    margin-bottom: 10px;
}

.media-caption.align-left,
img.align-left {
    float: left;
    margin-right: 10px;
}

.media-caption.align-right,
img.align-right {
    float: right;
    margin-left: 10px;
}

.media-caption.align-center,
img.align-center {
    float: none;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#myCarousel .nav-pills > li > a {
    border-bottom: 1px solid #ffffff;
    border-top: 5px solid #ffffff;
}

#myCarousel .nav-pills > li.active > a, #myCarousel .nav-pills > li.active > a:hover, #myCarousel .nav-pills > li.active > a:focus {
    border-top-color: #56b9bd;
    background: #ffffff;
}

#myCarousel .nav-pills > li {
    background-color: #ffffff;
}

#myCarousel .nav-pills > li.active > a, #myCarousel .nav-pills > li.active > a:hover, #myCarousel .nav-pills > li.active > a:focus {
    color: #444;
    font-weight: 400;
}

.label-grey {
    background-color: darkgrey;
}

.label-border {
    border: 1px solid darkgray;
    color: grey;
}

th {
    text-align: center !important;
}

td.numeric {
    text-align: center;
}

@media only screen and (max-width: 320px) {
    #content #site-content .nav-tabs-custom .nav li a {
        position: relative;
        display: block;
        padding: 10px 10px !important;
    }
}

@media only screen and (max-width: 800px) {

    /* Force table to not be like tables anymore */
    #site-content .no-more-tables table,
    #site-content .no-more-tables thead,
    #site-content .no-more-tables tbody,
    #site-content .no-more-tables th,
    #site-content .no-more-tables td,
    #site-content .no-more-tables tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    #site-content .no-more-tables thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    #site-content .no-more-tables tr {
        border: 1px solid #ccc;
    }

    #site-content .no-more-tables td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 45%;
        white-space: normal;
        text-align: left;
    }

    #site-content .no-more-tables td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }

    /*
    Label the data
    */
    #site-content .no-more-tables td:before {
        content: attr(data-title);
    }

    .legendItem {
        display: inline;
        padding: 0 5px;
        float: none !important;
        text-align: center;
        width: 100%;
    }

    #site-content .no-more-tables td.widthSpan {
        width: 100%;
    }

}

@media only screen and (max-width: 320px) {
    .content {
        padding-left: 0;
        padding-right: 0;
    }

    #site-content .no-more-tables td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 5px;
        padding-top: 25px;
        white-space: normal;
        text-align: left;
    }

    #site-content .no-more-tables td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 90%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }

    /*
    Label the data
    */
    #site-content .no-more-tables td:before {
        content: attr(data-title);
    }
}

.img-responsive, .thumbnail > img, .thumbnail a > img, .carousel-inner > .item > img, .carousel-inner > .item > a > img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
}

@media screen and (min-width: 768px) {

    .carousel-indicators {
        bottom: 35px;
    }
}

.legendItem {
    display: inline;
    padding: 0 5px;
    float: left;
    text-align: center;
}

.sidebar_menu ul, .sidebar_menu li {
    list-style-type: none !important;

}

.sidebar-collapse .main-sidebar ul.sidebar-menu li a {
    color: transparent;
}

.sidebar-collapse .main-sidebar ul.sidebar-menu li.menu-item-12 a {
    background-image: url("../images/tabs/soccer-1-ball.png") !important;
    background-repeat: no-repeat;
}

.sidebar-collapse .main-sidebar ul.sidebar-menu li.menu-item-4 a {
    background-image: url("../images/tabs/soccer-4-ball.png") !important;
    background-repeat: no-repeat;
}

.sidebar-collapse .main-sidebar ul.sidebar-menu li.menu-item-5 a {
    background-image: url("../images/tabs/soccer-6-ball.png") !important;
    background-repeat: no-repeat;
}

.sidebar-collapse .main-sidebar ul.sidebar-menu li.menu-item-6 a {
    background-image: url("../images/tabs/soccer-10-ball.png") !important;
    background-repeat: no-repeat;
}

.sidebar-collapse .main-sidebar ul.sidebar-menu li.menu-item-7 a {
    background-image: url("../images/tabs/soccer-13-ball.png") !important;
    background-repeat: no-repeat;
}

.main-sidebar .sidebar .widget h4.widget-title {
    background: url('../images/border_left_col.png') no-repeat 15px bottom !important;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-top: 20px;
    color: inherit;
}

.sidebar-collapse .main-sidebar .widget h4.widget-title span {
    color: transparent;
    display: none !important;
}

.sidebar-collapse .main-sidebar .sidebar .widget h4.widget-title {
    background-image: none !important;
    padding-bottom: 0 !important;
}

.sidebar-collapse .main-sidebar .widget .popular-leagues-menu li a:hover span {
    display: none !important;
}

.form-label {
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 4px;
    padding-bottom: 4px;
    width: 21px;
    display: inline-block !important;
}

body.layout-boxed {
    background-image: url('../images/background.jpg');
    background-position: 100%;
    background-size: cover;
    background-repeat: no-repeat;

}

.legendItem {
    display: inline;
    padding: 0 5px;
}

.ultimat {
    color: #0086a6;
}

.legendItem .box-ultimat {
    background: #0086a6;
}

.best {
    color: #1f9638;
}

.legendItem .box-best {
    background: #1f9638;
}

.good {
    color: #02cf2d;
}

.legendItem .box-good {
    background: #02cf2d;
}

.neutral {
    color: inherit;
}

.legendItem .box-neutral {
    background: #333;
}

.worst {
    color: #ff0000;
}

.legendItem .box-worst {
    background: #ff0000;
}

.boxLegend {
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    margin: 3px 3px 0 0;
    display: inline-block;
    padding: 5px;
}

.gameListTable .same:before {
    content: '\00A0';
    top: 0;
    color: #333;
    margin-right: 5px;
}

.teamName-link:before {
    content: '';
    top: 6px;
}

.up:before {
    border-bottom: 5px solid green;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    display: inline-block;
    margin-right: 5px;
}

.down:before {
    border-bottom: 5px solid #ff0000;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    display: inline-block;
    margin-right: 5px;
}

.date_header {
    border-bottom: 3px solid #dd4b39 !important;
    padding-top: 5px;
    padding-bottom: 5px;
}

.box.top_box {
    border-top-color: #dd4b39 !important;
}

.top_box1 {
    border-top-color: #dd4b39 !important;
}

a {
    color: inherit;
}

.date_top {
    border: 1px solid lightgray;
    background-color: #ecf0f5;
    font-weight: 400;
    font-size: 14px;
}

@media screen and (min-width: 640px) {
    .date_top {
        padding-top: 5px;
        padding-bottom: 5px;
        padding-left: 10px;
    }
}

/** Tables  for normal view. not responsive ones */
@media only screen and (min-width: 801px) {
    td.widthSpan {
        width: 35%;
    }

    td.timeCell {
        width: 10%;
    }
}

.main-footer .widget .footer-menu {
    display: block;
    margin-left: 0;
    padding-left: 0;
    list-style: none;
    background-color: #ffffff;
    border-bottom: 1px solid #d2d6de;
}

.main-footer {
    padding: 0;
}

.footer-menu li {
    padding: 10px;
    border-right: 1px solid #d2d6de;
    display: inline-block;
}

.game-home {
    width: 30%;
    float: left;
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    text-align: center;
}

.game-title {
    float: left;
    width: 40%;
    position: relative;
    min-height: 1px;
    text-align: center;
    padding-top: 2%;
}

.game-away {
    width: 30%;
    float: right;
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    text-align: center;
}

.game-home img, .game-away img {
    min-height: 150px !important;
}

.part1 {
    float: left;
}

.part2 {
    text-align: center;
}

.part3 {
    float: right;
}

@media screen and (max-width: 640px) {
    .region ul li.region {
        width: 100% !important;
        float: left;
        padding-left: 5px;
    }

    .part {
        display: table;
        width: 100%;
    }

    .part1 {
        display: table-row-group;
        text-align: center;
        padding-bottom: 10px;
        float: left;
        width: 50%;
    }

    .part2 {
        display: table-header-group;
        text-align: center;
        padding-bottom: 10px;
    }

    .part3 {
        display: table-footer-group;
        text-align: center;
        float: right;
        width: 50%;
    }
}

@media only screen and (max-width: 320px) {
    .part3 {
        margin-top: -62%;
    }
}

@media only screen and (width: 360px) {
    .part3 {
        margin-top: -60%;
    }
}

@media only screen and (width: 480px) {
    .part3 {
        margin-top: -45%;
    }
}

@media only screen and (width: 640px) {
    .part3 {
        margin-top: -32%;
    }
}

@media only screen and (width: 360px) {
    .part2 h3 {
        margin-left: 10px;
    }
}

@media only screen and (width: 768px) {
    .sidebar-collapse .part {
        width: 100%;
    }

    .sidebar-collapse .part1 {
        text-align: left;
        width: 33% !important;
        float: left;
    }

    .sidebar-collapse .part2 {
        text-align: center;
        width: 34% !important;
        float: left;
    }

    .sidebar-collapse .part3 {
        text-align: right;
        width: 33% !important;
        float: left;
        margin-top: 0 !important;
    }

    .part {
        display: table;
        width: 100%;
    }

    .part1 {
        display: table-row-group;
        text-align: center;
        padding-bottom: 10px;
        float: left;
        width: 50%;
    }

    .part2 {
        display: table-header-group;
        text-align: center;
        padding-bottom: 10px;
    }

    .part3 {
        display: table-footer-group;
        text-align: center;
        float: right;
        width: 50%;
        margin-top: -39%;
    }
}

@media screen and (min-width: 800px) and (max-width: 980px) {

    .part {
        width: 100%;
    }

    .part1 {
        text-align: left;
        width: 33%;
    }

    .part2 {
        text-align: center;
        width: 34%;
        float: left;
    }

    .part3 {
        text-align: right;
        width: 33%;
    }
}

.region-tabs .region {
    background-color: #f9f9f9;
}

.region_featured {
    color: #3aaeb3;
}

ul .region {
    list-style: none !important;
}

.region ul {
    padding-left: 5px;
}

.region ul li {
    padding: 5px;
}

.region ul li.region {
    width: 50%;
    float: left;
    padding-left: 5px;
}

.globe .sidebar-menu > li > a > .fa {
    color: #000000;
}

.opera-mini .content-wrapper {
    margin-left: 0;
}

.opera-sidebar-toggle {
    float: left;
    background-color: transparent;
    background-image: none;
    padding: 15px 15px;
    font-family: fontAwesome
}

.section {
    margin-bottom: 20px;
}

.opera-mini .nav-tabs li {
    float: none;
}

.opera-mini .tab-content > .tab-pane {
    display: block;
}