:root {
  --bg: #0a0a0a;
  --bg-raised: #161616;
  --text: #f2f2f2;
  --text-muted: #9a9a9a;
  --accent: #65C8D0;
  --accent-dim: #3d7a80;
  --accent-red: #B31B1B;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans';
  scroll-behavior: smooth;
  margin: 0em;
  min-height: 100vh;
  position: relative;
  display: flow-root;
  color: var(--text);
  background-color: var(--bg);
}

main {
  width: 100%;
  padding-bottom: 4em;
  margin-top: 8em;
  cursor: url('../images/fleet/boat-cursor.png') 11 20, auto;
}

#scroll-down-button {
  position: absolute;
  bottom: 2.5em;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--text);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  animation: scrollBounce 2s ease-in-out infinite;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

#scroll-down-button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: rgba(101, 200, 208, 0.1);
}

#scroll-down-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

#bg-curve-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  width: 200px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
  overflow: visible;
  will-change: transform;
}

#bg-curve {
  display: block;
  width: 200px;
  height: 100%;
}

#bg-curve path {
  fill: none;
  stroke: var(--accent-dim);
  stroke-width: 2.5;
  opacity: 0.35;
  vector-effect: non-scaling-stroke;
}

@media (max-width: 700px) {
  #bg-curve-wrap {
    width: 100px;
  }

  #bg-curve {
    width: 100px;
  }
}

a {
  color: var(--accent);
  text-decoration: none;
}

p {
  margin: 0em;
  padding: 0em;
}

.navhidden {
  display: none;
}


h1 {
  font-family: 'Open Sans';
  font-weight: 800;
  font-size: 140px;
  margin: 0em;
}

h2 {
  font-family: 'Open Sans';
  font-weight: 600;
  font-size: 35px;
  margin: 0em;
}

h3 {
  font-family: 'Open Sans';
  font-weight: 800;
  font-size: 36px;
  margin: 0em;
  color: var(--accent);
}

h4 {
  font-family: 'Open Sans';
  font-weight: 700;
  font-size: 25px;
  margin: 0em;
  color: var(--accent-red);
}

h5 {
  font-family: 'Open Sans';
  font-weight: 700;
  font-size: 18px;
  margin: 0em;
}

h5b {
  font-family: 'Open Sans';
  font-weight: bold;
  font-size: 18px;
  margin: 0em;
}

p {
  font-family: 'Open Sans';
  font-weight: 400;
  font-size: 15px;
  color: #ffffff;
}


.section-header {
  text-align: center;
  margin-top: 2em;
  margin-bottom: 1em;
}


/* desktop top navbar */
#top-navbar {
  background-color: var(--bg-raised);
  height: 55px;
  border-style: solid;
  border-width: 0px 0px 1px 0px;
  border-color: rgba(255, 255, 255, 0.08);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 500;
}

#top-navbar-logo {
  width: 125px;
  margin-left: 3em;
  margin-top: .25em;
}

#scroll-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(101, 200, 208, 0.18);
  pointer-events: none;
}

#scroll-boat {
  position: absolute;
  top: 50%;
  left: 0;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  will-change: left;
}

#scroll-boat img {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 70%;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
  animation: boatBob 2.6s ease-in-out infinite;
}

@keyframes boatBob {
  0%, 100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-3px) rotate(5deg);
  }
}

#navbar-links-container {
  float: right;
  margin-right: 3em;
  padding-top: 15px;
  padding-bottom: 15px;
}

#navbar-links-container a {
  text-decoration: none;
  font-size: 16px;
  padding-right: 15px;
  padding-left: 15px;
}

#top-navbar a,
#mobile-top-navbar a {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* highlight link of current page */
.onThisPage {
  color: var(--accent);
  font-weight: 700;
}

.notOnThisPage {
  color: var(--text);
  font-weight: 700;
}

.notOnThisPage:hover {
  color: var(--accent);
}

