
* {
    font-family: "Roboto Flex", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "XOPQ" 96,
      "XTRA" 468,
      "YOPQ" 79,
      "YTAS" 750,
      "YTDE" -203,
      "YTFI" 738,
      "YTLC" 514,
      "YTUC" 712;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-size: 16px;
    background-color: #fff;
}

.avatar-container {
    z-index: 1;
    position: fixed;
    top: 21%;
    right: -500px; 
    transform: translateY(-50%);
    transition: right 1s ease-in-out;
}

.avatar-container.show {
    right: 0; 
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

video {
    opacity: 1;
    position: relative;
    z-index: 10;  
}

header {
    top: 0;
    width: 100%;
    background-color: #c6ce6f;
    text-align: center;
    border-bottom: 1px solid #b8b8b8;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}
header a {
    font-size: 16px;
}
header img {
    font-size: 16px;
    width: 10em;
    max-width: 100%;
    height: auto;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); */
}

#head_image {
    width: 9em;
}

#logo_image {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.main-container {
    flex-grow: 1;  
    background-color: #fff;
    justify-content: center;
    align-items: center;
}

.blog-btns {
    flex-grow: 1;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: flex-start;
    justify-items: stretch;
    flex-direction: row;
    background-image: none;
    background-color: #474838;
}

.btn-blog1, .btn-blog2 {
    margin: 0;
    padding: 5px;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    opacity: 0.9;
    align-items: center;
    text-align: center;
    display: flex;
    align-content: center;
    justify-content: center;
    text-decoration: none;
    color: #1d1d1c;
    transition: all 0.5s ease-in;
}

.btn-blog1 {
    background-image: url(../images/blog.jpg);
}

.btn-blog2 {
    background-image: url(../images/casos.jpg); /* CAMBIAR POR NUEVA IMAGEN */
}

.btn-blog1:hover, .btn-blog2:hover {
    font-size: 120%;
    background-size: 150%;
    opacity: 1;
}

.blog-title {
    position: relative; 
    width: 100%;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    height: calc(100vh - 80vh);
    align-content: center;
}

.blog-title::before {    
    content: "";
    background-image: url('../images/header-blog.jpg');
    background-size: cover;
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    opacity: 0.5; 
}

.blog-title a {
    top: 0;
    left: 0;
    padding: 10px;
    color: #B8643F;
    text-decoration: none;
    font-weight: bold;
    position: absolute;
    line-height: 0.9;
    font-size: large;
}

.blog-title h2 {
    color: #474838;  
    position: relative;
    line-height: 0.9;
}

.blog-title h2 { 
    margin: 0;
    padding: 10px;
    font-style: italic;
}

.page-title {
    text-align: center;
    background-color: #474838;
    color: #EDEFF3;
}

.page-title h3 {
    margin: 0;
    padding: 10px;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 1em;
    background-color: #fff;
    margin-left: 50px;
    margin-right: 50px;
}

.blog-posts2 {
    /* grid-template-columns: repeat(3, 1fr); */
    gap: 20px;
    padding: 1em;
    background-color: #fff;
}
/* .blog-posts img {
    width: 20em;
    height: 20em;
}*/

.blog-posts .div-page {
    grid-column: 1 / 3; 
    /* justify-self: center; 
    width: 50%; */
} 

.blog-posts2 .div-page {
    grid-column: 1 / 3; 
    /* justify-self: center; 
    width: 50%; */
} 

.blog-details {
    margin-left: 50px;
    margin-right: 50px;
}

.post-content {
    /* width: 100%; */
    color: #32332a;
    background-color: #c6ce6f85;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px;
}

.post-content img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.post-content p img {
    border-radius: 10px;
    width: 30%;
    height: auto;
}

.post-header p img {
    border-radius: 10px;
    width: 250px;
    height: auto;
}

.post-content2 {
    /* text-align: center; */
    background-color: #c6ce6f85;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    margin-left: 50px;
    margin-right: 50px;
}

.post-content2 h3 {
    font-style: italic;
}

.post-content h3 {
    font-style: italic;
}

.post-content2 a {
    text-decoration: none;
    color: #B8643F;
}

.post-content a {
    text-decoration: none;
    color: #B8643F;
}

.read-more {
    font-size: 80%;
    font-weight: bold;
    transition: all 0.3s ease;
}

.read-more:hover {
    font-size: 102%;
}

