@font-face{
    font-family: MavenPro;
    src:url(../fonts/MavenPro-VariableFont_wght.ttf);
}
@font-face{
    font-family: Actor;
    src:url(../fonts/actor/Actor-Regular.ttf);
}

*{
    margin: 0;
    padding: 0;
}

body{
    margin: 40px;
}

a{
    text-decoration: none;
}

i{
    font-size: 12px;
    margin-right: 5px;
}

ul{
    list-style-type: none;
}

.active{
    color: rgba(0, 0, 0, 0.956);
}
/**************************
       H E A D E R
**************************/
.header{
    display: flex;
    align-items: center;
    height: 60px;
}

#logo{
    flex-grow: 1;
}

#logo img{
    width: 50px;
    height: 50px;
    margin: 0 auto;
}

nav{
    flex-grow: 7; 
    font-family: MavenPro; 
}

nav ul{
    display: flex;
    flex-wrap: wrap;
    align-self: flex-start;
    justify-content:space-evenly
}

nav ul li{
    flex-basis: auto;
}

nav ul li a{
    color: rgba(0, 0, 0, 0.456);
    font-weight: bold;
}

nav ul li a:hover, nav ul li a i:hover{
    color: rgba(0, 0, 0, 0.956);
}

.social-links{
    flex-grow: 1;
}

.social-links a i{
    color: rgba(0, 0, 0, 0.456);
    font-weight: bold;
    font-size: 12px;
}

.social-links a i:hover{
    color: rgba(0, 0, 0, 0.956);
}

.container{
    background-image: url("../img/cabecera.jpg");
    background-color: #cccccc; 
    height: 300px; 
    background-position: center; 
    background-repeat: no-repeat;
    background-size: cover; 
}

/**************************
       B A N N E R 
**************************/
.main-section{
    height: calc(300px - 95px);
    display: flex;
    flex-direction: column;
    align-content: flex-end;
    justify-content: flex-end;
    padding: 2rem;
    padding-bottom: .9rem;
}

.banner{
    background-color: rgba(0, 0, 0, 0.119);
    height: 100px;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    font-family: Actor;
    letter-spacing: 1px;
}

.banner h1{
    align-self: center; 
    color: rgb(247, 137, 155);
    font-weight: 700;  
}

/**************************
       A R T I C L E S 
**************************/
.articles{
    margin-top: 10px;
    border: 5px solid #ccc;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}

.article{
    width: calc(50% - 10px);
    border: 5px solid #ccc;
    display: flex;
    flex-direction: column;
}

.article-img{
    height: 65%;
    justify-content:flex-end;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.article-img img{
    transition: all 1000ms;
    overflow: hidden;
    width: 100%;
    height: 100%;
    z-index:1;
}
.article-img img:hover{
    filter:grayscale();
}

.date{
    color: white;
    font-family: MavenPro;
    margin-left: .2rem;
    margin-top: -2rem;
    font-weight: 600;
    z-index:2;
}

.topic{
    width: calc(100% - 3px);
    height: 2rem;
    color: white;
    font-family: MavenPro;
    font-weight: 800;
    letter-spacing: 1px;
    background-color: #F73F52;
    padding-left: .2rem;
    z-index:3;
}
.topic span{
   display: block;
   margin-top: .72rem;
}

.article p{
    padding: 2rem;
}

.article p a{
    color: rgba(0, 0, 0, 0.456);
}

.article p a:hover{
    color: rgb(247, 137, 155);
}


/**************************
       F O O T E R
**************************/
footer{
    display: flex;
    justify-content: center;
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(204, 204, 204, 0.595);
    font-family: MavenPro;
}

#developer{
    color: #F77C4D;
}

/* + - + - + - + - + - + - + - +  - + - + - + - + - + - + -
       R    E   S   P   O   N   S   I   V   E  
 + - + - + - + - + - + - + - +  - + - + - + - + - + - + - */

 /**************************
     M O B I L E
**************************/

/***** 480px *****/
@media screen and (min-device-width: 220px) and (max-device-width: 480px) {
    .header{
        display: flex;
        flex-direction: column;
    }
    nav ul{
        display: flex;
        flex-direction: column;
    }
    nav ul li{
        align-self:flex-start;
    }
    .social-links ul{
        display: flex;
        flex-direction: row;
    }
    .social-links ul li a i{
        color: rgba(12, 12, 12, 0.836);
    }


    .articles{
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
  
    }
    .article{
        width: calc(100% - 10px);
    }
    .article p {
        padding: 1rem;
    } 
}

 /**************************
      T A B L E T
**************************/
@media screen and (min-device-width: 481px) and (max-device-width: 900px) {
    .container{
        height: 20rem;
    }
    .header{
        display: flex;
        flex-direction: column;
    }
    #logo{
        flex-grow: 2;
    }
    nav{
        padding: .5rem;
    }
    nav ul{
        display: flex;
        align-self: flex-start;
        justify-content:space-evenly;
        flex-grow: 5;
    }
    /***************+ FOLLOW FROM HERE *********************************************************
 FOLLOW FROM  FOLLOW FROM HERE  HERE  FOLLOW FROM HERE  FOLLOW FROM HERE
 FOLLOW FROM HERE  FOLLOW FROM HERE  FOLLOW FROM HERE  FOLLOW FROM HERE
    ***************************+**************************************/
    nav ul li a i{
        margin-left: 1px;
    }
    .social-links{
        flex-grow: 2;
    }
    .social-links ul li a i{
        color: rgba(12, 12, 12, 0.836);
    }
}
