/*
Theme Name: anothereurope2
*/

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;500&family=Inter:wght@300;400;500;700&display=swap');

* {
	box-sizing: border-box;
}

body {
	margin: 0px;
	overflow-x: hidden;
	font-family: 'Inter', sans-serif;
	font-weight: 300;
	width: 100%;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 300;
}

a {
	text-decoration: none;
	cursor: pointer;	/* even if no href */
}

img {
	max-width: 100%;
}

strong {
	font-weight: 700;
}

.runner {
	font-family: 'Fira Code', monospace;
	font-size: 0.9rem;
	font-weight: 300;
}

.menu-offcanvas {
	position: fixed;
	right: -500px;
	width: 500px;
	max-width: 100%;
	height: 100%;
	transition: right 0.5s;
	background: linear-gradient(135deg, rgba(200,0,0,1) 0%, rgba(200,0,180,1) 80%); 
	z-index: 99;
}

.menu-offcanvas.show {
	right: 0px;
}

.overlay {
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background-color: transparent;
	transition: background-color 0.5s;
	pointer-events: none;
}

.menu-offcanvas.show + .overlay {
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 98;
	pointer-events: all;
}

.menu-offcanvas ul {
	list-style-type: none;
	font-size: 1.5rem;
	line-height: 3rem;
	padding-left: 3rem;
}

.menu-offcanvas ul li a {
	color: white;
	text-decoration: none;
}

.menu-offcanvas .close-button {
	color: white;
	font-size: 3rem;
	text-align: right;
	padding-top: 2rem;
	padding-right: 2rem;
	cursor: pointer;
}

.menu-offcanvas .social-media {
	padding-left: 3rem;
	margin-top: 3rem;
}

.top-bar {
	display: grid;
	grid-template-columns: 5fr 1fr;
}

@media (min-width: 1000px) {
	.top-bar {
		grid-template-columns: 5fr 5fr 1fr;		/* .menu-desktop is visible and gets 5fr */
	}
}

.top-bar ul {
	list-style-type: none;
	padding-left: 0px;
	margin-top: 0.5rem;
}

.top-bar ul li {
	display: inline;
}

.logo {
	max-width: 400px;
}

@media (min-width: 1000px) {
	.top-bar .logo {
		max-width: 500px;
	}
}

.menu-desktop, .menu-mobile {
	text-align: right;
}

.menu-desktop ul.menu-items {
	text-align: right;
}

.menu-desktop ul.menu-items li {
	display: inline-block;
	padding-left: 1rem;
}

@media (max-width: 1000px) {
	.menu-desktop {
		display: none;
	}
}

.menu-desktop a {
	color: black;
}

.menu-desktop a.join-link {
	background-color: #c80000;
	color: white;
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	font-weight: 500;
}

.menu-mobile {
	color: #c80000;
	cursor: pointer;
}


/* === Front page */

img.attachment-thumbnail {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	max-width: 150px;
	max-height: 150px;
	border: 1px solid #c80000;
}

@media (min-width: 1000px) {
	.panes-a {
		display: grid;
		grid-template-columns: 3fr 1fr;
	}

	.panes-b {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.panes-c {
		display: grid;
		grid-template-columns: 1fr 2fr;
	}
}

.pane {
	padding: 2rem;
}

@media (min-width: 750px) {
	.posts-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-gap: 1rem;  /* for old safari */
		gap: 1rem;
		margin-top: 1rem;
		margin-bottom: 1rem;
	}
}

.posts-grid .post {
	display: grid;
	grid-template-columns: 1fr 3fr;
	grid-gap: 1rem;  /* for old safari */
	gap: 1rem;
	margin-bottom: 1rem;
}

.posts-grid .post-image {
	justify-self: end;  /* justify is for the horizontal axis here */
}

.posts-grid h3 {
	margin-top: 0px;
	font-size: 1.1rem;
	line-height: 1.25rem;
	margin-bottom: 0px;
}

.posts-grid .post-image {
	margin-top: 0.2rem;
}

.posts-grid .post-info {
	max-width: 20rem;
}

.posts-grid .post-info a {
	color: black;
}

.posts-grid .post-info p {
	font-size: 0.9rem;
	margin-top: 0.5rem;
}

