@import url('https://fonts.googleapis.com/css2?family=Belanosima:wght@400;600;700&display=swap');

/* General Styles */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Belanosima', sans-serif;
    color: #FFF;
}

a, button {
    cursor: pointer;
    text-decoration: none;
}

body {
    background-color: #1c1c1b;
}

a {
    text-decoration: none;
}

.active-page {
    text-decoration: underline;
}

.pattern-separator {
    width: 100%;
    max-width: 512px;
}

/* End General Styles */

/* HOME PAGE */

/* Hero Section */

#home #hero-body {
    min-height: 40%;
    width: 100%;
    overflow: hidden;
    max-height: 50%;
}

.carousel-wrapper {
    width: 100%;
    display: flex;
    /* animation: slide 16s linear infinite; */
}

.carousel-wrapper img {
    width: 100%;
    object-fit: fill;
    object-position: center;
    z-index: 0;
}

.mobile-nav {
    height: 4.5rem;
    background-color: rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.mobile-navigation {
    position: fixed;
    right: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #1B1B1B;
    transition: 0.5s;
    padding-top: 3rem;
}

.mobile-navigation ul li {
    color: #fff;
    text-align: right;
    text-transform: uppercase;
    list-style-type: none;
    font-size: 1.5rem;
    padding: 20px 30px;
    border-bottom: 1pt solid #0051ff;
    width: 75%;
    margin-right: 0;
    place-self: end;
}

.hamburger, .bar {
    position: fixed;
}

.hamburger {
    display: block;
    top: 35px;
    right: 5%;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    border: 0;
    background: 0 0;
}

.bar {
    top: 3px;
    background: #FFF;
    width: 100%;
    height: 4px;
    transition: all .3s ease-in;
}

.two {
    top: 11px;
}

.three {
    top: 19px;
}

.mobile-navigation.active {
    right: 0;
}

.hamburger.open .bar.one {
    background-color: #fff;
    transform: rotate(45deg) translate(6px, 5px);
}

.hamburger.open .bar.two {
    background-color: transparent;
}

.hamburger.open .bar.three {
    background-color: #fff;
    transform: rotate(-45deg) translate(6px, -5px);
}

#nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    backdrop-filter: blur(6px);
}

.nav-links {
    position: relative;
    padding-bottom: 5px;
}

.nav-links::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background-color: #ef7d00;
    transition: width 0.3s ease;
}

.nav-links:hover::after {
    width: 100%;
}

#home #hero-body {
    position: relative;
}

#hero-arrow {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

@media (min-width: 1400px) {
  .hero-swiper .swiper-slide img {
    object-position: bottom;
  }
}

/* End Hero Section */

/* Footer Section  */

#footer {
    /* background-image: url(../img/ms23footer.jpg); */
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)), url(../img/23-Racing-Footer.svg);;
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: cover;
}

#footer-contents {
    background-color: rgba(0, 0, 0, 0.5);
}

.social-links:hover {
    scale: 1.1;
}

/* End Footer Section  */

/* END HOME PAGE */

/* ABOUT PAGE */

/* Hero Section */

#about .hero-body {
    background-image: url('../img/About/about-hero.JPG');
}

.hero-body {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center left;
    min-height: 50vh;
    width: 100%;
}

/* End Hero Section */

/* Content Section */

.ms23-btn {
    position: relative;
    display: inline-block;
    background-color: #ef7d00;
    border-radius: 10px;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    font-size: 1.25rem;
    color: white;
    overflow: hidden;
    transition: color 0.4s ease;
}

.ms23-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    background-color: #fff;
    z-index: 0;
    transition: width 0.5s ease;
    transform: translateX(-50%);
}

.ms23-btn:hover::before {
    width: 100%;
}

.ms23-btn span {
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.ms23-btn:hover span {
    color: #0051FF;
}

/* End Content Section */

/* END ABOUT PAGE */

/* SPONSORS PAGE */

/* Hero Section */

#sponsors .hero-body {
    background-image: url('../img/Sponsors/sponsors-hero.png');
    background-position: center top;
}

