@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap");

* {
  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: var(--text-main);
  box-sizing: border-box;
}

body {
  background: var(--bg-main);
  margin: 0;
  min-height: 100vh;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: var(--padding-viewport);
}

.content-wrapper {
  width: 100%;
  max-width: var(--width-content-max);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

nav {
  height: var(--height-header);
  display: flex;
  align-items: center;
  gap: var(--gap-medium);
  margin-bottom: 20px;
}

.empty p span {
  font-style: italic;
}

.not-found {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

footer {
  display: flex;
  align-items: center;
  height: var(--height-footer);
  margin-top: 20px;
}

footer img {
  width: 15px;
  margin-right: 10px;
}

::selection {
  background: var(--color-accent);
}

a {
  position: relative;
  display: inline-block;
  z-index: 1;
}

a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--speed-fast);
}

a:hover::after {
  transform: scaleX(1);
}

textarea {
  tab-size: 4;
  -moz-tab-size: 4;
}

pre code {
  tab-size: 4;
  -moz-tab-size: 4;
}

.container {
  width: 100%;
  padding: var(--padding-container);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blocks {
  gap: var(--gap-large);
  justify-content: flex-start;
}

.scrollable {
  justify-content: flex-start;
}

.not-scrollable {
  flex-grow: 1;
  justify-content: center;
  text-align: center;
}

.fade-in {
  opacity: 0;
  animation: fadeInPage var(--speed-fade) forwards;
}

.status-error {
  color: var(--color-error);
}

.status-success {
  color: var(--color-success);
}

.none {
  display: none !important;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
