.nll-advent-wrapper {
  padding: 0;
  margin: 0;
  list-style: none;
  
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  
  -webkit-flex-flow: row wrap;
  justify-content: center;
}

.nll-advent-button {
  float:none;
  margin-top: 5px;
  margin-bottom: 15px;
}

.nll-advent-button-open {
  position: absolute;
  left: 55px;
  bottom: 5px;

  z-index: 2;
}

.nll-advent-item a {
  text-decoration: none !important; 
}

.nll-advent-item {
  position: relative;

  padding: 5px;
  width: 250px;
  height: 250px;
  margin-top: 8px;
  margin-right: 8px;
  margin-left: 10px;
  margin-right: 10px;

}

.nll-advent-text {
  position: absolute;
  top: 8px;
  left: 16px;

  pointer-events: none;

  color: black;
  font-weight: bold;
  font-size: 3em;

  z-index: 1;
}

.nll-advent-image {
  position: absolute;

  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-transition: .1s ease-in-out;
  transition: .1s ease-in-out;

  z-index: 0;
}

.nll-advent-image:hover {
  position: absolute;

  opacity: 0.5;
  filter: alpha(opacity=50); /* For IE8 and earlier */
}

/*
.nll-advent-image:hover {
  position: absolute;

  -webkit-transform: scale(1.25);
  transform: scale(1.25);
  opacity: 1;
  -webkit-animation: flash 0.5s;
  animation: flash 0.5s;

  z-index: 5;
}
*/

@-webkit-keyframes flash {
  0% {
    opacity: .4;
  }
  100% {
    opacity: 1;
  }
}
@keyframes flash {
  0% {
    opacity: .4;
  }
  100% {
    opacity: 1;
  }
}

.nll-advent-image-unopend {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.3;
  filter: alpha(opacity=30); /* msie */
}

.nll-advent-text-unopend {
  position: absolute;
  top: 8px;
  left: 16px;

  pointer-events: none;

  color: black;
  font-weight: bold;
  font-size: 3em;

  z-index: 1;

  opacity: 0.3;
  filter: alpha(opacity=30); /* msie */
}

.nll-advent-text-open {
  color: #d11;
}

.nll-advent-image-open {
  -webkit-animation: wiggle 1.5s linear infinite;
  -webkit-animation-timing-function: ease-in-out;
  animation: wiggle 1.5s linear infinite;
  animation-timing-function: ease-in-out;
}

@-webkit-keyframes wiggle {
  0% {-webkit-transform: rotate(0deg);}
  10% {-webkit-transform: rotate(-2deg);}
  20% {-webkit-transform: rotate(1deg);}
  30% {-webkit-transform: rotate(-2deg);}
  40% {-webkit-transform: rotate(0deg);}
  50% {-webkit-transform: rotate(-2deg);}
  60% {-webkit-transform: rotate(1deg);}
  70% {-webkit-transform: rotate(-2deg);}
  80% {-webkit-transform: rotate(0deg);}
}

@keyframes wiggle {
  0% {transform: rotate(0deg);}
  10% {transform: rotate(-2deg);}
  20% {transform: rotate(1deg);}
  30% {transform: rotate(-2deg);}
  40% {transform: rotate(0deg);}
  50% {transform: rotate(-2deg);}
  60% {transform: rotate(1deg);}
  70% {transform: rotate(-2deg);}
  80% {transform: rotate(0deg);}
}


