/* TODO: сделать нормальные названия, перейти на классы, убрать ховеры на мобилках */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, Verdana, sans-serif;
}

.main {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1920px;
  min-height: 100vh;
  margin: 0 auto;
  padding-top: 10%;
  overflow-x: hidden;
  font-weight: 400;
  background: url('/static/images/spbu.jpg') no-repeat center center;
  background-size: cover;
}

.main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.logo {
  z-index: 2;
  width: 50%;
  min-width: 300px;
  height: auto;
}

.main-container {
  z-index: 2;
  width: 100%;
}

.list_of_links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0 auto;
  padding: 0 20px 20px 20px;
  font-size: 22px;
  line-height: 1.3;
  list-style: none;
}

.list_of_links li {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  overflow-y: hidden;
  background-color: rgba(255, 255, 255, 0.8);
}

.list_of_links li a {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 10px 20px 10px 20px;
  color: #000;
  text-decoration: none;
}

.list_of_links li:hover {
  background-color: #c01d0b;
}

.list_of_links li:hover a {
  color: #fff;
}

.animated {
  animation: fromZeroToNormal 0.4s ease-in;
}


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

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

@media screen and (max-width: 700px) {
  .list_of_links {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .list_of_links {
    width: auto;
  }

  .logo {
    width: 80%;
  }
}