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

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    width: 100%;
    min-height: 100vh;

    display: grid;
    grid-template:  "header header header" 100px 
                    "aside main side" 1fr 
                    "footer footer footer" 40px / 15% 1fr 15%;
}

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

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

    padding: 0 30px;
}

header img{
    height: 80px;
}

header form{
    position: relative;
}

header form i{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translate(0%, -50%);
    color: rgba(128, 128, 128, 0.56);

    transition: .2s ease all;
}

header form input{
    width: 200px;
    border-radius: 15px;
    outline: none;
    border: none;
    padding: 7px 15px;
    padding-right: 30px;
    transition: .2s ease all;
    color: rgba(128, 128, 128, 0.56);
}

header form input:focus{
    width: 250px;
    color: black;
}

header form input:focus~i{
    color: black;
}

main{
    grid-area: main;
    padding: 40px 0;

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

.pagination{
    display: flex;
}


.pagination a{
    margin: 5px;

    padding: 7px 20px;

    background-color: #2E87FF;
    color: white;

    border-radius: 10px;

    text-decoration: none;

    transition: .2s ease all;
}

.pagination a:hover{
    background-color: #7463FF;
    box-shadow: 7px 5px 5px rgba(0, 0, 0, 0.589);
}

.pagination button{
    margin: 5px;

    padding: 7px 20px;

    background-color: #2E87FF;
    color: white;

    border-radius: 10px;

    text-decoration: none;

    transition: .2s ease all;

    outline: none;
    border: none;
}

.pagination button:hover{
    background-color: #7463FF;
    box-shadow: 7px 5px 5px rgba(0, 0, 0, 0.589);
}
.cards{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.card{
    width: 350px;
    min-height: 270px;

    background: url(https://sfo3.digitaloceanspaces.com/e-fuente/e-fuentedevida.net/lastoo_w/vista_docente/recurso/cardbg-3.jpg);
    background-position: center;
    background-size: cover;

    border-radius: 20px;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.367);

    display: flex;
    flex-direction: column-reverse;
}

.card-info{
    padding: 40px 15px 20px 15px; 
    background-color: white;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    border-radius: 20px 20px 20px 20px;

    object-fit: fill;

    position: relative;
}

.fecha{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.506);

    background-color: white;
    border-radius: 15px;
    padding: 10px;
    font-weight: 700;
}

.mes{
    font-size: 12px;
    font-weight: 500;
    color: #5C68DE;
}

.ev-title{
    font-weight: 700;
    font-size: 20px;
}

.ev-info{
    font-size: 14px;
    color: rgba(0, 0, 0, 0.542);
}

.mark{
    font-weight: 500;
}

.funciones{
    position: absolute;
    top: -30px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.edit button{
    background-color: #080D56;
}

.delete button{
    background-color: #d62828;
}

.copy button{
    background-color: #0DAAD2;
}

.show button{
    background-color: #91C306;
}

.play button{
    background-color: #03CEA4;
}

.float-btn button{
    font-size: 20px;
    height: 35px;
    width: 35px;
    border-radius: 50%;
    border: none;
    
    color: white;

    transition: all ease .2s;
}

.float-btn button:hover{
    box-shadow: 4px 5px 3px rgba(0, 0, 0, 0.535);

}

footer{
    grid-area: footer;
    background: url(https://sfo3.digitaloceanspaces.com/e-fuente/e-fuentedevida.net/lastoo_w/vista_docente/recurso/header4.jpg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.alerta{
    position: fixed;
    top: 0;
    left: 0;

    padding: 35px;

    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.343);

    display: flex;
    align-items: flex-start;
    justify-content: center;

    opacity: 0;

    pointer-events: none;

    transition: opacity .2s ease ;
}

.alerta--show{
    opacity: 1;
    z-index: 3;
    pointer-events: unset;
}

.alerta-container{
    background-color: white;
    border-radius: 20px;
    padding: 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.alerta-container .botonera{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.botonera button{
    width: 150px;
    height: 35px;

    border-radius: 10px;

    border: none;
    outline: none;
    margin: 5px;

    margin-top: 20px;
}

.alerta-header{
    font-size: 24px;
    font-weight: 700;
    color: #3041A7;
}

.cancel{
    background-color: #91C306;
    color: white;
}

.aceptar{
    background-color: #d62828;
    color: white;
}

.modal{
    position: fixed;
    top: 0;
    left: 0;

    padding: 35px;

    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.343);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;

    pointer-events: none;

    transition: opacity .2s ease ;
}

.modal--show{
    opacity: 1;
    z-index: 3;
    pointer-events: unset;
}

.modal-container{
    background-color: white;
    border-radius: 20px;
    padding: 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#clase{
    width: 300px;
    padding: 7px 15px;
    margin: 10px;

    border-radius: 10px;
    font-size: 16px;
}

#success_msg{
    width: 100%;
    margin: 10px 0;
}

#success_msg .mensaje{
    width: 100%;
    padding: 7px;
    text-align: center;

    border-radius: 10px;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 7px 0;
}

.msg_correct{
    background-color: #91C306;
}

.msg_error{
    background-color: #d62828;
}

.cerrar{
    margin: 5px;

    padding: 7px 20px;

    background-color: #2E87FF;
    color: white;

    border-radius: 10px;

    text-decoration: none;

    transition: .2s ease all;
}

.cerrar:hover{
    background-color: #7463FF;
    box-shadow: 7px 5px 5px rgba(0, 0, 0, 0.589);
}

@media  screen and (max-width: 600px) {
    header img{
        height: 50px;
    }
}

@media  screen and (max-width: 500px) {
    body{
        display: grid;
        grid-template:  "header header header" 100px 
                        "aside main side" 1fr 
                        "footer footer footer" 40px / 0% 1fr 0%;
    }
}

@media screen and (max-width: 400px){
    header img{
        display: none;
    }

    .card{
        width: 90%;
    }
}