/* all boxes inside blog-father config */
.blog-father * {
    box-sizing: border-box;
    }
    .blog-father > h2 {
        font-family: Avenir,Arial, Helvetica, sans-serif;
        font-size: 40px;
        font-weight: bold;
        padding: 10px;
        margin: 0px 10px;
    }
    /* Container for flexboxes */
    .blog-flex-container {
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
    }
        /* Define 1st layer flex-item/flex-container  */
        .blog-flex-row {
        display: flex;
        flex-wrap: wrap;
        flex: 1 1;
        padding: 10px;
        margin: 5px;
        }
        .blog-flex-column {
        display: flex;
        flex-direction: column;
        flex: 1 0 300px;
        margin: 5px;
        }
            /* Define 2nd layer flex-item/flex-container  */
            .blog-flex-item {
            display: flex;
            flex: 1 1 calc(200px + 100 * ((100vw - 320px)/ 1200)); /* being "flex-direction: colum" flex-basis(flex third param) translates to "min height"*/
            padding: 5px;
            margin: 5px;
            }

.relevant-entry {
    padding: 10px 0 0;
}

.main-blog--container .alerta {
    width: 100%;
}



.main-blog--container .contenedor {
    width: calc(100% / 3);
}

.main-blog--container .contenedor .icon {
    right: 10px;
    top: -10px;
}

.relevant-entry > .relevant-entry--info {
    background-color: rgba(41, 41, 41, .9);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.relevant-entry .relevant-entry--info > .sub-title {
    font-weight: bold;
}


    /* Relevant entry config  */
    .relevant-entry {
    border-radius: 10px;
    align-items: flex-end;
    }
        /* Divs' inside "Relevant entry" */
        .relevant-entry > div {
        display: flex;
        flex-direction: column;
        flex: 1 1;
        padding: 17px;
        }
            /* Defining other stuff to use into "Relevant entry" */
            .relevant-entry .title {
            font-family: Avenir,Arial, Helvetica, sans-serif;
            color:aliceblue;
            font-size: 30px;
            }
            .sub-title {
            font-family: Avenir,Arial, Helvetica, sans-serif;
            color:aliceblue;
            font-size: 20px;
            opacity: 0.5;
            }
            .background-img {
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
            min-height: 350px;
            margin-bottom: 1.75rem;
            }

    /* .relevant-entry .blog-flex-column > .blog-flex-item {
        transition: .4s ease;
    }
    .relevant-entry .blog-flex-column > .blog-flex-item {
        border: 1px solid orange;
    } */

    .blog-father .blog-flex-container .blog-flex-column > .blog-flex-item {
        transition: .4s ease;
    }

    .blog-father .blog-flex-container .blog-flex-column > .blog-flex-item:hover
    {
        -moz-transition: scale(1.02);
        -webkit-transition: scale(1.02);
        -o-transition: scale(1.02);
        transform: scale(1.02);
    }


    /* recent entry config  */
    .recent-entry {
    flex-direction: column;
    border-radius: 10px;
    align-content: center;
    }
        /* all elements inside "Recent entry" */
        .recent-entry > *,
        .recent-entry > a > * {
        display: inline-flex;
        border-radius: 20px;
        padding: 10px;
        }
        /* img inside "Recent entry" */
        .recent-entry-img {
           flex: 0 0 calc(200px + 60 * ((100vw - 320px)/ 1200));
           background-position: center;
           background-repeat: no-repeat;
           background-size: cover;
           width: 100%;
           height: 100%;
        }
        /* Elements defined not to grow */
        .recent-entry-nogrow {
           flex: 0 0;
        }
        /* Blog category container */
        .blog-category {
        padding: 5px;
        margin: 0px 10px;
        font-size: 15px;
        font-weight: bold;
        border-radius: 5px;
        color: aliceblue;
        align-self: center;
        }
            /* Each subcategory only defines color,  */
            .blog-category.foo {
            font-family: Avenir,Arial, Helvetica, sans-serif;
            background-color:grey;
            }
            .blog-category.bar {
            font-family: Avenir,Arial, Helvetica, sans-serif;
            background-color: rgb(22, 95, 22);
            }
        /* title of recent-entry */
        .recent-entry > a > .title {
        font-family: Avenir,Arial, Helvetica, sans-serif;
        color:black;
        font-size: 40px;
        font-weight: bold;
        line-height: 1;
        }
        /* content of recent-entry */
        .recent-entry > .content {
        text-align: justify;
        }

/* Admin stuff */
    /* New Post button */
    #new-post {
        background-color: #4CAF50;
        color: whitesmoke;
        text-align: center;
        border-radius: 5px;
        cursor: pointer;
        font-size: 24px;
        width: 200px;
        padding: 10px;
        margin-top: 30px;
        margin-bottom: 10px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Forms */
    #admin-forms form {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 90%;
        min-width: 300px;
        padding: 10px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
        margin-bottom: 20px;
        background-color:rgba(219, 220, 221, 0.658);
        border-radius: 10px;
    }
    #admin-forms .fila {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }
        #admin-forms .fila-item {
           flex: 1 1 200px;
           padding: 10px;
           margin: 10px;
        }
    .admin-form-divider {
        border-top: 2px solid white;
        border-bottom: 2px solid white;
        width: 95%;
    }
    #admin-forms input, #admin-forms select {
        padding: 12px 20px;
        border: 1px solid #ccc;
        border-radius: 4px;
        width: 100%;
        font-size: 16px;
    }
    #admin-forms label {
        margin: 8px;
        font-family: Arial;
        font-size: 20px;
        font-weight: bold;
    }
    #admin-forms input[type=submit] {
        width: 20%;
        min-width: 100px;
        background-color: #4CAF50;
        color: white;
        padding: 8px 12px;
        margin: 8px 2px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        align-self: center;
    }
        #admin-forms input[type=submit]:hover {
            background-color: #45a049;
        }
        /* the button to close the alert span */
        form .closebtn {
            margin-left: 15px;
            color: white;
            font-weight: bold;
            float: right;
            font-size: 22px;
            line-height: 20px;
            cursor: pointer;
            transition: 0.3s;
        }
            form .closebtn:hover {
                color: black;
            }
/* Tooltip for file input*/
    /* The container */
    .fila-item.file {
        position: relative;
    }
    /* On hover show the tooltip */
    .fila-item.file:hover .tooltip {
        visibility: visible;
        opacity: 1;
    }
        /* The tooltip it self */
        .fila-item.file .tooltip {
            visibility: hidden;
            background-color: black;
            position: absolute;
            border-radius: 50px;
            padding: 12px;
            z-index: 1;
            width: 95%;
            color: white;
            top: -10%;
            text-align: center;
            opacity: 0;
            transition: opacity 1s;
            top: 100%;
        }

@media screen and ( min-width: 576px ) {
    .main-blog--container .alerta {
        width: 50%;
    }
}
@media screen and ( min-width: 768px ) {
    .main-blog--container .alerta {
        width: 400px;
    }
}
