﻿/*Vista: Publicar y Publicar2*/
.publicar2 {
    background-color: #89bc94;
    height: fit-content;
}

.bannerContainer{
    display: grid;
    align-content: center;
    width: 100%;
    grid-template-columns: 1fr 500px 1fr;
    padding: 15px 0 0 0;
}

.banner {
    width: 500px;
    height: 500px;
    position: relative;
    background: #E7E7E7;
    background-size: cover;
    background-position: center;
    background-size: 100% 100%;
    grid-column-end: 3;
}

.banner-upload-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1;
}

.banner-upload-btn img {
    width: 20px;
}

.blog {
    display: grid;
    grid-template-columns: 1fr 1300px 1fr;
    margin: auto;
    padding: 10px 5px 0 5px;
}

#idBlogContenedorArticulo {
    
}

textarea::-webkit-scrollbar {
    width: 10px;
}

textarea::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

textarea {
    max-width: fit-content;
}

.title,
.article,
.referencias{
    width: 100%;
    height: auto;
    font-weight: 600;
    color: #2d2d2d;
    resize: none;
    border: none;
    padding: 10px;
}

.title::placeholder,
.article::placeholder {
    color: #2d2d2d;
}

.title {
    height: 62px;
    max-width: inherit;
    font-size: 30px;
}

.article {
    height: 500px;
    font-size: 18px;
    margin-top: 20px;
    line-height: 30px;
    font-weight: 500;
    padding-bottom: 100px;
    white-space: pre-wrap;
    max-width: inherit;
}

.referencias {
    height: 150px;
    font-size: 18px;
    margin-top: 20px;
    line-height: 30px;
    font-weight: 500;
    padding-bottom: 100px;
    white-space: pre-wrap;
    max-width: inherit;
}

.blog-options {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #89bc94;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn {
    border: none;
    outline: none;
    cursor: pointer;
    margin: 0px 5px 0px 5px;
}

.btn.grey {
    background: #a5a5a5;
    color: #fff;
    margin-left: 20px;
    font-size: 14px;
}

.divArticulo {
    margin: 15px 0 0 0;
    border: solid;
    border-color: #999999;
    grid-column-end: 3;
}

.izquierda {
    width: 100%;
    padding-right: 5px;
}

.derecha {
    width: 40px;
    right: 0px;
    height: inherit;
    margin-top: 20px;
    border-radius: 5px;   
}

.botones-laterales {
    border-radius: 5px;
    margin: 2px;
    background-color: #EEEEEE;
    height: 40px;
    cursor: pointer;
    text-align: center;
}

.botones-laterales > i {
    padding-top: 5px;
}

.botones-laterales:hover {
    background-color: #CCCCCC;
}

ul, ol {
    list-style: none;
}

.menu-desplegable li a {
    width: 190px;
    display: block;
    height: auto;
    padding-left: 10px;
}

.menu-desplegable li:hover {
    background-color: #CCCCCC;
}

.menu-desplegable > li {
    float: right;
    right: 38px;
    position: inherit;
    width: 190px;
    background-color: #EEEEEE;
    top: -34px;
}

.botones-laterales ul {
    position: relative;
    display: none;
}

.botones-laterales ul li a{
    margin-right: 37px;
}

/*Vista: VerPublicacion.cshtml*/
.contenedorArticulo {
    display: grid;
    grid-template-columns: 1fr 1300px 1fr;
}

.blog2 {
    margin: auto;
    padding: 10px 5px 0 5px;
    width: 100%;
    background-color: #FFFFFF;
    grid-column-end: 3;
}

.title2 {
    color: #89BC94;
    margin: 0;
}

.article2 {
    position: relative;
    height: fit-content;
    padding-bottom: 0;
    width: 1080px;
}

.divArticulo2 {
    margin: 15px 0 0 0;
    border: none;
}

.published {
    margin: 0 0 0 0;
    color: rgba(0, 0, 0, 0.5);
    padding: 0;
}

.published2 {
    margin: 0 0 0 0;
    color: rgba(0, 0, 0, 0.5);
    padding: 0;
}

.published span {
    font-weight: 700;
    font-style: normal;
}

.published2 span {
    font-weight: 700;
    font-style: normal;
}

.article2 * {
    margin: 20px 0;
    color: #2d2d2d;
}

.article-image {
    max-width: 100%;
    max-height: 400px;
    display: block;
    margin: 30px auto;
    object-fit: contain;
}

/*Vista: VerTodasPublicaciones.cshtml*/
.blogs-section {
    width: 100%;
    padding: 50px 5vw;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 30px;
    background-color: #89bc94
}

.blog-image {
    height: 300px;
    width: 300px;
    object-fit: cover;
    margin: 10px;
    border: 0.5px solid;
    max-width: 300px;
}

.blog-overview {
    margin: 10px 0 20px;
    line-height: 30px;
    width: 100%;
    font-style: italic;
    font-size: 18px;
}

.btn.dark {
    background: #1b1b1b;
    color: #fff;
}

.blog-card {
    width: 100%;
    border: solid;
    border-radius: 15px;
    background-color: #FFFFFF;
    border-color: #999999;
    cursor: pointer;
    display: grid;
    grid-template-columns: 320px repeat(1, 1fr);
}

.blog-card:hover{
    background-color: #E0E0E0;
}

.blog-title {
    color: #89BC94;
}

.blog-resume {
    display: grid;
    grid-template-rows: 110px 1fr 30px;
}

/*Responsive*/
@media(max-width: 1300px) {
    .blog {
        grid-template-columns: 1fr auto 1fr;
    }

    .bannerContainer {
        display: grid;
        grid-template-columns: 1fr 400px 1fr;
    }

    .banner {
        height: 400px;
        width: 400px;
        grid-column-end: 3;
    }
}

@media(max-width: 790px) {
    .blog-card {
        width: 100%;
        border: solid;
        border-radius: 15px;
        background-color: #FFFFFF;
        border-color: #999999;
        cursor: pointer;
        display: grid;
        grid-template-columns: repeat(1, 1fr);        
    }

    .blog-resume {
        display: grid;
        grid-template-rows: max-content max-content 30px;
    }

    #divImagen {
        height: contain;
        text-align: center;
    }

    .blog-title {
        font-size: 25px;
        margin-left: 10px;
    }

    .blog-overview {
        margin: 10px 15px 10px 10px;
        line-height: 25px;
        width: auto;
        font-style: italic;
        font-size: 14px;
    }

    .published {
        margin: 0 0 0 10px;
        color: rgba(0, 0, 0, 0.5);
        padding: 0;
        display: inline-block;
    }

    .contenedorArticulo {
        grid-template-columns: 10px 1fr 10px;
    }

    .divArticulo2 img {
        margin: 0 0 10px 0 !important;
        width: 400px !important;
        display: block;
    }
}

@media(max-width: 380px) {
    .banner {
        height: 300px;
        width: 300px;
        grid-column-end: 3;
    }

    .bannerContainer {
        display: grid;
        grid-template-columns: 1fr 300px 1fr;
    }

    .divArticulo > textarea{
        font-size: 16px;
    }

    .divArticulo2 {
        font-size: 14px;
    }

    .title2 {
        font-size: 24px;
    }

    .published2 {
        margin: 0;
        font-size: 14px;
    }

    .divArticulo2 img {
        margin: 0 0 10px 0 !important;
        width: 300px !important;
        display: block;
    }
}