/* desktop bottom navbar */
#bottom-navbar {
  background-color: var(--bg);
  height: 225px;
  width: 100%;
  position: relative;
  border-style: solid;
  border-width: 1px 0px 0px 0px;
  border-color: rgba(255, 255, 255, 0.08);
}

#bottom-navbar a:hover {
  text-decoration: underline;
}

#waves-img {
  width: 100%;
  position: absolute;
  bottom: 0;
}

#bottom-navbar-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

.footer-heading {
  font-size: 20px;
  margin-top: 1.5em;
  font-weight: bold;
}

.footer-text-container {
  font-size: 15px;
}

#facebook-icon {
  margin-left: 1em;
}

#instagram-icon {
  margin-left: .73em;
}

#linkedin-icon {
  margin-left: 1.5em;
}

#youtube-icon {
  margin-left: 1.56em;
}

#footer-logo {
  width: 8em;
  position: absolute;
  right: 14em;
  bottom: 0.1em;
}

#follow-us {
  width: 10em;
  margin-left: 10em;
}

.media-links {
  margin-top: 1em;
  display: flex;
  flex-direction: column;
}

.footer-icon {
  margin-top: .2em;
  width: 1em;
}

#contact-us {
  width: 10em;
}

.contact-us-subheader {
  margin-top: 1em;
}

#cornell-info{
  width: 20em;
  margin-left: 30%;
  margin-top: 5%;
}


@media (max-width: 900px) {
  /* mobile top navbar */

  #navbar-links-container {
    margin-right: .8em;
  }

  #navbar-links-container a {
    font-size: 14px;
    padding-right: 7.5px;
    padding-left: 7.5px;
  }

  /* ipad bottom navbar*/
  #follow-us {
    margin-left: 5em;
  }

  #footer-logo {
    right: 4em;
    bottom: 0em;
  }

}



/* hide mobile top navbar when window is resized */
@media (min-width: 750px) {
  #hamburger-icon {
    display: none;
  }
}


@media (max-width: 750px) {

  #top-navbar {
    position: static;
  }

  /* mobile top navbar */
  #mobile-top-navbar {
    background-color: var(--bg-raised);
    height: 350px;
  }

  main {
    padding-bottom: 3em;
    margin-top: 4em;
  }

  .section-header {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }


  #hamburger-icon {
    display: initial;
    float: right;
    height: 30px;
    margin-right: 1em;
    margin-top: .55em;
  }

  #hamburger-icon:hover {
    cursor: pointer;
  }

  #navbar-links-container {
    display: none;
  }

  .mobile-navbar-links-container {
    display: flex;
    flex-direction: column;
    padding-top: .25em;
  }

  #mobile-navbar-links-container a {
    text-decoration: none;
    font-size: 14px;
    margin-left: 1em;
    padding-top: .82em;
    padding-bottom: .82em;
  }
}

@media (max-width: 620px) {

  /* mobile bottom navbar */
  #bottom-navbar {
    height: 420px;
  }

  #bottom-navbar-container {
    flex-direction: column;
    align-items: center;
  }

  #follow-us {
    text-align: center;
    margin-left: 0em;
    margin-bottom: 1em;
  }

  #contact-us {
    width: 300px;
    margin-left: 0em;
    text-align: center;
  }

  #contact-us-heading {
    margin-top: 0em;
  }

  #footer-logo {
    width: 4em;
  }

}

/* desktop screens */
@media (min-width: 1200px) {

  /* bottom navbar */
  #bottom-navbar {
    height: 250px;
  }

  #footer-logo {
    bottom: .8em;
  }
}

@media (min-width: 1200px) and (max-width: 1500px){
    #cornell-info{
      width: 20em;
      margin-left: 15%;
      margin-top: 5%;
    }
}

/* large desktop screens */
@media (min-width: 1800px) {

  /* bottom navbar */
  #footer-logo {
    bottom: 2em;
  }

  #follow-us {
    margin-left: 20em;
  }
}