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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* html {
    transform: scale(0.8);
    transform-origin: top center;
    width: 125%;
} */

:root {
    --starcar-gold: #ddc457;
    --starcar-dark: #1c1b1f;
}

::selection {
    background-color: var(--starcar-gold);
    color: var(--starcar-dark);
}

h1,
h2,
h3,
h4,
p,
li,
a,
span,
button,
th,
td,
strong,
select,
option,
label {
    font-family: "Exo 2", sans-serif;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

s h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1rem;
}

li {
    font-size: 1rem;
}

a {
    font-size: 1rem;
    text-decoration: none;
}

p {
    font-size: 1rem;
}

option {
    font-size: 1rem;
    cursor: pointer;
    /* background-color: var(--starcar-gold); */
}

/* MESSAGES FLASH */
.flash_error {
    padding: 20px 0px;
    background-color: rgb(128, 30, 0);
    text-align: center;
    color: white;
    width: 100%;
    font-family: "exo 2", sans-serif;
    font-size: 1.25rem;
}

.flash_success {
    padding: 20px 0px;
    background-color: var(--starcar-gold);
    text-align: center;
    color: white;
    width: 100%;
    font-family: "exo 2", sans-serif;
    font-size: 1.25rem;
}

.flash_info {
    padding: 20px 0px;
    background-color: turquoise;
    text-align: center;
    color: black;
    width: 100%;
    font-family: "exo 2", sans-serif;
    font-size: 1.25rem;
}

/* SPINNER */
.spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.spinner::after {
    content: "";
    width: 50px;
    height: 50px;
    border: 5px solid var(--starcar-dark);
    border-top-color: var(--starcar-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


.spinner-bottom {
    display: none;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
}

.spinner-bottom.active {
    display: block;
}

.spinner-circle {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 4px solid var(--starcar-dark);
    border-top-color: var(--starcar-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



/**************************************** ANIMATIONS ****************************************/
.fadein {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fadein.visible {
    opacity: 1;
    transform: translateY(0);
}


/**************************************** HEADER ****************************************/

.starcar_header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    background: radial-gradient(circle at bottom right,
            rgba(66, 126, 143, 0.22),
            transparent 70%),
        #1c1b1f;
    position: fixed;
    top: 0;
    z-index: 99999;
    width: 100%;
    transition: all 0.3s ease;
}

.starcar_header--transparent {
    background: none;
    top: 10px;
}

.starcar_header_container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 10px 32px;
    width: 100%;
    max-width: 1300px;
    transition: all 0.3s ease;
}

.starcar_header_container--transparent {
    background: radial-gradient(circle at bottom right, rgba(66, 126, 143, 0.22), transparent 70%), #1c1b1fcc;
    padding: 2px 32px;
    max-width: 1100px;
    border-radius: 50px;
}


.starcar_header_logo img {
    height: 90px;
    width: auto;
    transition: all 0.3s ease;
}

.starcar_header_container--transparent .starcar_header_logo img{
    height: 75px;
}

.starcar_header_hamburger {
    position: fixed;
    display: none;
    flex-direction: column;
    right: 16px;
    top: 10px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.starcar_header_hamburger span {
    display: block;
    width: 35px;
    height: 4px;
    border-radius: 2px;
    background-color: var(--starcar-gold);
    padding-top: 4px;
    transition: all 0.3s ease;
}

.starcar_header_hamburger.active {
    border: 2px solid white;
    padding-top: 4px;
}

.starcar_header_hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: white;
}

.starcar_header_hamburger.active span:nth-child(2) {
    opacity: 0;
}

.starcar_header_hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(10px, -9px);
    background-color: white;
}


.nav_links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav_link {
    color: white;
    padding: 10px 0px;
    list-style: none;
    position: relative;
    text-decoration: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav_link::after {
    content: "";
    width: 0;
    height: 2px;
    background: var(--starcar-gold);
    filter: drop-shadow(2px 4px 6px var(--starcar-gold));
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav_link:hover {
    transform: translateY(-2px);
    color: var(--starcar-gold);
}

.nav_link:hover::after {
    width: 100%;
}

#pro {
    color: var(--starcar-gold);
    margin-left: 5px;
}

.nav_link strong {
    font-size: 1rem;
}

.header_cta_button {
    display: flex;
    padding: 8px 10px;
    gap: 15px;
    text-decoration: none;
    align-items: center;
    border: 1px solid var(--starcar-gold);
    color: var(--starcar-gold);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.header_cta_button strong,
.header_cta_button span {
    color: var(--starcar-gold);
    transition: all 0.3s ease;
}

.header_cta_button:hover{
    background-color: var(--starcar-gold);
    color: black;
    box-shadow: 0px 0px 20px #00000085;
    transform: translateY(-2px);
}

.header_cta_button:hover.header_cta_button strong,
.header_cta_button:hover.header_cta_button span{
    color: black;
}



.log_buttons {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.log_buttons li {
    list-style: none;
}

#user_welcome{
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--starcar-gold);
    gap: 5px;
}

#user_actions{
    position: absolute;
    display: none;
    top: 40px;
    left: -33px;
    width: 200px;
    background: black;
    border-radius: 10px;
    padding: 5px;
}

#user_actions.visible{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#user_actions a{
    display: flex;
    align-items: center;
    color: white;
    width: 100%;
}

#user_actions a:hover {
    color: var(--starcar-gold);
}

