body {
  visibility: hidden;
}

body.loaded {
  visibility: visible;
}

body {
    background-color: black;
    color: white;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    padding-top: 3rem;
}

@font-face {
    font-family: "GurmukhiMN";
    src: url("../fonts/gurmukhi-mn.ttf") format(truetype);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Marmelad";
    src: url("../fonts/Marmelad-Regular.ttf") format(truetype);
}

@font-face {
    font-family: "StardosStencil";
    src: url("../fonts/StardosStencil-Regular.ttf") format(truetype);
}

@font-face {
    font-family: "Rosario";
    src: url("../fonts/Rosario-VariableFont_wght.ttf") format(truetype);
}

/* NAV CONTENT */
/* NAV CONTENT */
/* NAV CONTENT */
/* NAV CONTENT */
.mobile-nav {
    display: none;
}

.mobile-menu {
    display: none;
}

nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    justify-content: center;
    gap: 6rem;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem;
}


.brand {
    display: flex;
    margin: 0;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

nav h1 {
    color: #59A138;
    font-family: "GurmukhiMN";
    font-size: 2rem;
    margin: 0;
    line-height: 1;
}

nav h2 {
    color: white;
    font-family: "GurmukhiMN";
    font-size: 0.875rem;
    margin: 0;
    line-height: 1;
}

.nav-selections {
    display: flex;
    justify-content: center;
    gap: 5.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-selections a {
    color: white;
    font-family: "Marmelad";
    font: 1.25rem;
    text-decoration: none;
    font-weight: 400;
}

@media (max-width: 768px) {
    .nav-options {
        display: none;
    }
    .mobile-nav {
        display: flex;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        cursor: pointer;
        padding: 0;
        margin-right: 3rem;
        background-color: black;
        border: none;
        flex-shrink: 0;
    }

    .brand {
        margin-left: 1rem;
    }
    
    .hamburger-line {
        height: 1.5px;
        background-color: white;
        transition: all 0.3s ease-in-out;
        border-radius: 2px;
    }

    .hamburger-line-one {
        width: 20px;
    }

    .hamburger-line-two {
        width: 15px;
        margin-top: 5px;
        align-self: flex-end;
    }

    .hamburger-line-three {
        width: 20px;
        margin-top: 5px;
    }

    .hamburger.active .hamburger-line-one {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active .hamburger-line-two {
        opacity: 0;
        width: 0;
    }

    .hamburger.active .hamburger-line-three {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    nav h1 {
        color: #59A138;
        font-family: "GurmukhiMN";
        font-size: 1.5rem;
        margin: 0;
    }
    
    .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100svh; /* Small viewport height */
    background-color: black;
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    

    inset: 0;
    }

    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .mobile-menu-close {
        position: absolute;
        top: 2rem;
        right: 2rem;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: rotate(90deg);
    }

    .mobile-menu-items {
        list-style: none;
        text-align: center;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-items li {
        margin: 1.5rem 0;
        transform: translateY(30px);
        opacity: 0;
        transition: all 0.3s ease;
        transition-delay: calc(var(--i) * 0.1s);
    }

    .mobile-menu.active .mobile-menu-items li {
        transform: translateY(0);
        opacity: 1;
    }

    .mobile-menu-items a {
        color: white;
        text-align: center;
        font-family: "Marmelad";
        font-size: 1.5rem;
        font-weight: 700;
        text-decoration: none;
        padding: 1rem 1rem;
        border-radius: 15px;
        display: block;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        transform: translateX(0rem);
    }

    .mobile-menu-items a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
        transition: left 0.5s;
    }
    
    .mobile-nav {
        display: flex;
    }

    nav {
        padding: 1rem;
    }

    .brand h1 {
        font-size: 1.5rem;
    }

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

    .content p {
        font-size: 1rem;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .nav-options {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        gap: 2rem;
    }
    
    nav h1 {
        color: #59A138;
        font-family: "GurmukhiMN";
        font-size: 1.5rem;
        margin: 0;
    }
}

/* 4HORSEMEN */
/* 4HORSEMEN */
/* 4HORSEMEN */
/* 4HORSEMEN */

.not-working {
    display: flex;
    margin: 0;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
}

.lefty {
    display: flex;
    flex-direction: column;
}

.righty {
    display: flex;
    flex-direction: column;
}

.mobile-spacer {
    display: none;
}

@media (max-width: 768px) {
    .not-working {
        display: flex;
        flex-direction: column;
    }

    .righty {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100vw;
    }
}

/* TRIP CONTENT */
/* TRIP CONTENT */
/* TRIP CONTENT */
/* TRIP CONTENT */

.trip-section {
    margin: 0;
}

.trip-section h2 {
    color: #fff;
    font-family: "StardosStencil";
    font-size: 1.25rem;
    margin: 0;
    padding-left: 3.5rem;
    padding-bottom: 0.5rem;
    
}

.trip-border {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 34rem;
    height: 22rem;
    background-color: black;
    border-radius: 0.625rem 0 0 0;
}

.trip-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.5));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.trip-content {
    display: flex;
    margin: 0;
    align-items: flex-start;
    padding: 0;
}

.trip-form-edit {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 2.5rem 4rem;
    width: 26rem;
    padding: 0;
}

.toggle-group {
    display: inline-flex;
    overflow: hidden;
    background: var(--fieldGradiant, linear-gradient(90deg, rgba(115, 115, 115, 0.25) 0%, rgba(255, 255, 255, 0.25) 51.44%, rgba(115, 115, 115, 0.25) 100%));
    margin-bottom: .5rem;
    padding: .2rem
}

.toggle-group input[type="radio"] {
    display: none;
}

.toggle-group label {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    cursor: pointer;
    font-family: "StardosStencil";
    font-size: 0.85rem;
    color: white;
    transition: all 0.2s ease;
    width: 6rem;
    height: 1.5rem;
}

.toggle-group input[type="radio"]:checked + label {
    background: #f0f0f0;
    color: black;
}

.one {
    display: flex;
    margin: 0;
    justify-content: space-between;
    padding-left: 1rem;
    padding-right: 1rem;
}

.origin-label {
    color: #fff;
    font-family: "StardosStencil";
    font-size: 1rem;
    margin-top: 1rem;
}

.input-field {
    margin-top: .3rem;
    background: var(--fieldGradiant, linear-gradient(90deg, rgba(115, 115, 115, 0.25) 0%, rgba(255, 255, 255, 0.25) 51.44%, rgba(115, 115, 115, 0.25) 100%));
    border: none;
    height: 2rem;
    color: gainsboro;
    padding-left: 1rem;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1rem; 
}

.input-field:focus {
    outline: #59A138;
    border: 1px transparent ;
    box-shadow: 0 0 5px rgba(255,255,255,0.03);
}

.destination-label {
    color: #fff;
    font-family: "StardosStencil";
    font-size: 1rem;
    margin: 0;
    margin-top: 1rem;
    padding-left: 1rem;
}

.another-destination-box {
    display: flex;
}

.another-destination {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: white;
    opacity: .75;
    text-decoration: underline;
    font-family: "StardosStencil";
    font-size: .625rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    padding-left: 1rem;
}

.another-destination:hover {
    color: #59A138;
    text-decoration: underline;
    transform: scale(1.1);
    opacity: 100;
}

@media (max-width: 768px) {
    .trip-section {
        width: 100vw;
        margin-top: 1rem;
    }

    .trip-border {
        width: 100vw;
        height: 18rem;
        margin-left: calc(-50vw + 50%);
        border-radius: 0;
        margin-top: 1rem;
    }

    .trip-border::before {
        display: none;
    }

    .trip-form-edit {
        width: 22rem;
        padding: 0;
        margin: 0;
    }

    .mobile-spacer {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 1px;
        width: 100vw;
        background-color: rgba(255, 255, 255, 0.25);
        margin: 0;
        padding: 0;
        margin-bottom: 2rem;
    }

    .another-destination {
        font-size: .8rem;
        margin-top: .5rem;
    }
}

/* VMPG CONTENT */
/* VMPG CONTENT */
/* VMPG CONTENT */
/* VMPG CONTENT */

.vehicle-mpg-section {
    margin: 0;
    margin-left: -1px;
    margin-top: 1px;
}

.vehicle-mpg-section h2 {
    color: #fff;
    font-family: "StardosStencil";
    font-size: 1.25rem;
    margin: 0;
    padding-left: 3.5rem;
    padding-bottom: 0.5rem;
    
}

.vehiclempg-border {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 34rem;
    height: 22rem;
    background-color: black;
    border-radius: 0 0.625rem 0 0;
}

.vehiclempg-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(300deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.4));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.vehicle-mpg-content {
    display: flex;
    flex-direction: column;
    margin: 2.5rem 4rem;
}

.manual-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: white;
    opacity: .75;
    text-decoration: underline;
    font-family: "StardosStencil";
    font-size: .8rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    padding-left: 1rem;
}

