/*
    Theme Name: Brain rot Store Theme
    Theme URI: https://rlujancreations.es
    Author: Raúl Luján Colilla
    Author URI:  https://rlujancreations.es
    Description: Theme Diseñado para la Web BrainrotStore
    Version: 1.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: BrainrotStore, flexbox, css grid, mobile first
    Text Domain: BrainrotStore
*/

@font-face {
    font-family: EmberLight;
    src: url("./assets/fonts/AmazonEmber_Lt.ttf");
}

@font-face {
    font-family: EmberMedium;
    src: url("./assets/fonts/Amazon-Ember-Medium.ttf");
}

@font-face {
    font-family: EmberRegular;
    src: url("./assets/fonts/AmazonEmber_Rg.ttf");
}

@font-face {
    font-family: EmberBold;
    src: url("./assets/fonts/AmazonEmber_Bd.ttf");
}

:root {
    --bg-color: #e3e6e6;
    --bg-color-header: #131921;
    --bg-color-nav: #232f3e;
    --bg-color-box: #fff;
    --primary-color: #f3a847;

    --text-color: #0f1111;
    --text-color-nav: #fff;
    --text-color-footer: #dddddd;
    --text-color-gray: #999999;
    --text-color-links: #007185;
    --text-color-links-hover: #c7511f;

    --headings-font: "EmberBold", Arial, sans-serif;
    --text-font: "EmberRegular", Arial, sans-serif;

    --border-nav-items: 1px solid var(--bg-color-nav);
    --border-nav-items--hover: 1px solid var(--text-color-nav);
    --radius-nav-items: 2px;

    --box-border-gray: 1px solid var(--text-color-gray);
    --border-radius: 5px;
}

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

/** Generales **/
body {
    background: var(--bg-color);
    background: linear-gradient(
        0deg,
        var(--bg-color) 65%,
        rgba(0, 0, 0, 0.534) 100%
    );
    background: linear-gradient(
        0deg,
        var(--bg-color) 70%,
        rgba(0, 0, 0, 0.6475724078693977) 100%
    );
    color: var(--text-color);
    font-family: var(--text-font);
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 1rem;
    line-height: 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--headings-font);
}

h1 {
    font-weight: 400;
    font-size: 28px;
    line-height: 36px;
}

h2 {
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
}

h3 {
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
}
a {
    text-decoration: none;
    color: var(--text-color-links);
}

/** Footer **/
footer {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    background-color: var(--bg-color-nav);
    color: var(--text-color-footer);
    overflow: hidden;
    padding-top: 1rem;
}
footer .center--elements {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
@media screen and (min-width: 720px) {
    footer .center--elements {
        flex-direction: row;
    }
}

.footer__logo {
    max-height: 60px;
    margin-bottom: 0.5rem;
}
.footer__logo img {
    max-height: 60px;
    object-fit: cover;
}
.footer__legal {
    width: 100%;
    display: flex;
    justify-content: space-between;
}
#menu-footer-legal {
    width: 100%;
    display: flex;
    background-color: var(--bg-color-header);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
}
#menu-footer-legal li {
    list-style-type: none;
}
#menu-footer-legal li a {
    color: var(--text-color-footer);
    font-size: 12px;
    line-height: 13.2px;
    padding: 0.5rem;
    text-align: center;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}
#menu-footer-legal li:hover a {
    font-size: 0.9rem;
    padding: 1rem;
    color: var(--text-color-links-hover);
    text-decoration: underline;
}

@media screen and (min-width: 720px) {
    #menu-footer-legal {
        flex-direction: row;
    }
}

/** --------------------------Go to top-------- ----------- **/
#gototop {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background-color: var(--bg-color);
    border: var(--text-color-gray);
    padding: 0.5em;
    border-radius: 50px;
    cursor: pointer;
    z-index: 100;
}
.gototop--hidden {
    display: none;
}
#gototop:hover {
    animation: 1s animgototop ease-in-out;
}
@keyframes animgototop {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}
/** ---------------------Fin--Go to top-------- ----------- **/

