@media (min-width: 1024px) {

  html {
    height: 100%;
    width: 100%;
    font-family: sans-serif;
  }

  body {
    padding: 0px;
    margin: 0px;
  }

  .topnav {
    position: fixed;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    height: 90px;
    background-color: black;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .topnav a {
    color: #fffcfc;
    text-align: center;
    padding: 1.8rem 1.2rem;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
  }

  .topnav a::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }

  .topnav a:hover::before {
    transform: scaleX(1);
  }

  .nav-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: 18%;
    height: 90%;
  }

  .navLogo {
    width: auto;
    height: 90%;
    object-fit: contain;
    cursor: pointer;
    padding-left: 3rem;
  }

  .nav-center {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    background-color: black;
    flex-grow: 1;
    justify-content: flex-end;
  }

  .nav-center a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    padding: 1.2rem 0.8rem;
  }

  .nav-center a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }

  .nav-center a:hover::before {
    transform: scaleX(1);
  }

  .user-info {
    display: none;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    width: 30%;
    height: 60px;
  }

  .user-logo {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
  }

  .flex-spacer {
    flex-grow: 1;
  }

  .user-name {
    color: white;
    font-size: 1rem;
    white-space: nowrap;
  }

  .user-line {
    border-left: 1px solid white;
    height: 30px;
  }

  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    background-color: #1a1a1a;
    color: white;
    padding: 1rem 1rem 1rem 1rem;
    border-radius: 7px;
    min-width: 10rem;
    z-index: 3;
  }

  .user-info:hover .dropdown-menu {
    display: block;
  }

  .dropdown-menu p {
    font-size: 1rem;
    padding: 0.4rem 0;
    cursor: pointer;
    margin-left: 1rem;
  }

  .dropdown-menu p:hover {
    color: rgb(149, 129, 18);
  }

  .myRides {
    text-decoration: block;
    display: block;
    padding: 1% 10%;
    margin-top: 3%;
  }

  .storedLocations {
    text-decoration: block;
    display: block;
    padding: 1% 10%;
  }

  .userPayments {
    text-decoration: block;
    display: block;
    padding: 1% 10%;
  }

  .userInvoices {
    text-decoration: block;
    display: block;
    padding: 1% 10%;
  }

  .accountInformation {
    text-decoration: block;
    display: block;
    padding: 1% 10%;
  }

  .nav-right {
    display: flex;
    gap: 0rem;
    background-color: black;
    padding-right: 1.5rem;
    align-items: flex-start;
  }

  .mobile-menu {
    display: none;
  }

  .hamburger {
    display: none;
  }

  .book-a-ride-button {
    background-color: #a71717;
    cursor: pointer;
    color: white;
    border: none;
    text-align: center;
    font-size: 16px;
    width: 120px;
    height: auto;
    float: right;
    padding: 12px;
    margin: 10px;
    margin-top: 8px;
    border-radius: 3px;
    transition-duration: 0.4s;
  }

  .book-a-ride-button:hover {
    background-color: #6d1b15;
  }

  .sign-in-button {
    background-color: black;
    cursor: pointer;
    color: white;
    border-style: solid;
    float: right;
    text-align: center;
    width: 100px;
    height: 44px;
    padding: 12px;
    margin: 10px;
    margin-top: 8px;
    font-size: 16px;
    border-radius: 3px;
    transition-duration: 0.4s;
  }

  .sign-in-button:hover {
    background-color: white;
    color: #000000;
  }

  .beforeTop {
    width: 100%;
    height: 10vh;
  }

  .hero-section {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .top-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    display: block;
    margin-bottom: 0;
  }

  .top-image2 {
    display: none;
  }

  .underIndexPage {
    display: none;
  }

  .ride-type-buttons {
    position: absolute;
    display: flex;
    z-index: 2;
    margin-top: -2.45rem;
  }

  .ride-button {
    font-size: 1.5rem;
    padding: 0.5rem 2rem;
    background-color: white;
    border-radius: 1rem 1rem 0 0;
    border: none;
    cursor: pointer;
    letter-spacing: 0.1rem;
    color: black !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-decoration: none !important;
  }

  .ride-button:not(.active) {
    background-color: #e5e5e5;
  }

  .ride-button+.ride-button {
    margin-left: -1.6rem;
    z-index: 0;
  }

  #one-way {
    padding-right: 4rem;
  }

  #by-the-hour {
    border-top-left-radius: none;
  }

  .booking-wrapper {
    position: absolute;
    bottom: 4rem;
    left: 3%;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .booking-form {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.1);
    width: 34em;
    max-width: 100%;
  }

  .booking-form h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: black;
    margin-top: 0rem;
  }

  .booking-form input,
  .booking-form select {
    width: 92%;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #ccc;
    background-color: white;
    background-repeat: no-repeat;
    background-position: 0.5rem center;
    background-size: 1.5rem;
    text-indent: 1.5rem;
  }

  #pickup-location,
  #dropoff-location {
    background-image: url("images/map logo.png");
  }

  .stop-location {
    background-image: url("images/map logo.png");
    background-repeat: no-repeat;
    background-position: 0.5rem center;
    background-size: 1.5rem;
    text-indent: 1.5rem;
  }

  #duration {
    background-image: url("images/Clock.png");
    display: none;
    width: 100%;
    color: black !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-decoration: none !important;
  }

  .booking-form input::placeholder,
  .booking-form select {
    font-size: 1rem;
  }

  .form-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .add-stop-button,
  .erase-stop-button,
  .confirm-ride-button {
    padding: 0.5rem 1rem;
    border: 1px groove #ccc;
    border-radius: 0.25rem;
    background-color: white;
    font-size: 1.25rem;
    cursor: pointer;
    color: black !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-decoration: none !important;
  }

  .add-stop-button:hover,
  .erase-stop-button:hover,
  .confirm-ride-button:hover {
    background-color: rgb(177, 150, 0);
    color: white;
    border-color: black;
  }

  .confirm-ride-button {
    flex: 1;
    font-size: 1rem;
    letter-spacing: 0.1rem;
  }

  .map-container {
    width: 30rem;
    height: 16.4rem;
    border-radius: 0.5rem;
    display: none;
    margin-left: -1.5rem;
    position: relative;
  }

  .topLine {
    background-color: black;
    height: 9.375rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .topText {
    font-size: 2.1875rem;
    font-family: "Zapfino", cursive;
    color: white;
    text-align: center;
    padding: 0 1rem;
  }

  .mainPage {
    color: black;
    padding: 4rem 1rem;
    display: flex;
    justify-content: center;
  }

  .mainContent {
    max-width: 1200px;
    width: 100%;
    text-align: center;
  }

  .mainText1 {
    font-family: Copperplate, serif;
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    margin-top: 0rem;
  }

  .mainText2 {
    font-size: 1.5rem;
    word-spacing: 0.3rem;
    margin-bottom: 2rem;
    color: #333;
  }

  .mainText3 {
    font-size: 1.5rem;
    color: rgb(81, 77, 77);
    line-height: 1.6;
    margin-bottom: 0rem;
  }

  .UnderTopPage {
    display: none;
  }

  .infosection {
    background-color: rgb(255, 252, 252);
    padding: 4rem 2rem;
  }

  .info-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .info-card {
    position: relative;
    width: 22rem;
    height: 28rem;
    border-radius: 1.25rem;
    background-size: cover;
    background-position: center;
    padding: 3rem 2rem 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
  }

  .chauffeur {
    background-image: url('images/Chauffer.png');
  }

  .city {
    background-image: url('images/city.png');
  }

  .airport {
    background-image: url('images/airportImg.png');
  }

  .info-heading {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }

  .info-line {
    width: 70%;
    height: 2px;
    background-color: white;
    border: none;
    margin-bottom: 1rem;
    margin-left: 0rem;
  }

  .info-text {
    font-size: 1.2rem;
    line-height: 1.6;
  }

  .bottomPage {
    background-color: #000000;
    height: 25rem;
    margin-top: -23rem;
  }

  .before-end {
    background-color: white;
    color: black;
    padding: 2rem 1rem;
    text-align: center;
  }

  .ride-selection {
    max-width: 1200px;
    margin: 0 auto;
  }

  .bottomText1 {
    font-size: 2.5rem;
    font-weight: bold;
  }

  .bottomText2 {
    font-size: 1.3rem;
    margin-top: -0.8rem;
    margin-bottom: 3rem;
    color: #444;
  }

  .ride-type-selector {
    display: flex;
    justify-content: center;
    gap: 6rem;
    margin-top: 2rem;
  }

  .ride-type-option {
    color: #000;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0.25rem 0;
    transition: color 0.2s, border-bottom 0.2s;
    font-family: sans-serif;
    font-weight: lighter;
    font-size: 2rem;
  }

  .ride-type-option:hover {
    color: #a00000;
  }

  .ride-type-option.active {
    color: #a00000;
  }

  .lines {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 2px;
    margin: 0.4rem auto 0.1rem;
    width: 42rem;
    gap: 0rem;
  }

  .line {
    height: 5px;
    margin: 0 auto;
    display: block;
    border: none;
  }

  .red-line {
    background-color: #a00000;
  }

  .black-line {
    background-color: #000;
    display: block;
    height: 2px;
    width: 80%;
    margin-bottom: 2rem;
  }

  .short-line {
    width: 10rem;
  }

  .medium-line {
    width: 16rem;
  }

  .shortest-line {
    width: 7rem;
  }

  .vehicle-display {
    gap: 0rem;
    margin-bottom: 2rem;
  }

  .vehicle-images,
  .vehicle-labels,
  .vehicle-seats,
  .vehicle-expl {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 0rem;
  }

  .vehicle-images {
    margin-bottom: 1rem;
  }

  img#SuvCar,
  img#LuxurySedan,
  img#LuxurySedan2,
  img#SuvCar2 {
    width: 320px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0.5rem 3rem;
    display: none;
    margin-bottom: 0rem;
  }

  img#LuxurySedan {
    width: 380px;
    margin-right: -0.5rem;
    margin-top: -0.8rem;
  }

  .vehicle-labels p,
  .vehicle-seats p,
  .vehicle-expl p {
    width: 20rem;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: normal;
  }

  .book-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
  }

  p#SUV,
  p#SUV2,
  p#Sedan,
  p#Sedan2,
  p#SUV-Seat,
  p#SUV-Seat2,
  p#Sedan-Seat,
  p#Sedan-Seat2,
  p#Cadillac-expl,
  p#Suburban-expl,
  p#S90-expl,
  p#Mercedes-expl {
    text-align: center;
    max-width: 100%;
    margin: 0.5rem 2rem;
    display: none;
  }

  .vehicle-labels {
    font-weight: bold;
    font-size: 2rem;
    color: black;
  }

  .vehicle-seats {
    margin-top: -1rem;
    color: #333;
  }

  .vehicle-expl {
    color: #333;
    gap: 2rem;
  }

  .UnderBookNow,
  .UnderBookNow2 {
    background-color: #a71717;
    color: white;
    border-radius: 5px;
    border: 1px solid black;
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: auto 7rem;
    font-size: 1rem;
  }

  .UnderBookNow:hover,
  .UnderBookNow2:hover {
    background-color: #6d1b15;
  }

  .end {
    background-color: rgb(0, 0, 0);
    width: 100%;
    padding: 2rem 1rem;
    color: white;
    text-align: center;
    box-sizing: border-box;
  }

  .footer-line-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  .logo-line {
    flex: 1;
    border: 1px solid white;
  }

  .middleLogo {
    width: 6rem;
    height: auto;
    cursor: pointer;
  }

  .footer-wrapper {
    background-color: black;
    color: #fff;
    padding: 2rem 1rem;
    box-sizing: border-box;
  }

  .footer-top {
    display: flex;
    justify-content: space-between;
    gap: 0rem;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .footer-logo-slogan {
    text-align: left;
    margin-bottom: 2rem;
    flex: 1 1 250px;
    line-height: 2;
    cursor: pointer;
    margin-left: 2rem;
  }

  .underLogo {
    width: 13rem;
    height: auto;
    margin-bottom: 1.5rem;
  }

  .text5,
  .text6,
  .text7 {
    font-size: 0.8125rem;
    margin: 0.2rem 0;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
    line-height: 1;
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .icon {
    width: 1.8rem;
    height: auto;
  }

  .contact-text {
    font-size: 1.0625rem;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.1rem;
    text-align: left;
    flex: 3 1 600px;
  }

  .footer-group {
    display: flex;
    flex-direction: column;
    line-height: 0.4;
    font-size: 0.875rem;
    cursor: pointer;
    color: rgb(150, 150, 150);
  }

  .group-title {
    margin-top: 2rem;
    font-size: 1.0625rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
    color: rgb(255, 255, 255);
  }

  .social-media {
    display: flex;
    gap: 0.8rem;
    margin-top: 3rem;
  }

  .social-icon {
    width: 1.7rem;
    height: auto;
  }

  .end-line {
    border: 1px solid #fff;
    margin: 1rem 0;
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.875rem;
  }

  .last-text-left {
    margin-left: 2rem;
  }

  .last-text-right {
    margin-right: 2rem;
    gap: 2rem;
    word-spacing: 1.7rem;
  }

}

@media (width: 1024px) {

  .topnav {
    padding: 0 0.5rem;
    gap: 0.5rem;
  }

  .navLogo {
    padding-left: 1rem;
    height: 70%;
  }

  .nav-center {
    gap: 0.4rem;
  }

  .nav-center a {
    font-size: 0.875rem;
    padding: 1rem 0.5rem;
  }

  .nav-right {
    flex-direction: row;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding-right: 0.5rem;
    margin-right: 0.5rem;
  }

  .book-a-ride-button,
  .sign-in-button {
    width: auto;
    white-space: nowrap;
  }

  .beforeTop {
    height: 8vh;
  }

  .top-image {
    height: 60vh;
  }

  .topText {
    font-size: 1.8rem;
  }

  .map-container {
    width: 23rem;
  }

  .underLogo {
    display: block;
  }

  .footer-contact {
    align-items: end;
    margin-top: -7rem;
  }

  .footer-grid {
    gap: 0.2rem;
    margin-left: 2rem;
    margin-bottom: 2rem;
  }

}

@media (min-width: 1025px) and (max-width: 1280px) {

  .footer-grid {
    gap: 0.2rem;
  }

  .footer-group:nth-child(5) {
    margin-left: 39rem;
    margin-top: -4rem;
  }

  .social-media {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 1366px) and (max-width: 1439px) {

  .beforeTop {
    height: 8vh;
  }

  .footer-grid {
    gap: 0.2rem;
  }

  .social-media {
    margin-bottom: 13rem;
  }

  .footer-contact .contact-item:nth-of-type(2) {
    width: 100%;
  }

}

@media (min-width: 1440px) {

  .beforeTop {
    height: 8vh;
  }

  .social-media {
    margin-bottom: 13rem;
  }

  .footer-contact .contact-item:nth-of-type(2) {
    width: 100%;
  }
}

@media (min-width: 1920px) {

  .user-info {
    width: 18%;
  }

  .beforeTop {
    height: 8vh;
  }

  .top-image {
    height: 60vh;
  }

}

@media (max-width: 1023px) {

  html {
    height: 100%;
    width: 100%;
    font-family: sans-serif;
  }

  body {
    padding: 0px;
    margin: 0px;
  }

  .topnav {
    position: fixed;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    height: 90px;
    background-color: black;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .topnav a {
    color: #fffcfc;
    text-align: center;
    padding: 1.8rem 1.2rem;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
  }

  .topnav a::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }

  .topnav a:hover::before {
    transform: scaleX(1);
  }

  .nav-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: 18%;
    height: 90%;
  }

  .navLogo {
    width: auto;
    height: 90%;
    object-fit: contain;
    cursor: pointer;
    padding-left: 3rem;
  }

  .nav-center {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    background-color: black;
    flex-grow: 1;
    justify-content: flex-end;
  }

  .nav-center a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    padding: 1.2rem 0.8rem;
  }

  .nav-center a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }

  .nav-center a:hover::before {
    transform: scaleX(1);
  }

  .user-info {
    display: none;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    width: 30%;
    height: 60px;
  }

  .user-logo {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
  }

  .flex-spacer {
    flex-grow: 1;
  }

  .user-name {
    color: white;
    font-size: 1rem;
    white-space: nowrap;
  }

  .user-line {
    border-left: 1px solid white;
    height: 30px;
  }

  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    background-color: #1a1a1a;
    color: white;
    padding: 1rem 1rem 1rem 1rem;
    border-radius: 7px;
    min-width: 10rem;
    z-index: 3;
  }

  .user-info:hover .dropdown-menu {
    display: block;
  }

  .dropdown-menu p {
    font-size: 1rem;
    padding: 0.4rem 0;
    cursor: pointer;
    margin-left: 1rem;
  }

  .dropdown-menu p:hover {
    color: rgb(149, 129, 18);
  }

  .myRides {
    text-decoration: block;
    display: block;
    padding: 1% 10%;
    margin-top: 3%;
  }

  .storedLocations {
    text-decoration: block;
    display: block;
    padding: 1% 10%;
  }

  .userPayments {
    text-decoration: block;
    display: block;
    padding: 1% 10%;
  }

  .userInvoices {
    text-decoration: block;
    display: block;
    padding: 1% 10%;
  }

  .accountInformation {
    text-decoration: block;
    display: block;
    padding: 1% 10%;
  }

  .nav-right {
    display: flex;
    gap: 0rem;
    background-color: black;
    padding-right: 1.5rem;
    align-items: flex-start;
  }

  .mobile-menu {
    display: none;
  }

  .hamburger {
    display: none;
  }

  .book-a-ride-button {
    background-color: #a71717;
    cursor: pointer;
    color: white;
    border: none;
    text-align: center;
    font-size: 16px;
    width: 120px;
    height: auto;
    float: right;
    padding: 12px;
    margin: 10px;
    margin-top: 8px;
    border-radius: 3px;
    transition-duration: 0.4s;
  }

  .book-a-ride-button:hover {
    background-color: #6d1b15;
  }

  .sign-in-button {
    background-color: black;
    cursor: pointer;
    color: white;
    border-style: solid;
    float: right;
    text-align: center;
    width: 100px;
    height: 44px;
    padding: 12px;
    margin: 10px;
    margin-top: 8px;
    font-size: 16px;
    border-radius: 3px;
    transition-duration: 0.4s;
  }

  .sign-in-button:hover {
    background-color: white;
    color: #000000;
  }

  .end {
    background-color: rgb(0, 0, 0);
    width: 100%;
    padding: 2rem 1rem;
    color: white;
    text-align: center;
    box-sizing: border-box;
  }

  .footer-line-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  .logo-line {
    flex: 1;
    border: 1px solid white;
  }

  .middleLogo {
    width: 6rem;
    height: auto;
    cursor: pointer;
  }

  .underLogo {
    width: 13rem;
    height: auto;
    margin-bottom: 1.5rem;
  }

  .footer-wrapper {
    background-color: black;
    color: #fff;
    padding: 2rem 1rem;
    box-sizing: border-box;
  }

  .footer-top {
    display: flex;
    justify-content: space-between;
    gap: 0rem;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .footer-logo-slogan {
    text-align: left;
    margin-bottom: 2rem;
    flex: 1 1 250px;
    line-height: 2;
    cursor: pointer;
    margin-left: 2rem;
  }

  .text5,
  .text6,
  .text7 {
    font-size: 0.8125rem;
    margin: 0.2rem 0;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
    line-height: 1;
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .icon {
    width: 1.8rem;
    height: auto;
  }

  .contact-text {
    font-size: 1.0625rem;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.1rem;
    text-align: left;
    flex: 3 1 600px;
  }

  .footer-group {
    display: flex;
    flex-direction: column;
    line-height: 0.4;
    font-size: 0.875rem;
    cursor: pointer;
    color: rgb(150, 150, 150);
  }

  .group-title {
    margin-top: 2rem;
    font-size: 1.0625rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
    color: rgb(255, 255, 255);
  }

  .social-media {
    display: flex;
    gap: 0.8rem;
    margin-top: 3rem;
  }

  .social-icon {
    width: 1.7rem;
    height: auto;
  }

  .end-line {
    border: 1px solid #fff;
    margin: 1rem 0;
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.875rem;
  }

  .last-text-left {
    margin-left: 2rem;
  }

  .last-text-right {
    margin-right: 2rem;
    gap: 2rem;
    word-spacing: 1.7rem;
  }
}

@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  .topnav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    position: relative;
    box-sizing: border-box;
  }

  .topnav a::before {
    display: none;
  }

  .nav-left {
    width: auto;
    justify-content: flex-start;
    padding-bottom: 0;
    height: auto;
  }

  .navLogo {
    height: 70px;
    padding-left: 0;
  }

  .nav-center {
    display: block
  }

  .nav-center a {
    display: none;
  }

  .user-info {
    margin-left: auto;
    width: 45%;
  }

  .nav-right {
    display: none;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    margin-right: 1rem;
  }

  .hamburger span {
    background: white;
    position: absolute;
    height: 3px;
    width: 100%;
    left: 0;
    transition: all 0.3s ease;
  }

  .hamburger span:nth-child(1) {
    top: 0;
  }

  .hamburger span:nth-child(2) {
    top: 10px;
  }

  .hamburger span:nth-child(3) {
    top: 20px;
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    width: 96vw;
    background-color: rgb(213, 213, 213);
    padding: 1rem;
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    z-index: 5;
    align-items: flex-start;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    padding: 0.75rem 0;
    font-size: 1.3rem;
    text-align: left;
    margin-left: 4rem;
    letter-spacing: 0.3rem;
    border-bottom: 1px solid #000000;
    width: 80%;
    margin-bottom: 0.5rem;
    text-indent: 2rem;
  }

  .mobile-menu a:hover {
    background-color: #979797;
    border-radius: 5px;
  }

  .nav-right2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0;
    background-color: rgb(213, 213, 213);
    width: 90%;
  }

  .nav-right2 .book-a-ride-button,
  .nav-right2 .sign-in-button {
    width: 89%;
    max-width: none;
    font-size: 1.3rem;
    padding: 0.75rem 0;
    text-align: left;
    border: none;
    letter-spacing: 0.2rem;
    margin-left: 4rem;
    border-bottom: 1px solid #000000;
    margin-bottom: 0.5rem;
    text-indent: 2rem;
  }

  .nav-right2 .book-a-ride-button {
    color: rgb(0, 0, 0);
    background-color: rgb(213, 213, 213);
    margin-top: -0.3rem;
  }

  .nav-right2 .sign-in-button {
    color: rgb(0, 0, 0);
    background-color: rgb(213, 213, 213);
    margin-top: -0.05rem;
    padding-bottom: 2.3rem;
  }

  .beforeTop {
    width: 100%;
    height: 0vh;
  }

  .hero-section {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .top-image {
    width: 100%;
    height: 40vh;
    object-fit: cover;
    z-index: -1;
    display: block;
    margin-bottom: 0;
  }

  .top-image2 {
    display: none;
  }

  .underIndexPage {
    display: none;
  }

  .ride-type-buttons {
    position: absolute;
    display: flex;
    z-index: 2;
    margin-top: -2.1rem;
  }

  .ride-button {
    font-size: 1.3rem;
    padding: 0.5rem 1.2rem;
    background-color: white;
    border-radius: 1rem 1rem 0 0;
    border: none;
    cursor: pointer;
    letter-spacing: 0.1rem;
    color: black !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-decoration: none !important;
  }

  .ride-button:not(.active) {
    background-color: #e5e5e5;
  }

  .ride-button+.ride-button {
    margin-left: -1.6rem;
    z-index: 0;
  }

  #one-way {
    padding-right: 3rem;
  }

  #by-the-hour {
    border-top-left-radius: none;
  }

  .booking-wrapper {
    position: absolute;
    bottom: 1rem;
    left: 3%;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .booking-form {
    background-color: #fff;
    padding: 1.1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.1);
    width: 25em;
    max-width: 100%;
  }

  .booking-form h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: black;
    margin-top: 0rem;
  }

  .booking-form input,
  .booking-form select {
    width: 89%;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #ccc;
    background-color: white;
    background-repeat: no-repeat;
    background-position: 0.5rem center;
    background-size: 1.5rem;
    text-indent: 1.5rem;
  }

  #pickup-location,
  #dropoff-location {
    background-image: url("images/map logo.png");
  }

  .stop-location {
    background-image: url("images/map logo.png");
    background-repeat: no-repeat;
    background-position: 0.5rem center;
    background-size: 1.5rem;
    text-indent: 1.5rem;
  }

  #duration {
    background-image: url("images/Clock.png");
    display: none;
    width: 100%;
    color: black !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-decoration: none !important;
  }

  .booking-form input::placeholder,
  .booking-form select {
    font-size: 1rem;
  }

  .form-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .add-stop-button,
  .erase-stop-button,
  .confirm-ride-button {
    padding: 0.5rem 1rem;
    border: 1px groove #ccc;
    border-radius: 0.25rem;
    background-color: white;
    font-size: 1.25rem;
    cursor: pointer;
    color: black !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-decoration: none !important;
  }

  .add-stop-button:hover,
  .erase-stop-button:hover,
  .confirm-ride-button:hover {
    background-color: rgb(177, 150, 0);
    color: white;
    border-color: black;
  }

  .confirm-ride-button {
    flex: 1;
    font-size: 1rem;
    letter-spacing: 0.1rem;
  }

  .map-container {
    width: 18rem;
    height: 15.4rem;
    border-radius: 0.5rem;
    display: none;
    margin-left: -1.5rem;
    position: relative;
  }

  .topLine {
    background-color: black;
    height: 7.375rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .topText {
    font-size: 1.5rem;
    font-family: "Zapfino", cursive;
    color: white;
    text-align: center;
    padding: 0 1rem;
  }

  .mainPage {
    color: black;
    padding: 4rem 1rem;
    display: flex;
    justify-content: center;
  }

  .mainContent {
    max-width: 1200px;
    width: 100%;
    text-align: center;
  }

  .mainText1 {
    font-family: Copperplate, serif;
    font-size: 3.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    margin-top: 0rem;
  }

  .mainText2 {
    font-size: 1.2rem;
    word-spacing: 0.3rem;
    margin-bottom: 2rem;
    color: #333;
  }

  .mainText3 {
    font-size: 1.2rem;
    color: rgb(81, 77, 77);
    line-height: 1.6;
    margin-bottom: 0rem;
  }

  .UnderTopPage {
    display: none;
  }

  .infosection {
    background-color: rgb(255, 252, 252);
    padding: 1rem 2rem;
  }

  .info-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .info-card {
    position: relative;
    width: 22rem;
    height: 28rem;
    border-radius: 1.25rem;
    background-size: cover;
    background-position: center;
    padding: 3rem 2rem 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
  }

  .chauffeur {
    background-image: url('images/Chauffer.png');
  }

  .city {
    background-image: url('images/city.png');
  }

  .airport {
    background-image: url('images/airportImg.png');
  }

  .info-heading {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }

  .info-line {
    width: 70%;
    height: 2px;
    background-color: white;
    border: none;
    margin-bottom: 1rem;
    margin-left: 0rem;
  }

  .info-text {
    font-size: 1.2rem;
    line-height: 1.6;
  }

  .bottomPage {
    background-color: #000000;
    height: 25rem;
    margin-top: -23rem;
  }

  .before-end {
    background-color: white;
    color: black;
    padding: 2rem 1rem;
    text-align: center;
  }

  .ride-selection {
    max-width: 1200px;
    margin: 0 auto;
  }

  .bottomText1 {
    font-size: 2.1rem;
    font-weight: bold;
  }

  .bottomText2 {
    font-size: 1.2rem;
    margin-top: -0.8rem;
    margin-bottom: 3rem;
    color: #444;
  }

  .ride-type-selector {
    display: flex;
    justify-content: center;
    gap: 6rem;
    margin-top: 2rem;
  }

  .ride-type-option {
    color: #000;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0.25rem 0;
    transition: color 0.2s, border-bottom 0.2s;
    font-family: sans-serif;
    font-weight: lighter;
    font-size: 2rem;
  }

  .ride-type-option:hover {
    color: #a00000;
  }

  .ride-type-option.active {
    color: #a00000;
  }

  .lines {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 2px;
    margin: 0.4rem auto 0.1rem;
    width: 42rem;
    gap: 0rem;
  }

  .line {
    height: 5px;
    margin: 0 auto;
    display: block;
    border: none;
  }

  .red-line {
    background-color: #a00000;
  }

  .black-line {
    background-color: #000;
    display: block;
    height: 2px;
    width: 90%;
    margin-bottom: 2rem;
  }

  .short-line {
    width: 10rem;
  }

  .medium-line {
    width: 16rem;
  }

  .shortest-line {
    width: 7rem;
  }

  .vehicle-display {
    gap: 0rem;
    margin-bottom: 2rem;
  }

  .vehicle-images,
  .vehicle-labels,
  .vehicle-seats,
  .vehicle-expl {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 0rem;
  }

  .vehicle-images {
    margin-bottom: 1rem;
  }

  img#SuvCar,
  img#LuxurySedan,
  img#LuxurySedan2,
  img#SuvCar2 {
    width: 320px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0.5rem 3rem;
    display: none;
    margin-bottom: 0rem;
  }

  img#LuxurySedan {
    width: 380px;
    margin-right: -0.5rem;
    margin-top: -0.8rem;
  }

  .vehicle-labels p,
  .vehicle-seats p,
  .vehicle-expl p {
    width: 20rem;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: normal;
  }

  p#SUV,
  p#SUV2,
  p#Sedan,
  p#Sedan2,
  p#SUV-Seat,
  p#SUV-Seat2,
  p#Sedan-Seat,
  p#Sedan-Seat2,
  p#Cadillac-expl,
  p#Suburban-expl,
  p#S90-expl,
  p#Mercedes-expl {
    text-align: center;
    max-width: 100%;
    margin: 0.5rem 2rem;
    display: none;
  }

  .vehicle-labels {
    font-weight: bold;
    font-size: 2rem;
    color: black;
  }

  .vehicle-seats {
    margin-top: -1rem;
    color: #333;
  }

  .vehicle-expl {
    color: #333;
    gap: 2rem;
  }

  .book-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
  }

  .UnderBookNow,
  .UnderBookNow2 {
    background-color: #a71717;
    color: white;
    border-radius: 5px;
    border: 1px solid black;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: auto 7rem;
    font-size: 1rem;
  }

  .UnderBookNow:hover,
  .UnderBookNow2:hover {
    background-color: #6d1b15;
  }

  .underLogo {
    display: none;
  }

  .footer-contact {
    align-items: end;
    margin-top: -4rem;
    margin-right: 2rem;
  }

  .footer-contact .contact-item:first-of-type {
    margin-right: 0rem;
    margin-top: -1rem;
  }

  .footer-contact .contact-item:nth-of-type(2) {
    margin-bottom: 1rem;
    font-size: 0.5rem;
    word-break: break-word;
    white-space: normal;
  }

  .footer-grid {
    margin-left: 2rem;
    margin-bottom: 2rem;
  }

  .last-text-left {
    margin-left: 1rem;
  }

  .last-text-right {
    margin-left: 1rem;
    word-spacing: 1rem;
  }
}

