/* ========== BASE STYLES ========== */
:root {
    --primary-color: #111526;
    --secondary-color: #e9e9e9;
    --accent-color: #ffcc00;

    --font-primary: 'Manrope', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}
body {
    width: 100vw;
    overflow-x: hidden;
    scroll-behavior: auto;
    margin: 0;
    padding: 0;
    font-family: 'Manrope', sans-serif;
    background: var(--secondary-color);
}

  .section-offset {
    scroll-margin-top: 80px; /* Adjust to your navbar height */
  }

nav {
    background-color: var(--primary-color);
    padding: 0 20px;
    height: 80px;
    display: flex;
    align-items: center;
}

/* Flex container for logo and nav */
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo alignment */
.brand-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.brand-logo img {
    height: 60px;
    padding-top: 10px; /* Center vertically */
    width: auto;
}

/* Right-aligned nav links */
#nav-mobile {
    display: flex;
    align-items: center;
    margin-left: auto; /* Push to the right in flex */
}


#nav-mobile li {
    list-style: none;
    display: flex;
    align-items: center;
    margin-left: 15px;
}

#nav-mobile li a {
    color: var(--secondary-color); /* Optional: for visibility on dark nav */
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    font-size: 18px;   
}

.sidenav {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.banner {
    background-image: url('assets/main/banner.png'); /* Replace with your image path */
    background-size: cover;
    background-position: bottom center;
    height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary-color);
    position: relative;
    background-color: rgba(0, 0, 0, 0.50); /* Black with 35% transparency */
    z-index: 1;
}
.banner-image{
    z-index: 99999;
    width: 70vh;
    height: auto;
    margin-top:5vh;
  }

.banner p, .banner a {
    z-index: 2; /* Ensure text appears above the overlay */
    position: relative;
}

.main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: bold;
    color: white;
    text-shadow: #cccccc;

}
.banner .bottom-banner {
    position: absolute;
    bottom: 50px;
    max-width: 800px; /* Limit width for better readability */
}
.subtitle {
    font-family: 'Manrope', sans-serif;
    font-weight: bold;
    font-size: 1.5em;
}

.mission-statement {
    font-size: 1.2em;
    text-align: center;
}
.mission-statement-small {
    font-size: 1em;

}
.banner .link{
    font-size: 1em;
    font-weight: bold;
    color: white;
    z-index: 2; /* Ensure text appears above the overlay */
}

.btn-large{
    color: #111526 !important; 
    background-color: white !important;
    font-family: 'Manrope', sans-serif;
    border-radius: 10px;
    font-weight: bold;
    width: 250px;
    text-align: center;
}
.col {
    padding :0px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
}

.version{
    background-color: #111526;
    padding: 20px 0;
  
}

.version .version-title{
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    font-weight: bold;
    color: white

}

.version .version-image {
    width: 100%;
    height: 100%;
    position: relative;
    display:flex;
}

.version .version-description {
    color: white;
    font-size: 1.2em;
}

.faq-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    font-weight: bold;
    color: #111526;

    margin-bottom: 20px;
}

.faq-gray{
    background-color: #e9e9e9;
    color: #111526;
}

.faq-text {
    font-size: 1.8em;
    color: #111526;
    margin-bottom: 10px;
    font-family: 'Manrope', sans-serif;
    font-weight: bold;
}

.faq-answer {
    font-family: 'Manrope', sans-serif;
    font-size: 1.2em;
    color: #111526;
    margin-bottom: 20px;
}

footer, .page-footer{
    background-color: #111526;
    color: white;
    height: auto;
    padding: 20px 0;
}

.footer-logo {
    width: 200px; /* Adjust as needed */
    height: auto;
    display: flex;
    justify-content: center;
    margin-left: auto;
}

h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: white;
    font-weight: bold;
}



.buttons .fa-brands,
.btn-large .fa-brands,
.btn-large .fab {
    font-size: 1.5em;           /* Match icon size to text */
      /* Align icon with text */
       /* Space between icon and text */
    
}

/* Community Hub Section */
.Community{
    background-color: #e9e9e9;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    color: #111526;
    height: fit-content;
}

.Community-title{
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    font-weight: bolder;
    color: #111526;
    transform: translateX(30px);
}
.Community-image {
    width: 100%;
    height: 100%;
    display: flex;
    transform: translateX(30px);
}

.carousel-item {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.Community-description {
    font-size: 1.2em;
    transform: translateX(30px);
}

.community-button {
    display: inline-block;
    margin: 0 auto;
    background-color: #111526 !important;
    color: white !important;
    gap: 10px;
    margin: 5px;
    font-family: 'Manrope', sans-serif;
    border-radius: 10px;
    font-weight: bold;
    transform: translateX(30px);
    text-decoration: none; /* Remove underline from link */

}

.preloader-wrapper {
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #111526; /* Dark background for preloader */
    z-index: 9999; /* Ensure it covers everything */
    pointer-events: none; /* Prevent interaction with preloader */  
    
}

.preloader-logo {
    width: 50%; /* Adjust as needed */
    height: auto;
    display: block;
    margin: 0 auto; /* Center the logo */
    margin-bottom: 20px; /* Space between logo and text */
}
.preloader-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: bolder;
    text-transform: uppercase;
    font-size: 4em;
    color: white; /* Text color for preloader */
    text-align: center; /* Center the text */
}


/* P3 Games Section */

.p3-games-section {
    background-color: var(--primary-color);
    padding: 10px 0 30px 0;
    display: flex;
    flex-direction: column;
    color: white;
}

.p3-games-title{
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    font-weight: bolder;
    color: white;
    text-align: center;
}

.p3-story{
    font-size: 1em;
}

