/* Box sizing rules */
*,*::before,*::after { box-sizing: border-box; }

/* Remove default margin */
body,h1,h2,h3,h4,p,figure,blockquote,dl,dd { margin: 0; }

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],ol[role='list'] { list-style: none; }

/* Set core root defaults */
html:focus-within { scroll-behavior: smooth; }

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) { text-decoration-skip-ink: auto; }

/* Make images easier to work with */
img,picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,button,textarea,select { font: inherit; }

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  
  *,*::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Global */
:root {
  --black:      #000000;
  --white:      #FFFFFF;
  
  --navy:       #1C2329;
  --red:        #FB5858;
  --tan:        #F7F2ED;
  --violetDark: #2C2932;
}

.text-white { color: var(--white); }
.text-black { color: var(--black); }
.text-tan { color: var(--tan); }

.bg-white { background-color: var(--white); }
.bg-black { background-color: var(--black); }
.bg-tan { background-color: var(--tan); }

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
  font-size: 50%;
  height: 100%;
}
@media only screen and (min-width: 576px) {
  html { font-size: 52%; }
}
@media only screen and (min-width: 768px) {
  html { font-size: 55%; }
}
@media only screen and (min-width: 992px) {
  html { font-size: 62.5%; }
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -moz-font-feature-settings: "kern", "liga", "clig", "calt";
  -ms-font-feature-settings: "kern", "liga", "clig", "calt";
  -webkit-font-feature-settings: "kern", "liga", "clig", "calt";
  background-color: var(--navy);
  color: var(--white);
  font-feature-settings: "kern", "liga", "clig", "calt";
  font-family: 'Inter',sans-serif;
  font-kerning: normal;
  font-size: 18px;
  font-weight: 400;
}
.container {
  margin: auto;
  max-width: 1440px;
  width: 90%;
}


/* Typography */
h1,h2 {
  font-weight: 700;
  line-height: 120%;
}
h1 { font-size: 16px; }
h2 { font-size: 12px; }
p {
  font-size: 9px;
  font-weight: 400;
  line-height: 150%;
  margin-bottom: 1rem;
}
p:last-of-type { margin-bottom: 0; }

a { text-decoration: none; }


/* Nav */
#nav {
  background-color: var(--white);
  display: flex;
  font-size: 18px;
  font-weight: 400;
  justify-content: space-between;
  line-height: 150%;
  min-height: 50px;
  padding-right: 3rem;
  padding-left: 3rem;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
}
#nav .logo-sm {
  height: auto;
  position: relative;
  transition: .15s ease-in-out;
  width: 42px;
}
#nav li { position: relative; }
#nav a {
  color: var(--navy);
  display: block;
  height: 80px;
  line-height: 80px;
  position: relative;
  text-align: center;
  transition: .2s;
  width: 100px;
}
.scrolled #nav a {
  height: 50px;
  line-height: 50px;
}
#nav li a::after {
  background-color: transparent;
  content: '';
  height: 5px;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  transition: .15s;
}
#nav li a.active { font-weight: 700; }
#nav li a.active::after { background-color: var(--red)!important; }
#nav li a:hover::after { background-color: rgb(251 88 88 / 50%); }
#nav li.active a { font-weight: 700; }
#nav ul {
  font-size: 14px;
  font-weight: 400;
}


/* Hero */
#hero,
#hero .deviceBg {
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
}
#hero {
  background-image: url(./img/hero.jpg);
  margin-top: 50px;
}
#hero .deviceBg {
  background-image: url(./img/device.png);
  z-index: 1;
}
#hero .content { z-index: 2; }
#hero .header { min-height: 134px; }
#hero .header h1 span {
  background-color: var(--navy);
  border-radius: 8px;
  margin-right: auto;
  margin-bottom: .3rem;
  padding: .5rem .6rem;
}
#hero .header h1 span:last-of-type { margin-bottom: 0; }


