:root {
  --primary-color: #410c00;
  --secondary-color: #210082;
  --color-text: #ffffff;
  --color-text2: #410c00;
  --background-color: #f0b243;
  --background-color2: #ffffff;
  --background-button: #ff1a1a;
}

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

* {
  margin: 0%;
  padding: 0%;
  color: var(--color-text);
  font-family: "SnickersDisplay";
}

@font-face {
  font-family: "SnickersDisplay";
  src: url("font/SnickersSansDisplay-Epic_0.woff") format("woff");
  font-weight: 700;
}

@font-face {
  font-family: "SnickersText";
  src: url("font/SnickersSansText-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

a {
  color: var(--color-text);
  text-decoration: none;
}

ul {
  padding: 0;
}

li {
  list-style-type: none;
}

body.active {
  overflow: hidden;
}

header {
  background-color: var(--primary-color);
}

header img {
  width: 4em;
}

header img:hover {
  animation: wiggle 1s infinite ease-in-out;
}

header nav {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1em;
}

/* Header- hamburgermenu (Hulp van derde jaar) */
header nav button {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  background-color: transparent;
  border: none;
  justify-content: center;
  cursor: pointer;
}

header nav button span {
  display: block;
  width: 2.3em;
  height: 0.4em;
  background-color: var(--background-color2);
}

header nav ul {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 4.5em;
  left: 0;
  width: 100%;
  height: 46em;
  background-color: var(--primary-color);
  padding: 2em;
  gap: 2em;
  transform: translateX(100vw);
  transition: 0.5s;
  z-index: 2;
  visibility: hidden; /* komt van chat.gtp "hoe zorg ik ervoor dat mijn hamburgermenu niet steeds meebeweegt? */
}

header nav ul.active {
  transform: translateX(0);
  visibility: visible;
}

header nav ul li {
  text-transform: uppercase;
  font-size: 2em;
}

header li a:hover {
  color: var(--background-color);
}

a:focus-visible {
	outline:solid .15em var(--background-button);
	outline-offset: .2em;
  border-radius: 2em;
}

/****************/
/* Eerste Pagina */
/****************/

section:nth-of-type(1) {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  background-color: var(--primary-color);
}

section:nth-of-type(1) video {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  filter: brightness(0.9);
}

section:nth-of-type(1) div {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1em;
  color: var(--color-text);
  z-index: 1;
}

section:nth-of-type(1) h2 {
  font-size: 3.3em;
  text-transform: uppercase;
  margin-bottom: 1em;
  color: var(--color-text);
}

section:nth-of-type(1) span {
  display: block;
  font-size: 0.3em;
  padding-bottom: 1em;
  font-family: "SnickersText", sans-serif;
}

section:nth-of-type(1) a {
  display: block;
  font-size: 1em;
  width: max-content;
  background: var(--secondary-color);
  padding: 1em 2em;
  border-radius: 2em;
}

/* hulp van studentenassistent */

section:nth-of-type(2) {
  display: grid;
  background-color: var(--primary-color);
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4em;
  gap: 2em;
}

section:nth-of-type(2) img {
  width: 100%;
  height: auto;
  animation: floating 2s infinite alternate ease-in-out;
}

section:nth-of-type(2) h2 {
  color: var(--color-text);
  font-size: 4em;
  text-transform: uppercase;
}

section:nth-of-type(2) span {
  display: block;
  font-size: 0.3em;
  padding-bottom: 1em;
  font-family: "SnickersText", sans-serif;
}

section:nth-of-type(2) a {
  display: block;
  font-size: 1em;
  width: max-content;
  background: var(--background-button);
  padding: 1em 3em;
  border-radius: 2em;
  margin-top: 2em;
}

section:nth-of-type(3) li {
  display: flex;
  text-align: center;
  flex-direction: column;
  flex-shrink: 0;
  align-items: center;
  margin-top: 1.5em;
  padding: 0 0.5em;
}

section:nth-of-type(3) {
  padding: 3em;
}

section:nth-of-type(3) h2 {
  font-size: 3em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  color: var(--color-text2);
  text-align: center;
}

section:nth-of-type(3) img {
  width: 50%;
  height: auto;
}

section:nth-of-type(3) h3 {
  font-size: 1.4em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  color: var(--color-text2);
  padding: 0.4em;
}

section:nth-of-type(3) h3 span {
  display: block;
  color: var(--color-text2);
}

section:nth-of-type(3) a {
  font-size: 1em;
  width: max-content;
  background: var(--secondary-color);
  padding: 0.9em 3em;
  border-radius: 2em;
}

/* hulp van studentenassistent */
@media (width < 650px) {
  section:nth-of-type(2) {
    display: flex;
    flex-direction: column;
  }
}

section:nth-of-type(4) {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  flex-direction: column;
  background-color: var(--primary-color);
}

section:nth-of-type(4) img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
}

section:nth-of-type(4) div {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1em;
  color: var(--color-text);
  align-items: center;
}

section:nth-of-type(4) h2 {
  font-size: 2.7em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  color: var(--color-text);
  text-align: center;
}

section:nth-of-type(4) span {
  display: block;
  font-size: 0.3em;
  padding-bottom: 1em;
  font-family: "SnickersText", sans-serif;
}

section:nth-of-type(4) p {
  display: block;
  font-size: 0.8em;
  padding-bottom: 1em;
  font-family: "SnickersText", sans-serif;
  text-align: center;
}

section:nth-of-type(4) a {
  display: block;
  font-size: 0.8em;
  width: max-content;
  background: var(--secondary-color);
  padding: 1em 2em;
  border-radius: 2em;
}

figure img {
  width: 100%;
  height: auto;
}

/****************/
/* Tweede Pagina */
/****************/

.secondpage section {
  background-color: var(--background-color2);
  display: grid;
  gap: 1em;
}

.secondpage section:nth-of-type(2) {
  grid-template-columns: 1fr;
}

.secondpage section p {
  text-align: left;
  color: var(--color-text2);
  font-family: "SnickersText", sans-serif;
  font-size: 1em;
}

.secondpage section h3 {
  color: var(--secondary-color);
  font-size: 2.5em;
}

.secondpage section:nth-of-type(1) img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  filter: brightness(0.7);
}

