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

body {
    background: WHEAT;
    font-family: 'Merienda One', cursive;
}

a {
    text-decoration: none;
}

.cont{
    width: 90%;
    max-width: 1100px;
    margin:auto;
}

/* HEADER */

header{
    padding:40px 0;
}

header .logo {
    text-align: center;
    margin-bottom: 40px; 
}

header .logo p{
    color: #FF5733;
    font-family: 'Indie Flower', cursive;
    font-size: 25px;
}

header .logo h1{
    color: crimson;
    font-family: 'Dancing Script', cursive;
    font-size: 50px;
}

header form {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}


header .search-bar {
        width: 70%;
        height: 40px;
        line-height: 20px;
        background: floralwhite;
        padding: 0 20px;
        border-radius: 100px;
        border:none;
        text-align: center;
        font-size: 16px;
}

header .categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

header .categories a {
    color: coral;
    margin: 10px 20px;
    font-size: 18px;
    font-weight: 700;
}

header .categories a.active {
    color:firebrick;
}

/* GRID */

.grid {
    position: relative;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s linear 1s;
}

.grid.uploaded-img {
    opacity: 1;
}

.grid .item {
    position: absolute;
    display: block;
    padding: 0;
    margin: 10px;
    width: calc(33.333333% - 20px);
}

.grid .item-cont {
    position: relative;
}

.grid .item img {
    width: 100%;
    cursor: pointer;
    vertical-align: top;
}

/* OVERLAY */

.overlay {
    position: fixed;
    top:0;
    bottom: 0;
    left:0;
    background: rgba(0,0,0,.9);
    width: 100%;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.overlay.active {
    display: flex;
}

.overlay img {
    max-width: 100%;
}

.overlay .description {
    display:block;
    background: #EF9A9A;
    padding: 20px;
    text-align: center;
    margin-top: 5px;
    border-radius: 10px;
    max-width: 50%;
}

.cont-img {
    position: relative;
}

.overlay #btn-close-popup {
    background: none;
    font-size: 20px;
    color: #FFCDD2;
    border: none;
    cursor: pointer;
    position: absolute;
    right: -20px;
    top: -20px;
}

/* FOOTER */

footer .social-networks{
    display: flex;
    align-content: center;
    justify-content: center;
    padding:20px;
    flex-wrap: wrap;
}

footer .social-networks a{
    display: block;
    width: 60px;
    height: 60px;
    color: #fff;
    background: black;
    margin:20px;
    text-align: center;
    border-radius:100px;
    transition: .3s ease all;
}

footer .social-networks .linkedin{
    background: #0077B5;
}

footer .social-networks .instagram{
    background: #e4405f;
}

footer .social-networks .tumblr{
    background: #34465d;
}

footer .social-networks a i{
    font-size: 30px;
    line-height: 60px;
}

footer .cont-icon:hover a {
    animation: icon .5s ease;
}

@keyframes icon {
    from{
        transform: rotate3d(0,0,0,0);       /* Eje de las y,x,z */
    }
    to {
        transform: rotate3d(0,1,0,360deg);
    }
}

footer .create-for {
    margin-bottom: 40px;
    text-align: center;
    font-size: 20px;
    color: #C0392B;
}

/*   Mediaqueries  */

@media screen and (max-width: 700px){
    .grid .item {
        width: calc(50% - 20px);
    }
    header .search-bar {
        width: 100%;
    }
}