
.slideshow,
article img {
  border: 1px solid;
}

.slideshow img {
  border: none;
}

body {
  min-height: 100vh;
  font-family: 'Raleway', sans-serif;
  margin: 0;
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";;
}

body, a {
  color: #45609f;
}

body,
nav {
  background-color: white;
}

h1 {
  font-size: 3em;
}

h1, h2, h3, h4 {
  font-family: 'Prata', serif;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

img,
article,
.slideshow {
  border-radius: 5px;
}

main {
  width: 100%;
}

nav {
  position: fixed;
  /* background-color: #afc9ff; */
  width: 100%;
  z-index: 2;
  border-bottom: 1px solid;
}

nav a {
  padding: .9em;
  text-decoration: none;
  font-weight: bold;
}

main > section{
  margin: 0 auto;
  width: 75%;
}

article {
  padding: 1em;
  border: 1px solid;
  margin: 0.5em 1em;
}

.card-container > article p {
  margin: .5em 1em;
}

nav,
.centered,
.card-container,
.row,
.card-container article {
  display: flex;
}

.centered,
.card-container,
.row {
  flex-direction: column;
}

.centered,
.row,
.card-container {
  align-items: center;
  justify-content: center;
}

.fading {
  opacity: 0;
}

.fullscreen {
  min-height: 100vh;
}

.slide-in {
  transform: translateX(-100%);
  transition: transform 1000ms;
}

.slide-in.scrolled {
  transform: translateX(0);
}

.slideshow {
  position: relative;
  flex: 1;
  min-width: 100px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slideshow,
article img {
  min-width: 100px;
  max-height: 200px;
}

article img {
  min-width: 100%;
}

.slideshow img {
  height: 100%;
  min-width: 100%;
  transition: opacity .5s;
}

.slideshow img {
  position: absolute;
}

.stretch {
  align-self: stretch;
}

.pop-in {
  transform: scale(0.3);
  transition: transform 1000ms;
}

.pop-in.scrolled {
  transform: scale(1);
}

.wiggle span {
  position: relative;
  transition: .5s top;
}

#avatar {
  width: 150px;
  border: 1px solid;
  margin: 1em;
}

#waves {
  background-image: url("./img/wave-path.svg");
  background-position: 0 10px;
  height: 40px;
  background-size: auto 100%;
  image-rendering: pixelated;
  transition: background-position;
}

#scene {
  border: 1px solid;
  background-image: linear-gradient(45deg, lightblue, cornflowerblue);
  padding: 1em;
  box-shadow: 10px 10px;
}

#sun {
  position: absolute;
  width: 75px;
  transform: translate(161px, -148px);
}

#tips article {
  margin: 2em 0;
  width: 90%;
}

@media (min-width: 406px) {
  .card-container > article {
    display: flex;
    flex-direction: row;
  }

  .row {
    flex-direction: row;
  }

  #tips article:nth-child(2n + 1) {
    text-align: right;
    margin-left: auto;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  main > section{
    width: 80%;
    padding: 4rem 4rem;
  }

  .fullscreen {
    min-height: calc(100vh - 8em);
  }

  .card-container article {
    width: 50%;
  }

  .card-container {
    flex-direction: row;
  }

  .card-container > article {
    flex-direction: column;
    width: 30%;
    align-items: center;
  }

  .card-container > article > div {
    width: 100%;
  }

  .card-container > article p {
    margin: 1em 0;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  main > section{
    width: 70%;
  }

  .card-container > article {
    width: 20%;
  }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  main > section{
    width: 60%;
  }
}

@media(prefers-reduced-motion) {
  .fade-in, .pop-in, .slide-in {
    transition: none;
  }
}