@font-face {
  font-display: swap;
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  src: url("/plus-jakarta-sans-v12-latin-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  src: url("/plus-jakarta-sans-v12-latin-700.woff2") format("woff2");
}

@keyframes guru {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1em);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes shadow {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.7);
  }
  100% {
    transform: scale(1);
  }
}

* {
  line-height: 1.6;
}

.guru-wrapper {
  display: inline-flex;
  flex-direction: column;
}

.landing-row {
  display: flex;
  gap: 3em;
}

h1 {
  margin: 1em 0;
}

h2 {
  margin: 2em 0 1em 0;
}

.guru-wrapper .guru {
  animation: guru 6s linear infinite;
  user-select: none;
  padding-top: 6em;
}

@media (max-width: 30em) {
  .landing-row {
    flex-direction: column;
    gap: 0;
  }
  .guru-wrapper {
    margin: 0 auto;
  }
  .guru-wrapper .guru {
    padding-top: 0;
  }
}

.guru-wrapper .shadow {
  display: block;
  margin: 1em auto;
  animation: shadow 6s linear infinite;
  user-select: none;
  fill: black;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: max(1vw, 1em);
  margin: 0 1em;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}

.row-3 {
  display: flex;
  gap: 1em;
}

.row-3 > * {
  width: 33.33%;
  max-width: 33.33%;
  display: flex;
  flex-direction: column;
}

.row-3 > * > *:last-child {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 55em) {
  .row-3 {
    flex-direction: column;
  }
  .row-3 > * {
    width: 100%;
    max-width: 100%;
  }
}

a {
  color: inherit;
  text-decoration: underline;
}

a:hover {
  color: #494949;
}

.content-wrapper {
  max-width: 80rem;
  margin: max(3vh, 1.5rem) auto;
}

header nav {
  user-select: none;
  text-transform: uppercase;
}

header nav a {
  text-decoration: none;
}

@media (max-width: 27em) {
  .hide-mobile {
    display: none;
  }
  body {
    margin: 0 0.5em;
  }
  nav ul {
    justify-content: center;
  }
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: max(2vw, 1em);
}

header nav .logo {
  width: auto;
  transition: 0.1s transform;
  transform: scale(2);
  margin-right: 0.5em;
}

.logo:hover {
  transform: scale(1.9);
}

footer {
  font-size: 0.8em;
  color: #a5a5a5;
}

footer nav {
  display: flex;
  justify-content: center;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-spacing: 0;
}

th {
  white-space: nowrap;
}

th,
td {
  padding: 0.5em;
  text-align: center;
  border-bottom: 0.3em solid white;
}

td.grow {
  width: 100%;
}

table th:not(:last-child),
table td:not(:last-child) {
  border-right: 0.3em solid white;
}

tbody th {
  font-weight: bold;
  text-align: left;
}

thead th {
  background-color: #ebebeb;
}

tr:nth-child(even) {
  background-color: #ebebeb;
}

tr:nth-child(odd) {
  background-color: #f8f8f8;
}

.result-row {
  margin-bottom: 0.3em;
  padding: 0.5em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  font-weight: normal;
  background-color: #ebebeb;
  position: relative;
}

.result-row:nth-child(odd) {
  background-color: #f8f8f8;
}

.result-row > *:nth-child(1) {
  text-align: right;
  flex-direction: row-reverse;
}

.result-row > *:nth-child(1),
.result-row > *:nth-child(3) {
  width: 50%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 32em) {
  .result-row > *:nth-child(1),
  .result-row > *:nth-child(3) {
    flex-direction: column;
    align-items: flex-start;
  }
  .result-row > *:nth-child(1) {
    align-items: flex-end;
  }
}

.result {
  background-color: #363636;
  color: white;
  padding: 0 1em;
  min-width: 1.5em;
  text-align: center;
}

.rating,
.side-note {
  color: #4d4d4d;
  font-size: 0.8em;
}

.result-row .side-note {
  position: absolute;
  bottom: 0;
  right: 0.3em;
}

.result-row > *:nth-child(1) .rating {
  margin-right: 0.3em;
}

.result-row > *:nth-child(3) .rating {
  margin-left: 0.3em;
}

.negative {
  color: #ff5858;
}

.positive {
  color: #11ca00;
}

.star {
  height: 1em;
  width: auto;
}
.star.yellow {
  fill: #ffcb15;
  stroke: #a78200;
}
.star.gray {
  fill: #cbcbcb;
}

.hidden {
  display: none;
}
