/*
    Theme Name: OfficialWorldRecord
    Theme URI: https://bdmconsultoria.com
    Author: BDM Consultoria
    Author URI: https://bdmconsultoria.com
    Description: Official World Record theme
    Version: 0.9
    License: GNU General Public Licence v2 or later
    License URI: https://www.gnu.org/licenses/gpl-2.0.html
    Text Domain: owr

*/

:root {
    /**Fonts**/
    --fontPrincipal : 'Abel', sans-serif;
    --fontSecundaria : 'Raleway', sans-serif;
    --fontTextos : 'Open Sans', sans-serif;


    /**Colors**/
    --groc : #dcb318;
    --grisFosc : #424242;
    --negre : black;
    --grocClar : #ffffa5;
    --grisClar : #e3e3e3;
}

html {
    box-sizing: border-box;
    font-size: 62.5%; /* Now 10px = 1rem! */
  }

  *, *:before, *:after {
    box-sizing: inherit;
  }

body{
    background-color: black;
    font-size: 16px; /* px fallback */
    font-size: 1.6rem; /* default font-size for document */
    line-height: 1.5; /* a nice line-height */
}

/* Headings*/
h1, h2, h3, h4 {
    font-family: var(--fontPrincipal);
    margin: 1rem 0;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    color: var(--groc)
}

h2 {
    font-size: 2.4rem;
    color: white;
}

h3 {
    font-size: 2rem;
}

