body{
    display: flex;
    flex-direction: column;
    width: 100svw;
}

.header{
    display: flex;
    justify-content: space-between;
    margin: 10px;
}

.header a{
    background: black;
    color: white;
    text-align: center;
    border-radius: 50px;
    padding: 5px;
    width: 100px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

main{
    margin: 10px;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card{
    background: white;
    border-radius: 8px;
    width: 200px;
    height: 200px;
    box-shadow: 0 0 .8rem .1rem rgba(0, 0, 0, 0.126);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card h2, .card p, .card ion-icon{
    margin: 5px;
}

.card h2{
    font-size: 1rem;
}

.card p{
    font-size: .8rem;
}

.card ion-icon{
    font-size: 3rem;
}

@media screen and (max-width: 600px) {
    main{
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .card{
        width: 180px;
        height: 180px;
    }
}