@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,500,700);

.icon {
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.icon-home,
.icon-cat,
.icon-feed,
.icon-contact-menu {
  width: 30px; /* Увеличиваем размер иконок */
  height: 30px; /* Увеличиваем размер иконок */
}

.container-menu {
  position: fixed;
  left: 50%;
  bottom: 20px; /* Отступ от нижнего края */
  width: 320px;
  margin-left: -160px;
  background-color: transparent;
  font-family: "Roboto", sans-serif;
  z-index: 1000;
}

.container-menu input[type=checkbox] {
  display: none;
}

.container-menu input[type=checkbox] + label {
  cursor: pointer;
  position: absolute;
  z-index: 2;
  left: 50%;
  margin-left: -28px;
  bottom: 0;
  width: 57px;
  height: 57px;
  border-radius: 50%;
  display: block;
  background-color: #5c7f9e;
  background: -webkit-linear-gradient(-90deg, #5c7f9e 0%, #4a647d 100%);
  box-shadow: 0px 0px 40px 4px #5c7f9e, 0px 0px 0px 2px rgba(255, 255, 255, 0.19) inset;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.container-menu input[type=checkbox] + label:hover {
  background: -webkit-linear-gradient(-90deg, #4a647d 0%, #4a647d 100%);
  box-shadow: 0px 0px 20px 4px #5c7f9e, 0px 0px 0px 2px rgba(255, 255, 255, 0.19) inset;
}

.container-menu input[type=checkbox] + label:before {
  position: absolute;
  top: 5px;
  left: 16px;
  content: "+";
  color: #ffffff;
  font-size: 47px;
  font-weight: 100;
  -moz-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
  display: block;
  line-height: 1;
}

.container-menu input[type=checkbox]:checked + label {
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.container-menu input[type=checkbox]:checked + label:hover {
  background: -webkit-linear-gradient(-90deg, #4a647d 0%, #4a647d 100%);
  box-shadow: 0px 0px 40px 4px #5c7f9e, 0px 0px 0px 2px rgba(255, 255, 255, 0.19) inset;
}

.container-menu input[type=checkbox]:checked + label + .menu {
  width: 340px;
  margin-left: -170px;
  box-shadow: 0px 0px 18px 1px #5c7f9e, 0px 0px 0px 2px rgba(255, 255, 255, 0.19) inset;
}

.container-menu input[type=checkbox]:checked + label + .menu .menu-item {
  opacity: 1;
  -moz-animation: item 0.5s forwards ease-in-out;
  -webkit-animation: item 0.5s forwards ease-in-out;
  animation: item 0.5s forwards ease-in-out;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.container-menu input[type=checkbox]:checked + label + .menu .menu-item svg {
  opacity: 0.5;
}

.container-menu input[type=checkbox]:checked + label + .menu .menu-item:hover svg {
  opacity: 1;
}

.menu {
  position: absolute;
  left: 50%;
  bottom: 90%;
  width: 55px;
  margin-left: -27px;
  background-color: #5c7f9e;
  text-align: center;
  font-size: 0;
  padding: 0px 15px;
  border-radius: 30px;
  box-shadow: 0px 0px 0px 4px #5c7f9e, 0px 0px 0px 2px rgba(255, 255, 255, 0.19) inset;
  overflow: hidden;
  display: flex; /* Добавляем flexbox */
  justify-content: space-between; /* Равномерно распределяем элементы */
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.menu .menu-item {
  position: relative;
  display: inline-flex; /* Изменяем на inline-flex */
  align-items: center; /* Вертикально центрируем элементы */
  justify-content: center; /* Горизонтально центрируем элементы */
  width: 20%;
  height: 100%;
  padding: 13px 0;
  opacity: 0;
  -moz-transition: all 0.6s;
  -o-transition: all 0.6s;
  -webkit-transition: all 0.6s;
  transition: all 0.6s;
}

.menu .menu-item svg {
  fill: #fff;
}

@-webkit-keyframes item {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
}

@-moz-keyframes item {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
}

@keyframes item {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
}
