body {
    padding: 100px 25px;
    display: flex;
    flex-direction: column;
    background-color: white;
}

#colorToggle {
    position: sticky;
    top: 90px;
    width: 75px;
    height: 75px;
    border-radius: 75px;
    transform: translateY(-80px);
    font-size: 12px;
    border-color: none;
    background-color: #fafafa;
    color: #222;

}

.dark-bg {
    background-color: #222;
}

.dark-text {
    color: white;
}

section:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
}

h1 {
    text-align: center;
    margin: 0;
}

a {
    text-decoration: none;
}

p {
    text-align: center;
}

.topics {
    display: flex;
    flex-direction: column;
    align-items: center;
}

a {
    width: 100%;
    margin-bottom: 20px;
}

.card {
    width: 80%;
    max-width: 400px;
    background-color: #fafafa;
    border: 5px solid #fafafa;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px;
    margin: 0 auto;
}

.card:last-child {
    margin-bottom: 0;
}

.card img {
    max-width: 15%;
}

/* tablet & desktop design */
@media (min-width: 481px) {

    .topics {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        align-items: start;
    }
}

@media (min-width: 850px) {
    .card {
        min-width: 95%;
    }
}