* {
  box-sizing: border-box;
}

body {
  margin: auto;
  background: #dce1df;
  color: #4f585e;
  font-family: 'Source Sans Pro', sans-serif;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 200;
  src: url(../assets/sourcesanspro200.ttf) format('truetype');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  src: url(../assets/sourcesanspro300.ttf) format('truetype');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src: url(../assets/sourcesanspro400.ttf) format('truetype');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  src: url(../assets/sourcesanspro600.ttf) format('truetype');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  src: url(../assets/sourcesanspro700.ttf) format('truetype');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 900;
  src: url(../assets/sourcesanspro900.ttf) format('truetype');
}

.topnotes {
  float: left;
  width: 100%;
  margin-bottom: 10px;
  background-color: #f9edbe;
  text-align: center;
  padding: 0 10px;
  font-weight: 400;
  font-size: 1.2em;
}

.shadow {
  filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.4));
}

.dark-mode .shadow {
  filter: invert(100%) drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.4));
}

div.cards {
  margin: 20px auto;
  text-align: center;
}

div.card {
  display: inline-block;
  margin: 0.8em;
  max-width: 18%;
  perspective: 1000;
  position: relative;
  text-align: center;
  transition: all 0.3s 0s ease-in;
  width: 30%;
  z-index: 0;
  border-radius: 10px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

div.card:hover {
  transform: scale(1.05);
  transition: all 0.2s ease-in-out;
  filter: brightness(110%);
}

div.card img {
  height: auto;
  width: 30%;
  margin-top: 10%;
}

div.card:hover img {
  transform: scale(1.20);
  transition: all 0.2s ease-in-out;
}

div.card .card__image-holder {
  background: rgba(0, 0, 0, 0.1);
  height: 0;
  padding-bottom: 50%;
  cursor: pointer;
  border-radius: 10px 10px 0 0;
}

div.card div.card-title {
  padding: 0.6em 0 1.2em 0;
  position: relative;
  z-index: 0;
  border-radius: 10px;
}

div.card div.card-title h2 {
  font-size: 1.6em;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin: 0;
  padding: 0;
}

div.card div.card-title h2 small {
  display: block;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.dark-mode .card .card-title {
  color: #dedfe3;
}

div.card.passed {
  background: radial-gradient(ellipse at center, #02d386 0%, #04aa6d 100%);
  color: #dedede;
}

div.card.failed {
  background: radial-gradient(ellipse at center, #ff2173 0%, #df2167 100%);
  color: #dedede;
}

.light-mode div.card.passed .card__image-holder,
.light-mode div.card.failed .card__image-holder {
  filter: invert(100%) brightness(120%);
}

.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  line-height: 0.8em;
  font-size: 1em;
  background: #54576f;
  color: #f1f1f1;
  z-index: 1;
}

.footer a:link {
  text-decoration: none;
  color: #ddd;
}
.footer a:visited {
  text-decoration: none;
  color: #fff;
}
.footer a:hover {
  text-decoration: none;
  color: #fff;
}
.footer a:active {
  text-decoration: underline;
}

em {
  font-style: normal;
  text-decoration: underline;
}

@media (min-width: 2560px) {
  div.card div.card-title h2 {
    font-size: 2em;
  }
  .topnotes {
    font-size: 1.6em;
  }
  .footer {
    font-size: 1.4em;
  }
}

@media (min-width: 1920px) and (max-width: 2200px) {
  /* CSS for fullhd is at the default */
}

@media (min-width: 1360px) and (max-width: 1600px) {
  div.card {
    margin: 0.6em;
  }
  div.card div.card-title h2 {
    font-size: 1.2em;
  }
  .topnotes {
    font-size: 1em;
  }
  .footer {
    font-size: 0.8em;
  }
}

@media (min-width: 820px) and (max-width: 1360px) {
  div.card {
    margin: 0.6em;
    width: 17%;
  }
  div.card div.card-title h2 {
    font-size: 1em;
  }
  .topnotes {
    font-size: 1em;
  }
  .footer {
    font-size: 0.8em;
  }
}

@media (orientation: portrait) and (min-width: 600px) and (max-width: 820px) {
  div.card {
    margin: 0.4em;
    max-width: 90%;
    width: 30%;
  }
  div.card div.card-title h2 {
    font-size: 1.2em;
  }
  .topnotes {
    font-size: 1em;
  }
  .footer {
    font-size: 0.8em;
  }
}

@media (min-width: 320px) and (max-width: 600px) {
  div.card {
    margin: 0.4em;
    max-width: 90%;
    width: 90%;
  }
  div.card div.card-title h2 {
    font-size: 1.2em;
  }
  .topnotes {
    font-size: 1em;
  }
  .footer {
    font-size: 0.8em;
  }
  em {
    text-decoration: none;
  }
}

@media (max-width: 320px) {
  div.card {
    margin: 0.4em;
    max-width: 90%;
    width: 90%;
  }
  div.card div.card-title h2 {
    font-size: 1em;
  }
  .topnotes {
    font-size: 0.8em;
  }
  .footer {
    font-size: 0.6em;
  }
  em {
    text-decoration: none;
  }
}
