/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

@import url(https://necolas.github.io/normalize.css/8.0.1/normalize.css);

body {
  background-color: white;
  color: #333;
  box-sizing: border-box;
  font-family: Verdana;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: #aaa;
}

header {
  background-color: #333;
  height: 100px;
  padding: 20px 0;
}

.logo{
  width: 500px;
}

.logo img{
  width: 500px;
}

nav {
  width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.lang-menu{
  color: white;
  margin-top: 10px;
  position: relative;
}

.selected-lang {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  line-height: 3;
  width: 180px;
}

.lang-menu ul{
  margin: 0;
  padding: 0;
  background-color: #333;
  border: 1px solid #111;
  box-shadow: 0px 1px 10px rgba(0,0,0,1);
  border-radius: 5px;
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
}

.lang-menu ul li{
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.lang-menu ul li a{
  width: 150px;
  display: block;
  padding: 5px 10px;
}

.lang-menu ul li a:before{
  content: '';
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  vertical-align: middle;
}

.lang-menu ul li a:hover{
  background-color: #444;
  color: #fff;
}

.selected-lang:before{
  content: '';
  display: none;
  width: 32px;
  height: 32px;
}

.bg:before{
  background-image: url(https://flagsapi.com/BG/flat/32.png);
}

.es:before{
  background-image: url(https://flagsapi.com/ES/flat/32.png);
}

.gb:before{
  background-image: url(https://flagsapi.com/GB/flat/32.png);
}

.lang-menu:hover ul{
  display: block;
}