* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial;
	background-color: #FFF;
}

.header {
    text-align: center;
    padding: 32px;
}

.row {
    display: -ms-flexbox; /* IE10 */
    display: flex;
    -ms-flex-wrap: wrap; /* IE10 */
    flex-wrap: wrap;
    padding: 0 4px;
}

/* Create four equal columns that sits next to each other */
.column {
    -ms-flex: 100%; /* IE10 */
    flex: 100%;
    max-width: 100%;
    padding: 0 4px;
}

.column img {
    vertical-align: middle;
}

.imgc {
	max-width:270px; 
	max-height:180px;
	height: auto;
}

.imgContent:hover {
    cursor: pointer;	
	-webkit-animation: pop 0.2s forwards;
    animation: pop 0.2s forwards;
	box-shadow: 0px 0px 25px rgba(255,255,255,0.5);
    z-index: 1; /* Sit on top */
}

.imgContent:hover .idiv :not(.selected) {
    opacity: 1;
	color: black;
    /*text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;	*/
    text-shadow: 0px 0px 20px red, 0 0 25px white, 0 0 5px pink;
}


/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 0px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
	-webkit-transform: translateZ(0px);
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    max-width: 100%;
	max-height: 100%;
	width: auto;
    height: auto; 
	position: absolute; top: 50%;
	left: 50%; transform: translateX(-50%) translateY(-50%);
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@keyframes rotme {
    50% { transform: rotate(180deg); }
}

@keyframes rightleft {
    0% { transform: translate(1px, 0px) }
    20% { transform: translate(-1px, 0px)  }
    40% { transform: translate(3px, 0px)  }
    60% { transform: translate(-3px, 0px)  }
    80% { transform: translate(6px, 0px)  }
    100% { transform: translate(-6px, 0px) }
}

#fsBtn {
	position: absolute;
    top: 20px;
    right: 120px;
    transition: 0.3s;
    z-index: 10; 
    text-align: center;
	color: #ccc;
    font-size: 24px;
    font-weight: bold;
}

#dlBtnBig {
	position: absolute;
    top: 20px;
    right: 155px;
    transition: 0.3s;
    z-index: 10; 
    text-align: center;
	color: #ccc;
    font-size: 24px;
    font-weight: bold;
}
/* Caption of Modal Image */
#caption {
	position: absolute;
    top: 20px;
    right: 85px;
    transition: 0.3s;
    z-index: 10; 
    text-align: center;
	color: #ccc;
    font-size: 24px;
    font-weight: bold;
}

#downloadFiles, #downloadZIP, #unselectFiles
{
	cursor: pointer;
}

 #downloadZIP
 {
 	float:right;
 }

#menu {
	background-color: #FFF;
	height: 40px;
	padding: 5px;
}

/* Add Animation */
.modal-content, #caption, #rightBtn, #leftBtn, #closeBtn, #fsBtn {    
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

@-webkit-keyframes pop {
    from {-webkit-transform:scale(1)} 
    to {-webkit-transform:scale(1.4)}
}

@keyframes pop {
    from {transform:scale(1)} 
    to {transform:scale(1.4)}
}

/* The Close Button */
#closeBtn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #ccc;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 10; /* Sit on top */
}

#closeBtn:hover,
#closeBtn:focus,
#caption:hover,
#caption:focus,
#fsBtn:hover,
#fsBtn:focus,
#dlBtnBig:hover,
#dlBtnBig:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
	/*animation: shake 0.5s; */
}

#rightBtn {
	position: absolute;
	right: 20px;
  bottom: 50%;
  top: 50%;
  margin: 0 auto;
  padding: auto;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 10; /* Sit on top */
}

#leftBtn {
	position: absolute;
	left: 20px;
  bottom: 50%;
  top: 50%;
  margin: 0 auto;
  padding: auto;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    z-index: 10; /* Sit on top */
    transition: 0.3s;
}

#rightBtn:hover,
#rightBtn:focus,
#leftBtn:hover,
#leftBtn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
	animation: rightleft 2s; 
    /* When the animation is finished, start again */
    animation-iteration-count: infinite; 
}

#top
{
	width: auto;
	margin-bottom: 25px;
	margin-right: auto;
	margin-left: auto;
	padding: 0px;
    display: block;
    max-width: 100%;
    height: auto; 
}
#topDiv::after {
display: block;
  position: relative;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, #fff 100%);
  margin-top: -150px;
  height: 150px;
  width: 100%;
  content: '';
}

.imgContent {
	position: relative;
	width: auto;
	max-width: 270px; 
	max-height: 180px;	
	height: auto;
	float: left;
	padding: 0px;
    margin: 3px;
}

.idiv {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    cursor: cell;
    text-align: center;
    -webkit-transition: all 3.5s ease-in-out;
    -moz-transition: all 3.5s ease-in-out;
    -ms-transition: all 3.5s ease-in-out;
    -o-transition: all 3.5s ease-in-out;
    transition: all 3.5s ease-in-out;  
}

#content {
	max-width: 1150px;
	margin: auto;
}

.dlBtn {	
	display:inline-block;
    opacity: 0;
}

.dlBtn:hover :not(.selected) {	
    opacity: 1;
    text-shadow: 0px 0px 50px gray;
}

.dlBtn:active::after {	
	-webkit-animation: rotme 0.2s;
    animation: rotme 0.2s;
}

.selected, .selectedBig {
    opacity: 1;
    text-shadow: 0px 0px 20px red, 0 0 25px white, 0 0 5px pink;
}
img.selected {	
	box-shadow: 0px 0px 15px 1px #0000FF;
	}
}