.layout {
    display: grid;
    grid-template-rows: 80px 1fr minmax(80px, auto);
    min-height: 100vh;
}

.content-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.main-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;

    /* & > * {
        margin-bottom: 3rem;
    } */
}


.main-area,
.main-area-ligth {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 80vh;
}

.main-area {
    color: var(--fg-ligth);
    background-color: var(--bg-primary);
    background-image: radial-gradient(ellipse at top, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, .01));
}

.main-area-ligth {
    color: var(--fg-dark);
    background-color: var(--bg-ligth);
    background-image: radial-gradient(var(--bg-ligth), rgba(0, 0, 0, 0.1));
}

.main-area-title,
.main-area-ligth-title {
    text-align: center;
    font-size: 24px;
    margin: 4rem auto;
    color: var(--fg-primary);
    font-weight: bold;

    & span {
        font-size: inherit;
        color: var(--fg-secondary);
        font-weight: 800 !important;
    }
}


.main-area-title {
    color: var(--fg-ligth);

    & span {
        color: var(--fg-active);
    }
}

.main-area-content,
.main-area-ligth-content {
    width: 80%;
    margin-bottom: 4rem;
    text-align: center;
}



.grid-cards {
    display: grid;
    padding: 2rem;
    row-gap: 4rem;
    column-gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}


.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    box-shadow: var(--shadow-ligth);
    background-color: whitesmoke;
    border-radius: 5px;
}

.card-img {
    margin: 2rem auto;
    opacity: .8;
    user-select: none;
}

.card-title {
    text-transform: capitalize;
    color: var(--fg-active);
}

.card-content {
    font-size: 14px;
    margin: 2rem auto;
}

.card-link {
    text-transform: capitalize;
    display: block;
    width: 100%;
    color: var(--fg-ligth);
    background-color: var(--fg-primary);
    padding: .5rem;
    border-radius: 3px;

    &:visited {
        color: var(--fg-ligth);
    }
}


.main-area-split {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto 4rem 0;

    &>* {
        width: 100%;
    }


    &>img {
        aspect-ratio: 1/1;
        margin: auto;
        margin-bottom: 2rem;
        max-width: 80%;
    }

}


@media(min-width: 768px) {
    .main-area-split {
        flex-direction: row;

        &>* {
            width: 50%;
        }
    }
}

.title-active {
    color: var(--fg-active);
    font-weight: 600;
    margin-bottom: 2rem;
}

.main-section-split {
    margin: auto;


    & p {
        margin-bottom: 2rem;
    }
}


.button-active {
    background-color: var(--fg-active);
    padding: .5rem 2rem;
    border-radius: 3px;
    text-transform: capitalize;
}

.currency-grid-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 2rem;
    overflow: hidden;

}


@media (min-width: 1024px) {
    .currency-grid-wrap {
        flex-direction: row;
        justify-content: center;
    }
}


.currency-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    margin: auto;
    max-width: 500px;
}


@media (min-width: 786px) {
    .currency-grid {
        gap: 3rem;
        padding: 3rem;
    }
}


@media (min-width: 1024px) {
    .currency-grid {
        gap: 4rem;
        padding: 4rem;
        margin-left: 0;
        margin-right: 0;
    }
}


.currency-grid-img {
    width: 50px;
    height: 50px;
    margin: auto;
}