@media (min-width: 320px) and (max-width: 767px) {

  .mobile-menu a {
    margin-left: 2rem;
  }

  .nav-right2 .book-a-ride-button,
  .nav-right2 .sign-in-button {
    margin-left: 2rem;
  }

  .user-info {
    position: absolute;
    top: 100%;
    left: 0;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
  }

  .user-logo {
    height: 30px;
    width: 30px;
  }

  .dropdown-menu {
    left: 0;
  }

  .footer-contact {
    margin-top: 4rem;
    margin-bottom: -2rem;
  }

  .footer-contact .contact-item:first-of-type {
    margin-right: 8.9rem;
  }

  .footer-contact .contact-item:nth-of-type(2) {
    font-size: 0.5rem;
    word-break: break-word;
    white-space: normal;
    margin-right: 2rem;
  }

  .last-text-right {
    margin-left: 4rem;
  }
}

@media (max-width: 440px) {

  .top-image {
    display: none;
  }

  .top-image2 {
    display: block;
    height: 100%;
    width: 100%;
  }

  .underIndexPage {
    display: block;
    background-color: #191919;
    height: 8rem;
  }

  .booking-form {
    width: 23em;
    margin-bottom: 1rem;
  }

  .map-container {
    width: 25rem;
    height: 15.4rem;
    border-radius: 0.5rem;
    display: none;
    margin-left: 0rem;
    margin-top: -2.5rem;
    margin-bottom: 1rem;
    position: relative;
  }

  .topLine {
    height: 11rem;
  }

  .topText {
    font-size: 1.3rem
  }

  .mainText1 {
    font-size: 2.6rem;
  }

  .mainText2 {
    font-size: 1.15rem;
  }

  .UnderTopPage {
    display: block;
    background-color: #000000;
    height: 25rem;
    position: absolute;
    top: 1;
    width: 100%;
    z-index: 0;
  }

  #popular,
  #line-1,
  #BookNow2 {
    display: none;
  }

  .ride-type-selector {
    gap: 4rem;
  }

  .ride-type-option {
    font-size: 1.7rem;
  }

  .lines {
    width: 24rem;
  }

  .black-line {
    width: 90%;
  }

  .medium-line {
    width: 13rem;
  }

  .shortest-line {
    width: 6rem;
  }

}

