.lg-flags {
  position: relative;
  z-index: 10;
}
.lg-flags:hover,
.lg-flags:hover .dropdown-list {
  background: rgba(0, 0, 0, 0.1);
}
.lg-flags > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lg-flags > ul > li {
  padding: 5px 5px;
}
.lg-flags a.flag {
  position: relative;
  display: block;
  width: 64px;
  height: 43px;
  background-size: 64px 43px;
  background-repeat: no-repeat;
  border: solid black 1px;
}
.lg-flags a.flag:before {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: #000000AA;
  padding-top: 10px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
  color: white;
  font-size: 14px;
}
.lg-flags a.flag:hover:before {
  opacity: 1;
}
.lg-flags a.flag[data-lg="ru"] {
  background-image: url("/assets/modules/tutorials/flags/ru.jpg");
}
.lg-flags a.flag[data-lg="ru"]:before {
  content: "Русский";
}
.lg-flags a.flag[data-lg="en"] {
  background-image: url("/assets/modules/tutorials/flags/en.jpg");
}
.lg-flags a.flag[data-lg="en"]:before {
  content: "English";
}
.lg-flags a.flag[data-lg="zh"] {
  background-image: url("/assets/modules/tutorials/flags/zh.jpg");
}
.lg-flags a.flag[data-lg="zh"]:before {
  content: "中文";
}
.lg-flags > .up-block > li {
  position: relative;
  padding-right: 20px;
}
.lg-flags > .up-block > li:after {
  position: absolute;
  right: 5px;
  top: calc(50% - 15px);
  content: "\f0dd";
  font: 20px/20px 'FontAwesome';
}
.lg-flags > .up-block.opened > li:after {
  top: calc(50% - 6px);
  content: "\f0de";
}
.lg-flags .dropdown-list {
  position: absolute;
  width: 100%;
}
