html {
scroll-behavior: smooth;
}

nav {
  margin: 20px auto 0;
  position: relative;
  z-index: 20;
  width: 1024px;
  max-width: 1024px;
  height: 50px;
  background-color: #2175C5;
  border-radius: 10px;
  font-size: 0;
}
nav a {
  line-height: 50px;
  height: 100%;
  font-size: 18px;
  display: inline-block;
  position: relative;
  z-index: 20;
  text-decoration: none;
  text-align: center;
  color: white;
  cursor: pointer;
}
nav a:hover {
  line-height: 50px;
  height: 100%;
  font-size: 18px;
  display: inline-block;
  position: relative;
  z-index: 20;
  text-decoration: none;
  text-align: center;
  color: white;
  cursor: pointer;
}


.dropdown {
  position: relative;
  display: inline-block;
  text-align: center;
}
.dropdown-menu {
  position: absolute; /* Выводим из потока документа */
  top: 100%; /* Располагаем под родительским элементом */
  left: 0;
  display: inline-block;
  min-width: 550px;
  background-color: rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Тень для объёма */
  opacity: 0; /* Изначально прозрачное */
  visibility: hidden; /* Скрыто */
  transform: translateY(-10px); /* Небольшой сдвиг для эффекта появления */
  transition: all 0.3s ease;
  z-index: 5;
  margin-top: 0 px;
}
.dropdown:hover .dropdown-menu {
  opacity: 1; /* Становится видимым */
  visibility: visible; /* Становится активным */
  transform: translateY(0); /* Возвращаем в исходное положение */
}
.dropdown-menu a {
  display: block;
  padding: 0px 20px;
  min-width: 550px;
  box-sizing: border-box;
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.2s ease; 
  white-space: nowrap;
  text-align: left;
  border-radius: 0;
}
.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-align: left;
  font-size: 16px;
  border-radius: 0;
}
nav .animation {
  position: absolute;
  height: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: all .5s ease 0s;
  border-radius: 10px;
}
a:nth-child(1) {
  width: 140px;
}
a:nth-child(2) {
  width: 120px;
}
.dropdown:nth-child(3) .dropdown-toggle {
  width: 120px;
  display: block;
  text-align: center;
}
.dropdown:nth-child(4) .dropdown-toggle {
  width: 120px;
  display: block;
  text-align: center;
}
a:nth-child(5) {
  width: 140px;
}
a:nth-child(6) {
  width: 120px;
}
a:nth-child(7) {
  width: 164px;
  margin-left: 100px;
}
nav .start-home, a:nth-child(1):hover~.animation {
  width: 140px;
  left: 0;
  background-color: #1A5E9E;
}
nav .start-about, a:nth-child(2):hover~.animation {
  width: 120px;
  left: 140px;
  background-color: #1A5E9E;
}
.dropdown:nth-child(3):hover ~ .animation {
  width: 120px;
  left: 260px;
  background-color: #1A5E9E;
}
.dropdown:nth-child(4):hover ~ .animation {
  width: 120px;
  left: 380px;
  background-color: #1A5E9E;
}
nav .start-contact, a:nth-child(5):hover~.animation {
  width: 140px;
  left: 500px;
  background-color: #1A5E9E;
}
nav .start-contact, a:nth-child(6):hover~.animation {
  width: 120px;
  left: 640px;
  background-color: #1A5E9E;
}
nav .start-contact, a:nth-child(7):hover~.animation {
  width: 164px;
  left: 860px;
  background-color: #1A5E9E;
}
body {
  font-size: 12px;
  font-family: sans-serif;
  background: #EAEAEA;
}
h1 {
  text-align: center;
  margin: 40px 0 40px;
  text-align: center;
  font-size: 30px;
  color: #2175C5;
  text-shadow: 2px 2px 4px #00000033;
}
h2 {
  text-align: center;
  margin: 50px 0 50px;
  font-size: 25px;
  color: #2175C5;
  text-shadow: 2px 2px 4px #00000033;
}

.login-required {
    background-color: #eb3246 !important; 
    color: white !important;
    cursor: pointer;
    text-decoration: none;
}

.login-required:hover {
    background-color: #eb3246 !important;
}

.login-required a {
    background-color: #eb3246 !important; 
    color: white !important;
}

p {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: #ecf0f1;
    font-family: 'Cherry Swash',cursive;
    font-size: 16px;
}



span {
    color: #2BD6B4;
}