@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
    display: grid;
    grid-template:
        "header header header" 100px
        "aside main side" 1fr
        "footer footer footer" 40px / 12% 1fr 12%;
}

/*--------------------------HEADER--------------------------------*/

header {
    grid-area: header;
    background-image: url(https://sfo3.digitaloceanspaces.com/e-fuente/e-fuentedevida.net/lastoo_e/vista_docente/recurso/bg-header.jpg);
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;

    padding: 0 50px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 234px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    width: 100%;
}

header a {
    font-size: 18px;
    text-decoration: none;
    color: #fff;
    font-weight: bolder;
    border: 1px solid #fff;
    padding: 6px 15px;
    border-radius: 8px;
    transition: all 0.2s;
}

header a:hover {
    transform: scale(1.07);
    background-color: #fff;
    color: #3471ff;
}

.link-button {
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    color: #fff;
    font-weight: bolder;
    background-color: transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.link-button:hover {
    border-color: #fff;
    color: #775dff;
    background-color: #fff;
    box-shadow: 0px 4px 15px -3px rgba(0, 0, 0, 0.341);
}

/*---------------------------MAIN--------------------------------*/

main {
    grid-area: main;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
}

.container_actividades {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 40px;
}

h1 {
    text-align: center;
}

.card_img {
    width: 180px;
}

.card_img img {
    width: 100%;
}

.container_cards {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px 40px;
}

.card {
    width: 350px;
    padding: 45px 10px;
    min-width: 150px;
    border-radius: 15px;
    text-align: center;
    background-color: #cecece;
    box-shadow: 0px 4px 22px -10px #3f3f3f;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.card:hover {
    transform: scale(1.06);
}

.card_title {
    font-size: 25px;
    font-weight: bolder;
    color: #fff;
    padding: 10px 0;

    border-radius: 8px;
}

.audio {
    background: linear-gradient(
            180deg,
            rgba(67, 67, 67, 0.39) 0%,
            rgba(0, 0, 0, 0.52) 100%
        ),
        url(https://sfo3.digitaloceanspaces.com/e-fuente/e-fuentedevida.net/nuevo_lastoo/vistas/elrecurso/audio_tres.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.film {
    background: linear-gradient(
            180deg,
            rgba(67, 67, 67, 0.39) 0%,
            rgba(0, 0, 0, 0.52) 100%
        ),
        url(https://sfo3.digitaloceanspaces.com/e-fuente/e-fuentedevida.net/nuevo_lastoo/vistas/elrecurso/fil_2.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*--------------------------FOOTER--------------------------------*/

footer {
    grid-area: footer;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 13px;
    background-image: url(https://sfo3.digitaloceanspaces.com/e-fuente/e-fuentedevida.net/lastoo_e/vista_docente/recurso/bg-header.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    p {
        span {
            color: #3dd2ff;
        }
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 0 20px;
    }

    .card {
        width: 250px;
    }

    .card_title {
        font-size: 20px;
    }
}

@media screen and (max-width: 420px) {
    .logo {
        width: 130px;
    }

    header a {
        font-size: 15px;
        text-align: center;
    }
}

@media screen and (max-width: 340px) {
    .card {
        width: 200px;
    }

    .card_title {
        font-size: 15px;
    }

    body {
        grid-template:
            "header header header" 75px
            "aside main side" 1fr
            "footer footer footer" 35px / 9% 1fr 9%;
    }
}
