/* ---------- HR ---------- */
hr {
    display: block;
    position: relative;
    padding: 0;
    margin: 8px auto;
    height: 0;
    width: 90%;
    max-height: 0;
    font-size: 1px;
    line-height: 0;
    clear: both;
    border: none;
    border-top: 1px solid rgb(220,220,220);
    border-bottom: 1px solid #ffffff;
}

/* ---------- CHECKBOX ------------ */

/* Customize the label (the container) */
.customCheckboxContainer {
    display: flex;
    position: relative;
    padding: 0;
    /*margin-bottom: 12px;*/
    cursor: pointer;
    /*font-size: 22px;*/
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

/* Hide the browser's default checkbox */
.customCheckboxContainer input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
}

/* On mouse-over, add a grey background color */
.customCheckboxContainer:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.customCheckboxContainer input:checked ~ .checkmark {
    background-color: rgb(25,185,230);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.customCheckboxContainer input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.customCheckboxContainer .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
/* -------- END CHECKBOX -------- */

/* -------- SLIDER -------- */
.sliderContainer {
    width: 100%;
}

.slider {
    margin: 10px auto;
    -webkit-appearance: none;
    width: 100%;
    height: 15px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 1;/*0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;*/
    
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}
/* -------- END SLIDER -------- */

/* -------- BUTTON LINK -------- */
a.buttonLink:link, a.buttonLink:visited {
    background-color: #f44336;
    color: white;
    padding: 14px 25px;
    text-align: center; 
    text-decoration: none;
    display: inline-block;
}

a.buttonLink:hover, a.buttonLink:active {
    background-color: red;
}

div.buttonLink {
    display: inline-block;
    padding: 14px 25px;
    text-align: center;
    color: white;
    background-color: #f44336;
    cursor: pointer;
}

div.buttonLink:hover, div.buttonLink:active {
    display: inline-block;
    background-color: red;
}
/* -------- END BUTTON LINK -------- */

/* -------- OVERLAY -------- */
.overlay {  
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 15; /* Sit on top */
    left: 0;
    top: 0;
    background-color: rgba(255,255,255, 0.95); /* Black w/opacity */
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

.overlay-content {
    position: relative;
    top: 15%; /* from the top */
    width: 100%;
    text-align: center;
    margin-top: 30px; /* top margin to avoid conflict with the close button on smaller screens */
}

.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    text-decoration: none;
    color: black;
}

@media screen and (max-height: 450px) {
    .overlay span {font-size: 20px}
    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}
/* -------- END OVERLAY -------- */

/* -------- ARROW DOWN -------- */
.arrow-down {
    width: 0; 
    height: 0; 
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;

    border-top: 20px solid #f00;
}

/* -------- END ARROW DOWN -------- */

/* -------- DROPDOWN LIST ---------- */
.languagepicker {
    background-color: #FFF;
    display: inline-block;
    padding: 0;
    height: 40px;
    overflow: hidden;
    transition: all .3s ease;
    margin: 0 0px 0px 0;
    vertical-align: top;
    float: left;
}

.languagepicker:pressed /*hover*/ {
    /* don't forget the 1px border */
    height: 245px;
}

.languagepicker a {
    color: #000;
    text-decoration: none;
}

.languagepicker li {
    width: auto;
    display: block;
    padding: 0px 10px;
    line-height: 40px;
    border-top: 1px solid #EEE;
}

.languagepicker li:hover{
    background-color: #EEE;
}

.languagepicker a:first-child li {
    border: none;
    background: #FFF !important;
}

.languagepicker li img {
    margin-right: 5px;
}

.roundborders {
    border-radius: 5px;
}

.large:hover {
    /* 
    la prima lingua è alta 40px, le altre 41px;
    */
    height: 245px;
}