.manual-btn:hover {
    color: #59A138;
    text-decoration: underline;
    transform: scale(1.1);
    opacity: 100;
}

.vehicle-type {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    border: none;
    padding: 0;
    margin-top: .5rem;
}

.vehicle-type input[type="radio"] {
    display: none;
}

.vehicle-type label {
    position: relative;
    color: gray;
    font-family: "StardosStencil";
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding-bottom: .25rem;
}

.vehicle-type input[type="radio"]:checked + label {
    color: white;
}

.vehicle-size {
    display: none;
    grid-template-columns: repeat(3, minmax(0rem, 1fr));
    gap: 0rem;
    border: none;
    padding: 0;
    margin: .5rem 0 1rem 0;
    width: 24rem;
}

.trailer {
    display: none;
    grid-template-columns: repeat(4, minmax(0rem, 1fr));
    overflow-x: auto;
    gap: 6.5rem; 
    border: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0 0 0;
}

.trailer::-webkit-scrollbar {
    display: none;
}

.towing,
.fuel {
    display: grid;
    grid-template-columns: repeat(3, minmax(6rem, 1fr));
    gap: 1rem;
    border: none;            
    padding: 0;
    margin: 0;
}

.vehicle-size input[type="radio"],
.trailer input[type="radio"],
.towing input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.size-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    border-radius: .5rem;
    border: 2px solid transparent;    
    background: rgba(255,255,255,0.1);
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
    text-align: center;
    width: 7rem;
    height: 3rem;
}

