#modal {
  position: fixed;
  z-index: 1000000;
  top: -100%;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 140, 65, 0.9);
}
#modal .wrapper {
  height: 100%;
  width: 100%;
  display: table;
}
#modal .wrapper .content {
  display: table-cell;
  vertical-align: middle;
  position: relative;
  height: 100%;
  width: 100%;
}
#modal .wrapper .content .close {
  position: absolute;
  height: 50px;
  width: 50px;
  top: 15px;
  right: 15px;
  transform: rotate(45deg);
}
#modal .wrapper .content .close:before {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  margin-left: -1px;
  height: 0%;
  width: 2px;
  background: rgba(255, 255, 255, 0.7);
}
#modal .wrapper .content .close:after {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  margin-top: -1px;
  width: 0%;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
}
#modal .wrapper .content .box {
  padding: 50px;
  width: 500px;
  max-width: 100%;
  background: white;
  border-radius: 5px;
  margin: 0 auto;
  transform: scale(0);
}
#modal .wrapper .content .box h2 {
  font-size: 25px;
  line-height: 35px;
  font-weight: 300;
  margin-bottom: 25px;
}
#modal .wrapper .content .box p {
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 0px;
}
#modal .wrapper .content .box p:last-of-type {
  margin-bottom: 25px;
}
#modal .wrapper .content .box a.button {
  display: inline-block;
  padding: 15px;
  color: white;
  text-decoration: none;
  background-color: #305dd4;
  border-radius: 5px;
  margin-top: 25px;
  box-shadow: inset 0 0 0 #1b3883;
  transition: .25s ease-in-out;
}
#modal .wrapper .content .box a.button:hover {
  box-shadow: inset 500px 0 0 #1b3883;
}

@media screen and (max-height: 760px){
  #modal .wrapper .content .box img {
    width: 50% !important;
    float: right;
    margin-left: 15px;
    margin-top: -50px;
  }
  #modal .wrapper .content .box .jatekbutton {
    clear: both;
    margin-top: 15px;
  }
}


#modal.active {
  top: 0%;
  animation: fadeIn .25s ease-in-out;
}
#modal.active.moveOut {
  animation: fadeOut .25s ease-in-out;
}
#modal.active .wrapper .content .box {
  -webkit-animation: scaleUp 750ms .25s linear both;
  animation: scaleUp 750ms .25s linear both;
}
#modal.active .wrapper .content .close:before {
  height: 100%;
  transition: .25s .5s ease-in-out;
}
#modal.active .wrapper .content .close:after {
  width: 100%;
  transition: .25s .25s ease-in-out;
}
#modal.active .wrapper .content .close:hover {
  cursor: pointer;
}
#modal.active .wrapper .content .close:hover:before, #modal.active .wrapper .content .close:hover:after {
  transition: .25s 0s ease-in-out;
  background: white;
}

#calendar {
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;
  /*border-top: 1px solid #c6c6c6;*/
  /*border-left: 1px solid #c6c6c6;*/
  position: relative;
  z-index: 0;
}
#calendar #day-labels {
  width: 100%;
  /*border-bottom: 1px solid #c6c6c6;*/
  /*border-right: 1px solid #c6c6c6;*/
  overflow: auto;
}
#calendar #day-labels .label {
  /*width: 14.285714286%;*/
  width: calc(100%/13);
  /*float: left;*/
  text-align: right;
  padding: 10px;
  font-size: 18px;
  letter-spacing: 1px;
  color: #7a7a7a;
  background: rgba(255, 255, 255, 0.95);
}
#calendar .week {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
#calendar .week .day {
  width: calc(100%/12 - 4px);
  padding-bottom: 80px;
  /*border: 1px solid #c6c6c6;*/
  /*border-collapse: collapse;*/
  height: 0;
  /*float: left;*/
  position: relative;
  background: rgba(0, 0, 0, 0.05);
  margin-bottom: 4px;
}

