html, body {
  height: 100%;
}
body {
  margin: 2em 0 0 0;
  font-family: sans-serif;
  background: #f9f9f9;
  color: #222;
  padding: 0;
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}
p.intro {
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: center;
  color: #555;
}
.intro.footer {
  padding-bottom: 3em;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  width: 60%;
  max-width: 1440px;
}
.card {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #ddd;
  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.card:hover {
  box-shadow: 0 4px 12px rgba(0, 50, 160, 0.2);
  border-color: #0032a0;
}
.card h2 {
  margin-top: 0;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #0032a0;
}
.grid a {
  color: #0032a0;
}
.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.card li {
  margin-bottom: 0.5rem;
  padding-left: 1em;
  position: relative;
  color: #333;
}
.card li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #0032a0;
}
.divider {
  margin: 4rem auto;
  max-width: 600px;
  border-top: 1px solid #ccc;
}
.long-section {
  max-width: 800px;
  margin: 3rem auto;
  line-height: 1.6;
  font-size: 1rem;
  color: #444;
  padding-bottom: 3em;
}
.long-section h3 {
  color: #0032a0;
  margin-top: 2rem;
}
ol h2 {
  text-transform: uppercase;
  color: #a0a0a0;
  margin-left: -1.1em;
  margin-top: 3em;
}
ol {
  padding-left: 7em;
}
li {
  line-height: 1.45em;
}
.back-button {
  display: inline-block;
  margin: 0;
  font-size: 1rem;
  text-decoration: none;
  color: #b8b7b7;
  border: 1px solid transparent;
  padding: 0.5em 1em;
  margin: 0em 20px;
  border-radius: 5px;
  transition: background-color 0.2s, color 0.2s;
}

.back-button:hover {
  border: 1px solid #0032a0;
  color: #0032a0;
}

@media (max-width: 689px) {
  .grid {
    width: 90%;
  }
}
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
	
  h1 {
    font-size: 1.5rem;
  }

  .intro {
    font-size: 1rem;
  }

  .card h2 {
    font-size: 1.2rem;
  }

  .card ul li {
    font-size: 0.95rem;
    line-height: 1.4;
  }
  ol {
	padding-left: 2.5em;
  }
}
@media (max-width: 768px), (min-width: 2000px) {
  .waves,
  .wave-basement {
	  display: none;
  }
}

@media (min-width: 2000px) {
	.main-body {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
	
	h1 {
    	font-size: 2vw;
		margin-bottom: 1vw;
	}
	p.intro {
		font-size: 1vw;
		max-width: 30vw;
		margin: 0 auto 3vw;
	}
	.card {
		padding: 1.2vw;
		border-radius: 1.1vw;
		border: .04vw solid #ddd;
	}
	.card:hover {
	  box-shadow: 0 .2vw .6vw rgba(0, 50, 160, 0.2);
	}
	.card h2 {
    	font-size: 1.1vw;
		margin-bottom: 0.75vw;
	}
	.card li {
		font-size: .6vw;
	}
	.grid {
		grid-template-columns: repeat(auto-fit, minmax(970px, 1fr));
		gap: 1vw;
		margin: 1vw auto;
		max-width: 50vw;
	}
	.long-section {
		max-width: 22vw;
		padding-bottom: 2vw;
	}
	.long-section h2 {
		font-size: 1.3vw;
	}
	.long-section h3 {
		font-size: 1vw;
		margin-top: 1.4vw;
		line-height: 1.18vw;
	}
	li {
		line-height: .9vw;
	}
	.long-section li {
		font-size: .6vw;
	}
	.back-button {
		font-size: .8vw;
		padding: 0.5vw 1.3vw;
		margin: .8vw 2vw;
		border-radius: .4vw;
	}
}

/* WAVES */
.waves {
  position: relative;
  width: 100%;
  height: 38vh;
  min-height: 100px;
  max-height: 153px;
  z-index: 999;
}
.waves--soon {
  margin-top: -6vw;
}
/* Animation */

.parallax {
  & > use {
    animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
  }
  & > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
  }
  & > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
  }
  & > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
  }
  & > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
  }
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}
/*Shrinking for mobile*/
@media (max-width: 768px) {
  .waves {
    height: 40px;
    min-height: 40px;
  }
  .content {
    height: 30vh;
  }
  h1 {
    font-size: 24px;
  }
}