/** ---------------------- Header ---------------------------------  **/
.header {
    background-color: var(--bg-color-header);
    color: var(--text-color-nav);
    width: 100%;
    line-height: 1rem;
    list-style-type: none;
    position: relative;
}
.header__title {
    display: grid;
    grid-template-columns: 1fr 1fr 4fr;
    align-items: center;
}

.header a {
    color: var(--text-color-nav);
}
.hamburguer-menu {
    padding: 0.5rem;
    position: relative;
    z-index: 100;
}
.hamburguer-menu:hover {
    cursor: pointer;
}
#menu_btn {
    font-size: 2rem;
    height: 100%;
}
.header__logo {
    display: block;
    position: relative;
    z-index: 100;
}
.header__logo img {
    max-height: 65px;
    object-fit: cover;
    padding: 0.3rem;
    z-index: 90;
}
@media screen and (min-width: 768px) {
    .menu-principal {
        display: block;
    }
    .menu-principal .menu {
        display: flex;
    }
    .hamburguer-menu {
        display: none;
    }
    .header__title {
        grid-template-columns: 1fr 2fr;
        justify-content: end;
    }
}
@media screen and (min-width: 1280px) {
    .header__title {
      grid-template-columns: repeat(4 , 1fr);
    }
}


.header .menu {
    background-color: var(--bg-color-nav);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 0px;
    opacity: 0;
}

#menu-principal .menu-item {
    text-align: center;
    text-decoration: none;
    border: var(--border-nav-items);
    border-radius: var(--radius-nav-items);
    cursor: pointer;
    padding: 1rem;
    transition: border 0.1s ease-in;
    position: relative;
    z-index: 80;
}
#menu-principal .menu-item {
    list-style-type: none;
}

#menu-principal .menu-item:hover {
    border: var(--border-nav-items--hover);
    border-radius: var(--radius-nav-items);
}

.mostrar_menu {
    opacity: 1 !important;
    height: 90vh !important;
    width: 100%;
    position: absolute;
    z-index: 500;
    transition-delay: 50ms, 150ms;
    transition-property: max-height, opacity;
    transition-timing-function: ease-in-out;
    transition-duration: 300ms;
}
@media screen and (min-width: 720px) {
    #menu-principal {
        flex-direction: row;
        justify-content: space-around;
        height: auto;
        opacity: 1;
    }
}

/** -------------------- 404 ---------------------------------------**/
.error-404-image {
    max-width: 100%;
    margin: 2rem auto;
}
.error_search {
    width: 95%;
    overflow: hidden;
    margin: 1rem auto;
    position: relative;
	z-index: 100;
}
.error_search p {
    text-align: justify;
    margin-bottom: 0.8rem;
}
.error-404-subtitle {
    text-align: center;
    font-size: 45px;
    color: var(--text-color);
    line-height: 75px;
}
@media screen and (min-width: 720px) {
    .error-404-subtitle {
        font-size: 75px;
    }
}
@media screen and (min-width: 1280px) {
    .error-404-subtitle,
    .error_search,
    .error-404-image {
        grid-column: 3 span;
    }
}
/** -----------------------Barra de busqueda----------------------------**/
.searchform input[type="text"] {
    border: 1px solid var(--border-color-gray);
    width: 100%;
    padding: 0.4rem;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}
.searchform div {
    position: relative;
    width: 100%;
    overflow: hidden;
}
#searchsubmit {
    position: absolute;
    right: 0px;
    background-color: var(--primary-color);
    cursor: pointer;
    width: 20%;
    height: 100%;
    max-height: 80px;
    min-width: 80px;
    padding: 0.4rem 0;
    border-radius: 0px var(--border-radius) var(--border-radius) 0px;
    color: var(--bg-color-box);
    font-weight: 600;
    margin-bottom: 1rem;
    border: none;
}
/**--------------- Main de los articulos blog-------------------- **/
/** Estilos de las letras del banner **/
.ml6 {
    position: relative;
    font-weight: 900;
    font-size: 2.8em;
}

.ml6 .text-wrapper {
    position: relative;
    display: inline-block;
    padding-top: 0.2em;
    padding-right: 0.05em;
    padding-bottom: 0.1em;
    overflow: hidden;
}

.ml6 .letter {
    display: inline-block;
    line-height: 1em;
}