/* Bubbles */
#bubbles > img { width: 100%; }
.bubble {
  background-color: var(--red);
  border-radius: 12px;
  box-shadow: 2px 2px 4px rgb(0 0 0 / 50%);
  /* display: none; */
  font-size: 8px;
  max-width: 350px;
  opacity: 0;
  padding: 1rem;
  transition: 1.5s;
  z-index: 1;
}
.bubble.show { opacity: 1; }
.bubble p { margin-bottom: 0; }
.bubble p.main { font-weight: 600; }
.bubble p.sub { font-weight: 400; }
.bubble img {
  height: auto;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
}
.bubble1,
.bubble2,
.bubble3,
.bubble4,
.bubble5 { bottom: 2%; }
.bubble1 { left: 3%; }
.bubble2 { left: 9%; }
.bubble3 { right: 20%; }
.bubble4 { right: 10%; }
.bubble5 { right: 2%; }

/* .bubble {
  animation-timing-function: linear;
  animation-duration: 5s;
  animation-name: bubbleAnim;
  animation-iteration-count: infinite;
}
.bubble1 { animation-delay: 0s; }
.bubble2 { animation-delay: 4s; }
.bubble3 { animation-delay: 8s; }
.bubble4 { animation-delay: 12s; }
.bubble5 { animation-delay: 16s; }
@keyframes bubbleAnim {
  0%    { opacity: 0; }
  10%   { opacity: 1; }
  90%   { opacity: 1; }
  100%  { opacity: 0; }
} */

.bubble img {
  top: auto;
  bottom: 100%;
  transform: rotate(180deg);
}
.bubble1 img { left: 16%; }
.bubble4 img {
  right: 18%;
  left: auto;
}
.bubble5 img {
  top: auto;
  right: 3%;
  bottom: 70%;
  left: auto;
  transform: rotate(180deg);
}


/* Obstacles */
#obstacles {
  padding-top: 5rem;
  padding-bottom: 5rem;
  width: 75%;
}


/* Guests */
.tanSection { min-height: 250px; }
.tanSection .imageBg {
  background-image: url(./img/restaurant.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.tanSection .imageBg img {
  top: 0;
  bottom: 0;
  left: -1px;
}
.tanSection.alt .imageBg img {
  right: -1px;
  left: auto;
  transform: rotate(180deg);
}
.tanSection .content {
  padding-top: 5rem;
  padding-right: 1rem;
  padding-bottom: 5rem;
}
.tanSection.alt .content {
  padding-right: calc(var(--bs-gutter-x)* .5);
  padding-left: 2rem;
}
.tanSection .content h2 {
  margin-bottom: 4rem;
  position: relative;
}
.tanSection .content h2::after {
  background-color: var(--red);
  content: '';
  height: 1px;
  position: absolute;
  right: 0;
  bottom: -2rem;
  left: 0;
}


/* Power */
#power {
  background-image: url(./img/diners.jpg);
  background-position: 30% 0%;
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: 15rem;
}
#power .content {
  background-color: rgb(44 41 50 / 90%);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}


/* Footer */
footer { height: 75px; }


