@import url('https://fonts.googleapis.com/css?family=Rajdhani&display=swap');
@import url('https://fonts.googleapis.com/css?family=Quicksand&display=swap');


* {

  padding: 0;
  margin: 0;
  box-sizing: border-box;
  color: #ffffff;
}

body {
  background-color: #111111;
}

.card {
  margin: auto;
  float: none;
  margin-bottom: 1vh;
  margin-top: 2vh;
  padding-bottom: 1vh;
  background-color: rgba(245, 245, 245, 0);
  border: none;
}

.nameday_box {
  margin-top: 1vh;
  display: flex;
  //align-items: stretch;
  align-content: space-between;
  //padding-left: 10vw;
  //padding-right: 10vw;

}

.nameday_dates {
  display: flex;
  align-items: center;
}

.badge-time-nameday {
  margin: auto;
  margin-top: 1vh;
  //padding-left: 150px;
  //padding-right: 150px;
  float: none;
  background-color: #111111;
  display: flex;
  justify-content: center;
  font-size: small;
  line-height: 1.6;
}


.badge-nameday {
  margin: auto;
  padding-left: 0;
  padding-right: 0;
  //margin-top: 3vh;
  //margin-bottom: 10vh;
  float: none;
  background-color: #202020;
  color: lightgreen;
  display: flex;
  justify-content: center;
  font-size: small;
  line-height: 1.6;
}

.badge-primary {
  font-family: 'Quicksand', sans-serif;
  margin: auto;
  background-color: #202020;
  display: flex;
  justify-content: center;
  font-size: large;
  //line-height: 1.6;
}

.badge-time {
  margin: auto;
  margin-top: 1vh;
  padding-left: 150px;
  padding-right: 150px;
  float: none;
  background-color: #111111;
  display: flex;
  justify-content: center;
  line-height: 1.6;
  font-size: medium;
}



.badge-age {
  margin: auto;
  margin-top: 3vh;
  margin-bottom: 10vh;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 2px;
  padding-right: 2px;
  //float: none;
  background-color: #202020;
  color: #ffc107;
  display: flex;
  justify-content: center;
  font-size: large;
  line-height: 1.6;
}

.countdown {
  width: 60vw;
  display: flex;
  justify-content: space-around;
  gap: 0px;
  position: relative;
  transform: translate(-50%, -50%);
  //top: 60%;
  left: 50%;
}

.box {
  width: 11vmin;
  height: 15vmin;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  position: relative;
  box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.5);
  font-size: 16px;
}

.box:after {
  content: "";
  position: absolute;
  background-color: rgba(255, 255, 255, 0.0);
  height: 200%;
  width: 50%;
  left: 0;
}

span.num {
  background-color: #202020;
  height: 100%;
  width: 100%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 5em;
}

span.text {
  font-size: 1.5em;
  font-family: 'Rajdhani', sans-serif;
  background-color: #ffc107;
  color: black;
  font-weight: bold !important;
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.5em 0;
  font-weight: 400;
}

@media screen and (max-width: 1024px) {
  .countdown {
    width: 85vw;
  }

  .box {
    height: 26vmin;
    width: 26vmin;
    font-size: 12px;
  }
}

@media screen and (max-width: 768px) {
  .countdown {
    width: 90vw;
    flex-wrap: wrap;
    gap: 3px;
  }

  .box {
    width: calc(50% - 40px);
    height: 30vmin;
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .countdown {
    gap: 15px;
  }

  .box {
    width: 15%;
    height: 25vmin;
    font-size: 8px;
  }

  .span.text {
    font-size: 1.5em;
  }
}