.main__container {
    width: 100%;
    display: grid;
    align-content: start;
    grid-template-columns: 1fr;
}
@media screen and (min-width: 720px) {
    .main__container {
        width: 100%;
    }
    .ml6 {
        font-size: 3.3em;
    }
}
@media screen and (min-width: 1280px) {
    .main__container {
        width: 100%;
        grid-template-columns: 2fr 1fr;
        gap: 0.5rem;
    }
}
.front__banner {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.front__image {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 500px;
    object-fit: fill;
}
.front__banner::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 500px;
    top: 0;
    left: 0;
    z-index: 10;
    background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgb(0 0 0 / 0.65));
}

.front__banner .ml6 {
    color: var(--bg-color);
    position: inherit;
    z-index: 50;
}
@media screen and (min-width: 720px) {
    .front__banner {
        grid-column: 2 span;
    }
}
@media screen and (min-width: 1280px) {
    .front__banner {
        grid-column: 3 span;
    }
}

/** Cajas principales **/
.main__box {
    width: 98%;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    margin: 1rem auto;
    line-height: 28px;
    background-color: var(--bg-color-box);
}
.main__box a {
    transition: color 0.2s ease-in;
}
.main__box a:hover {
    color: var(--text-color-links-hover);
    text-decoration: underline;
}
@media screen and (min-width: 720px) {
    .main__box {
        width: 95%;
    }
    .main__box p {
        margin-left: auto;
        margin-right: auto;
        max-width: 1024px;
    }
}
@media screen and (min-width: 1280px) {
    .main__box {
        grid-column: 3 span;
    }
}