#sponsors .logos-box {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFF;
    padding: 5px;
    margin: auto;
}

#sponsors .logos-box img {
    filter: grayscale(1); 
}

#sponsors .logos-box .mymoto {
     filter: grayscale(1) contrast(0.5); 
}

#sponsors .logos-box:hover > img {
    filter: none; 
}

#sponsors .logos-box:hover > .mymoto {
    filter: contrast(0.85); 
}

/* End Hero Section */

/* END SPONSORS PAGE */

/* EVENTS PAGE */

/* Hero Section */

#events .hero-body {
    background-image: url('../img/Events/events-hero.JPG');
    background-position: center bottom 65%;
}

/* End Hero Section */

/* END EVENTS PAGE */

/* GALLERY PAGE */

/* Hero Section */

#gallery .hero-body {
    background-image: url('../img/Gallery/gallery-hero.JPG');
    background-position: center;
}

/* End Hero Section */


/* Albums Section */

.album-cover {
    width: 6.5rem;
    height: 9.5rem;
    margin: 0 auto;
}

.album-picture {
    width: 100%;
    height: 6.5rem;
}

.album-title {
    height: 25%;
    width: 100%;
}

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

/* End Albums Section */

.img-container {
    width: 7rem;
    height: 7rem;
    margin: 0 auto;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    cursor: default;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(255,255,255,0.2);
}

.gallery img {
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}


.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

.arrow {
    position: absolute;
    top: 50%;
    font-size: 3rem;
    color: #fff;
    padding: 0 1rem;
    cursor: pointer;
    user-select: none;
    z-index: 1001;
    transform: translateY(-50%);
}

.arrow.left {
    left: 1rem;
}

.arrow.right {
    right: 1rem;
}

/* END GALLERY PAGE */

/* MERCH PAGE */

/* Hero Section */

#merch .hero-body {
    background-image: url('../img/Merch/merch-hero.jpeg');
    background-position: center;
}

/* End Hero Section */

/* Merch Section */

.merch-item {
    width: 6.5rem;
    height: 9.5rem;
    margin: 0 auto;
}

.product-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.image-section {
    display: flex;
    max-width: 240px;
    max-height: 240px;
}

.main-image {
    width: 180px;
    height: auto;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: auto;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    border: 1px solid #CCC;
}

.thumbnail {
    width: 60px;
    height: 80px;
    border: 1px solid #ccc;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail img {
    max-width: 90%;
    max-height: 90%;
}

.label {
    margin-top: 1rem;
}

/* End Merch Section */

/* END MERCH PAGE */

/* CHECKOUT PAGE */

.main-product-image {
    background-color: #fff;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 270px;
}

.main-product-image img {
    max-width: 100%;
    height: auto;
}

.checkout-thumbnails {
    display: flex!important;
    flex-direction: row!important;
    justify-content: center!important;
    gap: 10px!important;
    margin-top: 20px!important;
    border: 0!important;
}

.checkout-thumbnail {
    background-color: white!important;
    padding: 5px!important;
    cursor: pointer!important;
    border: 2px solid transparent!important;
}

#shop .thumbnail.active:hover {
    border: 2px solid orange!important;
}

.checkout-thumbnail img {
    width: 70px!important;
    height: auto!important;
}

h1 {
    font-size: 2.5rem;
}

