body {
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#1e5799+0,771177+0,eee6f4+33,eee6f4+66,771177+100 */
    /*background: #eee6f7; /\* Old browsers *\/
    background: -moz-linear-gradient(left, #FFF 0%, #771177 0%, #FFF 2%, #FFF 98%, #771177 100%); /\* FF3.6-15 *\/
    background: -webkit-linear-gradient(left, #FFF 0%,#771177 0%,#FFF 2%,#FFF 98%,#771177 100%); /\* Chrome10-25,Sari5.1-6 *\/
    background: linear-gradient(to right, #FFF 0%,#771177 0%,#FFF 2%,#FFF 98%,#771177 100%); /\* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ *\/
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#771177',GradientType=1 ); /\* IE6-9 *\/
*/
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

@media screen and (min-width: 1280px) {
    .container,
    footer .footer {
        width: 70%;
        margin: 0 auto;
    }
}

@media screen and (max-width: 1279px) {
    .container:not(.home-page) {
        padding: 10px;
        margin: 0 auto;
    }
}

h1 {
    font-size: 60px;
    text-align: center;
    color: #167D39;
    margin: 0;
    position: relative;
}

h2 {
    font-size: 40px;
    text-align: center;
    color: #167D39;
    margin: 0;
}

h3{
    font-size: 35px;
    color: #167D39;
    margin: 0;
}

.space {
    padding: 20px;
}

.space-top-20 {
    padding-top: 20px;
}
.space-top-50 {
    padding-top: 50px;
}

.center {
    text-align: center;
}

.hide {
    display: none;
}

input:not([type="radio"]):not([type="checkbox"]), select, textarea {
    box-sizing:border-box;
    font-size: 16px;
    margin-bottom: 10px;
    width: 100%;
}

input:not([type="radio"]):not([type="checkbox"]), select {
    height: 40px;
}

input[type="radio"] {
    box-sizing:border-box;
    font-size: 16px;
    margin-bottom: 10px;
}

textarea {
    height: 100px;
}

input[type=submit] {
    background: #167D39;
    color: #FFF;
    border-color: #167D39;
    margin: 20px 0px;
}

form, .storia, .doveSiamo, .programma, .sportInfo, .normal-font{
    font-family: Comic Sans MS;
    font-size: 18px;
}

.sports {
    padding-bottom: 50px;
}


@media screen and (min-width: 1280px) {
    .sportInfo .infoBlocks {
        display: flex;
        padding: 0 10px;
    }
    .sportInfo .infoBlocks > div {
        align-items: center;
        background: #167D39;
        color: #FFF;
        display: flex;
        height: 120px;
        justify-content: center;
        line-height: 20px;
        width: 100%;
    }
    
    .sportInfo .infoBlocks > div:not(:last-child){
        border-right: 1px solid #FFF;
    }
}

@media screen and (max-width: 1279px) {
    .sportInfo .infoBlocks > div {
        background: #167D39;
        color: #FFF;
        width: 100%;
        padding: 10px 0;
    }
    
    .sportInfo .infoBlocks > div br {
        display: none;
    }
    
    .sportInfo .infoBlocks > div:not(:last-child){
        border-bottom: 1px solid #FFF;
    }
}

.sports .imgsContainer img {
    border-radius: 20px 20px 0px 0px
}

.sportInfo .premi {
    padding-top: 20px;
}
.sportInfo h3 {
    font-family: Arial, Helvetica, sans-serif;
}

.container:not(.home-page) {
    padding-bottom: 25px;
    padding-top: 25px;
}

.daysContainer {
    background-image: url('../images/campo.jpeg');
    background-position: bottom;
    background-size: cover;
    min-height: 500px;
    position: relative
}

.daysTour {
    background: rgba(255,255,255,.8);
    color: #167D39;
    font-size: 50px;
    margin: 0 auto;
    padding-top: 20px;
    text-align: center;
    width: auto;
}
#countdown {
    color: #167D39;
    display:flex;
    font-weight: bold;
    text-align: center;
    margin: 0 auto;
    position: absolute;
    bottom: 0px;
    left: 1%;
    right: 1%;
}

#countdown .time:not(.days) {
    background: rgba(255,255,255, .8);
    border-radius: 20px;
    border: 5px solid #167D39;
    padding: 10px 0px 0px 0px;
    margin: 0 10px;
    width: 100%;
}

#countdown .time.days {
    position: absolute;
    bottom: 75px;
    text-shadow: 0 0 5px #000, 0 0 10px #000, 0 0 15px #000, 0 0 20px #167D39, 0 0 30px #167D39, 0 0 40px #167D39, 0 0 55px #167D39, 0 0 75px #167D39;
    color: #FFF;
    letter-spacing: 25px;
    left: 1px;
    right: 1px;
}

#countdown .time.days .n {
    font-size: 150px;
    line-height: 150px;
}

#countdown .time.hours *,
#countdown .time.minutes *,
#countdown .time.seconds * {
    display: inline;
}

@media screen and (min-width: 1280px) {
    #countdown {
        padding: 10px;
        width: 600px;
        font-size: 28px;
        line-height: 30px;
    }
}
@media screen and (max-width: 1279px) {
    header h1 {
        font-size: 45px;
        padding-bottom: 20px;
    }

    h2 {
        font-size: 36px;
        padding-bottom: 20px;
    }

    h3 {
        font-size: 24px;
    }

    ul {
        margin-left: 20px;
    }

    #countdown {
        padding: 10px 0px;
        width: 98%;
    }
    #countdown .n {
        font-size: 30px;
    }
    #countdown .text {
        font-size: 14px;
    }
}

