:root {
  --primary-color: #06b3bc;
  --text-color: #042d2f;
  --text-color-lighter: #074c50;
  --secondary-color: #F78828;
  --warn-color: #FDD219;
  --danger-color: #FA5456;
  --white: #FFFFFF;
  --off-white: #F1F2F4;
  --gray: #A1A1A1;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  font-size: 1.3rem;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23a1a1a1' fill-opacity='0.59' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}

h1 {
  font-size: 2.5rem;
}

h1, h2 {
  text-align: center;
}

header {
  background-color: var(--primary-color);
  padding: 48px 0;
  border-bottom: var(--secondary-color) 6px solid;
}

/* header link animations! */
header a {
  font-size: 1.5rem;
  color: var(--off-white);
  text-decoration: none;
  position: relative;
}

header a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 3px;
  background-color: white; 
  transition: width 0.3s ease-in-out;
}

header a:hover::after {
  width: 100%;
}
/* end header link animations */

/* article link transitions */
main a {
  color: var(--danger-color);
  text-decoration: none;
  position: relative;
  padding: 2px 4px;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

main a:hover {
  background-color: lightblue; 
  color: black; 
  border-radius: 4px; 
  animation: colorPop 0.3s ease-in-out;
}

@keyframes colorPop {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px) scale(1.05);
  }
  100% {
    transform: translateY(0);
  }
}
/* end article link transitions */

main > article, nav{
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

nav {
  display: flex;
}

nav > a:not(:first-of-type){
  margin-left: 24px;
}

nav > a.logo {
  margin-right: auto;
  text-transform: uppercase;
}

main > section, main > article {
  margin-bottom: 96px;
  box-shadow: 4px 4px 10px var(--gray);
  background-color: var(--white);
}

main > section.hero {
  height: 300px;
  background-image: url(ocean.jpg);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
}

section.hero > .call-to-action {
  font-size: 2rem;
  font-weight: 700;
  text-shadow: var(--white) 0px 0px 10px, var(--white) 0px 0px 20px, var(--gray) 2px 2px 2px;
  padding: 0 48px;
  margin: 0;
}

/* button link transitions */
section.hero > button {
  background-color: var(--secondary-color);
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 1s ease-in-out;
}

section.hero > button:hover{
  background-color: yellow;
  transform: translateY(-4px) scale(1.1);
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: translateY(-4px) scale(1);
  }
  100% {
    transform: translateY(-4px) scale(1.1);
  }
}
/* end button link transitions */


main article {
  padding: 48px 96px;
}

main p {
  line-height: 1.75;
  margin-bottom: 48px;
}

main > article img {
  float: left;
  width: 300px;
  height: auto;
  margin-right: 24px;
  margin-bottom: 6px;
}

footer {
  margin-top: auto;
  background-color: var(--gray);
  text-align: center;
  text-transform: uppercase;
  padding: 24px 0;
  color: var(--off-white);
}