#calendar .week .day .date {
  display: block;
  position: absolute;
  top: 5px;
  left: 5px;
  border-radius: 100%;
  height: 25px;
  width: 25px;
  text-align: center;
  line-height: 25px;
  font-size: 14px;
  color: #7a7a7a;
}
#calendar .week .day .date.today {
  color: white;
  background: #cd1b1b;
}
#calendar .week .day .surprise {
  display: none;
}
#calendar .week .day#christmas-day {
  text-align: center;
}
#calendar .week .day#christmas-day svg {
  height: 100%;
  fill: #348834;
}
#calendar .week .day#christmas-day:hover svg {
  fill: #cfdef4;
}
#calendar .week .day.past {
  background-image: url('data:image/svg+xml;utf8,<svg version="1.1" id="ajandek" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="506.029px" height="506.029px" viewBox="0 0 506.029 506.029" style="fill:rgba(0,0,0,.1);enable-background:new 0 0 506.029 506.029;" xml:space="preserve"><g><path d="M382.772,154.028c9.062-6.44,17.756-13.608,25.723-21.574c16.701-16.701,27.873-37.25,31.455-57.861c3.93-22.593-1.836-43.57-15.814-57.55C412.987,5.894,397.882,0,380.454,0c-24.816,0-50.961,11.912-71.73,32.681c-33.236,33.238-52.611,79.119-63.037,111.861c-7.72-32.901-23.103-77.322-53.009-107.229c-16.048-16.046-36.558-24.285-55.924-24.285c-15.827,0-30.89,5.502-42.13,16.743c-24.993,24.994-21.616,68.893,7.543,98.052c10.396,10.396,22.549,19.031,35.36,26.206H29.015v128h32v224h384V282.027h32v-128H382.772z M334.177,58.137C348.04,44.275,365.339,36,380.452,36c5.35,0,12.854,1.127,18.225,6.499c13.016,13.014,5.707,43.154-15.639,64.499c-21.975,21.973-51.531,37.084-77.217,47.03h-25.336C289.77,125.254,306.515,85.8,334.177,58.137z M113.981,74.473c-0.351-4.56-0.025-13.124,6.098-19.247c5.122-5.122,11.894-6.198,16.674-6.198l0,0c10.629,0,21.734,5.008,30.466,13.74c16.936,16.936,30.883,43.886,40.334,77.938c0.255,0.92,0.504,1.835,0.748,2.743c-0.908-0.243-1.823-0.492-2.743-0.748c-34.052-9.452-61.001-23.399-77.937-40.335C119.708,94.453,114.737,84.286,113.981,74.473z M221.015,474.027h-128v-208h128V474.027z M221.015,250.028h-160v-64h160V250.028z M413.015,474.027h-128v-208h128V474.027z M445.015,250.028h-160v-64h160V250.028z"/></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></svg>');
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center 75%;
}
#calendar .week .day.past:hover {
  background-image: url('data:image/svg+xml;utf8,<svg version="1.1" id="ajandek" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="506.029px" height="506.029px" viewBox="0 0 506.029 506.029" style="fill:rgba(255,255,255,1);enable-background:new 0 0 506.029 506.029;" xml:space="preserve"><g><path d="M382.772,154.028c9.062-6.44,17.756-13.608,25.723-21.574c16.701-16.701,27.873-37.25,31.455-57.861c3.93-22.593-1.836-43.57-15.814-57.55C412.987,5.894,397.882,0,380.454,0c-24.816,0-50.961,11.912-71.73,32.681c-33.236,33.238-52.611,79.119-63.037,111.861c-7.72-32.901-23.103-77.322-53.009-107.229c-16.048-16.046-36.558-24.285-55.924-24.285c-15.827,0-30.89,5.502-42.13,16.743c-24.993,24.994-21.616,68.893,7.543,98.052c10.396,10.396,22.549,19.031,35.36,26.206H29.015v128h32v224h384V282.027h32v-128H382.772z M334.177,58.137C348.04,44.275,365.339,36,380.452,36c5.35,0,12.854,1.127,18.225,6.499c13.016,13.014,5.707,43.154-15.639,64.499c-21.975,21.973-51.531,37.084-77.217,47.03h-25.336C289.77,125.254,306.515,85.8,334.177,58.137z M113.981,74.473c-0.351-4.56-0.025-13.124,6.098-19.247c5.122-5.122,11.894-6.198,16.674-6.198l0,0c10.629,0,21.734,5.008,30.466,13.74c16.936,16.936,30.883,43.886,40.334,77.938c0.255,0.92,0.504,1.835,0.748,2.743c-0.908-0.243-1.823-0.492-2.743-0.748c-34.052-9.452-61.001-23.399-77.937-40.335C119.708,94.453,114.737,84.286,113.981,74.473z M221.015,474.027h-128v-208h128V474.027z M221.015,250.028h-160v-64h160V250.028z M413.015,474.027h-128v-208h128V474.027z M445.015,250.028h-160v-64h160V250.028z"/></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></svg>');
}
/*#calendar .week .day:first-of-type, #calendar .week .day:last-of-type {
  background-color: rgba(235, 235, 235, 0.95);
}
#calendar .week .day:first-of-type.noDate:hover, #calendar .week .day:last-of-type.noDate:hover {
  background-color: rgba(235, 235, 235, 0.95);
  cursor: default;
}*/
#calendar .week .day:hover {
  background-color: #008C41;
  cursor: pointer;
}
#calendar .week .day:hover.noDate {
  background: rgba(255, 255, 255, 0.95);
  cursor: default;
}
#calendar .week .day:hover .date {
  color: #fff;
}
#calendar .week .day:hover .date.today {
  background: #fff;
  color: #008C41;
}

