﻿/*
    VIDEOLIBRO

    Author: Alberto Cobre
    eMail: a.cobre@promonivideo.it
    Company: PROMOinVIDEO Srl

    rev: 20.09.2017
*/

/************* BASE *************/
html body {
    min-width: 320px;
    min-height: 360px;

    width: 100%;
    height: 100%;
    position: absolute;

    overflow-y: hidden;
    margin: 0;

    font-family: "NewJune", Verdana, Arial;
    font-size: 18px;
    text-align: center;
    color: #303030;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.template {
    display: none;
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
p, h1, h2, h3, button {
    font-family: "NewJune";
}
p, h1, h2, h3 {
    margin: 0;
}

a:link {
    color: #fff;
    text-decoration: none;
}

a:visited {
    text-decoration: none;
    color: #fff;
}

.tooltip {
    color: #ec971f;
    text-decoration: underline;
    cursor: pointer;
}

.swiper-pagination-switch {
  display: inline-block;

  width: 8px;
  height: 8px;
  margin-right: 5px;

  background: #555;
  opacity: 0.8;

  border-radius: 8px;
  border: 1px solid #fff;
  cursor: pointer;
}

.swiper-scrollbar {
    bottom:auto !important;
}

.swiper-scrollbar-drag {
    background: rgba(250, 255, 255, 0.5) none repeat scroll 0 0;
}

.swiper-active-switch {
  background: #fff;
}

.slide-wrapper {
    width: 100%;
    height: calc(100% - 2px);
    position: relative;

}

.vertical-align {
    top: 50%;
    -webkit-transform: translateY(-45%);
    -moz-transform: translateY(-45%);
    -ms-transform: translateY(-45%);
    -o-transform: translateY(-45%);
    transform: translateY(-45%);
    margin: 0 auto;
}

.grayscale { 
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  -o-filter: grayscale(100%);
  filter: grayscale(100%);
  filter: url(grayscale.svg#greyscale); /* Firefox 4+ */
  filter: gray; /* IE 6-9 */
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
}
.swiper-pagination-bullet-active {
    background-color: #ec971f;
}
.button {
    color: #fff;
    display: inline-block;
    padding: 12px 24px;
    margin: 20px;
    font-size: 48px;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
    border-radius: 8px;
    outline: 0 !important;

    background-image: linear-gradient(to bottom,#EC971F 0,#C41F35 100%);
    border-color: #C41F35 !important;
}

/************* PAGE SECTION: TOP & LOGO *************/
#top {
    width: 100%;
    height: 100px;

    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

#logo {
    width: 100%;
    height: 100px;

    -moz-box-sizing:  content-box;
    -webkit-box-sizing:  content-box;
    box-sizing:  content-box;

    background-image: url('../images/logo.png');
    background-size: contain;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}
@media only screen and (max-width : 800px) {
    html body {
        overflow-y: scroll;
        position: relative;
    }
    #middle {
        position: initial !important;
        padding-bottom: 20px;
    }
}
@media only screen and (max-width : 600px) {
    .button {
        width: 70%;
        font-size: 22px;
    }
}
/************* TEMPLATE: PRODOTTO *************/
#middle {
    position: absolute;
    overflow: hidden;
    background-color: #ec971f;

    width: 100%;
    top: 100px; /* section:top + section:high*/
    bottom: 20px; /* section:bottom */
}

@media only screen and (max-height : 600px) and (max-width : 800px) {
    #middle {
        line-height: 1.3;
    }
}

@media only screen and (max-width : 800px) {
    #prodotto .product-details {
        width: 100%;
    }
}
@media only screen and (max-height : 700px) {
    #middle {
        top: 100px;
    }
}
/************* SLIDE BAR *************/
.slide-bar {
    position: absolute;
    height: 60px;
    bottom: 0;
    right: 0;
    width: 100%;
    text-align: center;

    -ms-flex-direction: row-reverse;
    -webkit-flex-direction: row-reverse;
    flex-direction: row-reverse;

    display: flex;
    z-index: 99;
}
.slide-bar img {
    cursor: pointer;
    margin: 20px;
}
.slide-button {
    width: 20%;
    height: 100%;
    min-width: 150px;
    max-width: 190px;
    margin: 0 10px;
    float: right;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: none;
    position: relative;
}
    .slide-button img {
        position: absolute;
        margin: auto;
        top: 0;
        bottom: 0;
        width: 100%;
    }
    .slide-button .img-hover {
        opacity: 0;
    }

.mfp-content {
    /*max-width: 100% !important;*/
    /*max-height: 100% !important;*/
}
.mfp-iframe-holder {
    /*padding: 50px !important;*/
}

@media only screen and (max-width : 800px) {
    .slide-bar {
        -ms-flex-direction: column-reverse;
        -webkit-flex-direction: column-reverse;
        flex-direction: column-reverse;
        right: 0;
        height: 150px;
        width: auto;
    }
    .slide-button {
        height: 33%;
    }
}
/************* TEMPLATE: PRODOTTO-BAR *************/
#bottom {
    background-color: #202020;

    position:absolute;
    bottom: 20px;

    width: 100%;
    height: 80px;
}
@media (max-height:600px) {
    #bottom {
        display: none;
    }
    #middle {
        bottom: 20px;
    }
}
/************* TEMPLATE: FOOTER *************/
#footer {
    -moz-box-sizing: padding-box;
    -webkit-box-sizing: padding-box;
    box-sizing: padding-box;

    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px;

    background-color: #000;
    text-align: right;
    font-size: 11px;
    color: #c3c3c3;
}
#footer p {
    margin-right: 10px;
    line-height: 20px;
}
.footer-left {
    margin-left: 10px;
    margin-top: 3px;
    float: left;
}
.footer-right {
    margin-right: 10px;
    margin-top: 3px;
    float: right;
}
@media only screen and (max-width : 480px) {
    #footer {
        text-align: center;
    }
    #footer p {
        margin-right: 0;
    }
    #footer .footer-left {
        margin-left: 0;
    }
    #footer .footer-right {
        display: none;
    }
}