/* Header + footer + animation + variables */

@import 'variables.css';

* {
  box-sizing: border-box;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 100px 0 0 0;
  font-family: var(--mainFontFamily);
}

.header__button {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 11;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 75px;
  border: 1px solid var(--accentColor);
  border-radius: 10px;
  padding: 10px;
  font-size: 1.2rem;
  background-color: #fff;
  transition: all .3s ease;
  cursor: pointer;
}

.header__button:hover {
  color: #fff;
  background-color: var(--accentColor);
}

.header {
  position: fixed;
  top: 0px;
  left: 0px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  border-right: 1px solid #000;
  max-width: 300px;
  margin-bottom: 100px;
  overflow-x: hidden;
  max-height: 100vh;
  overflow-y: scroll;
  font-size: 1rem;
  line-height: 50px;
  background-color: #fff;
  transition: border .2s ease-out, color .2s ease-out;
  user-select: none;
  white-space: nowrap;
  -webkit-touch-overflow: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.header__item {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border-bottom: 1px solid #000;
  width: 100%;
  padding: 0px 10px 0px 10px;
  color: #000;
  font-size: 1.2rem;
  text-decoration: none;
  transition: border .2s ease-out, color .2s ease-out;
}

a.header__item:hover {
  background-color: var(--accentColor);
  color: #fff;
  border-bottom: 1px solid var(--accentColor);
}

.open {
  transform: translateX(0px);
}

.close {
  display: none;
}

.footer {
  gap: 0;
  width: 100%;
  margin: 48px 0 0;
  padding: 0 0 24px;
}

.footer__item {
  position: relative;
  left: 2%;
  width: 96%;
  margin: 0;
}

.ellipsis {
  margin-left: 1px;
  letter-spacing: 1px;
}

/* Анимированное появление контента */
.animated {
  animation: fromZeroToNormal 0.4s ease-in;
}

@keyframes fromZeroToNormal {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}