@media (min-width: 390px) and (max-width: 414px) {

  .map-container {
    width: 23.9em;
  }

  .mobile-menu a {
    margin-left: 2rem;
  }

  .nav-right2 .book-a-ride-button,
  .nav-right2 .sign-in-button {
    margin-left: 2rem;
  }

  .footer-contact {
    margin-bottom: 1rem;
  }

  .footer-contact .contact-item:first-of-type {
    margin-right: 6.7rem;
  }

  .footer-contact .contact-item:nth-of-type(2) {
    margin-bottom: -1rem;
    font-size: 0.5rem;
    word-break: break-word;
    white-space: normal;
    margin-right: 1rem;
  }

  .footer-group:nth-child(2) {
    margin-left: 0rem;
  }

  .footer-group:nth-child(4) {
    margin-left: 0rem;
  }

  .social-media {
    margin-left: 0rem;
  }

  .last-text-right {
    margin-left: 2.2rem;
  }
}

@media (width: 414px) {

  .booking-form {
    width: 22em;
  }

  .footer-contact .contact-item:first-of-type {
    margin-right: 8rem;
  }

  .footer-contact .contact-item:nth-child(2) {
    margin-bottom: 0rem;
  }

}

@media (width: 412px) {

  .booking-form {
    width: 21.7em;
  }

  .footer-contact .contact-item:first-of-type {
    margin-right: 8rem;
  }

  .footer-contact .contact-item:nth-child(2) {
    margin-bottom: 0rem;
  }

}