.size-card img {
    width: 55px;              
    height: 55px;
    object-fit: contain;      
    display: block;
}

.size-card span {
    color: #ccc;
    font-family: "StardosStencil", Arial, sans-serif;
    font-size: .8rem;
    line-height: 1;
}

.size-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.towing {
    display: inline-flex;
    overflow: hidden;
    background: var(--fieldGradiant, linear-gradient(90deg, rgba(115, 115, 115, 0.25) 0%, rgba(255, 255, 255, 0.25) 51.44%, rgba(115, 115, 115, 0.25) 100%));
    margin: 0;
    padding: 0.2rem;
}


.fuel {
    display: inline-flex;
    overflow: hidden;
    background: var(--fieldGradiant, linear-gradient(90deg, rgba(115, 115, 115, 0.25) 0%, rgba(255, 255, 255, 0.25) 51.44%, rgba(115, 115, 115, 0.25) 100%));
    margin: 0;
    padding: 0.2rem;
    margin-top: 1rem;
}

.towing input[type="radio"],
.fuel input[type="radio"] {
    display: none;
}

.towing label,
.fuel label {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    cursor: pointer;
    font-family: "StardosStencil";
    font-size: 1rem;
    color: white;
    transition: all .2s ease;
    width: 6rem;
    height: 1.5rem;
}

.towing input[type="radio"]:checked + label,
.fuel input[type="radio"]:checked + label {
    background-color: #f0f0f0;
    color: black;
}

.result-button {
    border: none;
    background: linear-gradient(90deg, #335D20 0%, #59A138 51.44%, #345D20 100%);
    font-family: "StardosStencil";
    font-size: 1rem;
    width: 6rem;
    height: 1.5rem;
    cursor: pointer;
    color: white;
    transition: all .2s ease; 
}

.result-button:hover {
    transform: scale(1.1);
}


/* .toggle-group {
    display: inline-flex;
    overflow: hidden;
    background: var(--fieldGradiant, linear-gradient(90deg, rgba(115, 115, 115, 0.25) 0%, rgba(255, 255, 255, 0.25) 51.44%, rgba(115, 115, 115, 0.25) 100%));
}

.toggle-group input[type="radio"] {
    display: none;
}

.toggle-group label {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    cursor: pointer;
    font-family: "StardosStencil";
    font-size: 0.85rem;
    color: white;
    transition: all 0.2s ease;
    width: 6rem;
    height: 1.5rem;
}

.toggle-group input[type="radio"]:checked + label {
    background: #f0f0f0;
    color: black;
} */

#car-compact:checked + label,
#car-midsize:checked  + label,
#car-fullsize:checked + label,
#suv-compact:checked + label,
#suv-midsize:checked + label,
#suv-fullsize:checked + label,
#pu-midsize:checked + label,
#pu-half:checked + label,
#pu-hd:checked + label,
#com-medium:checked + label,
#com-heavy:checked + label,
#com-semi:checked + label,
#tr-small:checked + label,
#tr-medium:checked + label,
#tr-large:checked + label,
#tr-semi:checked + label {
    border-color: rgba(255, 255, 255, 0.3);                     
    background: rgba(255,255,255,0.12);
}