/* ICONS */
.login_icon {
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.login_icon:hover {
    color: var(--starcar-gold);
}

.logout_icon {
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.logout_icon:hover {
    color: red;
}

#cart {
    cursor: pointer;
}

.starcar_cart {
    position: relative;
}

.cart_icon {
    color: var(--starcar-gold);
    font-size: 2rem;
    user-select: none;
}

.calendar_icon {}

.starcar_cart_view {
    position: absolute;
    display: none;
    transform: translateY(-50px);
    width: 280px;
    right: 0px;
    top: 70px;
    color: white;
    background-color: rgba(28, 27, 31, 1);
    padding: 10px;
    border-radius: 10px;
    opacity: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.starcar_cart_view.visible {
    display: flex;
    transform: translateY(-25px);
    opacity: 1;
}

.starcar_cart_items {
    width: 100%;
    list-style: none;
}

.starcar_cart_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0px;
    width: 100%;
    list-style: none;
}

.starcar_cart_item p {
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.starcar_cart_item_qty {
    padding: 5px 10px;
    border: 1px solid var(--starcar-gold);
    border-radius: 10px;
    display: flex;
    width: 75px;
    justify-content: center;
    gap: 10px;
}

.starcar_cart_item_qty button {
    background: none;
    outline: none;
    border: none;
    color: white;
    cursor: pointer;
}

.starcar_cart_item_remove button {
    background: none;
    outline: none;
    border: none;
    color: white;
    cursor: pointer;
    color: var(--starcar-gold);
}

.starcar_cart_total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px;
    border-top: 1px solid white;
}

.starcar_cart_show_cart {
    display: flex;
    width: fit-content;
    padding: 5px 10px;
    background-color: var(--starcar-gold);
    border-radius: 10px;
    margin: 5px 0px;
}

.starcar_cart_show_cart a {
    color: black;
}

/**************************************** MENU MOBILE ****************************************/

.mobile_menu {
    position: fixed;
    top: 130px;
    right: -100%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom right,
            rgba(66, 126, 143, 0.22),
            transparent 70%),
        #1c1b1f;
    flex-direction: column;
    gap: 30px;
    z-index: 99999;
    display: flex;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile_menu ul {
    padding: 0px 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    gap: 30px;
    position: absolute;
    top: 5%;
    width: 100%;
}

.mobile_menu li {
    list-style: none;
    border-bottom: 1px solid white;
    padding-bottom: 30px;
}

.mobile_menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

.mobile_menu .header_cta_button {
    padding: 15px 10px;
}

.mobile_menu .header_cta_button span {
    font-size: 1.5rem;
}

.mobile_menu .header_cta_button strong {
    font-size: 1rem;
}

.mobile_menu_bottom_buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    border-bottom: 1px solid white;
}

.mobile_menu_bottom_buttons li {
    border: none;
    list-style: none;
}

.mobile_menu_bottom_buttons span {
    font-size: 3rem;
}