.price {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.checkout-form {
    margin-top: 20px;
}

.checkout-form input[type="email"] {
    padding: 0.45rem 10px;
    width: 70%;
    background-color: transparent;
    border-radius: 10px;
    border: 1px solid #6e6e6e;
    outline: none;
}

.checkout-form form {
    margin-top: 2rem;
}

.checkout-form .ms23-btn {
    height: 40px;
    font-size: 1rem;
    padding: 0.4rem 1rem;
    margin-left: 10px
}

.merch-product-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.merch-image-section {
    display: flex;
    max-width: 240px;
    max-height: 240px;
}

.merch-main-image {
    width: 180px;
    height: auto;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.merch-main-image img {
    width: 100%;
    height: auto;
}

.merch-thumbnails {
    display: flex;
    flex-direction: column;
    border: 1px solid #CCC;
}

.merch-thumbnail {
    width: 60px;
    height: 80px;
    border: 1px solid #ccc;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.merch-thumbnail img {
    max-width: 90%;
    max-height: 90%;
}


@media (max-width: 900px) {

    .form input[type="email"] {
        width: 60%;
    }

    .checkout-form form {
        margin-top: 1rem;
    }
}

/* END CHECKOUT PAGE */

/* Media Queries */

@media (max-width: 400px) {
    #hero-body {
        min-width: unset;
        min-height: unset;
        height: 40vh;
    }
    .carousel-wrapper {
        height: 100%;
    }
    .carousel-wrapper img {
        object-fit: cover;
    }
    #events .hero-body {
        background-position: center right;
    }
}

@media (min-width: 576px) {
    #sponsors .logos-box {
        width: 140px;
        height: 140px;
    }
    .album-cover{
        width: 9.5rem;
        height: 12.5rem;
    }
    .album-picture {
        width: 100%;
        height: 9.5rem;
    }    
    .img-container {
        width: 9.5rem;
        height: 9.5rem;
    }
    .gallery {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
    #sponsors .logos-box {
        width: 150px;
        height: 150px;
    }
    .album-cover{
        width: 12.5rem;
        height: 15.5rem;
    }
    .album-picture {
        width: 100%;
        height: 12.5rem;
    }
    .img-container {
        width: 12.5rem;
        height: 12.5rem;
    }
    .gallery {
        max-width: 650px;
    }
}

@media (min-width: 992px) {    
    .hero-body {
        height: 60vh;
    }
    .album-cover{
        width: 15.5rem;
        height: 18.5rem;
    }
    .album-picture {
        width: 100%;
        height: 15.5rem;
    }
    #gallery-section, #merch-section {
        max-width: 992px;
    }
    .img-container {
        width: 15rem;
        height: 15rem;
    }
}

@media (min-width: 1024px) {
    #sponsors .logos-box {
        width: 200px;
        height: 200px;
    }
    .gallery {
        max-width: 1000px;
    }
}

@media (min-width: 1200px) {
    #home #hero-body {
        height: 80vh;
    }   
    .hero-body {
        height: 70vh;
    }
}

@media (min-width: 1200px) and (max-height: 800px) {
    /* #home #hero-body {
        height: 85vh;
    }    */
    .hero-body {
        height: 80vh;
    }
}

@media (min-width: 1650px) and (max-height: 1070px) {
    .carousel-wrapper img {
        transform: translateY(-150px);
    }
}

@media (min-width: 1400px) and (max-height: 850px) {
    #home #hero-body {
        height: 100vh;
    }   
}

@media (min-width: 1800px) {
    #home #hero-body {
        height: 90vh;
    }
}

/* End Media Queries */

/* Keyframes */
/* 
@keyframes slide {
     0% {
        transform: translateX(0); 
    }
    18.5% { 
        transform: translateX(0); 
    }
    20% { 
        transform: translateX(-100%); 
    }
    38.5% { 
        transform: translateX(-100%); 
    }
    40% { 
        transform: translateX(-200%); 
    }
    58.5% { 
        transform: translateX(-200%); 
    }
    60% { 
        transform: translateX(-300%); 
    }
    78.5% { 
        transform: translateX(-300%); 
    }
    80% { 
        transform: translateX(-400%); 
    }
    98.5% { 
        transform: translateX(-400%); 
    }
    100% { 
        transform: translateX(-500%); 
    }
} */

/* End Keyframes */