.pagewrapper {
    width: 100vw;
    height: 100vh;
    background-color: red;
}
.wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
header,
footer {
    height: 4rem;
    background-color: #666;
}
.content {
    background-color: #ccc;
    flex: 1;
}
.columns {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.main {
    flex: 1;
    background-color: red;
    order: 2;
    display: flex;
    justify-content: center;
}
.cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem;

    @media (min-width: 768px) {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
.card {
    max-width: 300px;
    background-color: grey;
    padding: 1rem;
    border-radius: 1rem;

    @media (min-width: 768px) {
        max-width: 180px;
    }
    @media (min-width: 1080px) {
        max-width: 90px;
    }
}
.cardimg {
    margin: .5rem 0;

    @media (min-width: 768px) {
        width: 100%;
        border-radius: 50%;
    }
}
aside {
    width: 100%;
    height: 5rem;
    background-color: #999;
}
.sidebar-first {
    order: 1;
}
.sidebar-second {
    order: 3;
}


@media (min-width: 768px) {
    .main {
        background-color: green;
    }
}

@media (min-width: 1080px) {
    .main {
        background-color: blue;
    }
}