/*<<<< Colors >>>>*/

:root
{
  --green_light-color:#4CB54C;
  --green_dark-color:#4BCC70;

  --blue_light-color:#232560;
  --blue_dark-color:#392578;

  --yellow_light-color:#f2e213;
  --yellow_dark-color:#C2DB07;

  --dark-color: #2a2a2a;
  --light-color: #fff ;
}

/*<<<< Fonts >>>>*/
@font-face
{
  font-family: light;
  src: url("../res/fonts/Light.ttf");
}

@font-face
{
  font-family: medium;
  src: url("../res/fonts/Medium.ttf");
}

body
{
  font: 16px/1.5 Helvetica;
  padding: 0;
  direction: ltr;
  margin: 0;
}

/*<<<< GLOBAL >>>>*/

.container
{
  padding-left: 5%;
  padding-right: 5%;
  text-align: center;
  overflow: hidden;
}

.button
{
  background-color: var(--green_light-color);
  color: white;
  padding: 8px;
  border-radius: 4px;
  transition: 0.3s;
}

.button:hover
{
  padding: 10px;
}

a
{
  text-decoration: none;
  font-family: medium;
  color: var(--dark-color);
}

a:hover
{
  cursor: pointer;
}

h3
{
  font-family: light;
  color: var(--dark-color);
}

h2
{
  font-family: light;
  color: var(--dark-color);
}

h1
{
  font-family: light;
  color: var(--dark-color);
}

p
{
  font-family: medium;
  font-size: 16px;
  color: var(--dark-color);
}

/*<<<< HEADER >>>>*/


nav ul
{
  margin: 0;
  padding: 0;
}

nav input
{
  display: none;
}

.toggle_button
{
  width: 30px;
  height: 23px;
  position: absolute;
  top: 30px;
  right: 25px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
}

.bar
{
  height: 4px;
  z-index: 10;
  width: 100%;
  background: var(--dark-color);
  border-radius: 100px;
}

nav
{
  position: fixed;
  width: 100%;
  top: 0;
  background: var(--light-color);
  z-index: 20;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav #selected
{
  color: var(--green_light-color);
}

nav .logo
{
  margin-left: 30px;
  margin-right: 30px;
  color: var(--dark-color);
  font-size: 35px;
  font-variant: small-caps;
  align-items: center;
  justify-content: space-between;
  display: flex;
  text-decoration: none;
}

nav #logo
{
  width: 64px;
  margin-right: 20px;
  margin-left: 20px;
  height: 64px;
}

nav ul
{
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
}

nav li
{
  height: 100%;
  width: 150px;
  text-align: center;
}

nav li:hover a
{
  color: var(--green_light-color);
  border-bottom: 3px solid var(--green_light-color);
  transition: ease 0.3s;
}

nav ul a
{
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav ul img
{
  width: 24px;
  display: none;
  height: 24px;
}

/*<<<< Mobile language select >>>>*/

header nav .lang-menu-mobile {
    width: 50px;
    text-align: right;
    height: 30px;
    direction: ltr;
    font-weight: bold;
    position: absolute;
    right: 70px;
    margin-top: 5px;
    overflow: visible;
    z-index: 100;
    display: none;
}
header nav .lang-menu-mobile .selected-lang-mobile {
    display: flex;
    justify-content: space-between;
    line-height: 2;
    background-repeat: no-repeat;
    cursor: pointer;
}
header nav .lang-menu-mobile .selected-lang-mobile:before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
}

header nav .lang-menu-mobile ul {
    margin: 0;
    padding: 0;
    display: none;
    background-color: white;
    height: auto;
    border: 1px solid #f8f8f8;
    position: fixed;
    width: 40px;
    border-radius: 5px;
    box-shadow: 0px 1px 10px rgba(0,0,0,0.2);
}


header nav .lang-menu-mobile ul li {
    list-style: none;
    text-align: left;
    width: 100%;
    margin: 0;
    padding: 0px;
    height: 50px;
    display: flex;
    justify-content: space-between;
}

header nav .lang-menu-mobile ul li a {
    justify-content: center;
    margin: 0;
    padding: 0;

}

header nav .lang-menu-mobile ul li:hover {
    background-color: #f2f2f2;
}

header nav .lang-menu-mobile ul li a:before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    vertical-align: middle;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
}

