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

body {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 2rem 0 2rem;
    overflow-x: hidden;
    overflow-y: auto;
    gap: 1rem;
}

body::before {
    content: "";
    position: fixed;
    width: 100%;
    height: 100vh;
    left: 0;
    top: 0;
    background: lightgray;
    z-index: -1000;
}

header {
    justify-self: center;
    align-self: center;
    color: #7FC7D9;
    font-size: 2rem;
}

header h1 {
    /* Create the gradient. */
    background-image: linear-gradient(45deg, #47597E, #7FC7D9);
    
    /* Set the background size and repeat properties. */
    background-size: 100%;
    background-repeat: repeat;

    /* Use the text as a mask for the background. */
    /* This will show the gradient as a text color rather than element bg. */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
}

.cards-container {
    --cards-c-gap: 1.5rem;
    display: grid;
    /* display: flex; */
    /* flex-wrap: wrap; */
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    margin-bottom: 1rem;
    gap: var(--cards-c-gap);
    z-index: 0;
}

/* CARD */
.cards-container .card {
    position: relative;
    /* flex: 3 0 auto; */
    display: flex;
    justify-content: start;
    border: 2px dashed;
    border-color: #0F1035;
    border-radius: 2rem 0 0 2rem;
    color: #0F1035;
    background: white;
    cursor: pointer;
    overflow: hidden;
    padding: .5rem;
    transform: none;
    transition: transform .25s ease-in;
}

.cards-container .card:not(.clicked):hover {
    transform: scale(1.075);
}

.cards-container .card.clicked {
    transform: scale(.75);
}

/* BUSINESS */
.card .business {
    position: relative;
    flex: 3 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.card .business::before {
    content: "";
    position: absolute;
    right: 0;
    width: 1px;
    height: 75%;
    background: #0F1035;
    z-index: 3;
}

.business .icon {
    --base-scale: 7.5rem;
    width: var(--base-scale);
    height: var(--base-scale);
    object-fit: contain;
}

/* MAIN INFO */
.card .main-info {
    flex: 3 1 auto;
    display: flex;
    flex-direction: column;
    padding: 0 .5rem;
    gap: .25rem;
}

.card h2 {
    align-self: center;
    font-size: 1.6rem;
    color: #47597E;
}

.main-info .info {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
}

.card h3 {
    font-size: 1.1rem;
    color: #0F1035;
}


.info .data {
    font-size: 1rem;
    color: #FAEED1;
    background: #43766C;
    padding: .25rem;
    border-radius: .5rem;
    font-weight: 500;
    transition: .25s ease-in-out;
}

.discounts .data {
    background: #D24545;
    color: #FAEED1;
}

.branch-offices .data {
    background: #76453B;
}

.branch-offices .data a {
    color: unset;
    text-decoration: none;
}

.info .data:hover {
    background: #0F1035;
    color: #FAEED1;
}

/* EXTRA INFO */
.card .extra-info {
    display: none;
}

/* DIALOG */
dialog[open] {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
}

dialog[open]::backdrop {
    background: lightgray;
}

.dialog-body {
    max-width: 50%;
    display: flex;
    flex-direction: column;
    border: #0F1035 dashed 1px;
    border-radius: 1rem;
    background: #DBE6FD;
    padding: 2rem;
    gap: 1rem;
}

.dialog-body nav {
    display: flex;
    justify-content: start;
}

.dialog-content h1 {
    font-size: 2rem;
}

.dialog-content h2 {
    font-size: 1.75rem;
}

.dialog-content h3 {
    font-size: 1.5rem;
}

.dialog-content p {
    font-size: 1.25rem;
}

nav .dialog-close {
    width: 100%;
    height: 2.5rem;
    background: #47597E;
    color: #FAEED1;
    border: none;
    border-radius: .5rem;
    font-size: 1.25rem;
    padding: .5rem;
}

nav .dialog-close:hover {
    background: #0F1035;
}

@media screen and (max-width: 1024px) {
    body {
        padding: 1rem 1.5rem 0 1.5rem;
    }

    header {
        font-size: 1.5rem;
    }

    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* .cards-container .card {
        flex: 2 0 auto;
    } */

    .main-info h2 {
        font-size: 1.25rem;
    }

    .expiration h3, .branch-offices h3 {
        font-size: 1.25rem;
        color: #0F1035;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: .5rem .5rem 0 .5rem;
    }

    header {
        font-size: 1rem;
    }

    .cards-container {
        width: 100%;
        grid-template-columns: 1fr;
        /* flex-direction: column; */
        /* flex-wrap: nowrap; */
        gap: .5rem;
    }

    /* .card {
        flex: 1 1 100%;
        flex-direction: column;
    } */

    .card .business::before {
        content: none;
    }
}