* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f9;
}

/* Use a flexbox to dynamically reposition items*/
.top-navbar nav {
    position: sticky;
    overflow-y: visible;
  }
  .top-navbar {
    overflow-x: scroll;
    background-color: navy;
    position: sticky;
    width: 100%;
  
  
  }
  
  .top-navbar ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    align-items: stretch;
    overflow-y: hidden;
  }
  .top-navbar ul li {
    padding: 0px;
  }
  
  
  /* Change the color of the links*/
  
  .top-navbar {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color: navy;
    top: 0px;
    width: 100%;
    transition: top 0.5s;
  }
  
  .top-navbar a {
    float: left;
    display: block;
    color: white;
    font-weight: bold;
    background-color: navy;
    text-align: center;
    padding: 20px;
    text-decoration: none;
    height: 100%;
  
    /* Needed to fix the active element appearing smaller than usual*/
  
  }
  
  .top-navbar a:hover {
    /* font-weight: bold; */
    background-color: rgb(135, 135, 248);
  }
  
  .top-navbar .active:hover {
    background-color: rgb(66, 26, 176);
  }
  
  .top-navbar .active {
    background-color: rgb(66, 26, 176);
    text-decoration: underline;
    text-decoration-thickness: 3px;
  }
/* General Reset */
.start-today {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 2rem auto;
}
.start-today h1 {
    font-size: 2.5rem;
    color: #004aad;
    margin-bottom: 1rem;
}
.start-today p {
    font-size: 1.1rem;
    color: whitesmoke;
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.download-buttons .btn {
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.app-store {
    background-color: #333;
}
.google-play {
    background-color: #34a853;
}
.app-store:hover {
    background-color: #555;
}
.google-play:hover {
    background-color: #2c7a3e;
}

.testimonial {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}
.testimonial h2 {
    font-size: 1.8rem;
    color: #004aad;
    margin-bottom: 1rem;
}
.testimonial p {
    font-style: italic;
    color: #555;
    margin-bottom: 0.5rem;
}

.cta {
    background-color: #004aad;
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}
.cta h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.cta p {
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: #1b1b3a;
    color: white;
    padding: 7rem 18rem;
    text-align: right;
}

#main {
    display: flex;
}

.footer-text {
    margin-bottom: 9px;
}

.feature-footer {
    display: inline-block;
    text-align: left;
    width: 55%
}

.subtitle {
    width: 15%;
}

#products, #resources, #company {
    font-size: 18px;
    font-weight: bold;
    padding: 9px 0px;
}

#logo {
    font-weight: bold;
    font-size: 40px;
}

#fitness {
    padding: 65px 0px 15px 300px;
    font-size: 17px;
}

#start-today {
    background-color: white;
    text-align: left;
    padding: 20px 70px;
    border: none;
    display: inline-block;
    font-size: 20px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: bold;
    border-radius: 40px;
}

#start-today:hover {
    background-color: #e3e8fd;
    transition-duration: 0.5s;
}

#moto {
    padding: 80px 0px 25px 0px;
    font-size: 20px;
}

#socials {
    padding-top: 20px;
    gap: 25px;
    justify-content: center;
    display: flex;
}

#arr {
    padding-top: 100px;
    display: flex;
    justify-content: center;
}


@media (max-width: 768px) {
    .top-navbar ul {
        flex-direction: column;
    }
    .download-buttons {
        flex-direction: column;
    }
}