body {
  background-image: url('images/background_grande.jpg');
  font-family: 'Luckiest Guy', cursive;
  color: white;
  background-attachment: fixed;
}

a:link {
  color: white;
  background-color: transparent;
  text-decoration: none;
}

a:visited {
  color: white;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: yellow;
  background-color: transparent;
  text-decoration: none;
}

a:active {
  color: white;
  background-color: transparent;
  text-decoration: none;
}

.video-bg {
  visibility: visible;
  position: fixed;
  object-fit: cover;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
}

.title {
  font-size: 80px;
  width: 100%;
  text-align: center;
  mix-blend-mode: overlay;
}

.error {
  background-image: url('');
  background-color: #ff2524;
}

.divider {
  font-size: 5vw;
  left: 50%;
  width: 50%;
  transform: translate(15%, 20px);
  user-select: none;
  text-align: left;
  mix-blend-mode: overlay;
}

.divider-line {
  width: 87%;
  height: 5px;
  margin-bottom: 20px;
  background-color: white;
  mix-blend-mode: overlay;
}

.container {
  display: grid;
  grid-template-columns: 20% 20% 20% 20% 20%;
  grid-template-rows: 20%;
  margin: 0% 5% 0% 5%;
}

.item {
  margin: 0% 5% 30px 5%;
  position: relative;
  display: flex;
  transition: transform .2s;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 2% 2% 2% 2%;
  filter: drop-shadow(5px 5px 2px #a92071);
}

.item:hover {
  transform: translate(0px, -10px);
}

.item:hover .pack-image {
  transform: scale(1.20);
}

.item:hover .pack-text {
  animation: rainbowText 2s linear 0s infinite;
}

.item:hover {
  transform: translate(0px, -10px);
}

.item:active {
  transform: scale(0.97);
  animation: jiggleIcon 0.2s linear 0s;
}


.item-disabled {
  margin: 0% 5% 30px 5%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 2% 2% 2% 2%;
  filter: drop-shadow(5px 5px 2px #0037ab) grayscale(100%);
}

.pack-new {
  position: absolute;
  display: block;
  left: 0%;
  top: 0%;
  width: 5vw;
  height: 2.5vw;
  overflow: visible;
  pointer-events: none;
  user-select: none;
}

.pack-flair {
  position: absolute;
  display: block;
  top: 0%;
  width: 10vw;
  height: 2.5vw;
  overflow: visible;
  animation: bouncyIcon 3s linear 0s infinite;
  pointer-events: none;
  user-select: none;
}

.pack-discount {
  position: absolute;
  display: block;
  left: 2.5%;
  top: 0%;
  width: 7vw;
  height: 3.5vw;
  overflow: visible;
  animation: bouncyIcon 3s linear 0s infinite;
  pointer-events: none;
  user-select: none;
}

.pack-image {
  position: relative;
  display: block;
  transition: transform .2s;
  transform-origin: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.pack-rarity {
  position: absolute;
  display: block;
  top: 71%;
  width: 100%;
  pointer-events: none;
  user-select: none;
}

.pack-text {
  position: absolute;
  text-align: center;
  top: 81%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  user-select: none;
  font-size: 1vw;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; 
}

.pack-price {
  color: #b2b2b2;
  position: absolute;
  text-align: right;
  top: 90%;
  left: 75%;
  width: 20%;
  transform: translate(-50%, -50%);
  user-select: none;
  font-size: 1vw;
}

.pack-popup {
  position: absolute;
  text-align: center;
  font-size: 3vw;
  top: 0%;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: 0.2s;
  user-select: none;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;   
}

.item:hover .pack-popup {
  opacity: 1;
}

.promo-image {
  position: fixed;
  bottom: 0%;
  left: 0%;
  width: 25vw;
  height: 25vw;
  opacity: 1;
  transition: 0.2s ease-in;
  pointer-events: none;
  user-select: none;
}

.container:hover ~ .promo-image {
  opacity: 0;
}

.video-control {
  position: fixed;
  bottom: 2%;
  right: 1%;
  width: 3vw;
  height: 3vw;
  mix-blend-mode: overlay;
}

.disclaimer {
  font-size: 15px;
  left: 50%;
  width: 100%;
  text-align: center;
  user-select: none;
  mix-blend-mode: overlay;
}

/*Mobile Phone*/
@media (max-width: 876px) {
  
  .divider {
    font-size: 5vw;
    left: 50%;
    width: 50%;
    transform: translate(15%, 10px);
    user-select: none;
    text-align: left;
    mix-blend-mode: overlay;
  }
  
  .divider-line {
    width: 87%;
    height: 2px;
    margin-bottom: 20px;
    background-color: white;
    mix-blend-mode: overlay;
  }
  
  .container {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 175px;
    margin: 0% 5% 0% 5%;
  }
  
  .item {
    margin: 0% 5% 20px 5%;
    position: relative;
    display: flex;
    transition: transform .2s;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 2% 2% 2% 2%;
    filter: drop-shadow(5px 5px 2px #0037ab);
  }
  
  .pack-new {
    position: absolute;
    display: block;
    left: 0%;
    top: 0%;
    width: 10vw;
    height: 5vw;
    overflow: visible;
    pointer-events: none;
    user-select: none;
  }
  
  .pack-flair {
    position: absolute;
    display: block;
    top: 0%;
    width: 20vw;
    height: 5vw;
    overflow: visible;
    animation: bouncyIcon 3s linear 0s infinite;
    pointer-events: none;
    user-select: none;
  }
  
  .pack-text {
    position: absolute;
    text-align: center;
    top: 81%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    user-select: none;
    font-size: 2.5vw;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; 
  }
  
  .pack-price {
    color: #b2b2b2;
    position: absolute;
    text-align: right;
    top: 93%;
    left: 75%;
    width: 20%;
    transform: translate(-50%, -50%);
    user-select: none;
    font-size: 2vw;
  }
  
  .pack-popup {
    position: absolute;
    text-align: center;
    font-size: 5vw;
    top: 10%;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: 0.2s;
    user-select: none;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;   
  }
  
  .promo-image {
    position: fixed;
    bottom: 0%;
    left: 0%;
    width: 40vw;
    height: 40vw;
    opacity: 1;
    transition: 0.2s ease-in;
    pointer-events: none;
    user-select: none;
  }
}

/*Animations*/

@keyframes bouncyIcon {
  from {
    transform: scale(1.00);
  }
  25% {
    transform: scale(1.05);
  }
  50% {
    transform: scale(1.0);
  }
  75% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1.00);
  }
}

@keyframes jiggleIcon {
  from {
    rotate: 0deg;
  }
  20% {
    rotate: 5deg;
  }
  40% {
    rotate: -3deg;
  }
  90% {
    rotate: 1deg;
  }
  100% {
    rotate: 0deg;
  }
}

@keyframes rainbowText {
  from {
    color: #6666ff;
  }
  10% {
    color: #0099ff;
  }
  50% {
    color: #00ff00;
  }
  75% {
    color: #ff3399;
  }
  100% {
    color: #6666ff;
  }
}