.post-title {
    font-style: italic;
    color: #32332a;
    background-color: #c6ce6f85;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    margin: 20px;
    margin-left: 50px;
    margin-right: 50px;
    padding: 20px;
}

.post-header {
    margin: 1em;
    padding: 1em;
    color: #32332a;
    background-color: #c6ce6f85;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    text-align: justify;
}

.post-header small img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    max-width: 1200px;
    display: block;
    margin: 0 auto;
}

.page-content p img {
    display: block;
    margin: 0 auto;
    height: auto;
    border-radius: 20px;
    width: 50%;
}

.post-comment {
    margin: 1em;
    padding: 1em;
    color: #32332a;
    background-color: #c6ce6f85;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 25px;
}

#id_author, #id_body {
    width: 98%;
    border: 1px solid #474838;
    border-radius: 5px;
    background-color: #eff7ed;
    margin: 5px 0;
    padding: 5px;
}

#id_author {
    width: 30%;
}

.btn-primary {
    background-color: #4E4F42; 
    padding: 10px; 
    border: 1px solid #4E4F42;
    border-radius: 10px; 
    color: #fff;
}

.post-comments {
    margin: 1em;
    padding: 1em;
    color: #32332a;
    background-color: #c6ce6f85;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 25px;
}

.text-black {
    padding: 5px;
    color: #32332a;
    background-color: #c6ce6f;
    border-radius: 20px;
    text-align: center;
}

.dictionary {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 10px;
    padding-right: 20px;
    justify-content: center;
    flex-direction: row;
}

.dictionary li a {
    color: #474838;
}

.dictionary-words {
    color: #32332a;
    padding-left: 15%;
    padding-right: 15%;
}

.paginator-nav {
    color: #32332a;
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
}

.paginator-nav a {
    color: #474838;
    padding-left: 5px;
    padding-right: 5px;
}

.finder {
    display: flex;
    justify-content: center;
    padding: 20px;
    /* border-radius: 50px; */
}

.finder form {
    display: flex;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid #474838;
    border-radius: 50px;
    width: 50%;
    padding: 5px;
}

.finder form input {
    background-color: transparent !important;
    padding: 10px;
    width: 100%;
    border-radius: 20px 0px 0px 20px;
}

.finder form button {
    background-color: transparent;
    border: 0px;
    border-left: 1px solid #474838;
    padding: 10px;
    float: right;
}

.query {
    /* padding: 20px; */
    border: 0;
    /* border-radius: 50px 0px 0px 50px; */
}

.query:focus {
    outline: none;
}

footer {
    flex-shrink: 0;  
    background-color: #474838;
    text-align: center;
    font-size: 14px;
    width: 100%;
    padding-top: 15px;
    padding-bottom: 5px;
    border-top: 1px solid #505050;
    z-index: 1;
}

footer p {
    font-size: 14px;
    margin-top: 10px;
}

footer a {
    font-size: 14px;
}

footer a i:hover {
    zoom: 95%;
}

/* @media (max-width: 550px) {
    .blog-posts {
        grid-template-columns: repeat(1, 1fr);
    }
} */

@media screen and (min-width: 1440px) {
    /* Desktop */
    body {
        font-size: 22px;
    }
}

@media screen and (min-width: 1024px) {
    /* Desktop */
    body {
        font-size: 20px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    body {
        font-size: 18px;
    }
    .post-content p img {
        border-radius: 10px;
        width: 50%;
    }
    .post-header p img {
        width: 150px;
    }
}

@media screen and (max-width: 767px) {
    /* Smartphone */
    header img {
        width: 6em;
    }
    #head_image {
        width: 5em;
    }
    body {
        font-size: 12px;
    }
    footer a img {
        width: 3em;
    }
}

@media (max-width: 350px) {
    body * {
        font-size: xx-small;
    }
    header img {
        width: 6em;
    }
    #head_image {
        width: 5em;
    }
    .post-header p img {
        width: 100px;
    }
    #avatar {
        width: 150px;
    }
    /* .blog-posts {
        grid-template-columns: repeat(1, 1fr) !important;
    } */
}

@media (max-width: 200px) {
    #logo_image {
        display: none;
    }
    .blog-title a {
        font-size: 12px;
    }
    .blog-posts {
        display: inline-block;
    }
    .post-content {
        margin-bottom: 10px;
    }
    #avatar {
        width: 100px;
    }
}


