main {
    max-width: 60rem;
    animation: fade-in 1s ease backwards;
}

h1,
h2 {
    background-image: linear-gradient(90deg, #37b, #3b7, #37b);
    background-position-y: bottom;
    background-repeat: repeat-x;
    animation: background-slide-right 5s linear infinite;
}

h1 {
    background-size: 200% 0.35rem;
    font-size: 3.5rem;
}

h2 {
    display: inline-block;
    background-size: 200% 0.25rem;
    font-size: 2rem;
}

img {
    width: 100%;
    height: auto;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.grid-container>* {
    box-sizing: border-box;
    border: 0.25rem solid #ddd;
    border-radius: 1rem;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.1s linear;
}

.grid-container>*:hover {
    transform: scale(1.02);
    cursor: pointer;
}

@keyframes background-slide-right {
    0% {
        background-position-x: 200%;
    }

    100% {
        background-position-x: 0%;
    }
}

@media screen and (max-width: 800px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 400px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}