@media screen and (min-width: 300px) {

  /* Typography */
  h1 { font-size: 18px; }


  /* Hero */
  #hero .header { min-height: 160px; }
  #hero .device {
    left: 61%;
    max-width: none;
  }


  /* Bubbles */
  .bubble2 { left: 15%; }
  .bubble3 {
    right: 22%;
    bottom: 8%;
  }
  .bubble4 {
    right: 12%;
    bottom: 12%;
  }
  .bubble5 img {
    right: 5%;
    bottom: 100%;
  }

}
@media screen and (min-width: 375px) {

  /* Hero */
  #hero .header { min-height: 200px; }
  #hero .header h1 span {
    margin-bottom: 1rem;
    padding: 1rem 2rem;
  }
  #hero .device { left: 62%; }


  /* Bubbles */
  .bubble { font-size: 10px; }
  .bubble1 {
    bottom: 17%;
    left: 5%;
  }
  .bubble2 {
    top: 45%;
    bottom: auto;
    left: 13%;
  }
  .bubble3 {
    top: 60%;
    right: 24%;
    bottom: auto;
  }


  /* Power */
  #power {
    background-position: top center;
    padding-top: 15.7rem;
  }
  #power .textContent { flex-direction: row; }
  #power .textContent > div { width: 45%; }

}
@media screen and (min-width: 400px) {

  /* Typography */
  h2 { font-size: 18px; }
  p { font-size: 10px; }

  /* Bubbles */
  .bubble5 { bottom: 10%; }

}
@media screen and (min-width: 500px) {
  
  /* Typography */
  h1 { font-size: 24px; }


  /* Hero */
  #hero .header { min-height: 265px; }
  #hero .device { left: 62%; }
  #hero .device img.dev {
    border-radius: 10px;
    box-shadow: 3px 3px 22px rgb(0 0 0 / 22%), 15px 15px 45px rgb(0 0 0 / 45%);
  }


  /* Bubbles */
  .bubble1 {
    bottom: 23%;
    left: 6%;
  }
  .bubble2 { left: 18%; }
  .bubble3 {
    top: 52%;
    right: 29%;
  }
  .bubble4 {
    right: 15%;
    bottom: 30%;
  }
  .bubble5 { bottom: 16%; }
  .bubble5 img { right: 8%; }

}
@media screen and (min-width: 576px) {
  
  /* Typography */
  h1 { font-size: 34px; }


  /* Hero */
  #hero .header { min-height: 310px; }


  /* Bubbles */
  .bubble1 {
    bottom: 28%;
    left: 8%;
  }
  .bubble2 { left: 19%; }
  .bubble3 { right: 31%; }


  /* Obstacles */
  #obstacles p {
    column-count: 2;
    column-gap: 20px;
  }


  /* Guests */
  .tanSection { min-height: 300px; }

}
@media screen and (min-width: 700px) {
  
  /* Typography */
  h1 { font-size: 40px; }


  /* Hero */
  #hero .header { min-height: 375px; }
  #hero .device img.dev { border-radius: 15px; }


  /* Bubbles */
  .bubble { font-size: 12px; }
  .bubble img { width: 8px; }
  .bubble1 { bottom: 31%; }
  .bubble3 {
    top: 50%;
    right: 32%;
  }
  .bubble5 { bottom: 21%; }

}
@media screen and (min-width: 768px) {

  /* Nav */
  #nav { display: flex; }

  
  /* Typography */
  h2 { font-size: 20px; }
  p { font-size: 12px; }

  /* Hero */
  #hero .header { min-height: 415px; }
  #hero .device { left: 61%; }
  #hero .device img.dev {
    border-radius: 25px;
    box-shadow: 4px 4px 30px rgb(0 0 0 / 30%), 20px 20px 70px rgba(0,0,0,0.7);
  }


  /* Bubbles */
  .bubble img {
    top: 100%;
    bottom: auto;
    transform: none;
  }
  .bubble1 {
    top: 10%;
    bottom: auto;
  }
  .bubble2 { top: 3%; }
  .bubble3 { top: 20%; }
  .bubble4 {
    top: 7%;
    right: 8%;
    bottom: auto;
  }
  .bubble4 img {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  .bubble5 { bottom: 23%; }
  .bubble5 img {
    top: auto;
    right: 10%;
    bottom: 100%;
    transform: rotate(180deg);
  }


  /* Guests */
  .tanSection { min-height: 450px; }
  .tanSection .content {
    padding-top: 8.8rem;
    padding-right: 8rem;
    padding-bottom: 8.8rem;
  }
  .tanSection.alt .content {
    padding-right: calc(var(--bs-gutter-x)* .5);
    padding-left: 6rem;
  }

}
@media screen and (min-width: 900px) {

  /* Hero */
  #hero .header { min-height: 485px; }


  /* Bubbles */
  .bubble { font-size: 14px; }
  .bubble1 {
    top: 9%;
    padding: 1.5rem;
  }
  .bubble2 {
    top: 6%;
    left: 20%;
  }
  .bubble5 { bottom: 25%; }
  .bubble5 img { right: 13%; }

}
@media screen and (min-width: 992px) {
  
  /* Typography */
  h1 { font-size: 60px; }
  h2 { font-size: 24px; }
  p { font-size: 14px; }


  /* Nav */
  #nav a { width: 150px; }


  /* Hero */
  #hero .header { min-height: 535px; }


  /* Bubbles */
  .bubble4 {
    top: 8%;
    right: 9%;
  }


  /* Guests */
  .tanSection { min-height: 600px; }


  /* Power */
  #power {
    background-image: url(./img/diners.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 40rem;
  }
  #power .content {
    background-color: rgb(44 41 50 / 90%);
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

}
@media screen and (min-width: 1100px) {

  /* Hero */
  #hero .header { min-height: 595px; }


  /* Bubbles */
  .bubble { font-size: 16px; }
  .bubble1 {
    top: 10%;
    left: 2%;
  }
  .bubble2 {
    top: 8%;
    left: 21%;
  }
  .bubble3 {
    top: 22%;
    right: 33%;
  }
  .bubble4 { top: 10%; }
  .bubble1 img {
    left: 50%;
    transform: translateX(-50%);
  }


  /* Obstacles */
  #obstacles p { column-count: 3; }

}
@media screen and (min-width: 1200px) {
  
  /* Typography */
  h1 { font-size: 10rem; }
  h2 { font-size: 30px; }
  p { font-size: 16px; }


  /* Hero */
  #hero .header { min-height: 645px; }


  /* Bubbles */
  .bubble { font-size: 18px; }
  .bubble1 {
    top: 10%;
    left: 2%;
  }
  .bubble2 {
    top: 7%;
    left: 20%;
  }
  .bubble img { width: 10px; }
  .bubble1 img {
    left: 50%;
    transform: translateX(-50%);
  }

}
@media screen and (min-width: 1300px) {
  
  /* Typography */
  p { font-size: 18px; }

  /* Hero */
  #hero .header { min-height: 700px; }


  /* Bubbles */
  .bubble1 {
    top: 12%;
    left: 3%;
  }

}
@media screen and (min-width: 1400px) {

  /* Hero */
  #hero .header { min-height: 750px; }


  /* Bubbles */
  .bubble1 { top: 13%; }
  .bubble2 {
    top: 10%;
    left: 22%;
  }
  .bubble3 {
    top: 24%;
    right: 34%;
  }
  .bubble4 {
    top: 12%;
    right: 11%;
  }
  .bubble5 {
    right: 3%;
    bottom: 27%;
  }


  /* Obstacles */
  #obstacles {
    padding-top: 10rem;
    padding-bottom: 10rem;
    width: 75%;
  }

}
@media screen and (min-width: 1500px) {

  /* Hero */
  #hero .header { min-height: 1000px; }
  #hero .header h1 span {
    margin-bottom: 1rem;
    padding: 1rem 2rem;
  }


  /* Bubbles */
  .bubble { font-size: 20px; }
  .bubble img {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
  }
  .bubble1 { top: 14%; }
  .bubble2 {
    top: 10%;
    left: 22%;
  }
  .bubble3 { right: 33%; }
  .bubble4 { right: 10%; }
  .bubble5 img {
    top: auto;
    right: 15%;
    bottom: 100%;
    left: auto;
    transform: rotate(180deg);
  }


  /* Guests */
  .tanSection.alt .content { padding-left: 10rem; }

}
@media screen and (min-width: 1600px) {

  /* Bubbles */
  .bubble {
    max-width: 345px;
    padding: 2rem;
  }
  .bubble img {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
  }
  .bubble1 {
    top: 15%;
    left: 4%;
  }
  .bubble2 {
    top: 7%;
    left: 21%;
  }
  .bubble4 { top: 5%; }
  .bubble5 img {
    top: auto;
    right: 15%;
    bottom: 100%;
    left: auto;
    transform: rotate(180deg);
  }

}
@media screen and (min-width: 1700px) {

  /* Bubbles */
  .bubble3 { right: 34%; }
  .bubble4 {
    top: 6%;
    right: 11%;
  }
  .bubble5 { right: 4%; }

}
@media screen and (min-width: 1800px) {

  /* Bubbles */
  .bubble1 { left: 5%; }
  .bubble2 {
    top: 10%;
    left: 22%;
  }
  .bubble4 {
    top: 8%;
    right: 12%;
  }

}
