/* MODERN CSS RESET */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: sans-serif;
  overflow-x: hidden;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*STYLING*/

.flex-nav {
  display: flex;
  gap: 4rem;
}

header {
  text-align: center;
  background-color: rgb(61, 108, 174);
  border-bottom: 2px solid rgb(40, 0, 132);
}

h1 {
  margin: 1rem;
  text-shadow: 2px 2px 2px white;
}

main {
  background-color: rgb(93, 90, 90);
}

#introduction {
  opacity: 0;
  text-align: center;
  margin: 0 auto;
  font-weight: 600;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  margin: 2rem;
  animation: fadein 2s forwards;
  text-shadow: 1px 1px 1px rgb(81, 154, 250);
}

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

img {
  margin: 0 auto;
  justify-content: center;
  opacity: 0;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.slide {
  position: relative;
  left: -1000px;
  animation: slide 3s forwards;
}

@keyframes slide {
  100% {
    left: 0px;
    opacity: 1;
  }
}

h2 {
  padding-top: 1rem;
  text-shadow: 1px 1px 1px rgb(81, 250, 118);
}

h2+p {
  padding-bottom: 1rem;
  text-shadow: 1px 1px 1px rgb(81, 171, 250);
}

.centered>* {
  text-align: center;
  justify-content: center;
  margin: 0 auto;
  align-items: center;
  font-size: 2rem;
}

li {
  list-style: none;
  text-shadow: 2px 2px 1px rgb(166, 0, 255);
}

a {
  color: rgb(0, 132, 255);
  text-decoration: none;
}

a:link:hover,
a:link:focus,
a:link:active {
  border-bottom: 2px solid;
}

footer {
  background-color: rgb(22, 41, 139);
  color: rgb(24, 116, 207);
  border-top: 2px solid rgb(40, 0, 132)
}