/*-----------------------------------------------------------------------
*
*    This file contains the styles for the frontend.
*    Feel free to adjust it to suit your needs.
*
*    - Teams
*    - Matches
*
------------------------------------------------------------------------*/

/* Teams
------------------------------------ */
.team #topcontent { display: none; }
.championship #topcontent { display: none; }

#team-title {
    color: #fff;
    height: 90px;
    position: relative;
}

#team-title .team-name {
    bottom: -4px;
    position: absolute;
    text-align: center;
    width: 100%;
    z-index: 1000;
}

#team-title .team-name h2 {
    color: #fff;
    font-weight: bold;
    margin: 0;
    line-height: 40px;
    text-transform: uppercase;
    margin: -3px 0 0 0;
}

.team-logo {
    color: #fff;
    height: 60px;
    margin: -9px 0 0 -50px;
    position: absolute;
    z-index: 1000;
    left: 50%;
    overflow: hidden;
    text-align: center;
}

.team-logo img {
    height: auto;
    margin: 0;
    position: static;
    width: 100px;
}

.team-container {
    margin-top: 30px;
}
.team-container .space {
    padding: 30px 0;
}

/* Teams list
------------------------------------ */
.teams-list, .championships-list {
    text-align: center
}

.teams-list .team,
.championships-list .championship {
    width: 19.5%;
    display: inline-block;
    text-align: center;
    padding: 10px 0;
    position: relative;
    transition: background 1s ease;
    -webkit-transition: background 1s ease;
    -moz-transition: background 1s ease;
    -ms-transition: background 1s ease;
    height: 100px;
}

.teams-list .team a,
.championships-list .championship a {
    margin: 10px;
    height: 80%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.teams-list .team .team-logo,
.championships-list .championship .championship-logo {
    position: absolute;
    height: 100%;
    margin: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.championships-list .championship h6 {
    position: absolute;
    bottom: 10px;
    text-align: center;
    width: 100%;
    z-index: 100;
    text-overflow: ellipsis;
    overflow: hidden;
}

.championships-list .championship h6 span {
    color: #fff;
    display: inline-block;
}

/* Matches
------------------------------------ */
body.post #match-title {
    color: #fff;
    height: 90px;
    position: relative;
    background: #008641 url(../icons/images/separator.png) no-repeat center;
}

body.match #match-title {
    color: #fff;
    height: 90px;
    position: relative;
    background: #008641 url(../icons/images/versus.png) no-repeat center;
}

#match-title .half {
    width: 50%;
    float: left;
    height: 90px;
    position: relative;
}

#match-title .team-name {
    bottom: -4px;
    position: absolute;
    text-align: center;
    width: 100%;
    z-index: 1000;
}

#match-title .team-name h2 {
    color: #fff;
    font-weight: bold;
    margin: 0;
    line-height: 40px;
    text-transform: uppercase;
    margin: -3px 0 0 0;
}

#match-title .team-1 .team-name h2 {
    text-align: right;
    padding: 0 130px 0 0;

}

#match-title .team-2 .team-name h2 {
    text-align: left;
    padding: 0 0 0 130px;
}

#match-title .team-1 .team-name h2 > span,
#match-title .team-2 .team-name h2 > span {
    display: inline-block;
    width: 100px;
    text-align: center;
    color: #fff;
}

#match-title .team-1 .results h2 {
    float: right;
    color: #fff;
    margin: 17px 44px 0 0;
    font-size: 50px;
}

#match-title .team-1 .results h3 {
    float: right;
    color: #fff;
    margin-right: 44px;
    margin: 30px 15px 0 0;
    font-size: 30px;
    font-weight: 300;
}

#match-title .team-2 .results h2 {
    float: left;
    color: #fff;
    margin: 17px 0 0 44px;
    font-size: 50px;
}

#match-title .team-2 .results h3 {
    float: left;
    color: #fff;
    margin: 30px 0 0 15px;
    font-size: 30px;
    font-weight: 300;
}

#match-title .team-1 .team-logo {
    color: #fff;
    height: 60px;
    margin: -9px 0 0 -50px;
    position: absolute;
    z-index: 1000;
    right: 130px;
    overflow: hidden;
    text-align: right;
}

#match-title .team-2 .team-logo {
    color: #fff;
    height: 60px;
    margin: -9px -50px 0 0px;
    position: absolute;
    z-index: 1000;
    left: 130px;
    overflow: hidden;
    text-align: left;
}