.posts-grid a.runner {
	color: #c80000;
	display: block;
	margin-bottom: 0.25rem;
}

.panes-a .posts-grid {
	margin-top: 3rem;
}

.podcast-logo {
	width: 400px;
}

a.podcast-link {
	display: block;
	margin-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.pane.podcast hr {
	border: none;
	border-top: 3px solid white;
	margin-left: -2rem;
	margin-top: 1rem;
	margin-bottom: 1rem;
	width: 60%;
}

a.podcast-link p {
	margin-top: 0.5rem;
	margin-bottom: 0px;
}

.pane.about {
	background-image: url('/wp-content/themes/anothereurope2/img/quote.png');
	background-repeat: no-repeat;
	padding-left: 4.25rem;
}

.pane.about p.about-text {
	font-size: 1.5rem;
	line-height: 2rem;
}

@media (max-width: 1000px) {
	.pane.signup {
		border-top: 1px solid white;
	}
}

@media (min-width: 1000px) {
	.pane.signup {
		border-left: 1px solid white;
	}
}

.pane.signup form {
	display: grid; 
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto;
	grid-template-areas: 
	"a a"
	"b c"
	"d d"
	"e e";
	grid-gap: 1.5rem;
	gap: 1.5rem;
}

.pane.signup form input[type=text], .pane.signup form input[type=email] {
	border: 0px;
	border-bottom: 1px solid white;
	background-color: transparent;
	width: 100%;
	font-size: 1.5rem;
	padding-bottom: 0.5rem;
	color: white;
}

.pane.signup form input[type=text]::placeholder, .pane.signup form input[type=email]::placeholder {
	color: white;
	opacity: 1;
	font-weight: 300;
}

.pane.signup form input[type=checkbox] {
	height: 2rem;
	width: 2rem;
	float: left;
	margin-right: 1rem;
	margin-bottom: 2rem;
	border: 1px solid white;
	background-color: transparent;
	appearance: none;
}


.pane.signup form input[type=checkbox]:checked::before {
	content: '\2713';
	display: block;
	font-size: 1.5rem;
	padding-left: 0.25rem;
}

.pane.signup form .consent {
	font-size: 0.85rem;
}

.pane.signup form .consent a {
	text-decoration: underline;
}

button {
	font-family: 'Fira Code', monospace;
	font-size: 1rem;
	font-weight: 300;
	padding: 0.5rem 1rem;
	background-color: transparent;
	border: 1px solid rgba(200,0,180,1);
	border-radius: 4px;
	color: rgba(200,0,180,1);
	transition: background-color 0.5s, color 0.5s;
	cursor: pointer;
	margin-right: 0.5rem;
}

@media (max-width: 500px) {
	button {
		display: block;
		margin-top: 0.5rem;
		width: 100%;
	}
}

button:hover {
	background-color: rgba(200,0,180,1);
	color: white;
}

.pane.signup form button {
	border: 1px solid white;
	color: white;
}

.pane.signup form button:hover {
	background-color: white;
	color: rgba(200,0,180,1);
}

ul.wpra-item-list {
	padding-left: 0px;
}

.wpra-item.feed-item {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

/* round bullet before feed item */
.wpra-item.feed-item::before {
	display: inline-block;
	content: '';
	height: 0.8rem;
	width: 0.8rem;
	background-color: white;
	border-radius: 10px;
}

.wp-block-embed.is-type-video iframe {
	aspect-ratio: 16 / 9;
	max-width: 100%;
	width: 800px;
	height: auto;
}

.pane.video {
	display: grid;
	justify-content: center;
}


/* === Single post */

body > .top-bar {
	padding: 2rem 2rem 0rem 2rem;
}

main {
	padding: 2rem;
	padding-top: 0px;
}

main {
	max-width: 50rem;
}

main h1 {
	font-size: 2.5rem;
	letter-spacing: -0.01rem;
	line-height: 2.75rem;
}

@media (max-width: 500px) {
	main h1 {
		font-size: 2rem;
		line-height: 2.2rem;
	}
}

main a {
	color: #c80000;
	font-weight: 500;
}

body.single main p, body.single main ul, body.page main p, body.page main ul {
	line-height: 1.5rem;
}

main figcaption {
	font-size: 0.9rem;
}

hr.gradient {
	border: none;
	display: block;
	height: 20px;
	background: linear-gradient(90deg, rgba(200,0,0,1) 0%, rgba(200,0,180,1) 80%);
	margin-left: -2rem;
	margin-top: 2rem;
	margin-bottom: 2rem;
}

main .date {
	font-size: 0.9rem;
	text-align: right;
}

.share {
	margin-top: 2rem;
	margin-bottom: 1rem;
}

@media (min-width: 500px) {
	.share {
		text-align: right;
	}
}

.share .share-this {
	display: inline-block;
	margin-right: 1rem;
	margin-bottom: 0px;
}

.share button {
	font-size: 0.8rem;
}

/* === Category */


body.archive main, body.page-id-2116 main {
	/* for category, tag etc */ 
	max-width: 100%;
}

@media (min-width: 1000px) {
	/* only works when combined with .posts-grid */
	.grid-3 {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

body.category-podcast img.podcast-logo {
	background-color: #930000;
	padding: 1rem;
	padding-left: 2rem;
	margin-left: -2rem;
	margin-bottom: 1rem;
}

.pagination .nav-links {
	font-family: 'Fira Code', monospace;
	font-size: 0.9rem;
	font-weight: 300;
}

/* === Footer */

footer {
	padding: 2rem;
	padding-top: 4rem;
}

@media (min-width: 1000px) {
	footer {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-gap: 2rem;
		gap: 2rem;
	}
	footer .footer-menu ul {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
}

footer .footer-menu ul {
	list-style-type: none;
	font-size: 1.1rem;
	line-height: 2.5rem;
	margin-top: 0px;
	padding-left: 0px;
}

footer .social-media {
	margin-bottom: 2rem;
}

@media (min-width: 1000px) {
	footer .social-media {
		margin-top: 5rem;
	}
}

.social-media svg {
	color: white;
	padding-right: 2rem;
}

/* === Utility */

.bg-darkred {
	background-color: #930000;
	color: white;
}

.bg-darkred a {
	color: white;
}

.bg-red {
	background-color: #c80000;
	color: white;
}

.bg-red a {
	color: white;
}

.bg-gradient-red-pink {
	background: linear-gradient(90deg, rgba(200,0,0,1) 0%, rgba(200,0,180,1) 80%); 
	color: white;
}

.bg-gradient-red-pink-corner {
	background: linear-gradient(135deg, rgb(200, 0, 0) 0%, rgb(200, 0, 180) 100%);
	color: white;
}

@media (max-width: 1000px) {
	/* for mobile/tablet we switch to a vertical gradient */
	.bg-gradient-red-pink {
		background: linear-gradient(180deg, rgba(200,0,0,1) 0%, rgba(200,0,180,1) 80%); 
	}
}

.bg-gradient-red-pink a, .bg-gradient-red-pink-corner a {
	color: white;
}

.text-right {
	text-align: right;
}

/* === Join form */

@media (min-width: 1000px) {
	.join-page {
		display: grid;
		grid-template-columns: 5fr 7fr;
		grid-gap: 2rem;
		gap: 2rem;
	}
}

.align-labels {
	width: 10rem;
	display: inline-block;
}

.horz-options label {
	display: inline-block;
}

/* === Petitions - temp ver */

.petition-page {
	margin-top: -2rem;
}

.petition-page .row > div {
	padding-left: 2rem;
	padding-right: 2rem;
}

@media (min-width: 1000px) {
	.petition-page .row {
		display: grid;
		grid-template-columns: 2fr 1fr;
		grid-gap: 2rem;
		gap: 2rem;
	}
}

@media (min-width: 500px) {
	.visible-xs {
		display: none;
	}
}

.petition-page .petition-panel {
	padding: 1rem;
	background-color: #930000;
	color: white;
}

.petition-page .petition-panel input[type=text], .petition-page .petition-panel input[type=email] {
	width: 100%;
	font-size: 1.2rem;
}

.petition-page .petition-panel a {
	color: white;
}

.petition-page .petition-share {
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.petition-page .text-muted {
	opacity: 0.75;
	font-size: 0.9rem;
}

.petition-page hr {
	display: none;
}

.mp-container {
	padding-left: 2rem;
	padding-right: 2rem;
	max-width: 60rem;
}

.mp-container textarea {
	width: 100%;
}