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

:root {
    --body_BG_color: hsl(0, 0%, 95%);
    --sedan_BG_color: hsl(31, 77%, 52%);
    --suv_BG_color: hsl(184, 100%, 22%);
    --luxury_BG_color: hsl(179, 100%, 13%);
    --title_font_color: hsl(0, 0%, 95%);
    --paragraph_color:hsla(0, 0%, 100%, 0.75);
}


/* ## Colors

### Primary

Bright orange: hsl(31, 77%, 52%)
Dark cyan: hsl(184, 100%, 22%)
Very dark cyan: hsl(179, 100%, 13%)

### Neutral

Transparent white (paragraphs): hsla(0, 0%, 100%, 0.75)
Very light gray (background, headings, buttons): hsl(0, 0%, 95%)

## Typography

### Body Copy

- Font size: 15px

### Font

- Family: [Lexend Deca](https://fonts.google.com/specimen/Lexend+Deca)
- Weights: 400

- Family: [Big Shoulders Display](https://fonts.google.com/specimen/Big+Shoulders+Display)
- Weights: 700 */

body{
    background-color: var(--body_BG_color);
    Font-size: 15px;
}

main {
    margin: 0 auto;
    margin-top: 50px;
    width: 90%;
    max-width: 450px;
    min-width: 340px;
    

}

.card-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}
.car_card {
    padding: 45px ;
    min-height: 400px;
}

.sedan_card {
    background-color: var(--sedan_BG_color);
    border-radius: 10px 10px 0 0;

}

.suv_card {
    background-color: var(--suv_BG_color);
}

.luxury_card {
    background-color: var(--luxury_BG_color);
    border-radius: 0 0 10px 10px;
}

a {
    text-decoration: none;
   
}



.model {
    font-family: "Big Shoulders Display", serif;
    text-transform: uppercase;
    font-size: 2.2rem;
    color: var(--title_font_color);
    margin: 30px 0;
}

.text {
    color: var(--paragraph_color);
    line-height: 2;
    font-size: 1.2rem;
    
}

button {
    background-color: var(--body_BG_color);
    display: block;
    padding: 1rem  2rem;
    border-radius: 2rem;
    font-family: "Lexend Deca", serif;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    border: none;
    margin-top: 1.2rem;
    font-weight: 700;
    cursor: pointer;
}

.sedan_button {
    color: var(--sedan_BG_color);
}

.suv_button {
    color: var(--suv_BG_color);
}

.luxury_button {
    color: var(--luxury_BG_color);
}

@media screen and (min-width: 1000px) {

    body {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh; /* Para centrar verticalmente si es necesario */
    }

    main {
        margin: 0 auto;
        margin-top: 100px;
        width: 90%; /* Ajusta el ancho relativo al viewport */
        max-width: 1400px; /* Limita el ancho máximo */
        justify-self: center;
    }

    .card-container {
        display: flex;
        flex-direction: row;
        margin-bottom: 100px;
        max-width: 1400px;
        justify-content: center;
        
    }

    .sedan_card {
        border-radius: 10px 0 0 10px; /* Adjust the border for desktop view */
    }

    .luxury_card {
        border-radius: 0 10px 10px 0; /* Adjust the border for desktop view */
    }

    .car_card {
        padding: 45px;
        min-height: 450px;
        flex: 1; /* Hace que las tarjetas ocupen el mismo espacio */
        max-width: 350px;
        max-height: 500px;                               
    }

    button {
        background-color: var(--body_BG_color);
        display: block;
        padding: 1rem 2rem;
        border-radius: 2rem;
        font-family: "Lexend Deca", serif;
        font-size: 0.9rem;
        letter-spacing: 1.5px;
        border: none;
        margin-top: 1.2rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease; /* Agrega una transición suave */
    }

    button:focus,
    button:active {
    outline: 2px solid var(--body_BG_color); /* Outline del color del fondo del body */
    background-color: transparent; /* Fondo transparente */
    color: var(--body_BG_color); /* Texto del color del fondo del body */
    }

    /* Asegurar que los botones mantengan el estilo dentro de sus tarjetas */
    .sedan_card button:focus,
    .sedan_card button:active {
    background-color: var(--sedan_BG_color); /* Fondo del color de la tarjeta */
    }

    .suv_card button:focus,
    .suv_card button:active {
    background-color: var(--suv_BG_color); /* Fondo del color de la tarjeta */
    }

    .luxury_card button:focus,
    .luxury_card button:active {
    background-color: var(--luxury_BG_color); /* Fondo del color de la tarjeta */
    }

    .attribution {
        position: absolute; /* Fija el pie de página al final */
        bottom: 10px; /* Distancia desde el borde inferior */
        left: 50%; /* Centra horizontalmente */
        transform: translateX(-50%); /* Ajusta el centro */
        width: 100%; /* Ocupa todo el ancho */
    }
}