* {
  scroll-behavior: smooth;
  font-family: Arial, Helvetica, sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif !important;
}

h1, h2 {
  font-family: Arial, Helvetica, sans-serif !important;
}

html {
  scrollbar-color: hsl(29, 57%, 50%) #e1b790;
  scrollbar-width: thin;
}

body {
  background-color: #e1b790;
}

::-webkit-scrollbar {
  background: #e1b790;
  width: 1.5rem;
}

::-webkit-scrollbar-thumb {
  background: hsl(29, 57%, 50%);
  border: #e1b790 0.5rem solid;
  border-radius: 2rem;
}


p {
  font-family: Arial, Helvetica, sans-serif;
}
/* Essentially you scroll and they fade in/out to give the illusion that the 'text changes' */
/* Since the background colour doesn't change, it's an optical illusion. */
/* in reality you scroll over the page and the elements */

#avatar-intro-bg {
  height: 100vh;

  /* Colour code generated on: https://cssgradient.io/ */
  background: radial-gradient(
    circle,
    rgba(146, 28, 19, 1) 0%,
    rgba(33, 2, 3, 1) 100%
  );

  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  overflow-y: auto; /* Makes content inside scrollable to replicate effect we want */
  /* https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-y */
}

.element-container {
  display: flex;
  height: 100vh; /* Each element container takes the most space it can */

  /* for now since we have the text only, REMEMBER ALL THE ELEMENTS ARE CENTRED */
  justify-content: center;
  align-items: center;
}

/* default, hide it */
.fade-in {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* We can just fade in on hover since it's the same as saying it's 'focused' */
.fade-in:hover {
  opacity: 1;
}

@media (width < 48rem) {
  #avatar-intro-bg {
    height: auto;
    background-size: contain;
    overflow-y: auto;
  }

  /* Stack elements vertically */
  .element-container {
    flex-direction: column;
  }

  /* Ignore fade animation */
  .fade-in {
    opacity: 1;
  }
}

.element-text-big {
  color: rgb(140, 122, 100); /* Stole the colour from the intro */

  font-size: clamp(
    5em,
    15vw,
    30em
  ); /* Trick so font resizes based on screen size */
  text-align: center;
}

/* This is the frist paragraph. 50/50 img and text */
#crc-comp-gen {
  padding-top: 5vh;
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
}

#crc-text-container {
  width: 50%;
  font-size: 2rem;
}

#crc-img-container {
  padding: 0;
  margin: 0;
  width: 50%;
}

#crc-img {
  height: auto;
  width: 100%;
}

/* Title in between */

#multifaceted {
  margin-top: 0;
  padding-top: 0;
  text-align: center;
  margin-bottom: 7vh;

  font-size: clamp(3em, 4em, 5em);
}

/* This is the next section. Describes the parts */
#crc-comp-parts {
  display: flex;
  justify-content: center;
  align-items: center;

  /* So they don't scale off page */
  margin-left: 1%;
  margin-right: 1%;
}

#crc-comp-description {
  padding: 20px;
}

#crc-comp-title {
  padding: 20px;
}

.horizontal-element {
  margin: 0.625rem;
  border-radius: 0.3125rem;
  border: blue solid 0.3125rem; /* debug */
  background-repeat: no-repeat;
  width: 25%;
  height: 50vh;

  transition-duration: 0.5s;
}

.horizontal-element-h2 {
  text-align: center;
  font-size: 2rem;
}

.horizontal-element:hover {
  transform: scale(1.1);
}

.horizontal-element-text {
  padding: 15px;
  text-align: center;
  font-size: 2rem;
  height: 50%;
}

/* Mobile styles */
@media (max-width < 48rem) {
  /* Change the flex to vertical on mobile since they're tighter */
  .element-container,
  #crc-comp-gen,
  #crc-comp-parts {
    flex-direction: column;
  }

  #crc-text-container,
  #crc-img-container {
    width: 100%; /* Full width on mobile */
    text-align: center; /* It looks better centered */
    height: 100vh;
  }

  #crc-comp-description {
    padding-right: 0.625rem;
    padding-left: 0.625rem;
  }

  .horizontal-element {
    width: 90%;
    height: auto;
    margin: 1.25rem 0;
  }

  .horizontal-element-text {
    height: auto;
  }
}

#TakTik {
  padding-top: 10vh;
  font-size: 10em;
  margin: 20px;
  text-align: center;
  width: 100%;
}

#taktik-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 80vh;
}

#taktik-container img {
  height: 100%;
  width: 30vw;
}

#taktik-game-section {
  height: 100vh;
  text-align: center
}

.taktikText {
  font-size: 2rem;
  padding: 20px;
}

.taktikImgContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.taktikImg {
  max-height: 40vh;
  max-width: 100%;
  padding: 20px;
}