﻿/* Move down content because we have a fixed navbar that is 50px tall */
/*body {
    padding-top: 50px;
    padding-bottom: 20px;
}*/

body {
    font-family: 'Titillium Web', sans-serif !important;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    margin-top: 80px;
    /*padding-left: 15px;
    padding-right: 15px;*/
}

/* Set widths on the form inputs since otherwise they're 100% wide */
/*input,
select,
textarea {
    max-width: 280px;
}*/

/* Responsive: Portrait tablets and up */
/*@media screen and (min-width: 768px) {
    .jumbotron {
        margin-top: 20px;
    }
    .body-content {
        padding: 0;
    }
}*/

#return-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    display: block;
    text-decoration: none;
    -webkit-border-radius: 35px;
    -moz-border-radius: 35px;
    border-radius: 35px;
    display: none;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 1000;
}

    #return-to-top i {
        color: #fff;
        margin: 0;
        position: relative;
        left: 16px;
        top: 13px;
        font-size: 19px;
        -webkit-transition: all 0.3s ease;
        -moz-transition: all 0.3s ease;
        -ms-transition: all 0.3s ease;
        -o-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }

    #return-to-top:hover {
        background: rgba(0, 0, 0, 0.9);
    }

        #return-to-top:hover i {
            color: #fff;
            top: 5px;
        }

@media (min-width: 769px) and (max-width: 992px) {
    #return-to-top {
        bottom: 55px;
    }
}

@media (max-width: 768px) {
    #return-to-top {
        bottom: 55px;
    }
}

.cut-text {
    /*text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    -webkit-line-clamp: 2;  
    line-clamp: 2;
    -webkit-box-orient: vertical;*/
    /*display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;*/

    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.simbolo {
    width: 70px;
    height: 70px;
    text-align: center;
}

.simbolo-modale {
    width: 50px;
}

.leader {
    font-weight: 600;
    background-color: #d1e7ff;
}

.liste {
}

.titolo {
    background-color: #007bff;
    line-height: 1.7;
    color: white;
    font-weight: bold;
    padding: 10px;
}

.titoloStampa {
    line-height: 1.7;
    color: black;
    font-weight: normal;
    padding: 10px;
}

.chartDiv {
    padding: 10px;
    padding-left: unset;
}

table.dataTable tbody td {
    vertical-align: middle;
}

.my-centered {
    position: relative;
    display: flex;
    width: 100%;
    color: black;
    font-weight: bold;
    margin-left: 5px;
}

.chart-container {
    position: relative;
    margin: auto;
    width: 100%;
    height: 70vh;
}

.chart-container-modal {
    position: relative;
    margin: auto;
    width: 100%;
    height: 45vh;
}

.ul-legend-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0px;
    padding: 0px;
    justify-content: center;
}

    .ul-legend-container > .li-chart-legend {
        align-items: center;
        cursor: pointer;
        display: flex;
        flex-direction: row;
        margin-left: 10px;
        text-align: justify;
    }

        .ul-legend-container > .li-chart-legend > .box-chart-legend {
            display: inline-block;
            flex-shrink: 0;
            height: 15px;
            margin-right: 10px;
            width: 40px;
        }

        .ul-legend-container > .li-chart-legend > .text-container-chart-legend {
            color: black;
            margin: 0px;
            padding: 0px;
        }


@-moz-document url-prefix() {
    .box-chart-legend {
        border: unset !important;
    }
}

.chart-title {
    display: block;
    text-align: center;
    font-size: 35px;
    font-weight: bold;
    color: rgb(0,0,0);
}

.fa-refresh-custom {
    font-size: 30px;
    vertical-align: sub;
    cursor: pointer;
}

.totali {
    font-weight: bold;
}

.menu-tendina {
    border-style: unset;
    background-color: transparent;
    font-weight: bold;
    color: #007bff;
}

div.dataTables_wrapper div.dataTables_filter input {
    width: 200px;
}

table.dataTable thead > tr > th.sorting_asc, table.dataTable thead > tr > th.sorting_desc, table.dataTable thead > tr > th.sorting, table.dataTable thead > tr > td.sorting_asc, table.dataTable thead > tr > td.sorting_desc, table.dataTable thead > tr > td.sorting {
    padding-right: 0px;
}

