/*
The MIT License

Copyright 2016 Alberto.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* 
    Created on : 24-apr-2016, 15.55.04
    Author     : Alberto
*/


body, html {
    height: 100%;
    margin: 0;
    padding: 0;
}

header h1{
    font-size: 10em;
}

header h3{
    font-size: 3em;
}
section{
    position: relative;
    margin:auto;
    text-align: center;
     -webkit-transition: width 2s; 
    transition: width 2s;
}

.buttonWrap{
    margin: 5%;
    margin-bottom: 50px;
}

section.loadedSection {
    height: 0px;
}

.gallerySearchButton{
    border-radius: 10px;
    background: rgba(10,10,10,0.5);
    position: relative;
    width: 50%;
    padding-bottom: 5%;
    margin:10px;
    display: inline-block;
    cursor:pointer;
    box-shadow: 5px 5px 5px black;
}

.buttonOverlay{
    border-radius: 10px;
    display: -webkit-flex;
    display: flex;
    position:absolute;
    width: 100%;
    height: 100%;
    overflow:hidden;
    opacity: 0;
     transition: all 0.5s;
    -webkit-transition: all 0.5s;
    background-size: cover;
}

.gallerySearchButton p, .hoverStyle p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin:auto;
    font-size: 3em;
    text-transform: uppercase;
     transition: all 0.2s;
    -webkit-transition: all 0.2s;
}

@media screen and (min-width: 481px){
    .gallerySearchButton{
        width: 40%;
    }
}

@media screen and (min-width: 990px){
    .gallerySearchButton{
        width: 30%;
    }
    .gallerySearchButton p, .hoverStyle p{
        font-size: 2em
    }
}

@media screen and (min-width: 1200px){
    .gallerySearchButton{
        width: 22%;
    }
}

@media screen and (min-width: 1600px){
    .gallerySearchButton{
        width: 16%;
    }
    
     .gallerySearchButton p, .hoverStyle p{
        font-size: 2.5em
    }
}

.buttonOverlay:hover{
    opacity:1;
}


/*TOGLIERE E METTERE VIA SQL*/
.categoria:nth-child(2) .buttonOverlay:hover{
     background: url("../resources/Mgallery/btn1.jpg");
     background-size: cover;
     background-position-y: 50%;
}

.categoria:nth-child(3) .buttonOverlay:hover{
     background: url("../resources/Mgallery/btn2.jpg");
     background-size: cover;
      background-position-y: 50%;
}

.categoria:nth-child(4) .buttonOverlay:hover{
     background: url("../resources/Mgallery/btn3.jpg");
     background-size: cover;
      background-position-y: 50%;
}

.categoria:nth-child(5) .buttonOverlay:hover{
     background: url("../resources/Mgallery/btn4.jpg");
     background-size: cover;
      background-position-y: 50%;
}

.categoria:nth-child(6) .buttonOverlay:hover{
     background: url("../resources/Mgallery/btn5.jpg");
     background-size: cover;
      background-position-y: 50%;
}
.categoria:nth-child(7) .buttonOverlay:hover{
     background: url("../resources/Mgallery/btn6.jpg");
     background-size: cover;
      background-position-y: 50%;
}
.categoria:nth-child(8) .buttonOverlay:hover{
     background: url("../resources/Mgallery/btn7.jpg");
     background-size: cover;
     background-position-y: 50%;
}

.selected {
    background: rgba(50,70,90,0.8);
}

.searchButton{
    font-size: 2em;
    text-transform: uppercase;
    color: black;
    box-shadow: 5px 5px 5px black;
    
}

