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

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

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

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

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

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

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

.blocks {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--gap-large);
  justify-content: flex-start;
}

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

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

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

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

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

footer img {
  width: 15px;
  margin-right: 10px;
  color: var(--text-main);
}

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,
pre code {
  tab-size: 4;
  -moz-tab-size: 4;
}

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

.katex {
  font-size: calc(var(--font-size-medium) * 0.9) !important;
}

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

.fade-out {
  opacity: 1;
  animation: fadeOut var(--speed-fade) forwards;
}

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

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

.none {
  display: none !important;
}

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

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