@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/RobotoCondensed-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@keyframes logo-shine-effect {
  0% {
    left: -100%;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

:root {
  --clr-second: #232323;
  --clr-second-light: #2e2e2e;
  --clr-prime: #ce0b0b;
  --clr-muted: #555555;
  --clr-light: #f5f5f5;
  --clr-white: #ffffff;

  --fnt-family: "Roboto Condensed", sans-serif;
  --fnt-size: 1.6rem;
  --fnt-weight: 400;

  --spc-default: 2rem;
  --spc-large: 5rem;
  --spc-small: 1rem;
}

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

html {
  font-size: 10px;
}

body {
  font-size: var(--fnt-size);
  font-family: var(--fnt-family);
  font-weight: var(--fnt-weight);
  color: var(--clr-light);
  background: var(--clr-second);
}

body.logged-in .icon-bar .user-icon {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

p {
  margin-bottom: var(--spc-small);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--clr-muted);
  text-decoration: none;
  transition: all 200ms ease-in-out;
}

a:hover {
  color: var(--clr-prime);
}

section {
  padding: 10rem 0 !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 95%;
}

header {
  padding: var(--spc-default) 0;
  background: var(--clr-second-light);
  border-bottom: 0.1rem solid var(--clr-second);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .container .logo {
  font-size: 1.4rem;
  font-weight: 700;
  position: relative;
  padding: 0.2rem;
  z-index: 3;
  background: var(--clr-prime);
  overflow: hidden;
  color: var(--clr-white);
}

header .container .logo::after {
  content: "";
  width: 2rem;
  height: 10rem;
  background: white;
  display: block;
  position: absolute;
  top: -50%;
  left: -100%;
  transform: skew(-10deg);
  filter: blur(0.5rem);
  opacity: 0.7;
  animation: infinite 5s logo-shine-effect;
}

header .container .logo span {
  position: relative;
  padding: 0.5rem;
  background: var(--clr-second);
  display: block;
  z-index: 4;
  transition: all 200ms ease-in-out;
}

header .container .logo:hover span {
  color: var(--clr-prime);
}

header .container nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--spc-default);
  list-style: none;
  margin: 0;
  padding: 0;
}

header .container nav ul li {
  text-transform: uppercase;
  font-size: 1.3rem;
  font-weight: 600;
}

header .container nav ul li a {
  color: var(--clr-light);
}

header .container nav ul li a::before {
  content: "» ";
  color: var(--clr-prime);
  transition: all 200ms ease-in-out;
}

header .container nav ul li a:hover {
  color: var(--clr-prime);
}

header .container nav ul li a:hover::before {
  color: var(--clr-white);
}

.icon-bar {
  position: fixed;
  right: var(--spc-default);
  bottom: var(--spc-default);
  z-index: 1000;
  display: flex;
  gap: var(--spc-small);
}

.menu-icon {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 4rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--clr-white);
  overflow: hidden;
  padding: var(--spc-small);
  cursor: pointer;
  opacity: 0.5;
  transition: all 200ms ease-in-out;
}

.menu-icon:hover {
  opacity: 1;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 0.3rem;
  background: var(--clr-second);
  transition: all 200ms ease-in-out;
}

.menu-icon span:nth-child(1) {
  translate: 0 -0.3rem;
}

.menu-icon span:nth-child(3) {
  translate: 0 0.3rem;
}

.menu-icon.open span:nth-child(1) {
  translate: 0 0.3rem;
  rotate: -45deg;
}

.menu-icon.open span:nth-child(2) {
  opacity: 0;
}

.menu-icon.open span:nth-child(3) {
  translate: 0 -0.3rem;
  rotate: 45deg;
}

.user-icon {
  width: 4rem;
  aspect-ratio: 1;
  padding: var(--spc-small);
  border-radius: 50%;
  background: var(--clr-white);
  opacity: 0.5;
  cursor: pointer;
  transition: all 200ms ease-in-out;
  display: none;
}

.user-icon:hover {
  opacity: 1;
}

.user-icon.open {
  background: var(--clr-prime);
  opacity: 1;
}

.user-icon.open svg {
  color: var(--clr-white);
}

.user-icon img {
  color: var(--clr-second);
}

.mobile-menu,
.user-menu {
  position: fixed;
  top: -100%;
  scale: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(33, 33, 33, 0.9);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  z-index: 999;
  transition: all 250ms ease-in-out;
  transform-origin: center top;
}

.mobile-menu.open,
.user-menu.open {
  scale: 1;
  top: 0;
}

.mobile-menu nav,
.user-menu nav {
  display: block;
  width: 95%;
  max-width: 40rem;
}

.mobile-menu nav ul,
.user-menu nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--spc-small);
  font-size: 2rem;
}

footer {
	background: var(--clr-second-light);
	border-top: 0.1rem solid var(--clr-second);
	padding: var(--spc-default) 0;
}

footer .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

footer .container .footer-left {
	font-size: 1.3rem;
	font-style: italic;
	opacity: 0.7;
}

footer .container .footer-right ul {
	list-style: none;
	display: flex;
	margin: 0;
	padding: 0;
	gap: var(--spc-default);
}

footer .container .footer-right ul li a::before {
	content: "» ";
	display: inline-block;
}

.elementskit-post-image-card {
	background: var(--clr-second-light) !important;
	color: var(--clr-white) !important;
	border-radius: 0.5rem !important;
	padding: var(--spc-default) !important;
}

.elementskit-post-image-card .elementskit-post-body {
	padding: 0 !important;
	margin-top: var(--spc-small) !important;
}

.elementskit-post-image-card .elementskit-post-body p {
	display: none !important;
}

.elementskit-post-image-card .elementskit-post-body .entry-title {
	margin-bottom: var(--spc-small) !important;
}

.elementskit-post-image-card .elementskit-entry-header .elementskit-entry-thumb {
	padding: 0 !important;
}

.elementskit-post-image-card .elementskit-post-body .elementskit-btn {
	background: var(--clr-second) !important;
	color: var(--clr-white) !important;
	text-transform: uppercase !important;
	padding: var(--spc-small) var(--spc-default) !important;
	font-size: 1.3rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.2rem !important;
}

.elementskit-post-image-card .elementskit-post-body .elementskit-btn:hover,
.elementskit-post-image-card .elementskit-post-body .elementskit-btn:focus {
	background: var(--clr-prime) !important;
	color: var(--clr-white) !important;
}

@media (width <= 768px) {
  header .container {
    justify-content: center;
  }
  header .container nav {
    display: none;
  }

  .icon-bar {
    flex-direction: column;
  }

  .icon-bar .menu-icon {
    display: flex;
  }
}
