:root {
	--themeYellow: #edd839;
}

@font-face {
  font-family: "Lobster Regular";
  src: url(../fonts/lobster-regular.ttf);
}

@font-face {
  font-family: "Raleway";
  src: url(../fonts/raleway.ttf);
}

@font-face {
  font-family: "Lugrasimo";
  src: url(../fonts/lugrasimo.ttf);
}

html, body {
	margin: 0;
	padding: 0;
}

body {
	background-image: url(/wp-content/themes/sandra-astrology/images/background-2.webp);
	background-color: #39003c;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	overflow-y: scroll;
	overflow-x: hidden;
	display: grid;
	grid-template-columns: 1fr;
	justify-content: center;
	color: white;
	font-family: 'Raleway';
	font-size: 1.2rem;
}

body > header {
	display: flex;
	place-content: center;
}

header {
	margin-top: 2rem;
	padding-block: 1rem;
	position: relative;
	box-shadow: 0 2px 2px rgba(20, 20, 20);
	background-color: rgba(124, 0, 92, 0.4);
	cursor: pointer;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
   user-select: none;
   outline: none;
}

header h2 {
	font-size: 3rem;
}

.logo-title {
	display: flex;
	place-content: center;
}

#top-line, #bottom-line {
	position: absolute;
	width: 100vw;
	height: 1px;
	background-color: #cbcbcb;
}

#top-line {
	top: 0;
}

#bottom-line {
	bottom: 0;
}

#logo-icon {
	margin-right: 1rem;
	align-self: center;
	justify-self: center;
}

body > main {
	margin-inline: 20vw;
	background-color: rgba(49, 22, 69, 0.8);
	border: 1px solid #625ba5;
	border-radius: 15px;
	padding: 1rem;
	min-height: 500px;
}

h1 {
	font-size: 2.5rem;
}

h1, h2, h3 {
	color: var(--themeYellow);
}

h1, h2 {
	font-family: 'Lobster Regular';
}

h3 {
	color: var(--themeYellow);
}

a {
	color: var(--themeYellow);
}

a:hover {
	color: white;
}

footer {
	border-top: 5px solid white;
	margin-top: 5rem;
	padding: 5rem;
	display: grid;
	place-content: center;
	background-color: rgba(124, 0, 92, 0.8);
	color: white;
	font-weight: bold;
	text-align: center;
}

.pg-title {
	text-align: center;
}

.fp-portrait img {
	border: 5px solid white;
}

.info-blocks {
	gap: 2rem;
}

/* Menu */
nav {
	display: grid;
	place-content: center;
}

@keyframes slideIn {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes slideOut {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

nav #mobile-nav {
  position: absolute;
  top: 0;
  left: 0;
  min-height: 100vh;
  min-width: 70vw;
  padding: 1rem;
  background-color: rgba(124, 0, 92, 0.95);
  border-right: 5px solid white;
  z-index: 5;
  transform: translateX(-100%);
  display: grid;
  justify-content: center;
}

nav #mobile-nav.open {
  animation: slideIn 0.5s forwards;
}

nav #mobile-nav.closed {
  animation: slideOut 0.5s forwards;
}

nav a {
	font-family: 'Lugrasimo';
	text-decoration: none;
	font-size: 1.41rem;
	color: white;
	font-weight: bold;
	position: relative;
	top: 3px;
}

nav a:hover {
	color: var(--themeYellow);
}

#mobile-nav {
	display: block;
}

#large-screen-nav {
	display: grid;
	place-content: center;
}

.menu {
	display: flex;
}

#mobile-nav .menu {
	flex-direction: column;
}

#mobile-nav .menu ul {
	margin-left: none;
}

.menu li {
	margin-right: 3rem;
	list-style: none;
}

#mobile-nav .menu li {
	margin-right: 0;
  margin-bottom: 1rem;
}

#hamburger, #close-nav-btn {
	max-width: 50px;
	height: auto;
}

#hamburger {
	display: none;
	position: absolute;
	top: 5px;
	right: 5px;
	cursor: pointer;
}

#close-nav-btn {
	cursor: pointer;
	display: none;
}

.stop-scrolling {
  height: 100%;
  overflow: hidden;
}

/* Posts */
.post-columns {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 2rem;
	margin-bottom: 4rem;
	border: 1px solid #565656;
	border-radius: 15px;
	padding: 1rem;
	background-color: rgba(0,0,0, 0.2);
}

.post-columns a {
	font-size: 2rem;
	font-weight: bold;
	text-decoration: none;
}

.post-columns > div {
	display: grid;
	place-content: center;
}

.list-img {
	position: relative;
	display: grid;
	place-content: center;
	max-width: 400px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.post-columns .list-img img:nth-child(2n) {
	position: absolute;
	top: 0;
	left: 0;
}

.post-exerpt-title {
	width: 100%;
	text-align: left;
}

.post-archive-list {
	text-align: center;
	margin-bottom: 3rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.post-archive-list > h2 {
	font-size: 3rem;
	grid-column: 1/-1;
}

.post-archive-list div {
	text-align: center;
}

.post-archive-list div > div {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax(75px, 1fr) );
	gap: 1rem;
	justify-content: center;
}

.post-archive-year {
	padding: 1rem;
	border-radius: 15px;
	background-color: rgba(0,0,0, 0.2);
	margin-bottom: 1rem;
	box-shadow: 2px 2px 2px black;
}

.list-img-bg {
	width: 100%;
	height: auto;
	z-index: 6;
}

.list-thumb {
	z-index: 5;
	width: 100%;
	height: auto;
	transform: scale(0.7);
}

/* Events */

.events > .wp-block-group {
/*	border: 1px solid #565656;*/
	border-radius: 15px;
	padding: 1rem;
	background-color: rgba(0,0,0, 0.2);
	margin-bottom: 3rem;
}

.events h2 {
	margin-top: 0;
}

.events figure {
	marging: 0;
	padding: 0;
}

.events img {
	border-radius: 50px;
}

.events > div > div {
	padding-left: 2rem;
}

.events > div > div > div {
	gap: 1.5rem;
}
@media (max-width: 1200px) {
	nav a {
		font-size: 1rem;
	}

	.post-columns a {
		font-size: 1.5rem;
	}

	.events > div > div {
		padding-left: 0;
	}

	.events h2 {
		font-size: 2rem;
		text-align: center;
	}

}

@media (max-width: 1100px) {
	.post-columns, .post-archive-list {
		grid-template-columns: 1fr;
	}

	.post-exerpt-title {
		text-align: center;
	}

	.post-archive-list {
		margin-inline: 5%;
	}

}

@media (max-width: 900px) {
	body {
		background-size: auto;
		background-position: top;
		background-attachment: unset;
	}

	nav ul {
		padding: 0;
		margin: 0;
	}

	#hamburger {
		display: block;
	}

	#large-screen-nav {
		display: none;
	}

	header {
		margin-bottom: 0;
	}

	body > main {
		border-top-left-radius: 0;
		border-top-right-radius: 0;
	}
}

@media (max-width: 800px) {
	h1 {
		font-size: 2rem;
	}
	header h2 {
		font-size: 2.5rem;
	}

	.logo-title {
		max-width: 85vw;
	}

	#logo-icon {
/*		transform: scale(0.8);*/
		margin-right: 0;
	}

}

@media (max-width: 600px) {

	body > main {
		margin-inline: 5vw;
	}

}