.secondpage section:nth-of-type(1) div {
  grid-area: 1 / 1;
  display: flex;
  padding: 1em;
  color: var(--color-text);
  align-items: center;
}

.secondpage section:nth-of-type(1) h2 {
  font-size: 3em;
  margin-bottom: 0.5em;
  color: var(--color-text);
  text-align: center;
}

.secondpage section:nth-of-type(1) p {
  font-size: 0.7em;
  margin-top: .2em;
  color: var(--color-text);
}

.secondpage section:nth-of-type(1) span {
  font-family: "SnickersDisplay";
  font-size: .2em;
}

.secondpage section:nth-of-type(3) img,
.secondpage section:nth-of-type(5) img,
.secondpage section:nth-of-type(6) img,
.secondpage section:nth-of-type(7) img,
.secondpage section:nth-of-type(8) img {
  width: 100%;
  height: auto;
}

.secondpage section:nth-of-type(2) {
  padding: 2em;
}

.secondpage section:nth-of-type(2) img {
  animation: none;
}

.secondpage section:nth-of-type(3) p {
  margin-top: -3.5em;
}

.secondpage section:nth-of-type(3) h3 {
    padding: 1em 0;
    margin-top: -1em;
}

.secondpage section:nth-of-type(3) {
  margin-bottom: -2em;
}

.secondpage section:nth-of-type(3),
.secondpage section:nth-of-type(4),
.secondpage section:nth-of-type(5),
.secondpage section:nth-of-type(6),
.secondpage section:nth-of-type(7),
.secondpage section:nth-of-type(8) {
  padding: 2em;
  gap: 1.5em;
}

.secondpage img {
    transition: .5s;
}

.secondpage img:hover {
    transform: scale(1.05);
}

.secondpage nav img {
  width: 30%;
  padding-top: 0.5em;
  margin: 1em;
}

.secondpage nav {
  background-color: var(--secondary-color);
}

.secondpage nav ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 1em;
  gap: 2em;
  margin-left: 1em;
  padding-bottom: 1.9em;
  padding-top: 1em;
}

.secondpage nav ul li:nth-child(3) {
  grid-column: 2;
  grid-row: 1;
}

@media (min-width: 600px) {
  .secondpage nav {
    display: flex;
    align-items: center;
    gap: 2em;
    padding: 1em;
  }
}

footer {
  padding: 1.5em;
  background-color: var(--primary-color);
}

footer nav ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8em;
  border-top: 0.02em solid var(--background-color2);
  padding-top: 1em;
}

footer h3 {
  margin-top: 1em;
  font-size: 1em;
  color: var(--color-text);
}

footer a {
  font-family: "SnickersText", sans-serif;
  font-size: 0.8em;
}

footer p:nth-of-type(1) {
  margin-top: 0.5em;
  font-size: 0.9em;
  line-height: 1.5;
  font-family: "SnickersText", sans-serif;
}

footer p:last-child {
  margin-top: 0.5em;
  font-size: 0.9em;
  line-height: 1.5;
  font-family: "SnickersText", sans-serif;
  border-bottom: 0.02em solid var(--background-color2);
  padding-bottom: 1em;
  padding-top: 1em;
}

section a:hover {
  background: var(--background-button);
  transition: 1s ease;
}

/* animaties */
@keyframes floating {
  from {
    transform: translateY(-1em);
  }

  to {
    transform: translateY(1em);
  }
}

@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-5deg);
  }

  50% {
    transform: rotate(5deg);
  }

  75% {
    transform: rotate(-5deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

