/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* CUSTOM STYLES */

body {
  margin: 0 auto 0;
  padding-top: 60px;
  max-width: 1920px;
  overflow-x: hidden;
}

/*

  HEADER

 */

.header {
  display: flex;
  /*max-width: 1919px;*/
  max-height: 65px;
  padding: 20px 100px;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background: #2D1517;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

.header__logo {
  color: #FFF;
  font-family: "Montserrat", serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px; /* 153.846% */
}

.header__nav {
  display: flex;
  width: 435px;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.header a {
  color: #FFF;
  font-family: "Montserrat", serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px; /* 153.846% */
  text-decoration: none;
}

@media (max-width: 768px) {
  .header__burger {
    display: flex;
    color: white;
    font-size: 20px;
  }

  .header__nav {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #2D1517;
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .header__nav.open {
    max-height: 240px;
  }

  .header__nav a {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
  }
}
/*

  INTRO

 */

.intro {
  display: flex;
  height: 815px;
}


.intro__content {
  width: 50%;
  border-right: 2px solid #2D1517;
  border-bottom: 4px solid #2D1517;
  padding-top: 80px;
  background: #FFEDE0 url("../img/back-1.png") no-repeat;
}

.intro__content--container {
  display: block;
  max-width: 550px;
  margin: auto;
}

.intro__content--title {
  color: #2D1517;
  font-family: "Obviously", "sans-serif";
  font-size: clamp(20px, 8vw, 120px);
  font-style: normal;
  font-weight: 590;
  line-height: 14px; /* 11.667% */
  letter-spacing: 1px;
}

.intro__content--subtitle {
  margin-top: -35px;
  margin-bottom: 60px;
  color: #2D1517;
  font-family: "Obviously", "sans-serif";
  font-size: 35px;
  font-style: normal;
  font-weight: 540;
  /*line-height: 14px; !* 40% *!*/
  letter-spacing: 1px;
  text-transform: uppercase;
}

.intro__content--info {
  color: #2D1517;
  font-family: "Montserrat", serif;
  font-size: 25px;
  font-style: normal;
  font-weight: 500;
  line-height: 40px; /* 160% */
  letter-spacing: 1px;
}

.intro__content--button {
  margin-top: 40px;
  width: 273px;
  height: 67px;
  padding: 24px 58px;
  gap: 10px;
  flex-shrink: 0;
  border: 1px solid #2D1515;
  background: #DB0007;
  box-shadow: 4px 4px 0px 0px #2D1519;

  color: #FFF;
  text-align: center;
  font-family: "Montserrat", serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 14px; /* 70% */
  letter-spacing: 1px;
}

.intro__content--button:hover {
  background: #CB0007;
  cursor: pointer;
}

.intro__visual {
  width: 50%;
  border-left: 2px solid #2D1517;
  border-bottom: 4px solid #2D1517;
  padding-top: 46px;
  background: url("../img/back-2.png") no-repeat center / cover;
}

.intro__visual--container {
  max-width: 627px;
  display: block;
  margin: auto;
}

.intro__visual--image {
  height: 841px;
}

@media only screen and (max-width: 767px) {
  .intro {
    flex-direction: column;
    height: 100%;
  }

  .intro__content {
    width: 100%;
    border-right: 0;
    padding-top: 0;
    z-index:1;
  }

  .intro__content--container {
    display: block;
    max-width: 767px;
    text-align: center;
    padding: 0 80px;

  }

  .intro__content--title {
    font-size: clamp(20px, 12vw, 120px);
    line-height: 1.5em;
  }

  .intro__content--subtitle {
    margin-bottom: 0;
    line-height: 100%;
    font-size: clamp(12px, 5vw, 35px);
  }

  .intro__content--info {
    font-size: clamp(12px, 4vw, 25px);
    line-height: 1.5em;
  }

  .intro__content--button {
    font-size: 20px;
    margin-bottom: -30px;
  }

  .intro__visual {
    width: 100%;
    position: relative;
    border: 0;
  }


  .intro__visual--container {
    height: 791px;
  }

  .intro__visual--image {
    z-index: 1;
    position: absolute;
    bottom: -50px;
    left: 5%;
  }
}

/*
  GRADIENT
 */

.gradient {
  background: linear-gradient(180deg, #91E2FF 0%, #371DA7 100%);
  /*height: 1000px;*/
}


/*
  ABOUT
 */
.about {
  display: flex;
  position: relative;
}

.about__visual {
  width: 50%;
  padding-top: 73px;
  z-index: 0;
}

.about__visual--container {
  max-width: 666px;
  display: block;
  margin: auto;
  z-index: 1;
}

.about__visual--image {
  height: 1191px;
}

.about__content {
  width: 731px;
  /*max-height: 971px;*/
  border: 1px solid #2D1517;
  background: #FFEDDF;
  box-shadow: 4px 6px 0 0 #2D1517;
  margin-top: 160px;
  /*margin-left: 50px;*/
  z-index: 0;
  position: relative;
}

.about__content--container {
  margin: 120px;
}

.about__content--title {
  color: #2D1517;
  font-family: obviously-narrow, sans-serif;
  font-size: clamp(12px, 7vw, 80px);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about__content--text {
  color: #2D1517;
  font-family: "Montserrat", "serif";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px; /* 162.5% */
  letter-spacing: 1px;
}

.about__content--crab {
  position: absolute;
  right: 73px;
  bottom: -10px;
}


@media only screen and (max-width: 767px) {
  .about {
    display: flex;
    flex-direction: column-reverse;
    position: relative;
  }

  .about__visual {
    width: 100%;
  }

  .about__visual--container {
    max-width: 666px;
    height: 500px;
    display: block;
    margin: auto;
  }

  .about__visual--image {
    position: absolute;
    bottom: -150px;
    width: 90%;
    height: auto;
  }

  .about__content {
    margin-top: 0;
    box-shadow: none;
    width: auto;
  }

  .about__content--container {
    margin: 120px 0 180px 0;
    padding: 0 20px;
  }

  .about__content--title {
    font-size: clamp(20px, 10vw, 120px);
    line-height: 1.5em;
  }

  .about__content--crab {
    position: absolute;
    right: 73px;
    bottom: -10px;
  }
}

/*
  LEGENDS
 */

.legends {
  padding: 120px;
}

.legends__title {
  color: #FFEDE0;
  text-shadow: 4px 4px 0px #311A1D;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #311A1D;
  font-family: obviously-narrow, sans-serif;
  font-size: 80px;
  font-style: normal;
  font-weight: 700;
  /*line-height: 14px; !* 17.5% *!*/
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 10;
  position: relative;
}

.legends__cards {
  display: flex;
  gap: 10px;
  justify-content: space-around;
  z-index: 9;
}

.legends__card {
  position: relative;
  max-width: 357px;
  flex: 1 1 250px;
  min-width: 20%;
  /*flex-shrink: 0;*/

  border: 1px solid #2D1517;
  background: #FFEDE0;
}

.legends__card--one {
  padding-top: 240px;
  margin-bottom: 400px;
}

.legends__card--one .legends__card--image {
  width: 509px;
  position: absolute;
  top: 58px;
  left: -72px;
  z-index: 8;
}

.legends__card--two {
  padding-top: 220px;
  margin-top: 160px;
  margin-bottom: 200px;
}

.legends__card--two .legends__card--image {
  width: 345px;
  position: absolute;
  top: -320px;
  left: 67px;
  z-index: 7;
}

.legends__card--three {
  padding-top: 160px;
  margin-top: 357px;
}

.legends__card--three .legends__card--image {
  width: 516px;
  position: absolute;
  top: -275px;
  left: 85px;
  z-index: 6;
}

.legends__card--title {
  color: #2D1517;
  font-family: obviously-narrow, sans-serif;
  font-size: clamp(20px, 4vw, 56px);
  /*font-size: 56px;*/
  font-style: normal;
  font-weight: 700;
  letter-spacing: 1px;
  margin-left: 28px;
}

.legends__card--text {
  color: #2D1517;
  font-family: Montserrat, serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px; /* 162.5% */
  margin: -22px 56px 72px 28px;
}


@media only screen and (max-width: 767px) {
  .legends {
    padding: 120px 40px;
  }

  .legends__title {
    font-size: clamp(20px, 10vw, 120px);
    line-height: 1.5em;
  }

  .legends__cards {
    flex-direction: column;
  }

  .legends__card {
    position: relative;
    max-width: 100%;
  }

  .legends__card--one {
    padding-top: 120px;
    margin-bottom: 0;
  }

  .legends__card--one .legends__card--image {
    /*max-width: 509px;*/
    width: 100%;
    height: auto;
    position: relative;
    top: -150px;
    left: 0;
    right: 0;
  }

  .legends__card--one .legends__card--title {
    font-size: 56px;
    margin-top: -150px;
  }

  .legends__card--two {
    padding-top: 300px;
    margin-top: 340px;
    margin-bottom: 0;
  }

  .legends__card--two .legends__card--image {
    /*max-width: 359px;*/
    width: 100%;
    position: relative;
    top: -400px;
    left: 0;
    right: 0;
    margin: auto;
  }

  .legends__card--two .legends__card--title {
    font-size: 56px;
    margin-top: -400px;
  }

  .legends__card--three {
    padding-top: 120px;
    margin-top: 250px;
  }

  .legends__card--three .legends__card--image {
    /*max-width: 409px;*/
    width: 100%;
    height: auto;
    position: relative;
    top: -250px;
    left: 0;
    right: 0;
    margin: auto;
  }

  .legends__card--three .legends__card--title {
    font-size: 56px;
    margin-top: -250px;
  }

  .legends__card--text {
  }
}

/*
  TRIVIA
 */

.trivia {
  padding: 120px;
  position: relative;
}

.trivia__title {
  color: #FFEDE0;
  text-shadow: 4px 4px 0px #311A1D;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #311A1D;
  font-family: obviously-narrow, sans-serif;
  font-size: 80px;
  font-style: normal;
  font-weight: 800;
  line-height: 14px; /* 17.5% */
  letter-spacing: 1px;
  text-transform: uppercase;
}

.trivia__cards {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.trivia__card {
  flex: 1 1 250px;
  max-width: 375px;
  min-height: 330px;
  background: #FFEDE0;
  padding: 37px 28px 0;
}

.trivia__card--title {
  color: #0BF;
  font-family: Obviously, "sans-serif";
  font-size: 25px;
  font-style: normal;
  font-weight: 700;
  line-height: 26px; /* 104% */
}

.trivia__card--two {
  color: #4800FF;
}

.trivia__card--text {
  color: #2D1517;
  font-family: "Montserrat";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px; /* 162.5% */
}

@media only screen and (max-width: 767px) {
  .trivia {
    padding: 10px 40px;
  }

  .trivia__title {
    font-size: clamp(20px, 14vw, 120px);
    line-height: 100%;
  }

  .trivia__cards {
    display: flex;
    flex-direction: column;
  }

  .trivia__card {
    max-width: 100%;
    /*padding: 40px;*/
    min-height: auto;
  }
}
/*
  SEABED
 */

.seabed {
  padding-bottom: 200px;
  position: relative;
	overflow-x: hidden;
}

/*
  FISHIES
 */

.fish {
  position: absolute;
  width: 120px;
  offset-path: path("M0,0 C100,-100 200,100 300,0");
  animation: swimFlip 4s ease-in-out infinite;
  /*offset-rotate: auto;*/
}

.fish--seabed {
  bottom: 600px;
  left: 700px;
	animation-delay: -1s;
}

.fish--trivia {
  top: 200px;
  left: 500px;
}

.fish--about {
  bottom: -200px;
  left: 800px;
}

@keyframes swimFlip {
  0%   { offset-distance: 0%; transform: scaleX(1); }
  50%  { offset-distance: 100%; transform: scaleX(1); }
  51%  { transform: scaleX(-1); }
  100% { offset-distance: 0%; transform: scaleX(-1); }
}

/*
  BUBBLES
 */

.bubble {
  position: absolute;
  width: 60px;
  animation: float 4s ease-in-out infinite;
}

.bubble--seabed {
  bottom: 600px;
  left: 70px;
}

.bubble--seabed-two {
  width: 40px;
  bottom: 500px;
  left: 120px;
}

.bubble--trivia {
  bottom: 100px;
  left: 30px;
}

.bubble--trivia-two {
  width: 40px;
  bottom: 500px;
  right: 120px;
}

.bubble--about {
  bottom: 200px;
  left: 100px;
}

.bubble--about-two {
  width: 40px;
  top: 100px;
  right: 120px;
}

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-60px); }
  100% { transform: translateY(0); }
}
