@font-face {
  font-family: "Siemens Sans";
  src: url('./fonts/Siemens-Sans-Roman.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: "Siemens Sans Bold";
  src: url('./fonts/Siemens-Sans-Bold.ttf') format('truetype');
  font-weight: 700;
}

/* ROOT */
:root {
  --c-white: #ffffff;
  --c-blue: #000028;
  --c-turquoise: #0cc;
  --c-highlight: #74fbbe;
  --c-grey: #a5a5a5;

  --f-heading: "Siemens Sans Bold",
    sans-serif;
  --f-body: "Siemens Sans",
    sans-serif;

  --base: 1rem;
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  font-size: 62.5%;
  font-family: var(--f-body);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  scroll-behavior: smooth;
}

@media screen and (max-width: 760px) {
  :root {
    --base: 0.8rem;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: calc(var(--base) * 2);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

button {
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  border: none;
  border-radius: 0;
  background: none;
  padding: 0;
  display: flex;
  cursor: pointer;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* COMPONENTS */
.container {
  max-width: 128rem;
  margin-inline: auto;
  padding-left: calc(var(--base) * 2);
  padding-right: calc(var(--base) * 2);
}

.button {
  display: flex;
  background-color: var(--c-white);
  color: var(--c-blue);
  font-weight: 700;
  padding: calc(var(--base) * 1) calc(var(--base) * 2.2);
  font-family: var(--f-heading);
}

/* GENERAL */
body {
  background-color: var(--c-blue);
  color: var(--c-white);
}

h1,
h2 {
  font-family: var(--f-heading);
  font-weight: 700;
}

h1 {
  font-size: calc(var(--base) * 4);
}

h2 {
  font-size: calc(var(--base) * 4);
  text-align: center;
  margin-bottom: calc(var(--base) * 8);
}

/* HEADER */
header {
  padding: calc(var(--base) * 4) 0;
}

@media screen and (max-width: 760px) {
  header {
    padding: calc(var(--base) * 4) 0 calc(var(--base) * 1);
  }
}

header .header__top {
  display: flex;
  align-items: center;
}

header .header__logo {
  flex: 1;
}

header .header__logo img {
  max-width: calc(var(--base) * 12);
}

header .header__top__links {
  display: flex;
  gap: calc(var(--base) * 2);
  font-weight: 700;
  font-family: var(--f-heading);
}

header .header__top__links a {
  display: flex;
  white-space: nowrap;
  align-items: center;
}

header .header__top__links img {
  width: calc(var(--base) * 2);
  margin-top: calc(var(--base) * -0.2);
}

header .header__top__links span {
  margin-left: calc(var(--base) * 1);
}

header .header__bottom {
  display: flex;
  justify-content: space-between;
  font-size: calc(var(--base) * 1.8);
  padding: calc(var(--base) * 4) 0 0;
}

@media screen and (max-width: 760px) {
  header .header__bottom {
    flex-direction: column;
    gap: calc(var(--base) * 2);
    padding: calc(var(--base) * 2) 0 0;
  }
}

header .header__nav--primary {
  font-weight: 700;
  font-family: var(--f-heading);
}

header .header__bottom ul {
  display: flex;
  gap: calc(var(--base) * 3);
}

header nav a:hover {
  color: var(--c-highlight);
}

/* BREADCRUMBS */
#breadcrumbs .breadcrumbs__inner {
  display: flex;
  gap: calc(var(--base) * 3);
}

#breadcrumbs nav ul {
  display: flex;
  align-items: center;
  gap: calc(var(--base) * 3);
}

#breadcrumbs nav li {
  display: flex;
  align-items: center;
  gap: calc(var(--base) * 3);
}

@media screen and (max-width: 760px) {
  #breadcrumbs nav li:not(:first-of-type):not(:last-of-type) {
    display: none;
  }
}

#breadcrumbs nav li span {
  display: inline-flex;
  font-size: calc(var(--base) * 3);
}

@media screen and (max-width: 760px) {
  #breadcrumbs img {
    max-width: 16px;
  }
}

#breadcrumbs a:hover {
  color: var(--c-highlight);
}

/* GAME */
#game {
  margin: calc(var(--base) * 10) 0;
}