.section__home {
    margin: 0.5rem;
    width: 98%;
    display: grid;
    gap: 1rem;
    max-width: 1920px;
    margin: 0 auto;
    grid-template-columns: 1fr;
}
@media screen and (min-width: 720px) {
    .section__home {
        width: 95%;
        grid-column: 2 span;
        margin: 0 auto;
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (min-width: 1280px) {
    .section__home {
        grid-column: 3 span;
        margin: 0 auto;
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (min-width: 1920px) {
    .section__home {
        gap: 2rem;
        margin: 0 auto;
        grid-template-columns: repeat(4, 1fr);
    }
}

/** Cajas con los articulos de blog **/

.box {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 1em;
    justify-content: space-around;
    padding: 1em;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--bg-color-box);
}

.box a {
    color: var(--text-color);
}
.box--nopadding {
    padding: 0;
}
.box--padding1 {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 1em;
    justify-content: space-around;
    padding: 1em;
}
.box__content {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 0.5em;
    height: 100%;
    justify-content: space-between;
}
.box__content p {
    line-height: 24px;
}
.article__header {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.article__header img {
    width: 100%;
    object-fit: cover;
}
.box__title {
    font-size: 1.4rem;
}
.box__social {
    border-top: 1px solid rgb(201, 201, 201);
    display: flex;
    justify-content: space-around;
    font-size: 1rem;
}
.box__social span {
    font-weight: bold;
}

.pagination {
    text-align: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px 0 rgba(31, 38, 135, 0.37);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 1rem;
}

.pagination a {
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: var(--primary-color);
}
.pagination .current {
    color: var(--bg-color-header);
    font-size: 1.3rem;
    text-decoration: underline;
}
@media screen and (min-width: 720px) {
    .pagination {
        grid-column: span 2;
    }
}
@media screen and (min-width: 1280px) {
    .pagination {
        grid-column: span 3;
    }
}
@media screen and (min-width: 1920px) {
    .pagination {
        grid-column: span 4;
    }
}
/** Pagina de busqueda**/
.section__home .page-title {
    font-size: 2.8rem;
    padding: 1.5rem;
    background-color: var(--bg-color-box);
    margin-bottom: 0.8rem;
    text-align: center;

    color: var(--text-color);
}
.search-image {
    max-width: 90%;
    margin: 1rem auto;
}

@media screen and (min-width: 720px) {
    .section__home .page-title,
    .search-image {
        grid-column: 2 span;
    }
}
@media screen and (min-width: 1280px) {
    .section__home .page-title,
    .search-image {
        grid-column: 3 span;
    }
}
@media screen and (min-width: 1920px) {
    .section__home .page-title,
    .search-image {
        grid-column: 4 span;
    }
}

/** Main de los articulos blog **/
.blog__article {
    margin: 1rem auto;
    background: var(--bg-color-box);
    max-width: 98%;
    overflow: hidden;
    padding: 0.8rem;
    margin-bottom: 1rem;
}
@media screen and (min-width: 720px) {
    .blog__article {
        padding: 1rem 2rem;
    }
}
.blog__article__title {
    font-size: 1.8rem;
    text-align: left;
}

.wp-block-image,
.blog__article__img {
    max-width: 100%;
    max-height: 800px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.blog__article__img img,
.wp-block-image img {
    display: block;
    max-width: 100%;
    object-fit: scale-down;
}
.blog__article__img img {
    max-height: 400px;
}

.wp-block-image img {
    max-height: 800px;
}
@media screen and (min-width: 720px) {
    .blog__article__img img,
    .wp-block-image img {
        max-height: 800px;
    }
}
.blog__article__content {
    line-height: 28px;
}
.blog__article .wp-block-heading {
    margin: 1.5rem 0 1.2rem 0;
}
.blog__article .has-medium-font-size {
    margin-bottom: 0.5rem;
}
.wp-block-social-links {
    margin: 2rem 0;
}
.has-medium-font-size a {
    font-weight: 700;
    color: var(--primary-color);
}

/** widget **/
.container__widgets {
    background-color: var(--bg-color-box);
    max-width: 98%;
    overflow: hidden;
    padding: 0.8rem;
    margin: 1rem auto;
}
.widget .wp-block-heading {
    border-bottom: 2px solid var(--bg-color-header);
    margin-bottom: 0.5rem;
}
.widget .wp-block-latest-posts li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bg-color-header);
}
.widget .wp-block-latest-posts li a {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.widget .wp-block-latest-posts li:hover a {
    color: var(--text-color-links-hover);
    transition: all 0.2s ease-in-out;
    font-size: 1.1rem;
}

/** ----------------------------- Comentarios-------------------------------- **/
.blog__comments__box {
    background: var(--bg-color-box);
    max-width: 98%;
    margin: 1rem auto;
    overflow: hidden;
    padding: 0.8rem;
    line-height: 28px;
}
.blog__comments__box h3 {
    border-bottom: 2px solid var(--bg-color-header);
}
.logged-in-as a {
    color: var(--bg-color-nav);
}
.comment-form-comment label {
    font-weight: 700;
    margin-bottom: 2rem 0;
    display: block;
}
.form-submit .submit {
    background-color: var(--bg-color-nav);
    cursor: pointer;
    width: 100%;
    padding: 0.5rem 0;
    color: var(--text-color-footer);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border: none;
    letter-spacing: 2px;
}
.comment-form-comment textarea,
.blog__comments__list input[type="text"],
.searchform input[type="text"],
.comment-respond input[type="text"] {
    border: 1px solid rgb(197, 197, 197);
    width: 100%;
    padding: 0.8rem 0;
}
.searchform input[type="text"] {
    padding: 0.5rem 0;
}
.blog__comments__list input[type="text"] {
    margin: 0.5rem 0;
}
.blog__comments__list .comment {
    border: 1px solid rgb(197, 197, 197);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
}
.argpd-informar {
    border: 1px solid rgb(197, 197, 197);
    margin-bottom: 0.5rem;
    padding: 0.5rem;
}
.argpd-informar ul li {
    list-style-type: none;
}
.blog__comments__list a {
    color: var(--text-color-links);
}
.blog__comments__list li {
    list-style-type: none;
}
.comment-reply-title a {
    color: var(--text-color-links);
}
.blog__comments__list cite {
    color: var(--text-color-links);
    font-size: 2rem;
    font-weight: 700;
}
.blog__comments__list .children .comment {
    background-color: var(--bg-color);
    margin: 2rem 0;
}
.comment-author img {
    border-radius: 50%;
}
.comment-author .fn {
    font-size: 1.2rem;
}
.comment-author .fn a {
    color: var(--text-color);
}
.comment-body {
    background-color: #c9e3e7de;
    padding: 1rem;
}