#match-title .team-1 .team-logo img,
#match-title .team-2 .team-logo img {
    height: auto;
    margin: 0;
    position: static;
    width: 100px;
}

.match-championship h5 {
    background: #333;
    padding: 10px;
    color: #fff;
    margin: 0;
    font-weight: 100;
    text-transform: uppercase;
    text-align: center;
}
.match-stadium { margin: 10px 0 20px 0;}
.match-stadium h4 { margin: 15px 0 0 0; }
.match-stadium .stadium-thumb {
    overflow: hidden;
    height: 90px;
}
.attachment-large { margin-bottom: 20px;}
.match-photos {
    margin: 20px 0;
    background: #000;
}

/* Matches block info
------------------------------------ */
.match-score-info {
    color: #fff;
    text-shadow: 0 1px 1px #000;
    font-weight: normal;
}

.match-score-info .match-stadium {
    text-transform: uppercase;
    color: #fff;
    font-weight: 300;
}

.match-score-info img {
    display: inline-block;
    margin: -15px 5px 0 7px;
}
.match-score-info h4 {
    display: inline-block;
    color: #fff;
    border-color: transparent;
    font-weight: bold;
    font-size: 30px;
    padding: 0 10px;
}

.match-score-info sup { font-size: 20px; }

.match-score-info .versus {
    color: #eee;
    padding: 10px;
    font-size: 30px;
    font-weight: 100;
}

/* Loop with big image
------------------------------------ */
.squadra-item-top {
    text-align: center;
    position: relative;
}

.squadra-item-top .top-info {
    position: relative;
    right: 0;
    text-align: right;
    background: rgba(0,0,0,0.4);
    padding: 5px;
}
.squadra-item-top .bottom-info {
    position: absolute;
    bottom: 0;
    text-align: right;
    background: rgba(0,0,0,0.4);
    padding: 5px;
    color: #fff;
    font-weight: 400 ;
}

.squadra-item-top .top-info a, .squadra-item-top .top-info a:hover {
    color: #fff !important;
    text-decoration: none;
}
.squadra-item-top .top-info span {
    color: #eee;
    text-decoration: none;
}

/*  Loop list
------------------------------------ */
.squadra-item-list .item-image, .video-image {
    width: 100%;
    overflow: hidden;
}

.squadra-item-list .item-image img {
    margin: auto;
}
.squadra-item-list .name {
    font-size: 18px;
    text-align: center;
}

.squadra-item-list .item .thumbnail { margin: auto; }
.squadra-item-list img.video-item { margin-top: -30px;}

.squadra-item-date h2, .squadra-item-date h4 {
    line-height: 0.9em;
    margin: 0;
    padding: 0;
    text-align: center;
}
.squadra-text .name br { display: none; }

/* Block
------------------------------------ */
.squadra-block { position: relative; overflow: hidden; }
.squadra-block a {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.squadra-block p,
.squadra-block span,
.squadra-block .block-info h1,
.squadra-block .block-info h2,
.squadra-block .block-info h3,
.squadra-block .block-info h4,
.squadra-block .block-info h5,
.squadra-block .block-info h6,
.squadra-block .block-info a { color: #fff; text-decoration: none; margin: 10px 0; }
.squadra-block-info a:hover { text-decoration: none; }
.squadra-block .short-desc {
    display: block;
    height: 0;
    opacity: 0;
    font-weight: normal;
    color: #fff;
}
.squadra-block .short-desc {
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    transition: all 1s ease;
}
.squadra-block:hover .short-desc {
    height: 60px;
    opacity: 1;
}

.squadra-block .pic:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 1%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,1) 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(0,0,0,0)), color-stop(1%, rgba(0,0,0,0)), color-stop(47%, rgba(0,0,0,0.1)), color-stop(100%, rgba(0,0,0,1)));
    background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 1%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,1) 100%);
    background: -o-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 1%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,1) 100%);
    background: -ms-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 1%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,1) 100%);
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 1%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#000000', GradientType=0 );
    opacity: 0.6;
}
.squadra-block:hover .pic:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-transition: opacity 1s ease;
    -moz-transition: opacity 1s ease;
    transition: opacity 1s ease;
    opacity: 1;
}

.squadra-block img { display: inline; }

