:root {
  --bg: #080808;
  --blured: rgba(0, 0, 0, 0.65);

  --accent: #a93226;
  --surface: #111111;
  --surface-muted: #0d0d0d;
  --text: #f0f0f0;
  --text-hightlighted: #999999;
  --text-muted: #555555;
  --border: rgba(255, 255, 255, 0.1);
  --button: #080808;
  --closeButton: #a93226;
  --saveButton: #1a1a1a;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --deleteToast: #a93226;
  --addToast: #555555;
  --note-accent: #c9843a;
  --journal-accent: #6b8f6b;
  --todo-accent: #4a7fa5;
  --surface-hovered: #1a1a1a;
  --border-hovered: rgba(255, 255, 255, 0.13);
  --button-hovered: #111111;
  --svg-fill: #aaaaaa;
  --svg-fill-hovered: #eeeeee;

  --large: 20px;
  --medium: 14px;
  --small: 12px;
  --tiny: 10px;

  --occupied: green;
  --unoccupied: red;
}

.light {
  --bg: #f7f7f5;
  --blured: rgba(255, 255, 255, 0.65);
  --accent: #2563eb;
  --surface: #ffffff;
  --surface-muted: #f0f0ee;
  --text: #111111;
  --text-hightlighted: #505050;
  --text-muted: #aaaaaa;
  --border: rgba(0, 0, 0, 0.1);
  --button: #f7f7f5;
  --closeButton: #1a56db;
  --saveButton: #f0f0ee;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06);
  --deleteToast: #1a56db;
  --addToast: #aaaaaa;
  --surface-hovered: #ebebea;
  --border-hovered: rgba(0, 0, 0, 0.15);
  --button-hovered: #ebebea;
  --svg-fill: #444444;
  --svg-fill-hovered: #222222;

  --large: 20px;
  --medium: 14px;
  --small: 10px;

  --occupied: green;
  --unoccupied: red;
}

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

html,
body {
  scroll-behavior: smooth;
}

svg {
  fill: var(--svg-fill);
}

img {
  width: 100%;
}

body {
  width: 100%;
  background: var(--bg);
  color: var(--text-muted);
  font-size: var(--medium);
  font-family: sans-serif;
  transition:
    background 0.2s ease-in,
    color 0.2s ease-in;
}

main {
  padding: 0 25vw 4rem 25vw;
  overflow-x: hidden;
}

header {
  width: 100%;
  position: fixed;
  z-index: 1000;
  top: 2rem;
  display: flex;
  justify-content: center;
}

nav {
  width: 100%;
  width: 50vw;
  padding: 0.5rem 1rem;
  background-color: var(--blured);
  box-shadow: var(--shadow), var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

ul {
  width: 100%;
  display: flex;
  list-style: none;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

nav ul li {
  display: flex;
  justify-content: center;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  text-align: center;
  font-size: var(--medium);
  color: var(--text-muted);
  transition: all 0.25s ease-in-out;
}

nav ul li a:hover {
  color: var(--text);
}

.avatarHolder {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  overflow: hidden;
}

.avatar {
  width: 100%;
  height: 100%;
}

ul .kr {
  margin-right: auto;
}

.theme {
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.theme:hover {
  transform: scale(1.1) rotate(45deg);
}

.mainPage {
  width: 100%;
  display: flex;
  column-gap: 1rem;
  margin: 10rem 0 4rem 0;
}

.emptyContentAlert {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /*justify-content: center;*/
  align-items: center;
}

.emptyContentAlert p:nth-child(1) {
  color: var(--text);
  font-size: var(--large);
}
.emptyContentAlert p:nth-child(2) {
  font-size: var(--medium);
}

.availability {
  display: flex;
  align-items: center;
}

.availability .availabilityDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--occupied);
  margin-right: 0.5rem;
  box-shadow: 0 0 10px var(--occupied);
  animation: blink 1.5s ease-in-out infinite;
}

.availability .availabilityInfo {
  font-size: var(--small);
  color: var(--text-muted);
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(0.85);
  }
}

.projects {
  width: 100%;
}

.projectTitle {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: var(--large);
}

.projectGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.card {
  background: var(--surface);
  box-shadow: var(--shadow), var(--shadow);
}

.cardPreview {
  overflow: hidden;
}

.cardPreviewImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cardDetails {
  padding: 0.5rem;
}

.cardTitle {
  color: var(--text);
  font-size: var(--medium);
  margin-bottom: 0.5rem;
}

.cardDescription {
  font-size: var(--small);
}

.cardLinks {
  display: flex;
  column-gap: 0.5rem;
  margin-top: 1rem;
}

.cardLinks a {
  text-decoration: none;
}

.cardLinks a i {
  font-size: var(--large);
  color: var(--svg-fill);
  transition: color 0.2s ease-in;
}

.media a {
  text-decoration: none;
}

.cardLinks a i:hover {
  color: var(--accent);
}

.toast {
  position: fixed;
  z-index: 1000;
  bottom: 4rem;
  right: 2rem;
  background: var(--blured);
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--border);
  animation: toastAnimation 5s ease-in-out both;
}

@keyframes toastAnimation {
  0% {
    transform: translateX(1rem);
    opacity: 0;
  }

  10% {
    transform: translateX(0);
    opacity: 1;
  }

  80% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(1rem);
    opacity: 0;
  }
}

footer {
  width: 100%;
  padding: 1rem 25vw;
  background: var(--surface-muted);
  color: var(--text-muted);
}

footer p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 1rem;
}

@media screen and (max-width: 768px) {
  main {
    padding: 0 10vw 2rem 10vw;
  }

  nav {
    width: 80vw;
  }

  footer {
    padding: 1rem 10vw;
  }
}

@media screen and (max-width: 480px) {
  main {
    padding: 0 5vw 2rem 5vw;
  }

  nav {
    width: 90vw;
  }

  footer {
    padding: 1rem 5vw;
  }
}