.ddl-politiche-orinamento {
    text-align: left;
    margin-bottom: 10px;
}

.ddl-politiche-sezione {
    text-align: right;
    margin-bottom: 10px;
}

option:disabled {
    color: gray;
}

.preferenze {
    font: bold;
    color: #007bff;
    cursor: pointer;
    float: right;
    text-decoration: none !important;
}

.movement {
    transition: 1s ease-out;
}

.allineaTop {
    vertical-align: top !important;
}

.tdPreferenze {
    padding: 0.3rem !important;
}

.linkListe {
    cursor: pointer;
    color: #007bff;
}

.DropDownElection {
    min-width: 250px;
}

.modal-dt-table-max-height {
    max-height: 650px;
}

.titolo-elezioni {
    white-space: unset;
    display: flex;
}

@media (max-width: 768px) {
    .table {
        font-size: small;
    }

    .chart-container {
        position: relative;
        margin: auto;
        width: 80vw;
        height: 50vh;
    }

    .chart-container-modal {
        position: relative;
        margin: auto;
        height: 270px;
    }

    .ul-legend-container {
        display: block;
    }

        .ul-legend-container > .li-chart-legend {
            text-align: left !important;
        }

    .modal-body .ul-legend-container {
        max-height: 125px;
        overflow: auto;
    }

    .simbolo {
        width: 50px;
        height: 50px;
        text-align: center;
    }

    .table.dataTable tbody td {
        padding: 0.55rem;
    }

    .ddl-politiche-orinamento {
        text-align: center;
        margin-bottom: 10px;
    }

    .ddl-politiche-sezione {
        text-align: center;
        margin-bottom: 10px;
    }

    .tdPreferenze {
        padding: 0.2rem !important;
    }

    .preferenze {
        font: bold;
        color: #007bff;
        cursor: pointer;
        float: unset;
        text-decoration: none !important;
        white-space: pre;
        font-style: italic;
    }

    .DropDownElection {
        text-align: center;
    }

    .modal-dt-table-max-height {
        max-height: 600px;
    }

    .chartDiv {
        padding: unset;
    }

    .dt-buttons{
        margin-bottom: 5px;
    }

    .titolo-elezioni {
        white-space: normal;
        display: unset;
        text-align: center;
    }

    .fixed-top{
        position: relative;
    }
}

@media print {
    .chart-container {
        position: relative;
        margin: auto;
        width: 100%;
    }    
}

.disabled {
    pointer-events: none;
}

.img-position {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-47%, -67%);
}

.modalAnimationIn {
    animation: scaleForward .6s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

.modalAnimationOut {
    animation: scaleDown .7s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

@keyframes scaleDown {
    0% {
        transform: scale(1) translateY(0%);
        overflow: hidden;
    }

    100% {
        transform: scale(.8) translateY(200%);
        overflow: hidden;
        display: none;
    }
}

@keyframes scaleForward {
    0% {
        transform: scale(.8) translateY(-200%);
        overflow: hidden;
    }

    100% {
        transform: scale(1) translateY(0%);
        overflow: hidden;
    }
}

small, tfoot {
    font-weight: bold;
}

.card-header {
    background-color: rgba(0,123,255);
    color: white;
}

.tab-pane.fade {
    transition: all 0.2s;
    transform: translateY(1rem);
}

    .tab-pane.fade.show {
        transform: translateY(0rem);
    }

.fa-spin-once {
    animation: fa-spin 0.8s linear;
}

.election-canceled {
    animation: BorderShadow 5s infinite linear;
}

@keyframes BorderShadow {
    0% {
        box-shadow: unset;
    }

    10% {
        box-shadow: 0px 0px 30px rgb(255, 243, 205, 0.2);
    }

    20% {
        box-shadow: 0px 0px 30px rgb(255, 90, 90, 0.6);
    }

    30% {
        box-shadow: 0px 0px 30px rgb(255, 0, 0, 1);
    }

    40% {
        box-shadow: 0px 0px 30px rgb(255, 90, 90, 0.6);
    }

    50% {
        box-shadow: 0px 0px 30px rgb(255, 243, 205, 0.2);
    }

    51%, 100% {
        box-shadow: unset;
    }
}
