@keyframes bounce {
  0%    {transform: translateY(0);}
  12%   {transform: translateY(-20px);}
  24%   {transform: translateY(0);}
  36%   {transform: translateY(-20px);}
  48%   {transform: translateY(0);}
}

.box p, .box h2, .box li, .box span{
  color:black;
  line-height:1.2em;
  font-size:14px;
  font-family: 'acww';
  letter-spacing: 1px;
}

.box h2{
  font-size:16px;
}

.box span{
  margin:27px 5px;
}

.box ul{
  margin-bottom:27px;
}

.box{
  background-image:url(img/paper.png);
  background-size: 200%;
}

.hstamps{
  flex-flow: row wrap;
  position:relative;
  margin-bottom:4px;
}

.hstamps img{
  width: calc(100% / 8);
  aspect-ratio:16/9;
  object-fit:cover;
}

#kinstamps{
  flex-flow: row wrap;
  position:absolute;
  margin-bottom:4px;
  right:5px;
  width:290px;
  margin:auto;
  align-items:flex-end;
}

#kinstamps img{
  width:100px;
  aspect-ratio:16/9;
  object-fit:cover;
}

#scor{
  animation: bounce 1.2s infinite;
  width: 50px;
  bottom:10px;
  right: 10px;
  z-index:4;
  position: absolute;
  aspect-ratio:auto;
}

#gin{
  aspect-ratio: auto;
  margin-top:-45px;
  margin-bottom:10px;
  z-index:3;
  position: absolute;
  height:140px;
  width:140px;
  margin-top:-140px;
  right:30px;
}

#play{
  left:40px;
  top:20px;
  width: 55px;
  position: absolute;
  aspect-ratio:auto;
}

#blinkies {
  position:relative;
  margin-top: 4px;
  flex-flow:row wrap;
  bottom:0;
  z-index: 1;
  justify-content: center;
}

#blinkies img{
  width:25%;
}

.flex{
  width:100%;
  margin:0;
  display:flex;
  flex-flow:column wrap;
  align-content:space-around;
}

.flex .box{
  margin:0;
  width:48%;
}

#gift {
  display:none;
}

.box button{
  width:45%;
  font-size:18px;
  margin:16px 2px;
  color:rgb(95, 95, 95);
  background:none;
  font-family: 'acww';
  font-weight:400;
  border-radius: 6px 0;
  border:none;
}

.box button:hover, button.active{
  color:black;
  background:rgba(255, 252, 91, 0.411);
  text-decoration: underline;
}

.box button p{
  font-size:14px;
}

.box h2{
  background: rgba(114, 182, 255, 0.587);
  line-height:1em;
  margin:8px 12px;
  padding:4px;
  font-variant:normal;
  font-weight:100;
  margin-bottom:6px;
}

.box img{
  aspect-ratio:auto;
}

@media only screen and (min-width: 536px) { 
  .flex{
    max-height:600px;
  }
}

@media only screen and (max-width: 535px) { 
  .flex{
    flex-flow:column nowrap;
    max-height:auto;
  }

  .hstamps img{
    width: calc(100% / 6)
  }

  #blinkies img{
    width: calc(100% / 3);
  }

  .flex .box{
    margin:auto;
    width:300px;
    max-width: 100%;
  }
}