:root {
  --blue: #000e7b;
  --light-gray: #afa8ba;
  --gray: #7a7485;
  --maroon: #6b0000;
  --light-red: #a70013;

  --body-bg-color: var(--light-gray);
  --header-bg-color: white;
  --header-text-color: #ffffff;
  --footer-bg-color: var(--blue);
  --footer-text-color: #ffffff;
  --link-color: #ffffff;
  --link-hover-color: var(--maroon);
  --menu-bg-color: rgba(122, 116, 133, 0.9);
  --banner-bg-color: var(--blue);
  --hero-bg-color: var(--light-gray);
  --button-bg-color: var(--blue);

  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 1rem;
}

p {
  margin: 0;
  padding: 0.5rem 1rem;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

html {
  font-size: 16px;
  scroll-padding-top: 77px;
}

body {
  font-family: DM Sans, Helvetica, sans-serif;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  background-color: var(--body-bg-color);
  scroll-padding-top: 77px;
}

span {
  color: var(--maroon);
  font-weight: bold;
  font-size: 1.2rem;
}

hr {
  border: 0;
  background-color: var(--maroon);
  height: 0.25rem;
  width: 98%;
}

#header-wrapper {
  position: fixed;
  width: 100%;
  z-index: 1;
}

#header {
  background: var(--header-bg-color);
  color: var(--header-text-color);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0;
  width: 100%;
  top: 0;
  z-index: 2;
  box-shadow: 0 10px 20px -10px #000000;
}

#menu {
  z-index: 1;
  position: fixed;
  right: -100vw;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  text-align: center;
  height: 95%;
  width: 100vw;
  background: var(--menu-bg-color);
  backdrop-filter: blur(8px);
  transition: right ease-out 1s;
}

#menu.active {
  right: 0;
}

#logo {
  width: 300px;
  height: auto;
  margin: 1rem;
  display: flex;
  align-items: center;
}

#logo > img {
  margin: auto;
}

.menu-item {
  font-size: 1.2rem;
  justify-content: center;
  align-content: center;
}

#hero {
  padding-top: 5rem;
  height: auto;
  width: 100%;
  background-image: url("florida-blue-house-palm.jpg");
  background-position: center;
  background-color: var(--hero-bg-color);
  background-size: cover;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

#hero-box {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: row;
  box-shadow: 0 10px 20px -10px #000000;
  border-radius: 0 1rem 1rem 0;
  margin: 7rem 0;
}
.hero-box-side {
  margin: 1rem;
}

.hero-box-side > p {
  margin: 0.5rem;
}

#hbs1 {
  width: 480px;
}

#hbs2 {
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}
#hbs2 > a > .button {
  margin: 1rem 0;
}

#hero-box-hr {
  display: none;
}

#footer {
  background: var(--footer-bg-color);
  color: var(--footer-text-color);
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding: 2rem 0 2rem 0;
}

#copyright {
  color: var(--footer-text-color);
  background-color: var(--footer-bg-color);
  padding: 2rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
}

#hamburger-menu {
  width: 2rem;
  margin: 0 1rem 0 5rem;
}

#line {
  width: 2rem;
  height: 0.25rem;
  background-color: var(--blue);
  border-radius: 0.5rem;
  margin: 4px 0;
}

.button {
  background-color: var(--button-bg-color);
  color: white;
  letter-spacing: 0.1rem;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  height: 1.5rem;
  line-height: 1.5rem;
  border: 0 solid white;
  width: auto;
  display: block;
  text-align: center;
}

#header-cta {
  margin-left: 1rem;
}

.vertical-line {
  height: auto;
  width: 0.5rem;
  background-color: var(--maroon);
  margin: 1rem 0;
}

#content {
  margin: 0 2rem;
  background-color: #ffffff;
}

#banner {
  height: 48px;
  background-color: var(--banner-bg-color);
  overflow: hidden;
  line-height: 48px;
  box-shadow: 0 -10px 20px -10px #000000;
}

#banner-text {
  color: #ffffff;
  vertical-align: middle;
  min-width: 700px;
  font-weight: bold;
  font-size: 30px;
  /* animation properties */
  -moz-transform: translateX(100%);
  -webkit-transform: translateX(100%);
  transform: translateX(100%);

  -moz-animation: my-animation 15s linear infinite;
  -webkit-animation: my-animation 15s linear infinite;
  animation: my-animation 15s linear infinite;
}

/* for Firefox */
@-moz-keyframes my-animation {
  from {
    -moz-transform: translateX(100%);
  }
  to {
    -moz-transform: translateX(-100%);
  }
}

/* for Chrome */
@-webkit-keyframes my-animation {
  from {
    -webkit-transform: translateX(100%);
  }
  to {
    -webkit-transform: translateX(-100%);
  }
}

@keyframes my-animation {
  from {
    -moz-transform: translateX(100%);
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }
  to {
    -moz-transform: translateX(-100%);
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }
}

@media screen and (width <= 800px) {
  #logo {
    margin: 1rem;
  }

  #hamburger-menu {
    margin: 0 1rem;
  }

  #header-cta {
    display: none;
  }

  #hero {
    justify-content: center;
  }

  #hero-box {
    flex-direction: column-reverse;
    margin: 2rem;
    border-radius: 1rem;
  }

  #hero-box-line {
    display: none;
  }

  #hbs1,
  #hbs2 {
    width: auto;
  }

  #hbs1 {
    display: none;
  }

  #hero-box-hr {
    width: 100%;
    box-sizing: border-box;
    display: block;
  }
}

@media screen and (width <= 500px) {
  html {
    font-size: 14px;
  }
}
