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

/*ESTILIZADO AL NAVBAR*/

body {
    margin: 0;
    padding: 0;
    min-width: 300px;
    background-color: #fff !important;
    font-family: Montserrat;
}

body.modal-open {
    overflow: hidden;
}

.container-form-confirm {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(100, 100, 100, 0.3);
    border: none;
    width: 100%;
    min-height: 100vh;
    height: 100%;
}

.container-modal-confirm {
    box-shadow: 0 0 30px 0 #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
}

.mybtn {
    margin: 0 10px !important;
    background-color: #fff !important;
    border-color: #fff !important;
    border-style: solid !important;
    color: rgb(17, 84, 189) !important
}

.mybtn-2 {
    border-color: rgb(17, 84, 189) !important
}

.mybtn-unique:hover {
    background-color: rgb(17, 84, 189) !important;
}

.nav-link {
    margin: 10px !important;
}

.card {
    margin-top: 30px;
    box-shadow: 0 0 6px 0 #aaa !important;
}

.card-body {
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 55px) repeat(2, 23px) 48px
}

.form__title h3 {
    font-size: 2em !important;
    margin-bottom: 19px;
}

.container__blog-detail {
    width: 90%;
    max-width: 1200px;
}

.container__detail-blog,
.container-comments-blog {
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
    box-shadow: 0 0 20px #777;
    border-radius: 10px;
    margin-bottom: 30px;
}

.container__detail-blog {
    overflow-y: auto;
}

.container-comments-blog {
    margin-top: 20px;
    padding: 20px !important;
    max-height: 900px;
    padding-top: 0 !important;
    background-color: #fff;
}

.Blog__title {
    font-size: 50px;
    text-wrap: baseline;
}

.card-img-top {
    max-width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
}

/*.container-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 50px;
    grid-auto-flow: row;
    grid-template-areas:
        "btn btn btn btn";
    gap: 15px;
}*/

.main_content {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.form-control:active,
.form-control:focus {
    outline-color: #333
}

.btn {
    border: 1px solid #333;
    display: inline-block;
    background-color: #fff !important;
    color: #222
}

.btn:hover {
    background-color: #333 !important;
    color: #fff !important;
    outline-color: #333;
    border-color: #333
}

.blog-img__container {
    max-width: 1200px;
    width: 100%;
    height: 690px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 10px;
    margin-bottom: 20px;
}

.container-form {
    min-height: 90vh !important;
    padding: 20px;
    display: flex;
    justify-self: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.form__container {
    margin-top: 50px;
    border-radius: 10px;
    padding: 30px;
    width: 65%;
    box-shadow: 0 0 20px 0 #888;
}

.formulario input,
.formulario textarea,
.formulario select {
    width: 100%;
    margin-top: 5px;
    resize: none;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #666
}

.formulario input[type="file"] {
    border: none
}

.formulario textarea {
    height: 300px;
}

.btn {
    margin-top: 7px;
}

.formulario label:first-child {
    margin-top: 10px;
}

.blog-form__container {
    width: 100%;
    height: 100%;
}

.blog-form__container form {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
}

.form-control {
    resize: none !important;
    height: 80px !important;
}

.textarea-comment {
    display: inline-block;
    box-sizing: border-box;
    padding: 15px;
    min-width: 600px;
    flex-grow: 1;
}

.blog-form__container form>button {
    display: inline-block;
    width: 7% !important;
    box-sizing: border-box;
    display: block;
    grid-area: button
}

.navbar-toggler {
    border: 1px solid white;
    outline: none;
    box-shadow: none;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    border: 1px solid white;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

@media screen and (min-width:2600px) {
    .container__blog-detail {
        max-width: 1800px;
    }

    .blog-img__container {
        max-width: 1800px;
        height: 1100px;
    }

    .Blog__title {
        font-size: 4em !important;
    }

    .paragraph-blog {
        font-size: 1.8em;
    }
}

@media screen and (max-width:1400px) {

    .form__container {
        width: 80%;
        margin-top: 30px
    }

    .main {
        margin-bottom: 80px;
    }

    .container-form {
        min-height: 80vh !important;
        margin-bottom: 20px !important;
    }
}

@media screen and (max-width:912px) {

    .form__container {
        width: 85%;
        margin-top: 20px
    }

    .container__blog-detail {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .container-comments-blog {
        box-shadow: none;
        border-radius: 4px;
        border: 1px solid #888;
        width: 98%;
        margin: auto;
    }

    .main {
        min-height: 90vh;
        margin-bottom: 70px;
    }

    .container__detail-blog {
        box-shadow: none;
        border-radius: none;
    }

    .blog-img__container {
        height: 430px;
        background-position: center;
    }
}


.div__header-comments {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 999;
    padding-top: 40px !important;
    padding: 20px;
}

/*ELIMINAR COMENTARIOS*/

/*Contenedor de los comentarios*/

#contenedor-de-comentarios {
    max-height: 600px;
    overflow-y: auto;
    margin-top: 10px !important;
    padding: 20px;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 50px;
}

.comment__header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.menu-container {
    position: relative;
    display: inline-block;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.menu-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 140px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    z-index: 10;
}

.menu-content .send__button {
    display: block;
    padding: 7px 14px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
    border: none;
    background-color: transparent;
    width: 100%;
    text-align: left;
}

.menu-content .send__button:hover {
    background-color: #f2f2f2;
}

/* Mostrar el menú cuando está activo */
.menu-container.active .menu-content {
    display: block;
}


@media screen and (max-width:730px) {
    .main {
        margin-bottom: 30px;
    }

    .form__container {
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        margin-top: 10px;
        padding: 0px;
    }

    .container-form {
        margin-top: 17px;
    }

    .container__detail-blog {
        padding: 18px;
    }

    .blog-img__container {
        height: 420px;
        background-position: center;
    }

    #contenedor-de-comentarios {
        padding: 0;
    }

    .div__header-comments {
        padding: 0
    }

    .container__create-link{
        justify-self: center;
        align-self: center;
    }

}

/*CONTENEDOR DEL HEADER DEL POST*/

.blog-hader__container {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
}

/*CONFIRMACION DE ELIMINAR*/

.container-form-confirm {
    z-index: 999;
}

/*FORMULARIO DE COMENTARIOS*/


/*SECTION DE COMENTARIOS*/
#btn--post--comment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border: none;
    background-color: #fff;
    border: 1px solid #aaa;
    min-height: 100%;
    min-width: 50px;
    border-radius: 6px;
    transition: color 0.3s, border-color 0.3s ease;

    &:hover {
        color: #000;
        border-color: #000;
    }
}

.input--post--comment:focus{
    box-shadow: none;
    outline:1px solid #fff;
    border-color:#000;
}