@media (min-width: 390px) and (max-width: 395px) {

  .booking-form {
    width: 21em;
  }

  .map-container {
    width: 23em;
  }

  .lines {
    width: 20rem;
  }

}

@media (width: 360px) {

  .booking-form {
    width: 18.5em;
  }

  .booking-form input,
  .booking-form select {
    width: 86%;
  }

  .map-container {
    width: 20.7em;
  }

  .ride-type-selector {
    gap: 2rem;
  }

  .ride-type-option {
    font-size: 1.4rem;
  }

  .lines {
    width: 15rem;
  }

  .medium-line {
    width: 9rem;
  }

  .shortest-line {
    width: 6rem;
  }

  .footer-contact .contact-item:first-of-type {
    margin-right: 4.8rem;
  }

  .footer-contact .contact-item:nth-of-type(2) {
    margin-right: 0.1rem;
  }

  .footer-group:nth-child(2) {
    margin-left: 0rem;
  }

  .footer-group:nth-child(4) {
    margin-left: 0rem;
  }

  .last-text-right {
    margin-left: 0.6rem;
    gap: 0.1rem;
  }
}

@media (max-width: 320px) {

  .navLogo {
    height: 60px;
  }

  .mobile-menu a {
    margin-left: 1rem;
  }

  .nav-right2 .book-a-ride-button,
  .nav-right2 .sign-in-button {
    margin-left: 1rem;
  }

  .user-info {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 0px;
  }

  .ride-button {
    font-size: 1.2rem;
  }

  .booking-form {
    width: 16em;
  }

  .booking-form input,
  .booking-form select {
    width: 83%;
  }

  .map-container {
    width: 18.2em;
  }

  .ride-type-selector {
    gap: 2rem;
  }

  .ride-type-option {
    font-size: 1.4rem;
  }

  .lines {
    width: 15rem;
  }

  .medium-line {
    width: 9rem;
  }

  .shortest-line {
    width: 6rem;
  }

  .footer-logo-slogan {
    margin-left: 1rem;
  }

  .footer-contact .contact-item:first-of-type {
    margin-right: 3.3rem;
  }

  .footer-contact .contact-item:nth-of-type(2) {
    margin-right: 0.1rem;
  }

  .footer-grid {
    margin-left: -3rem;
  }

  .footer-group:nth-child(1) {
    margin-left: 4rem;
  }

  .footer-group:nth-child(2) {
    margin-left: 4rem;
  }

  .footer-group:nth-child(3) {
    margin-left: 4rem;
  }

  .footer-group:nth-child(4) {
    margin-left: 4rem;
  }

  .footer-group:nth-child(5) {
    margin-left: 4rem;
  }

  .social-media {
    margin-left: 0rem;
    margin-top: 2rem;
    margin-bottom: 0rem;
  }

  .last-text-right {
    font-size: 0.8rem;
    margin-left: 0.6rem;
    gap: 1rem;
    word-spacing: 0.5rem;
  }

}