:root {
	--site-primary-color: #259d3c;
	--site-secondary-color: #172681;
	--site-width: 1000px;
	--damierSize: 1rem;
}
* {
	padding: 0;
	box-sizing: border-box;
	margin: 0;
}
body {
	background: linear-gradient(
		135deg,
		var(--site-primary-color) 20%,
		var(--site-secondary-color) 80%
	);
	background-size: 200% 200%;
	animation: gradient 15s ease infinite;
	background-attachment: fixed;
	height: 100vh;
	line-height: 1.8rem;
	padding: 0;
	margin: 0;
}
@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}
h1,
h2,
h3 {
	font-family: "Righteous", cursive;
}
h1 {
	font-size: 2rem;
}
h2 {
	font-size: 1.6rem;
}
h3 {
	font-size: 1.4rem;
	margin: 1rem 0 0.6rem 0;
}
h4 {
	font-size: 1.2rem;
	font-weight: 600;
	margin: 0.6rem 0;
}
a {
	color: var(--site-primary-color);
	display: inline-block;
	position: relative;
}
a:hover {
	color: inherit;
	text-decoration: none;
}
a:not(.logo):after {
	content: "";
	position: absolute;
	width: 100%;
	transform: scaleX(0);
	height: 2px;
	bottom: 0;
	left: 0;
	background-color: var(--site-primary-color);
	transform-origin: bottom right;
	transition: transform 0.25s ease-out;
}
a:not(.logo):hover:after {
	transform: scaleX(1);
	transform-origin: bottom left;
}
a:has(img):hover,
button:not(.nofx):hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 3px -6px gray;
}
p:has(button) {
	text-align: center;
	margin: 0;
	padding: 0;
}
img.show-on-scroll {
	opacity: 0;
	transform: translateY(2em) rotateZ(-3deg);
	transition: 1s all ease-in-out;
	will-change: transform, opacity;
}
img.show-on-scroll.active {
	opacity: 1;
	transform: translateY(0) rotateZ(0);
}
/* WRAPPER */
div.wrapper {
	max-width: var(--site-width);
	margin: 0 auto;
	padding-top: 4px;
}
/* HEADER */
header {
	background-color: white;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	padding: 1rem;
	border-top-right-radius: 4px;
	border-top-left-radius: 4px;
}
header img {
	max-width: 100%;
}
header div {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}
header div.menu a {
	padding-inline: 0.2rem;
}
/* DAMMIER */
section.damier {
	background-color: white;
	height: 1.5rem;
	padding: 0;
	background-image: linear-gradient(
			45deg,
			#000 25%,
			transparent 25%,
			transparent 75%,
			#000 75%
		),
		linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%);
	background-size: var(--damierSize) var(--damierSize);
	background-position: 0 0,
		calc(var(--damierSize) / 2) calc(var(--damierSize) / 2);
	animation: movingFlag 6s linear infinite;
}
/* CONTENT */
#content {
	background-color: white;
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	gap: 2rem;
	align-items: flex-start;
	padding: 3rem 1rem;
}
#content div {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}
#content img {
	max-width: 400px;
}
#content a.bigImg {
	max-width: 70%;
	margin: 0 auto;
	& img {
		max-width: 100%;
		border-radius: 8px;
	}
}
#content div.radiodetails {
	padding: 0.6rem 1rem 0 1rem;
	background-color: rgb(247, 247, 247);
	border-radius: 8px;
}
#content button {
	margin: 0.5rem 0;
}
#content ul {
	list-style: none;
}
#content ul li ul {
	padding-left: 1rem;
}
ul.inline {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	gap: 2em;
}
ul.inline > li:not(:first-of-type) {
	padding-left: 1em;
	border-left: 1px solid gray;
}

/* LISTEN */
section.listen {
	background-color: white;
	padding: 2rem 2rem 3rem;
}
section.listen p {
	margin: 0 0 0.6rem 0.5rem;
}
section.listen {
	div{
		display: flex;
		align-items: center;
		gap: 1rem;
	}
	img{ max-height: 120px;}
}

section.listen p:has(button) {
	margin-block: 2rem;
}
/* AUDIO ARCHIVES */
section.archives {
	background-color: white;
	padding: 3rem 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
}
section.archives div {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: space-evenly;
	width: 100%;
}
section.archives div div {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	justify-content: flex-start;
	width: fit-content;
}

/* PARTNERS */
#partners {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-wrap: wrap;
	background-color: #dedede;
	padding: 1rem 1rem 3rem;
}
#partners div {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	background-color: #dedede;
}
#partners img {
	max-width: calc(var(--site-width) / 6);
	max-height: 80px;
}
/* FOOTER */
footer {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: space-around;
	align-items: flex-start;
	gap: 0.4rem;
	background-color: #2b2b2b;
	color: white;
	font-size: smaller;
	padding-block: 2rem;
}
footer div {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 0.5rem;
}

@keyframes movingFlag {
	from {
		background-position: 0 0,
			calc(var(--damierSize) / 2) calc(var(--damierSize) / 2);
	}
	to {
		background-position: var(--damierSize) 0,
			calc(var(--damierSize) / 2 + var(--damierSize))
				calc(var(--damierSize) / 2);
	}
}

@media only screen and (max-width: 800px) {
	div.wrapper {
		padding-top: 0;
	}
	header {
		border-radius: 0;
	}
	footer p {
		flex-basis: 100%;
		padding-inline: 1em;
		text-align: center;
	}
	header {
		margin: 0;
	}
	a.logo img {
		max-width: 90vw !important;
	}
	div.menu {
		gap: 0;
	}
	div.menu :nth-child(1) {
		order: 2;
	}
	div.menu :nth-child(2) {
		order: 1;
	}
	div.menu :nth-child(3) {
		order: 3;
	}
	ul.inline > li:not(:first-of-type) {
		border-left: none;
	}
}