@keyframes fadeIn {
  0% {
    top: 0%;
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@-webkit-keyframes scaleUp {
  0% {
    -webkit-transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  3.2% {
    -webkit-transform: matrix3d(0.345, 0.098, 0, 0, 0.065, 0.345, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(0.345, 0.098, 0, 0, 0.065, 0.345, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  4.5% {
    -webkit-transform: matrix3d(0.485, 0.163, 0, 0, 0.107, 0.485, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(0.485, 0.163, 0, 0, 0.107, 0.485, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  6.41% {
    -webkit-transform: matrix3d(0.673, 0.242, 0, 0, 0.158, 0.673, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(0.673, 0.242, 0, 0, 0.158, 0.673, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  9.01% {
    -webkit-transform: matrix3d(0.88, 0.288, 0, 0, 0.188, 0.88, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(0.88, 0.288, 0, 0, 0.188, 0.88, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  12.71% {
    -webkit-transform: matrix3d(1.064, 0.241, 0, 0, 0.159, 1.064, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1.064, 0.241, 0, 0, 0.159, 1.064, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  13.51% {
    -webkit-transform: matrix3d(1.087, 0.221, 0, 0, 0.146, 1.087, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1.087, 0.221, 0, 0, 0.146, 1.087, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  17.92% {
    -webkit-transform: matrix3d(1.139, 0.105, 0, 0, 0.07, 1.139, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1.139, 0.105, 0, 0, 0.07, 1.139, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  18.92% {
    -webkit-transform: matrix3d(1.137, 0.082, 0, 0, 0.055, 1.137, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1.137, 0.082, 0, 0, 0.055, 1.137, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  25.23% {
    -webkit-transform: matrix3d(1.075, -0.001, 0, 0, -0.001, 1.075, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1.075, -0.001, 0, 0, -0.001, 1.075, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  29.03% {
    -webkit-transform: matrix3d(1.032, -0.015, 0, 0, -0.01, 1.032, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1.032, -0.015, 0, 0, -0.01, 1.032, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  31.43% {
    -webkit-transform: matrix3d(1.012, -0.017, 0, 0, -0.011, 1.012, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1.012, -0.017, 0, 0, -0.011, 1.012, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  34.63% {
    -webkit-transform: matrix3d(0.994, -0.014, 0, 0, -0.01, 0.994, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(0.994, -0.014, 0, 0, -0.01, 0.994, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  40.14% {
    -webkit-transform: matrix3d(0.985, -0.007, 0, 0, -0.005, 0.985, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(0.985, -0.007, 0, 0, -0.005, 0.985, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  56.46% {
    -webkit-transform: matrix3d(1, 0.001, 0, 0, 0.001, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1, 0.001, 0, 0, 0.001, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  62.36% {
    -webkit-transform: matrix3d(1.002, 0.001, 0, 0, 0, 1.002, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1.002, 0.001, 0, 0, 0, 1.002, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  81.48% {
    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  84.68% {
    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  100% {
    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
}
@keyframes scaleUp {
  0% {
    -webkit-transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  3.2% {
    -webkit-transform: matrix3d(0.345, 0.098, 0, 0, 0.065, 0.345, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(0.345, 0.098, 0, 0, 0.065, 0.345, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  4.5% {
    -webkit-transform: matrix3d(0.485, 0.163, 0, 0, 0.107, 0.485, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(0.485, 0.163, 0, 0, 0.107, 0.485, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  6.41% {
    -webkit-transform: matrix3d(0.673, 0.242, 0, 0, 0.158, 0.673, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(0.673, 0.242, 0, 0, 0.158, 0.673, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  9.01% {
    -webkit-transform: matrix3d(0.88, 0.288, 0, 0, 0.188, 0.88, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(0.88, 0.288, 0, 0, 0.188, 0.88, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  12.71% {
    -webkit-transform: matrix3d(1.064, 0.241, 0, 0, 0.159, 1.064, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1.064, 0.241, 0, 0, 0.159, 1.064, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  13.51% {
    -webkit-transform: matrix3d(1.087, 0.221, 0, 0, 0.146, 1.087, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1.087, 0.221, 0, 0, 0.146, 1.087, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  17.92% {
    -webkit-transform: matrix3d(1.139, 0.105, 0, 0, 0.07, 1.139, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1.139, 0.105, 0, 0, 0.07, 1.139, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  18.92% {
    -webkit-transform: matrix3d(1.137, 0.082, 0, 0, 0.055, 1.137, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1.137, 0.082, 0, 0, 0.055, 1.137, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  25.23% {
    -webkit-transform: matrix3d(1.075, -0.001, 0, 0, -0.001, 1.075, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1.075, -0.001, 0, 0, -0.001, 1.075, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  29.03% {
    -webkit-transform: matrix3d(1.032, -0.015, 0, 0, -0.01, 1.032, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1.032, -0.015, 0, 0, -0.01, 1.032, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  31.43% {
    -webkit-transform: matrix3d(1.012, -0.017, 0, 0, -0.011, 1.012, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1.012, -0.017, 0, 0, -0.011, 1.012, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  34.63% {
    -webkit-transform: matrix3d(0.994, -0.014, 0, 0, -0.01, 0.994, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(0.994, -0.014, 0, 0, -0.01, 0.994, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  40.14% {
    -webkit-transform: matrix3d(0.985, -0.007, 0, 0, -0.005, 0.985, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(0.985, -0.007, 0, 0, -0.005, 0.985, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  56.46% {
    -webkit-transform: matrix3d(1, 0.001, 0, 0, 0.001, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1, 0.001, 0, 0, 0.001, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  62.36% {
    -webkit-transform: matrix3d(1.002, 0.001, 0, 0, 0, 1.002, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1.002, 0.001, 0, 0, 0, 1.002, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  81.48% {
    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  84.68% {
    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  100% {
    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
}