:root {
  --bg-color: rgb(20, 20, 20);
  --bg-color2: rgba(255, 255, 255, 0.3);
}

body {
  background-color: var(--bg-color);
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 5px;
  background-color: rgb(20, 20, 20);
}

::-webkit-scrollbar-thumb {
  background: rgb(105, 105, 105);
  border-radius: 100px;
}

#top-bar {
  transition: all 0.4s ease-in-out;
  left: 0;
  width: 100%;
}

#top-bar.solid {
  background-color: rgb(20, 20, 20);
  border-radius: 0;
  padding-left: 0;
}

#second.solid2 {
  background-color: rgb(30, 30, 30);
  border-radius: 0;
  padding-top: 6px;
  margin-left: -24px;
}

/*sections*/
.sections {
  position: absolute;
  top: 4.25rem;
  left: 0;
  width: 100vw;
  color: white;
}

.section {
  height: fit-content;
  padding: 2rem 0 2rem;
}

.section1 {
  display: flex;
  justify-content: center;
  background-color: #121826;
}

.section1 h1 {
  font-size: 3rem;
}

.section1 p {
  text-align: left;
  font-size: 1.5rem;
}

.section1 img {
  height: 80%;
}

.text {
  width: 45%;
  color: white;
  font-size: 1.3rem;
  margin: 3rem;
}

/*Section 2 - Carousel*/
.section2 i {
  height: 50px;
  width: 50px;
  background: rgb(148, 53, 53);
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  font-size: 1.25rem;
  top: 33%;
  transform: translateY(-250%);
}

#left {
  left: 10%;
  z-index: 5;
}

#right {
  right: 10%;
}

.section2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-style: solid none solid none;
  border-color: rgba(187, 255, 249, 0.9);
  border-width: 4px;
  background: url("../Images/runningBG.avif");
  background-size: 100%;
  background-repeat: no-repeat;
}

.section2 h1 {
  font-size : 2.8rem;
}

.section2 h2 {
  font-size: 2.3rem;
  padding: 2rem 0 2rem;
  text-align: center;
  margin : 0.5rem;
  padding-bottom : 0.5rem;
}

.section2 p {
  font-size: 1.2rem;
}

#section2-container {
  width: 100%;
}

.card {
  height: 300px;
  width: 25rem;
  border-radius: 5px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.card:nth-child(2n+1) {
  background-color: rgba(0, 99, 145, 0.9);
}

.card:nth-child(2n+2) {
  background-color: rgba(0, 183, 255, 0.9);
}

.slider-container {
  width: 1230px;
  height: 350px;
  position: relative;
  overflow: hidden;
  scroll-behavior: smooth;
}

.inner-slider {
  width: 3680px;
  display: flex;
  gap: 10px;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: -810px;
}

.section2m {
  display: none;
}

/*Section2 - Carousel*/
/*Section 3*/
.section3 {
  display : flex;
  flex-direction : column;
  align-items : center;
  padding : 2rem 0 2rem 0;
}

.section3 h2, p {
  text-align: center;
}

.section3 p {
  font-size: 1.5rem;
  width : 80%;
}

.section3 h2 {
  font-size: 2.5rem;
  margin-bottom : 1rem;
}

/*Section 4 - Icons w/ Text*/
.section4 {
  padding-bottom: 0rem;
}

.container {
  background-color: #151c39;
  display: flex;
  justify-content: center;
  color: white;
}

.container:nth-child(odd) {
  background-color: #121826;
}

.box {
  display: flex;
  padding: 1rem 2rem 1rem 2rem;
  align-items: center;
}

.bubble {
  position: relative;
  height: 11rem;
  width: 11rem;
  border-radius: 50%;
  border: solid 3px white;
}

.desc {
  background-color: rgba(0, 0, 0, 0.4);
  width: 43rem;
  height: 8rem;
  display: flex;
  align-items: center;
  font-size: 1.2rem;
}

.rightDesc {
  margin-left: -2rem;
  border-top-right-radius: 100px;
  border-bottom-right-radius: 100px;
  padding: 0rem 5rem 0rem 3rem;
}

.leftDesc {
  border-top-left-radius: 100px;
  border-bottom-left-radius: 100px;
  padding: 0rem 3rem 0rem 5rem;
}

.bubble1 {
  background: url("../Images/waterbottle.png");
  background-position: center;
  background-size: 90%;
  background-color: rgb(255, 197, 71);
  background-repeat: no-repeat;
}

.bubble2 {
  margin-left: -2rem;
  background: url("../Images/stretching.png");
  background-position: center;
  background-size: 43%;
  background-repeat: no-repeat;
  background-color: rgb(52, 89, 255);
}

.bubble3 {
  background: url("../Images/running-shoes.png");
  background-position: center;
  background-size: 110%;
  background-repeat: no-repeat;
  background-color: rgb(109, 209, 159);
}

.bubble4 {
  background: url("../Images/trafficLight.webp");
  margin-left: -2rem;
  background-position: center;
  background-size: 85%;
  background-repeat: no-repeat;
  background-color: rgb(160, 133, 255);
}

/*Section 4 - Icons w/ Text*/
.section5 {
  text-align: center;
  padding-bottom: 11rem;
  background: url("../Images/running-legs.jpg");
  background-size: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  background-blend-mode: overlay;
  border-top: solid 1px white;
}

.section5 h2 {
  font-weight: bolder;
  font-size: 3rem;
}

#explore {
  background-color: rgb(255, 255, 0);
  padding: 1rem 4rem 1rem 4rem;
  border-radius: 100px;
  font-size: 1.2rem;
  font-weight: bold;
  transform: translateY(0);
  transition: all 0.3s;
}

#btn {
  background-color: rgb(212, 156, 0);
  width: fit-content;
  border-radius: 100px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 1rem
}

#btn:hover #explore {
  transform: translateY(-5px);
}

.btnClicked {
  background-color: rgb(180, 180, 0) !important;
}

@keyframes gradient {
  0% {
    background:
  }
}

@media (max-width: 1050px) {
  .section2 {
    display: none;
  }

  .section2m {
    display: initial;
  }

  .section2m h1 {
    text-align: center;
    font-size: 3rem;
    padding-bottom: 0;
  }

  .section2m p {
    font-size: 1.5rem;
  }

  .section2m h2 {
    font-size: 2rem;
  }

  table {
    width: 100vw;
  }

  th {
    display: none;
  }

  td {
    display: grid;
    grid-template-columns: 1fr padding: 0.5rem 0rem 0 0rem;
    text-align: center;
  }

  td:first-child {
    padding-top: 2rem;
  }

  td:last-child {
    padding-bottom: 2rem
  }

  td:before {
    font-weight: 700;
    text-transform: capitalize;
  }

  tr:nth-child(odd) {
    background-color: #121826;
  }

  tr:nth-child(even) {
    background-color: #151c39;
  }
}

@media (max-width : 1000px) {
  .section1 {
    flex-direction: column;
    align-items: center;
  }

  .section1 img {
    width: 80%;
  }

  .text {
    width: 75%;
    text-align: center;
  }

  .box1 {
    flex-direction: column;
  }

  .box2 {
    flex-direction: column-reverse;
  }

  .desc {
    background-color: rgba(0, 0, 0, 0.4);
    width: 90%;
    height: fit-content;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    padding: 1rem;
    border-radius: 0;
    margin: 0;
  }

  .bubble {
    background-color: transparent;
    border: none;
  }

  .section5 {
    padding-bottom: 5rem;
  }
}