#car-compact:checked + label span,
#car-midsize:checked  + label span,
#car-fullsize:checked + label span,
#suv-compact:checked + label span,
#suv-midsize:checked + label span,
#suv-fullsize:checked + label span,
#pu-midsize:checked + label span,
#pu-half:checked + label span,
#pu-hd:checked + label span,
#com-medium:checked + label span,
#com-heavy:checked + label span,
#com-semi:checked + label span,
#tr-small:checked + label span,
#tr-medium:checked + label span,
#tr-large:checked + label span,
#tr-semi:checked + label span {
    color: #fff;
}

@media (max-width: 768px) {
    .vehiclempg-border::before {
        display: none;
    }

    .vehicle-mpg-content {
        padding: 0;
        margin: 0;
        align-items: flex-start;
        justify-content: flex-start;
        width: 22rem;
    }

    .vehiclempg-border {
        width: 100vw;
        overflow: hidden;
        padding: 0;
        margin: 0;
        height: 19rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        margin-top: 1rem;
    }

    .vehicle-size {
        display: flex;
        overflow-x: auto;
        width: 20rem; 
        margin: 0;
        gap: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-bottom: 1rem;
    }

    .trailer {
        display: flex;
        overflow-x: auto;
        width: 100%;
        margin: 0;
        gap: 4.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .vehicle-size::-webkit-scrollbar,
    .trailer::-webkit-scrollbar {
        display: none;
    }

    .vehicle-mpg-section {
        margin: 0;
        width: 100vw;
        overflow-x: hidden;
    }

    .size-card {
        width: 6rem;
    }
}

/* RESULTS CONTENT */
/* RESULTS CONTENT */
/* RESULTS CONTENT */
/* RESULTS CONTENT */
.results-section-mobile {
    display: none;
}

.results-section {
    margin: 0;
    margin-top: -1px;
}

.results-border {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 34rem;
    height: 22rem;
    background-color: black;
    border-radius: 0 0 0 0.625rem;
}

.results-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(30deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
}

.results-content {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding-left: 4rem;
    padding-top: 2rem;
    font-family: "StardosStencil";
    font-size: 1rem;
}

#distance-output,
#time-output,
#fuel-output,
#distance-output-mobile,
#time-output-mobile,
#fuel-output-mobile {
    color: #59A138;
}

@media (max-width: 768px) {
    .results-section {
        display: none;
    }

    .results-section-mobile {
        display: flex;
        justify-content: center;
    }

    .results-border {
        width: 22rem;
        height: 17rem;
    }

    .results-border::before {
        display: none;
    }

    .results-content {
        margin: 0;
        padding: 0;
        margin-left: 1.5rem;
    }
}

/* HIDDEN CONTENT */
/* HIDDEN CONTENT */
/* HIDDEN CONTENT */
/* HIDDEN CONTENT */

.hidden-section {
    margin: 0;
}

.hidden-border {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 34rem;
    height: 22rem;
    
    border-radius: 0 0 0.625rem 0;
}

.blackwall4 {
    width: 39rem;
    height: 22rem;
    background-color: black;
    border-radius: 0 0 0.600rem 0;
    margin-top: 0.1rem;
    margin-left: 0rem;
}

.frontwall4 {
    width: 33.9rem;
    height: 21.9rem;
    background-color: rgba(0, 0, 0, 0.70);
    border-radius: 0 0 0.600rem 0;
}

@media (max-width: 768px) {
    .hidden-section {
        display: none;
    }

    .trip-border {
        box-shadow: none;
    }
}

/* FOOTER CONTENT */
/* FOOTER CONTENT */
/* FOOTER CONTENT */
/* FOOTER CONTENT */


/* TRYOUTS */
.trip-border {
    box-shadow: 200px 120px 400px 90px rgba(119, 215, 75, 0.15);
}

@media (max-width: 768px) {
    .hidden-section {
        display: none;
    }

    .trip-border {
        box-shadow: none;
    }
}