.mobile_menu.show {
    display: flex;
    right: 0%;
    opacity: 1;
}

/**************************************** MAIN ****************************************/
main {
    padding-top: 114px;
}

/**************************************** FOOTER ****************************************/

.starcar_footer {
    background: radial-gradient(circle at bottom right,
            rgba(66, 126, 143, 0.22),
            transparent 70%),
        #1c1b1f;
    padding: 30px 0px;
}

.starcar_footer_container {
    max-width: 1700px;
    margin: 0px 32px;
    margin: 0 auto;
    padding: 0px 32px;
}

.starcar_footer_top {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.starcar_footer_top img {
    width: 300px;
}

.starcar_footer_main {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 50px;
    gap: 50px;
}

.starcar_footer_column_group {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    width: 50%;
    gap: 30px;
}

.starcar_footer_column {
    max-width: 250px;
}

.starcar_footer_column img {
    width: 200px;
    margin-bottom: 20px;
}

.starcar_footer_description {
    color: white;
}

.starcar_footer_list_title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.starcar_footer_list_item {
    color: white;
    list-style: none;
    margin-bottom: 20px;
}

.starcar_footer_list_item a {
    color: white;
    text-decoration: none;
}

.starcar_footer_list_item a:hover{
    text-decoration: underline;
}

.starcar_footer_socials {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    justify-content: space-evenly;
}

.fa-brands {
    font-size: 1.25rem;
    color: var(--starcar-dark);
    background-color: var(--starcar-gold);
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease
}


.fa-brands:hover {
    transform: scale(1.2);
}

.starcar_footer_contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.starcar_footer_cta_button a {
    padding: 10px;
    border: 1px solid var(--starcar-gold);
    text-decoration: none;
    font-weight: 600;
    color: var(--starcar-gold);
    border-radius: 10px;
    background: transparent;
    transition: all 0.3s ease;
}

.starcar_footer_cta_button a:hover {
    background: var(--starcar-gold);
    color: var(--starcar-dark);
}

.starcar_footer_bottom {
    display: flex;
    align-items: center;
    justify-content: center;
}

.starcar_footer_credits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    color: white;
    align-items: center;
    gap: 10px;
}

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

.starcar_footer_credits a {
    color: white;
    cursor: pointer;
    text-decoration: underline;
}

@media (max-width: 1199px) {
    .nav_links {
        gap: 30px;
    }
}

@media (max-width: 999px) {
    p {
        font-size: 1rem;
    }

    .starcar_header--transparent{
        background: radial-gradient(circle at bottom right, rgba(66, 126, 143, 0.22), transparent 70%), #1c1b1f;
        top: 0px;
    }

    .starcar_header_container--transparent{
        border-radius: 0px;
    }

    .starcar_header_container {
        padding: 0px 20px;
    }


    .starcar_header_logo img {
        height: 75px;
    }

    .starcar_header_hamburger {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
    }

    .starcar_header_nav {
        display: none;
    }

    .mobile_menu,
    .mobile_menu.show {
        top: 79px;
    }


    main {
        padding-top: 79px;
    }

    .starcar_footer_container {
        padding: 0px 20px;
    }

    .starcar_footer_main {
        justify-content: space-around;
    }

    .starcar_footer_column_group {
        flex-direction: column;
    }

    .starcar_footer_description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {

    .starcar_header_container {
        padding: 0px 12px;
    }

    .starcar_header_logo img {
        height: 75px;
    }

    main {
        padding-top: 79px;
    }

    .flash_error {
        font-size: 1rem;
    }

    .mobile_menu {
        top: 79px;
    }

    .nav_links {
        display: none;
    }

    .hero_container {
        padding: 0px 12px;
    }

    .starcar_footer_container {
        padding: 0px 12px;
    }

    .starcar_footer_top img {
        width: 200px;
    }

    .starcar_footer_column img {
        width: 150px;
    }


    .starcar_footer_main {
        flex-direction: column;
    }

    .starcar_footer_column {
        max-width: 100%;
    }

    .starcar_footer_list_title {
        font-size: 1.5rem;
    }

    .starcar_footer_column a,
    .starcar_footer_column li {
        font-size: 1rem;
    }
}