.p3-games-section .p3story,
.p3-games-section .p3team {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.p3-games-section .p3story {
    transform: translateX(50px);
}

.demo-section{
    background-color: #e9e9e9;
    padding: 20px 0;
    height: 60vh;
    display: flex;
    flex-direction: column;
}

.demo-section .demo-title{
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    font-weight: bolder;
    color: #111526;
    transform: translateX(20px);
}

.demo-section .demo-image {
    width: 100%;
    height: 100%;
    display: flex;
}

.demo-section .demo-description {
    color: #111526;
    font-size: 1.2em;
    transform: translateX(20px);
    padding-bottom: 100px;
}

.demo-button {
    display: inline-block;
    margin: 0 auto;
    background-color: #111526 !important;
    color: white !important;
    font-family: 'Manrope', sans-serif;
    border-radius: 10px;
    font-weight: bold;
    transform: translateX(20px);
    text-decoration: none; /* Remove underline from link */

}

#motorTownCarousel {
height: 45vh;

}

.carousel .carousel-item img {
  height: auto;         /* Set your desired height */
  width: 100%;           /* Make images fill the carousel item */
  object-fit: cover;     /* Prevent images from being stretched or cut off */
  display: block;
}

.features-section {
    background-color: #111526;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
}

.feature-title{
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    font-weight: bold;
    color: white

}


.wishlist-section {
    background-image: url('assets/main/wishlist.png'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    color: white;
    position: relative;
    padding: 20px; /* Add some padding for better spacing */
}

.wishlist-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.50); /* Black with 35% transparency */
    z-index: 1;

}
.wishlist-section p, .wishlist-section a {
    z-index: 2; /* Ensure text appears above the overlay */
    position: relative;
}

.wishlist-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    font-weight: bold;
    color: white;
    text-shadow: #cccccc;
    text-align: center;
}

.wishlist-subtitle {
    color: white;
    text-align: center;
    text-shadow: #cccccc;
    font-family: 'Manrope', sans-serif;
    font-weight: bold;
    font-size: 1.2em;
    padding-bottom: 50px;
}

.wishlist-button {
    display: inline-block;
    margin: 0 auto;
    width: auto;
}

.wishlist-section .container {
    text-align: center;
}

.nav-wishlist-button {
   border-color: #111526 !important ; 
   background-color: white;
   color: #ffcc00 !important;
    border-width: 2rem !important;
    border-radius: 5px !important;

}
/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 600px) {
  html, body {
    width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .container, .row {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }
  .col, .col.s6, .col.s12, .col.m6 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Section backgrounds full width, content padded */
  .features-section,
  .wishlist-section,
  .demo-section,
  .Community,
  .container,
  .version,
  .p3-games-section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    height: auto !important;
  }

  .Community-title, .community-button, .Community-image, .Community-description {
    transform: translateX(0) !important;
  }

  .p3story,.p3team, .p3-games-title, .p3-story {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    transform: translateX(0) !important;
  }

  /* Banner Section */
  .banner .main-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.2;
  }
  
  .banner .subtitle {
    font-size: 1rem;
    margin-bottom: 8px;
    text-align: center;
    line-height: 1.3;
  }
  .banner .bottom-banner {
    padding: 0 8px;
  }

  /* Demo Section */
  .demo-section .row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  
  .demo-section .col.s6 {
    margin: 0 0 16px 0;
    height: auto !important;
  }
  .demo-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 16px;
  }
  .demo-title, .demo-description {
    text-align: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
    word-break: break-word;
    font-size: 1.2em;
    transform: none !important;
  }
  .demo-button {
    .demo-button {
    display: block !important;
    width: 100% !important;
    margin: 12px 0 8px 0 !important;
    text-align: center !important;
    transform: none !important;
    visibility: visible !important;
  }

  /* Community Section */
  #Community .row,
  .p3-games-section .row {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #Community .col.s6,
  .p3-games-section .col.s6 {
    margin: 0 0 16px 0;
    text-align: center;
  }
  .Community-image {
    width: 100% !important;
    height: auto !important;
    margin-top: 16px;
    margin-bottom: 16px;
    display: block;
  }
  .Community-title,
  .Community-description {
    text-align: center !important;
    transform: none !important;
    margin-bottom: 12px;
  }
  .community-buttons-group {
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px;
    margin-bottom: 8px;
  }
  .community-button {
    width: 100%;
    margin-bottom: 8px;
    transform: none !important;
  }

  /* Feature Section */
  .features-section {
    padding: 16px 0;
    height: auto;
  }
  .feature-title {
    font-size: 2em !important;
    text-align: center !important;
    margin-bottom: 16px;
  }
  #motorTownCarousel {
    min-height: 180px !important;
    height: 30vh !important;
  }
  .carousel .carousel-item img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  /* Version Section */
  .version .row {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .version .col.s6 {
    margin: 0 0 16px 0;
    text-align: center;
  }
  .version .version-image {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 16px;
    display: block;
  }
  .version-title, 
  .version-description {
    text-align: center !important;
    margin-bottom: 12px;
  }
  .btn-large {
    width: 100%;
    text-align: center;
    margin-top: 12px;
  }

  /* Footer Logo */
  .footer-logo {
    width: 100px !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  /* Wishlist Section */
  .wishlist-title {
    text-align: center !important;
    margin-bottom: 16px;
    word-break: break-word;
  }
  .wishlist-subtitle {
    font-size: 1rem !important;
    color: white !important;
    margin-bottom: 10px;
    font-family: 'Manrope', sans-serif !important;
    font-weight: bold !important;
    text-align: left !important;
  }
  .wishlist-button {
    width: 100%;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 8px;
    display: block;
  }
  .wishlist-section .container {
    width: 90% !important;
    margin: 0 !important;
    padding: 0!important;
    box-sizing: border-box;
  }
}
}