header nav .lang-menu-mobile .en:before {
    background-image: url(https://www.countryflagicons.com/FLAT/32/GB.png);
}

header nav .lang-menu-mobile .ar:before {
    background-image: url(https://www.countryflagicons.com/FLAT/32/SD.png);
}


header nav .lang-menu-mobile .langMenu.open {
    display: block;
}

/*<<<< Language select >>>>*/

.lang
{
  display: flex;
  justify-content: center;
  align-items: center;
}

.lang:hover
{
  background: none;
}

header nav .lang-menu ul li:hover a
{
  border-bottom: 0;
}

header nav .lang-menu {
    width: 100px;
    direction: ltr;
    text-align: right;
    font-weight: bold;
    overflow: visible;
    position: relative;
    float: right;
    z-index: 100;
}
header nav .lang-menu .selected-lang {
    display: flex;
    justify-content: space-between;
    line-height: 2;
    background-repeat: no-repeat;
    cursor: pointer;
}
header nav .lang-menu .selected-lang:before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
}

header nav .lang-menu ul {
    margin: 0;
    padding: 0;
    display: none;
    background-color: var(--light-color);
    height: auto;
    border: 1px solid #f8f8f8;
    position: fixed;
    width: 125px;
    border-radius: 5px;
    box-shadow: 0px 1px 10px rgba(0,0,0,0.2);
}


header nav .lang-menu ul li {
    list-style: none;
    text-align: left;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

header nav .lang-menu ul li a {
    text-decoration: none;
    padding: 5px 10px;
    border-bottom: 0;
    color: var(--dark-color);
    width: 100%;
    display: block;
}

header nav .lang-menu ul li:hover {
    background-color: #f2f2f2;
}

header nav .lang-menu ul li a:before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    vertical-align: middle;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
}

header nav .en:before {
    background-image: url(https://www.countryflagicons.com/FLAT/32/GB.png);
}

header nav .ar:before {
    background-image: url(https://www.countryflagicons.com/FLAT/32/SD.png);
}


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


.page_content
{
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}

/*<<<< Cookie warning >>>>*/

#consent-popup p
{
  float: left;
  color: white;
}

#consent-popup
{
  position: fixed;
  bottom: 0;
  height: 48px;
  background-color: var(--dark-color);
  left: 0;
  right: 0;
  padding: 0.5rem;
  display: block;
  padding-left: 10%;
  padding-right: 10%;
  transition: opacity 1s ease;
  z-index: 5;
}

#consent-popup.hidden
{
  opacity: 0;
  visibility: hidden;
}

#consent-popup #accept
{
  background: var(--blue_dark-color);
  border-radius: 12px;
  float: right;
  color: white;
  padding: 10px;
}

/*<<<< FOOTER >>>>*/

footer
{
  background-color: var(--blue_light-color);
  overflow: hidden;
  bottom: 0;
  position: relative;
  color: white;
}

footer .container
{
  padding-left: 10%;
  padding-right: 10%;
  justify-content: center;
  position: relative;
}

footer ul
{
  width: 50%;
  padding: 0;
  font-size: 24px;
}

footer #footer_links
{
  width: 100%;
  overflow: hidden;
  padding-top: 2.5%;
  padding-bottom: 2.5%;
}

footer #footer_links h2
{
  border-bottom: solid 1px var(--light-color);
  color: var(--light-color);
  width: 90%;
}

footer #referenzes
{
  float: left;
  text-align: left;
}

footer #referenzes li
{
  display: inline;
  padding: 0 10px 0 10px;
}

footer #referenzes li img
{
  width: 17.33%;
}

footer #data
{
  float: left;
  text-align: left;
}

footer #data li
{
  display: block;
}

footer #data a
{
  color: white;
  font-size: 18px;
}

footer #contact_info
{
  float: left;
  text-align: left;
}

footer #contact_info img
{
  width: 24px;
}

footer #contact_info li
{
  display: block;
  font-size: 18px;
  width: 100%;
}

footer #footer_information
{
 background-color: var(--blue_dark-color);
 bottom: 0;
 position: relative;
 width: 100%;
 text-align: center;
}

footer #footer_information p
{
  color: white;
  margin: 0;
  padding: 0.5%;
  font-size: 16px;
}

@media(max-width: 1366px)
{
  footer h2{font-size: 28px;}
}

@media(max-width: 800px)
{
  p{font-size: 14px;}
  h2{font-size: 16px;}

  .toggle_button{display: flex;}
  nav ul{background: var(--light-color);height: min-content;width: 100%;display: none;position: absolute;top: 80px;}
  nav li{height: min-content;width: 100%;}
  nav ul a{padding: 30px 0; justify-content: flex-start; margin-left: 30px; margin-right: 30px;}
  .lang{display: none;}
  #toggle_button:checked ~ ul{display: block;}
  header #first_tab nav .menu-mobile.open{visibility: block;}
  header nav .lang-menu-mobile{display: block;}

  header #logo{width: 48px;height: 48px;position: absolute; left: 10px;}
  header .logo a{display: none;}

  footer #data{width: 100%;}
  #footer_links #referenzes{width: 100%;}
  footer #referenzes li img{width: 22%;}
  footer #contact_info{width: 100%;}
}