.squadra-block .type-info.fixed-top {
    position: absolute;
    top: 0;
    padding: 20px 30px;
}

.squadra-block .block-info.fixed-bottom {
    position: absolute;
    bottom: 0;
    padding: 20px 30px;
}

.squadra-block.no-image {
    color: #000;
}

.squadra-block.no-image p,
.squadra-block.no-image span,
.squadra-block.no-image .block-info h1,
.squadra-block.no-image .block-info h2,
.squadra-block.no-image .block-info h3,
.squadra-block.no-image .block-info h4,
.squadra-block.no-image .block-info h5,
.squadra-block.no-image .block-info h6,
.squadra-block.no-image .block-info a {
    color: #000;
    text-decoration: none;
    margin: 0 0 0.5em 0;
}

.squadra-block.no-image .block-info h1,
.squadra-block.no-image .block-info h2,
.squadra-block.no-image .block-info h3,
.squadra-block.no-image .block-info h4,
.squadra-block.no-image .block-info h5,
.squadra-block.no-image .block-info h6 {
    font-size: 3.429em;
    line-height: 1.143em;
    color: #404040;
}
.squadra-block.no-image .short-desc {
    height: auto;
    opacity: 1;
}
.squadra-block.no-image .block-info {
    position: relative;
    padding: 0;
}

.squadra-block.no-image .block-meta {
    position: relative;
    padding: 1em 0;
    font-size: 1em;
}

/* Block
------------------------------------ */
.squadra-team-info { clear: both; width: 100%; }
.squadra-team-info .team-row {
    clear: both;
    display: table;
    width: 100%;
    text-align: center;
    margin: 0 0 15px 0;
}
.squadra-team-info .team-row .col { float: left; text-align: center }

.squadra-team-info .team-data {
    display: inline-block;
    width: 33.3%;
    padding: 10px;
}

.squadra-team-info .team-info-label {
    color: #333;
    font-size: 14px;
    font-weight: 100;
    margin: 0;
    text-transform: uppercase;
    text-align: center;
}

.squadra-team-info .team-info-number {
    color: #000;
    font-size: 40px;
    margin: 0;
    font-weight: bold;
    text-align: center;
}

.squadra-team-info .team-info-big {
    font-size: 60px;
    margin: 0;
    font-weight: bold;
    text-align: center;
    position: relative;
}
.squadra-team-info .team-info-big.team-info-percent canvas { margin: 2px 0 0 0; }
.squadra-team-info .team-info-big.team-info-percent span {
    font-size: 18px;
    position: absolute;
    width: 100%;
    font-weight: 100;
    left: 0;
    top: 20px;
    text-align: center;
}

/* Responsiveness
------------------------------------ */
@media (max-width: 767px) {
    #match-title .team-1 .team-logo {
        color: #fff;
        height: 60px;
        margin: -9px 0 0 -80px;
        position: absolute;
        z-index: 1000;
        right: 100px;
        overflow: hidden;
        text-align: right;
    }

    #match-title .team-2 .team-logo {
        color: #fff;
        width: 90px;
        height: 60px;
        margin: -9px -50px 0 5px;
        position: absolute;
        z-index: 1000;
        left: 90px;
    }

    #match-title .team-1 .team-name h2 > span,
    #match-title .team-2 .team-name h2 > span {
        width: 120px;
    }

    #match-title .team-2 .team-name h2 {
        padding: 0px 0 0 80px;
    }

    #match-title .team-1 .results h2 { margin: 17px 35px 0 5px; }
    #match-title .team-2 .results h2 { margin: 17px 5px 0 44px; }
    #match-title .team-1 .results h3 {
        margin: 30px 0 0 5px;
        font-size: 25px;
        font-weight: 100;
    }

    #match-title .team-2 .results h3 {
        margin: 30px 0 0 0px;
        font-size: 25px;
        font-weight: 100;
    }

    .championships-list .championship {
        min-width: 30%;
    }
    .championship-title span {
        text-overflow: ellipsis;
        height: 1.9em;
        display: inline-block;
        overflow: hidden;
    }

    .squadra-block .block-info.fixed-bottom {
        position: absolute;
        bottom: 0;
        padding: 5px 15px;
    }

    .squadra-block {
        margin-bottom: 30px;
    }
    .squadra-block .pic {
        height: 259px!important;
    }
}