@media screen and (max-width: 760px) {
  #game {
    margin: calc(var(--base) * 6) 0;
  }
}

#game .game__inner {
  display: flex;
  flex-direction: column;
  gap: calc(var(--base) * 4);
}

#game h1 {
  margin-bottom: calc(var(--base) * 1);
}

#game div[class^="game__content--"] {
  max-width: calc(var(--base) * 64);
  margin-inline: auto;
}

#game div[class^="game__content--"] p {
  margin: calc(var(--base) * 2) auto;
}

#game div[class^="game__content--"] p:first-of-type {
  margin-top: 0;
}

#game div[class^="game__content--"] p:last-of-type {
  margin-bottom: 0;
}

#game .game__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(var(--base) * 2);
}

#game .game__game {
  text-align: center;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--base) * 1.6);
}

#game .game-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

#game iframe {
  transform-origin: top center;
  max-width: 100%;
  aspect-ratio: 1240 / 697;
}

#game .game__buttons {
  width: 100%;
  display: flex;
  justify-content: center;
  max-width: 102.4rem;
}

#game .game__buttons button {
  width: calc(var(--base) * 2.5);
  height: calc(var(--base) * 2.5);
}

#game .game__buttons button.hidden {
  display: none;
}

#game .game__buttons svg {
  width: 100%;
  height: 100%;
}

#game .game__tag {
  border: 1px solid var(--c-turquoise);
  font-weight: 700;
  font-family: var(--f-heading);
  font-size: calc(var(--base) * 1.6);
  border-radius: 100px;
  padding: calc(var(--base) * 0.8) calc(var(--base) * 4);
}

#game .game__content--bottom {
  font-size: calc(var(--base) * 1.8);
}

/* RELATED */
#related {
  margin: calc(var(--base) * 10) 0;
}

#related .related__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: calc(var(--base) * 4);
  row-gap: calc(var(--base) * 8);
}

@media screen and (max-width: 960px) {
  #related .related__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#related .related__list .related__item {
  display: flex;
  flex-direction: column;
  gap: calc(var(--base) * 1.6);
  height: 100%;
}

#related .related__list .related__item h5 {
  font-size: calc(var(--base) * 2.2);
  font-family: var(--f-heading);
  margin-top: calc(var(--base) * 1.2);
}

#related .related__list .related__item a {
  display: block;
  overflow: hidden;
}

#related .related__list .related__item img {
  transition: 0.2s;
}

#related .related__list .related__item a:hover {
  text-decoration: underline;
}

#related .related__list .related__item a:hover img {
  transform: scale(1.05);
}

#related .related__list .related__item a:last-of-type,
#related .related__list .related__item a.related__item__link {
  color: var(--c-turquoise);
  display: inline-flex;
  align-items: center;
  margin-top: auto;
}

#related .related__list .related__item a:last-of-type:before,
#related .related__list .related__item a.related__item__link:before {
  content: url('./icons/icon-arrow.svg') ' ';
  display: inline-flex;
  margin-right: calc(var(--base) * 0.8);
  transform: rotate(-45deg);
}

/* RESOURCES */
#resources {
  margin: calc(var(--base) * 10) 0;
  font-size: calc(var(--base) * 1.8);
}

#resources .resources__list {
  padding: 0 calc(var(--base) * 4);
  display: flex;
  flex-direction: column;
  gap: calc(var(--base) * 0.6);
}

#resources .resources__list li {
  list-style-position: inside;
  display: flex;
  align-items: center;
}

#resources .resources__list a {
  color: var(--c-turquoise);
}

#resources .resources__list li::before {
  content: url('./icons/icon-download.svg') ' ';
  margin-right: calc(var(--base) * 0.8);
}

/* FOOTER */
footer {
  padding: calc(var(--base) * 4) 0;
  font-size: calc(var(--base) * 1.6);
}

footer .footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: calc(var(--base) * 4);
}

footer .footer__nav {
  max-width: 80rem;
}

footer .footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: calc(var(--base) * 2);
}

footer a {
  text-decoration: underline;
}

footer .footer__bottom {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

footer .footer__socials {
  display: flex;
  gap: calc(var(--base) * 2);
}