/*
Theme Name: dePort
Theme URI: https://github.com/mangasmartin/
Description: A base theme for developing custom WordPress themes from scratch
Author: L. Enrique Mangas
Version: 1.0.0
Tags: zero base basic
*/

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

:root {
    --blaufort: #4948bc;
    --negre: #111;
}

body {
    font-family: "Parkinsans", sans-serif;
}

#cap {
    /* position: fixed;
    top: 0;
    left: 0;
    width: 100%; */
    height: 3rem;
    /* height: 10rem; */
    /* display: flex;
    align-items: center;
    justify-content: center; */
    /* background: url(./superior.svg) top center/100% auto no-repeat; */
    background-color: var(--blaufort);
}

.navegador {
    /* padding: 1rem; */
    width: 100%;
    display: flex;
}

#cap .navegador {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1000px;
    height: 100%;
}

#logo {
	display: flex;
	align-items: center;
	font-size: 1.4rem;
	padding-left: 0.5rem;
}

#logo a {
    color: black;
    text-decoration: none;
}

.histories {
    font-family: 'Great Vibes';
    color: white;
}

.port {
    color: black;
}

.menu-principal-container {
    display: flex;
}

#menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1rem;
    padding: 1rem;
}

#menu li a {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

#menu li a:hover {
    color: black;
}

#menu-btn {
    display: none;
}

@media (orientation: portrait){
    .menu-principal-container {
        position: absolute;
    }
    
    #menu {
        position: fixed;
        top: 0rem;
        right: -120vw;
        width: 100vw;
        height: 100vh;
        display: block;
        background-color: #111111ef;
        z-index: 1;
        padding-top: 4rem;
        text-align: center;
        transition: right 1s;
    }

    #menu.show {
        right: 0;
    }

    #menu-btn {
        position: relative;
        display: block;
        background: url(https://deport.cat/wp-content/themes/deport/assets/menu.svg) center center/60% no-repeat;
        color: white;
        z-index: 2;
        width: 3rem;
        height: 3rem;
        border: 0;
        cursor: pointer;
    }

    #menu-btn.show {
        position: fixed;
        top: 0;
        right: 0;
    }

    #menu li a:hover {
        color: white;
        text-decoration: underline;
    }
}

main {
    min-height: calc(100vh - 15rem);
    background-color: #fff;
}

.article {
    margin: 0 auto;
	padding-bottom: 2rem;
}

.cap-article {
    padding: 1rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.cap-article h1 {
    font-size: 2.4rem;
	line-height: 2.4rem;
	margin-top: 3rem;
}

.cap-article h2 {
    font-size: 1.2rem;
	line-height: 1.2rem;
	padding: 0 5rem;
	margin: 2rem auto 0 auto;
    max-width: 800px;
}

.cap-article time {
    font-size: 0.8rem;
    font-style: italic;
	margin: 0;
}

.imatge-destacada {
    margin-bottom: 1rem;
	height: 20rem;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 100% auto;
	width: 100%;
	max-width: 1200px;
	position: relative;
}

.imatge-destacada figcaption {
	position: absolute;
	bottom: 0px;
	right: 0px;
	padding: 0.2rem;
	background-color: rgba(255,255,255,0.5);
	font-size: 0.8rem;
	color: black;
	width: 100%;
	text-align: right;
}

@media (orientation: portrait){
	.imatge-destacada {
		background-size: 100% 100%;
		height: 12rem;
	}
	.cap-article h2 {
		padding: 0 1rem;
	}
}

.contingut {
    margin-top: 4rem;
    /* border-radius: 20px; */
    margin: 0 auto;
    width: 100%;
	max-width: 800px;
	padding: 0 1rem;
}

.contingut a {
    color: var(--blaufort);   
}

.contingut h2 {
    margin-top: 3rem;
}

.contingut h3 {
    margin-top: 2rem;
    font-size: 1.2rem;
}

.contingut ol, .contingut ul {
    /*margin-top: 1rem;*/
    margin-left: 2rem;
}

.contingut ol ol, .contingut ul ol, .contingut ol ul, .contingut ul ul {
    margin-top: 0;   
}

.contingut p:first-child {
    margin-top: 0;
}

.contingut p {
    margin-top: 1rem;
}

.contingut .ruta {
	margin: 1rem 0;
	width: 100%;
	border: 0.4rem solid #ccc;
}

.justificat {
    text-align: justify;
}

.contingut p.subratllat {
    text-decoration: underline;
    margin-top: 3rem;
}

.wp-block-gallery {
    margin-top: 1rem;
}

.wp-block-gallery figure {
    cursor: pointer;
}

.wp-block-footnotes {
	margin-top: 1rem;
	margin-left: 2rem;
}

.wp-block-footnotes li {
	margin-top: 1rem;
}

.wp-block-footnotes li::marker {
    content:"[" counter(list-item) "] ";
}

sup.fn a, .wp-block-footnotes li::marker {
	color: var(--blaufort);
	text-decoration: none;
	font-weight: bold;
}

sup.fn a::before {
	content: "[";
}

sup.fn a::after {
	content: "]";
}

#peu {
    display: flex;
    justify-content: center;
    color: #fff;
    background-color: #111;
    padding: 0 1rem;
    height: 12rem;
}

