@font-face {
    font-family: 'Beyond The Mountains';
    src: url('../../_fonts/beyondthemountains.eot');
    src: url('../../_fonts/beyondthemountains.eot?#iefix') format('embedded-opentype'),
         url('../../_fonts/beyondthemountains.woff2') format('woff2'),
         url('../../_fonts/beyondthemountains.woff') format('woff'),
         url('../../_fonts/beyondthemountains.ttf') format('truetype'),
         url('../../_fonts/beyondthemountains.svg#BeyondTheMountains') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


html { margin: 0 auto; padding: 0; }

body {
  background-image: url("../img/ak_back.jpg");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
  font-family: 'Avenir Next';
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  background-attachment: fixed;
  margin: 0 auto;
  padding: 0;
  overflow-x: hidden;
}


#ak { display: block; width: 100vw; height: 100vh; background: rgba(255,255,255,0.35); position: fixed; }

ul { position: relative; display: flex; margin: 0; padding: 20px; flex-wrap: wrap; width: 100vw; min-height: calc(100vh - 40px); align-items: center;  justify-items: space-around; justify-content: space-between; list-style-type: none }
ul li { display: flex; margin: 10px; padding: 0; width: calc(16% - 40px);   border: 0px solid red; box-sizing: border-box; text-align: center;  align-items: center; align-content: center; justify-items: center; justify-content: center; font-family: 'Beyond The Mountains';   }
ul li span { align-self: center; width: 110px; height: 110px; vertical-align: middle; color: #000; border-radius: 0%; font-size: 34px; font-weight: 700; line-height: 127px; display: block;  background-image: url('../img/star2.png'); background-size: cover; }
ul li a { text-decoration: none; -webkit-transition: 0.3s ease-in-out; -moz-transition: 0.3s ease-in-out; -o-transition: 0.3s ease-in-out; transition: 0.3s ease-in-out;  }

ul li span.s1 { margin-top: -45x; margin-left: 32px; transform: rotate(-10deg); }
ul li span.s2 { margin-top: 32px; transform: rotate(10deg); width: 120px; height: 120px; line-height: 137px; }
ul li span.s3 { margin-top: -34px; margin-left: -45px; transform: rotate(-5deg); }
ul li span.day_active { width: 200px; height: 200px; line-height: 226px; font-size: 62px; background-image: url('../img/star.png'); color: #fff; text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000; }
ul li span.day_over { opacity: 1; background-image: url('../img/star1.png'); color: #000; }

ul li a span { -webkit-transition: 0.3s ease-in-out; -moz-transition: 0.3s ease-in-out; -o-transition: 0.3s ease-in-out; transition: 0.3s ease-in-out; }
ul li a:hover span { transform: scale(1.3);  z-index: 2 }

#content { display: none; position: absolute; width: 600px; height: 600px; background-color: #fff; left: 50%; top: 50%; margin-left: -300px; margin-top: -300px; border-radius: 30px; padding: 30px; box-sizing: border-box; font-family: 'Avenir Next'; overflow-y: scroll; background-image: url('../img/star4.png'); background-position: left -25% top -12.5%; background-repeat: no-repeat; background-size: 320px auto; }
#content h1 { font-family: 'Beyond The Mountains'; color: #C5383F; font-size: 36px; line-height: 44px; text-align: center; }
#content i { font-weight: 400; text-align: center; }

.center { text-align: center; }
.button { display: inline-block; border: none; color: #000; font-weight: 600; padding: 8px 20px; text-transform: uppercase; line-height: 26px; font-size: 16px; vertical-align: middle; background-color: #fff; cursor: pointer;     border-radius: 25px; letter-spacing: 2px; border: 2px solid #C5383F; text-decoration: none; }


@media screen and (max-width: 1499px) { ul li { width: calc(20% - 40px);  }}

@media screen and (max-width: 1023px) {
 ul { padding: 15px; box-sizing: border-box; }
 ul li { width: calc(25% - 40px);  }
}

@media screen and (max-width: 899px) { ul li { width: calc(33% - 40px);  }}


@media screen and (max-width: 699px) {

#content { width: 100%; height: 100%; left: 0; top: 0; margin-left: 0; margin-top: 0; border-radius: 0; }


}


@media screen and (max-width: 639px) {
 ul li { width: calc(49% - 20px);  }
 ul li span.s1, ul li span.s2, ul li span.s3 { margin: 0; }
 ul li span.day_active { width: 175px; height: 175px; line-height: 207px; }
}