/*Globals*/
a {
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.contenedor {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
}
p {
    font-size: 1.6rem;
    font-family: var(--fontTextos);
    color: var(--grisFosc);
}

.text-center {
    text-align: center;
}

.texto-primario {
    color: var(--groc)
} 

.imatge-destacada {
    width:100%
}

/*Header*/
.site-header {
    padding: 2rem 0;
}

@media (min-width: 768px) {
    
    .barra-navegacion {
        display: flex;
        justify-content: space-between;
    }

    .menu-principal .menu{
        display: flex;
        justify-content: space-between;
    }
    .menu-principal li {
        margin-right: 1rem;
    }
    .menu-principal li:last-of-type {
        margin-right: 0;
    }
    .slicknav_menu {
        display: none;
    }
}
@media (max-width: 768px) {
    .menu-principal .menu {
        display: none;
    }
}

@media (min-width: 768px) {
    .logo {
        display: flex;
        justify-content: space-between;
    }
    .logo img{
        width: 15rem;
    }

    .menu-principal {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

.menu-principal a {
    font-family: var(--fontSecundaria);
    color: var(--groc);
    font-size: 1.6rem;
    text-transform: uppercase;
    font-weight: 600;
    padding: .5rem .3rem
}

@media (min-width: 768px) {
    .menu-principal a {
        font-size: 1.6rem;
        position: relative;
        z-index: 1;
    }
    .menu-principal a::before,
    .menu-principal a::after {
        position: absolute;
        content: '';
        display: block;
        width: 100%;
        height: 50%;
        background-color: var(--groc);
        z-index: -1;
        transform: scaleX(0);
        transition: transform .6s;
    }
    .menu-principal a::before {
        top: 0;
        transform-origin: left;
    }
    .menu-principal a::after {
        top: 50%;
        transform-origin: right;
    }
    .menu-principal a:hover::before{
        transform: scaleX(1);
    }
    .menu-principal a:hover::after{
        transform: scaleX(1);
    }
    .menu-principal a:hover {
        color: white;
    }
}

.menu-principal .current-menu-item {
    border-bottom: 3px solid var(--groc);
}

.barra-navegacion {
    display: flex;
    justify-content: space-between;
}

.menu-principal {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.slicknav_menu {
    background-color: var(--negre);
}

.slicknav_btn {
    background-color: var(--negre);
}

.slicknav_menu .slicknav_icon-bar {
    background-color: var(--groc);
    font-size: 3rem;
}


@media (max-width: 768px) {
    .logo {
        max-width: 25%;
    }

    .logo img{
        display: flex;
        justify-content: flex-start;
        width: 10rem;
    }
}


/**Footer**/

.site-footer {
    margin-top: 8rem;
}

.site-footer .social-media ul{
    display: flex;
    justify-content: space-between;
}
.site-footer .social-media a {
    font-size: 4rem;
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.site-footer .copyright p {
    color: var(--grisClar);
    font-size: 1.4rem;
    text-align: center;
}

/** Pagines **/

.pagina h1 {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .pagina.considebar {
        display: flex;
        justify-content: space-between;
    }
    .considebar .contenido-principal {
        flex: 0 0 calc(70% - 2rem);
    }
    .considebar .sidebar {
        flex: 0 0 calc(30% - 2rem);
    }
}

/** Records **/
.lista-records {
    margin: 4rem auto;
}

@media (min-width: 768px) {
    .lista-records {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

/** Cards **/
.card {
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .card {
        flex: 0 0 calc(33.3% - 2rem);
    }
}

.card img {
    display: block;
}

.card .contenido{
    padding: 2rem 0;
    border-bottom: 1px solid var(--grisClar);
}
@media (min-width: 768px) {
    .card .contenido{
        border-bottom: none;
    }
}

.card .contenido h3 {
    color: var(--groc);
    text-align: center;
}

.info-records {
    color: white;
}

@media (min-width: 768px) {
    
    .cabecera-record {
        position: relative;
        height: 100%;
        margin-bottom: 3rem;
    }
    
    .cabecera-record .texto-record {
        position: absolute;
        bottom: 0;
        left: 0;
        text-align: left;
        padding: 3rem;
        z-index: 2;
    }

    .gradient::after{
        content: '';
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0+50,0.2+70,0.8+100 */
        background: -moz-linear-gradient(top,  rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.2) 70%, rgba(0,0,0,0.8) 100%); /* FF3.6-15 */
        background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0) 50%,rgba(0,0,0,0.2) 70%,rgba(0,0,0,0.8) 100%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,0) 50%,rgba(0,0,0,0.2) 70%,rgba(0,0,0,0.8) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#cc000000',GradientType=0 ); /* IE6-9 */
    }
}

/* Paginació*/

.page-numbers {
    font-size: 1.6rem;
    color: var(--groc);
    border: 0.1rem solid var(--groc);
    border-radius: 0.3rem;
    padding: 0.5em;
    font-family: var(--fontTextos);
}

.page-numbers.current {
    color: var(--negre);
    background-color: var(--groc);
    font-weight: bold;
}

/*Block Record */

.block-record {
    background-color: white;
    padding: 2rem;
}

@media (min-width: 768px) {
    .block-record {
        background-color: white;
        display: flex;
        justify-content: space-between;
        padding: 2rem;
    }
    
    .image-block-record {
        flex: 0 0 calc(40% - 2rem);
    }
    
    .content-block-record {
        flex: 0 0 calc(60% - 2rem);
    }
    .description-block-record {
        background-color: white;
        padding: 2rem;
    }
}

/* Home */

.home {
    max-width: 100%;
}

.home h2 {
    width: 500px;
    max-width: 95%;
    margin: 0 auto;
}

.home h3 {
    width: 800px;
    max-width: 95%;
    margin: 0 auto;
}


/* CF7 */

.wpcf7 {
    width: 90%;
    max-width: 600px;
    margin: 2rem auto;
    background-color: white;
    border-radius: 3px;
}

.wpcf7-form {
    margin: 0 auto;
    padding: 2rem;
}

.wpcf7-form .wpcf7-text{
    width: 100%;
    padding: 0.5rem;
}

.wpcf7-form label{
    color: rgb(41, 41, 41);
    font-size: 1.6rem;
}

.wpcf7-form .wpcf7-textarea {
    width: 100%;
}

span.wpcf7-list-item {
    display: block; 
}

.wpcf7-list-item-label {
    color: var(--grisFosc);
    font-size: 1.4rem;
}

.wpcf7-form hr {
    margin: 3rem 0 4rem 0;
}

.wpcf7-submit {
    margin-top: 2rem;
    padding: 1.5rem 3rem;
    background-color: var(--negre);
    color: var(--groc);
    border: 3px solid var(--groc);
    border-radius: 0.8rem;
    font-weight: bold;
    cursor: pointer;
}