.in-progress {
      text-shadow: none;
  background: -webkit-linear-gradient(-45deg, rgba(237, 160, 50, 0.6) 25%, transparent 25%, transparent 50%, rgba(237, 160, 50, 0.6) 50%, rgba(237, 160, 50, 0.6) 75%, transparent 75%, transparent), -webkit-linear-gradient(top, #DAA520, #FFC308);
  background:    -moz-linear-gradient(-45deg, rgba(237, 160, 50, 0.6) 25%, transparent 25%, transparent 50%, rgba(237, 160, 50, 0.6) 50%, rgba(237, 160, 50, 0.6) 75%, transparent 75%, transparent), -moz-linear-gradient(top, #DAA520, #FFC308);
  background:     -ms-linear-gradient(-45deg, rgba(237, 160, 50, 0.6) 25%, transparent 25%, transparent 50%, rgba(237, 160, 50, 0.6) 50%, rgba(237, 160, 50, 0.6) 75%, transparent 75%, transparent), -ms-linear-gradient(top, #DAA520, #FFC308);
  background:      -o-linear-gradient(-45deg, rgba(237, 160, 50, 0.6) 25%, transparent 25%, transparent 50%, rgba(237, 160, 50, 0.6) 50%, rgba(237, 160, 50, 0.6) 75%, transparent 75%, transparent), -o-linear-gradient(top, #DAA520, #FFC308);
  background:         linear-gradient(-45deg, rgba(237, 160, 50, 0.6) 25%, transparent 25%, transparent 50%, rgba(237, 160, 50, 0.6) 50%, rgba(237, 160, 50, 0.6) 75%, transparent 75%, transparent), linear-gradient(top, #DAA520, #FFC308);
  -pie-background:    linear-gradient(-45deg, rgba(237, 160, 50, 0.6) 25%, transparent 25%, transparent 50%, rgba(237, 160, 50, 0.6) 50%, rgba(237, 160, 50, 0.6) 75%, transparent 75%, transparent), linear-gradient(top, #DAA520, #FFC308);
  background-repeat: repeat;
  -webkit-background-size: 40px 40px, 100% 100%;
  -moz-background-size: 40px 40px, 100% 100%;
  -ms-background-size: 40px 40px, 100% 100%;
  -o-background-size: 40px 40px, 100% 100%;
  background-size: 40px 40px, 100% 100%;
  -webkit-animation: progress-bar-stripes 2s linear infinite, colour-change 2s linear infinite;
  -moz-animation: progress-bar-stripes 2s linear infinite, colour-change 2s linear infinite;
  -ms-animation: progress-bar-stripes 2s linear infinite, colour-change 2s linear infinite;
  -o-animation: progress-bar-stripes 2s linear infinite, colour-change 2s linear infinite;
  animation: progress-bar-stripes 2s linear infinite, colour-change 2s linear infinite;
}

@-webkit-keyframes progress-bar-stripes {
  from { background-position: 0 0;}
  to { background-position: 40px 0;}
}

@-moz-keyframes progress-bar-stripes {
  from { background-position: 0 0; color: white; }
  to { background-position: 40px 0; color: black;}
}

@keyframes progress-bar-stripes {
  from { background-position: 0 0; color: white; }
  to { background-position: 40px 0; color: black;}
}

@-webkit-keyframes colour-change {
     0% {color: white;}
    50% {color: black;}
    100% {color: white;}

}
@-moz-keyframes colour-change {
      0% {color: white;}
    50% {color: black;}
    100% {color: white;}
}

@keyframes colour-change {
     0% {color: white;}
    50% {color: black;}
    100% {color: white;}
}


.searchButton, .buttonWrap{
    -webkit-transition: all linear 0.5s;
    transition: all linear 0.5s;
}

.searchButton.ng-hide{
    opacity: 0;
}

.buttonWrap.ng-hide{
    opacity: 0;
}

.imageThumb {
    cursor: pointer;
    box-shadow: 10px 10px 10px black;
    /*width: 100%;
    height: auto;*/
    display: inline-block;
    height: 18vh;
    border-radius: 0.9%;
    margin: 20px;
}
.imageThumb.ng-move,
.imageThumb.ng-enter,
.imageThumb.ng-leave {
    -webkit-transition:all linear 0.5s;
    transition:all linear 0.5s;
}

.imageThumb.ng-leave.ng-leave-active,
.imageThumb.ng-move,
.imageThumb.ng-enter {
    opacity:0;
    max-height:0;
}

.imageThumb.ng-leave,
.imageThumb.ng-move.ng-move-active,
.imageThumb.ng-enter.ng-enter-active {
    opacity:1;
    max-height:40px;
}

/**
 * Stagger Leave (hide) animation
 */
.imageThumb.ng-leave-stagger {
    /* this will have a 100ms delay between each successive leave animation */
    -webkit-transition-delay: 0.2s;
    transition-delay: 0.2s;

    /* in case the stagger doesn't work then these two values
     must be set to 0 to avoid an accidental CSS inheritance */
    -webkit-transition-duration: 0s;
    transition-duration: 0s;
}

/**
 * Stagger ENTER ANIMATION
 */
.imageThumb.ng-enter-stagger {
    /* this will have a 100ms delay between each successive enter animation */
    -webkit-transition-delay: 0.3s;
    transition-delay: 0.3s;

    /* in case the stagger doesn't work then these two values
     must be set to 0 to avoid an accidental CSS inheritance */
    -webkit-transition-duration: 0s;
    transition-duration: 0s;
}

/*
.imgWrapper{
    margin: 20px;
    line-height: 0;
   
    -webkit-column-count: 8;
    -webkit-column-gap:   15px;
    -moz-column-count:    8;
    -moz-column-gap:      15px;
    column-count:         8;
    column-gap:           15px;  
}

.imgWrapper img{
    margin-bottom: 10px;
}
*/
.imageBig{
    position: relative;
    left: 37%;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    /*max-height: 100%;*/
    max-width:74%;
    margin: auto;
    z-index: -1;
}


.infoContainerGallery {
    padding: 2% 5%;
}

.infoContainerGallery h1 {
    margin-bottom: 30px;
}


.frameThumb {
    width: 60%;
    height: auto;
    cursor: pointer;
}

#customize{
    display: -webkit-flex;
    display: flex;
}

.framer{
    position: relative;
    z-index:5;
    -webkit-transition: all 2s; /* Safari */
    transition: all 2s;
}

.framePreview {
    width: 75%;
    opacity: 0;
    -webkit-transition: all .2s; /* Safari */
    transition: all .2s;
}

.visibleFrame {
    opacity: 1;
}

.frameShow {
    width: 100%;
}

.imageContainer{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
}

.thumbContainer {
    max-width: 20%;
}

.maxwidth60{
    max-width: 60%;
}

.hoverStyle:hover{
    background: rgba(70,80,90,0.9);
}