header {
    padding-top: 20px;
    border-bottom: 5px solid #167D39;
}

.w100 { width: 100%; }

.logo {
    text-align: center;
}

.logo img {
    width: 100px;
}

#header_menu {
    background: #167D39;
}

#header_menu .menu_group {
    display: flex;
    width: 70%;
    color: #FFF;
    padding: 20px 20px 10px 20px;
    margin: 0 auto;
    list-style-type: none;
}

#header_menu .menu_group li {
    vertical-align: top;
    text-align: center;
    width: 100%;
}

#footer_menu .footer_menu_group {
    display: flex;
    background: #167D39;
    color: #FFF;
    padding: 0;
    list-style-type: none;
    margin: 0;
}

#footer_menu .footer_menu_group li {
    vertical-align: top;
    text-align: center;
    width: 100%;
}

#footer_menu .footer_menu_group li > div {
    padding-bottom: 10px;
}

#footer_menu .footer_menu_group li .shareLinks{
    text-align: center;
}
#footer_menu .footer_menu_group li .shareLinks img{
    width: 40px;
    padding-right: 10px;
}

#footer_menu .specialThanks{
    color: #FFF;
    font-weight: bold;
    font-size: 30px;
    text-decoration: underline;
}

@media screen and (max-width: 1279px) {
    #header_menu .menu_group {
        flex-direction: column;
    }
    
    #header_menu .menu_group li:not(:last-child),
    #footer_menu .footer_menu_group li:not(:last-child){
        padding-bottom: 10px;
    }
    
    #footer_menu .footer_menu_group {
        flex-direction: column;
    }
    
    #footer_menu .footer_menu_group li:nth-child(2) {
        border-top: 1px solid #FFF;
        border-bottom: 1px solid #FFF;
        margin-bottom: 20px;
        padding-top: 20px;
    }
}

.menu .index_images,
.index_sports .index_images {
    display: flex;
    flex-wrap: wrap;
    padding:0;
    list-style-type: none;
}

.menu .index_images > div,
.index_sports .index_images > div {
    vertical-align: top;
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

@media screen and (min-width: 1280px) {
    .menu .index_images > div,
    .index_sports .index_images > div {
        flex: 0 50%;
    }
    
    .index_images .imgsContainer {
        padding: 0px 10px;
    }
    .video iframe,
    .mappa iframe {
        width: 60% !important;
    }
}

@media screen and (max-width: 1279px) {
    .menu .index_images > div,
    .index_sports .index_images > div {
        flex-direction: column;
    }

    .video iframe,
    .mappa iframe {
        width: 100% !important;
    }
}


#header_menu a, #footer_menu a {
    color: #FFF;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
}

footer {
    background: #167D39;
    color: #FFF;
}

.footer {
    padding: 20px;
}

.clear {
    clear: both;
}

.mappa {
    text-align: center;
}

.doveSiamo .imgsContainer {
    width: 60%;
    margin: 0 auto;
}

.doveSiamo .imgsContainer img {
    width: 100%;
    padding: 20px 0;
}

.programma {
    padding-bottom: 20px;
    padding-left: 10px;
}

.programma + hr,
#countdown + hr {
    border-color: #167D39;
    margin-bottom: 30px;
    width: 50%;
}

.programma ul {
    list-style-type: disclosure-closed;
    padding: 0;
}

.programma ul li {
    padding-left: 10px;
}

.successMessage{
    color: green;
    padding: 20px;
    border: 3px solid green;
    margin: 10px 0;
}

.errorMessage{
    color: red;
    padding: 20px;
    border: 3px solid red;
    margin: 10px 0;
}

/* admin section */
.adminBlock {
    border-bottom: 3px solid #167D39;
    padding-bottom: 20px;
    margin-bottom: 20px;
}


.sportTabs {
    display: flex;
    color: #167D39;
}

.sportTabs .tabs{
    border: 3px solid #167D39;
    padding: 10px 10px 5px 10px;
    vertical-align: top;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    width: 100%;
}

.sportTabs .tabs.selected{
    background: #167D39;
    color: #FFF;
}

.editIcon {
    background-image: url(../images/edit-icon.jpg);
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
    display: inline-block;
    height: 20px;
    position: absolute;
    right: 10px;
    width: 20px;
}


.adminBlock form > div {
    max-width: 250px;
    position: relative;
}

.adminBlock .playerBlock {
    display: flex;
}

#form_iscrizioni {
    border: 3px solid #167D39;
    padding: 20px;
}

.video {
    text-align: center;
}

table.risultati {
    width: 100%;
    border: 1px solid #167D39;
}

table.risultati th,
table.risultati td {
    border: 1px solid #167D39;
    text-align: center;
    font-size: 24px;
    padding-top: 10px;
}

.risultati.gironi.desktop th,
.risultati.gironi.desktop td {
    width: 33%;
}

.risultati.calendario th:first-of-type {
    font-size: 16px;
}
.risultati.calendario th {
    font-size: 20px;
}
.risultati.calendario td {
    font-size: 16px;
}

table.risultati.calendario th:first-of-type,
table.risultati.calendario td:first-of-type {
    width: 20%;
}

table.risultati.calendario.mobile th:first-of-type {
    font-size: 16px;
}

.info-files {
    padding: 30px 30px 0 30px;
}

.info-files .file-link {
    padding: 5px;
    border: 3px solid #167D16;
    border-radius: 20px;
    margin-bottom: 10px;
}

.info-files .file-link a {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #167D39;
}