#peu .navegador {
    justify-content: center;
    align-items: space-between;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bloc-superior-2 {
    display: flex;
    justify-content: space-between;
}

#suport {
   
}

#suport span {
    display: block;
    font-size: 12px;
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
}

#suport img {
    height: 50px;
}

.social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social a {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    background: center center/100% no-repeat;
}

.social #correu {
    background-image: url(./assets/correo.svg);
}

.social #facebook {
    background-image: url(./assets/facebook.svg);
}

.social #instagram {
    background-image: url(./assets/instagram.svg);
}

#signatura {
    text-align: center;
}

ol.llistat, ul.llistat {
  margin: 1rem auto;  
}

.llistat {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 1rem;
}

.llistat a {
	color: black;
	text-decoration: none;
	display: block;
}

.llistat figure {
	flex: 0 0 12rem;
	height: 12rem;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
    position: relative;
    box-sizing: border-box;
    border: 0.4rem solid #ccc;
    transition: border-color 1s;
}

.llistat figure:hover {
    border-color: #111;
}

.llistat figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.2rem;
    min-height: 3rem;
    background-color: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.llistat0 {
	list-style: none;
  	margin: 1rem auto;
  	width: 100%;
  	max-width: 800px;
}

.llistat0 a {
	color: black;
	text-decoration: none;
	display: flex;
	gap: 1rem;
}

.llistat0 a figure {
	flex: 0 0 8rem;
	height: 8rem;
	background-position: center center;
	background-size: auto 100%;
	background-repeat: no-repeat;
}

.llistat0 a div h2 {
	line-height: 1.8rem;
  	font-size: 1.8rem;
}

.llistat0 a div time {
	font-style: italic;
	font-size: 0.8rem;
	margin-bottom: 0.5rem;
	display: block;
}

#personatge {
    position: fixed;
    width: 24vh;
    height: 24vh;
    bottom: 30%; 
    right: 2vh;
    z-index: 2;
    border: 4px solid var(--blaufort);
    border-radius: 10px;
    overflow: hidden;
    transition: bottom 0.5s;
    transform: translateX(26vh);
    animation: 1s 2s apareix forwards;
    cursor: pointer;
}

@media (orientation: portrait){
    #personatge {
        width: 24vw;
        height: 24vw;
        right: 2vw;
        transform: translateX(26vw);
    }
}

@keyframes apareix {
    to { transform: translateX(0); }
}

#personatge video, #personatge div {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
}

#personatge video.hide {
    display: none;
}

.contingut .llistat-apart {
    max-width: 800px;
    margin: 1rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.llistat-apart a {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: #000;
    min-height: 100px;
    padding: 1rem;
}

.llistat-apart figure {
    min-width: 100px;
    height: 100px;          
    margin: 0;
    background: center center/cover no-repeat;
}

@media (orientation: portrait){
    .llistat-apart figure {
        min-width: 50px;
        height: 50px; 
    }         
}

.llistat-apart div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-left: 1rem;
}

.llistat-apart h2, .llistat-apart p {
    margin: 0;
}


#highLight {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	background-color: rgba(0,0,0,0);
	transition: background-color 0.5s;
	z-index: 9999;
}

#highLight.show {
	background-color: rgba(0,0,0,0.8);
}

#hlBox {
	transition: transform 0.5s;
	transform: scale(0);
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

#hlItem {
	background-color: #fff;
	box-shadow: 0 0 7px 5px #111;
	border-radius: 10px;
	padding: 1rem;
	margin: 0;
    position: relative;
   /* max-height: 95%; */
}

#hlItem img {
	margin: 0;
	height: 80vh;
}

#hlItem div p {
	padding-top: 0.5rem;
	font-size: 0.8rem;
	text-align: justify;
}

#highLight.show #hlBox {
	transform: scale(1);
}

#hlBtn {
	position: absolute;
	top: 0;
	right: -4rem;
	width: 3rem;
	height: 3rem;
	background: url(./assets/cerrar.svg) top center transparent no-repeat;
	background-size: 80%;
	border: 0;
	cursor: pointer;
	opacity: 0.7;
}

#hlBtn:hover {
	background-size: 90%;
	opacity: 1;
}

@media (orientation: portrait){
	#hlItem {
	    height: auto;
		width: 95vw;
		position: static;
	}
	
	#hlItem img {
	    width: 100%;
	    height: auto;
	}
	
	#hlBtn {
		right: 0;
	}
}

.wp-block-columns {
    margin-top: 3rem;
}