@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.box, div.login-box, div#block-register fieldset, input.primary-button {
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  border-radius: 3px;
  padding: 20px;
  border: solid 1px #ccc;
  background-color: #eee;
}

#main > section {
  width: 100%;
  max-width: 1200px;
}
#main > section.full {
  width: 100%;
}
#main section#landing {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
#main section#landing .landing-inner {
  flex: 10 0 auto;
  width: 100%;
  max-width: 1200px;
  background-color: white;
  padding: 1rem;
}
#main section#landing .landing-inner .box, #main section#landing .landing-inner div.login-box, #main section#landing .landing-inner div#block-register fieldset, div#block-register #main section#landing .landing-inner fieldset, #main section#landing .landing-inner input.primary-button {
  background-color: white;
  border: solid 1px #333;
  padding: 1rem;
  margin: 1rem;
}
#main section#landing .landing-inner .publisher-box {
  background-color: rgb(199, 221, 255);
  border: solid 1px #333;
}
#main section#landing .landing-inner .consumer-box {
  background-color: rgb(199, 221, 255);
  border: solid 1px #333;
}
#main #protection {
  background-color: white;
  border: solid 2px red;
  padding: 1rem;
  margin: 1rem;
}
#main #protection img {
  width: 3rem;
}

div#content.frontpage section#landing {
  display: flex;
  flex-direction: row;
  flex: 1;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0 5px 0;
  margin: 0 auto 0 auto;
}

div.cms-node div.info {
  display: none;
}

:root {
  --color-dark-blue: #0c2c4a;
  --color-green: #359f9d;
  --color-gold: #dc8f2c;
  --color-dark-gold: #aa5517;
  --color-link: #3670b9;
  --color-bg: #fff;
  --color-text-dark: #0c2c4a;
  --color-text-light: #fff;
  --color-text-light-gray: #f1f1f1;
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  position: relative;
  background-color: var(--color-bg);
  color: var(--color-text-dark);
  font-family: "Roboto", sans-serif;
  font-family: Arial, Tahoma, sans-serif;
  line-height: 1.6rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#header {
  display: flex;
  flex-direction: row wrap;
  background-color: var(--color-dark-blue);
  color: var(--color-text-light);
  border-bottom: solid 1px #999;
}
#header #logo img {
  width: auto;
  height: 70px;
  padding: 10px 20px 0 20px;
}
#header #menu-bar {
  padding: 0;
  margin: 0;
}
#header #menu-bar #primary {
  height: 100%;
}
#header #menu-bar ul.horizontal {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  height: 100%;
  padding: 0;
  margin: 0;
  line-height: 53px;
}
#header #menu-bar ul.horizontal li.icon {
  display: none;
}
#header #menu-bar ul.horizontal li {
  height: 100%;
  padding: 0 0.8rem;
  display: inline-block;
  border: none;
}
#header #menu-bar ul.horizontal li a {
  display: inline-flex;
  color: var(--color-text-light);
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.02em;
  font-size: 0.9em;
}
#header #menu-bar ul.horizontal li.active {
  color: var(--color-text-light-gray);
  background-color: var(--color-text-light-gray);
}
#header #menu-bar ul.horizontal li:hover {
  height: 100%;
  background-color: var(--color-text-light-gray);
}
#header #menu-bar ul.horizontal li:hover a {
  color: var(--color-green);
}
#header div#built-with-eiffel {
  display: flex;
  margin-left: auto;
  padding: 10px 20px 0 20px;
  background: rgb(255, 255, 255);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 40%, rgb(117, 193, 255) 100%);
}
#header div#built-with-eiffel a {
  color: #000;
}
#header div#built-with-eiffel a:hover {
  text-decoration: underline;
}

div.with-tooltip {
  display: inline-block;
}
div.with-tooltip div.tooltip {
  position: absolute;
  display: none;
  visibility: hidden;
  max-width: 300px;
  color: #fff;
  background-color: #5171be;
  border: solid 1px #373c8d;
  border-radius: 6px;
  text-align: center;
  padding: 1rem;
  /*
  	  	&::after {
  	  	  content: " ";
  	  	  position: absolute;
  	  	  bottom: 100%; // At the bottom of the tooltip
  	  	  left: 50%;
  	  	  margin-left: -8px;
  	  	  border-width: 8px;
  	  	  border-style: solid;
  	  	  border-color: transparent transparent #373c8d transparent;
  }
  */
  z-index: 999;
}
div.with-tooltip div.tooltip.blue {
  background-color: #5171be;
}
div.with-tooltip div.tooltip.green {
  background-color: #5ea458;
}
div.with-tooltip:hover .tooltip.down {
  position: absolute;
  visibility: visible;
  display: block;
  z-index: 999;
  animation: fadeIn ease 1s;
  -webkit-animation: fadeIn ease 1s;
  -moz-animation: fadeIn ease 1s;
  -o-animation: fadeIn ease 1s;
  -ms-animation: fadeIn ease 1s;
  -webkit-transition: margin-top 0.2s ease-in-out;
  -moz-transition: margin-top 0.2s ease-in-out;
  -o-transition: margin-top 0.2s ease-in-out;
  -ms-transition: margin-top 0.2s ease-in-out;
  transition: margin-top 0.2s ease-in-out;
  margin-top: 0.3rem;
}

div#content {
  display: flex;
  flex-direction: row;
  flex: 1;
  justify-content: space-between;
  width: 100%;
  max-width: 999px;
  padding: 10px 0 5px 0;
  margin: 0 auto 0 auto;
}
div#content.frontpage {
  max-width: none;
}
div#content.full {
  max-width: none;
}

div.sidebar {
  flex: 1 0 auto;
  background-color: white;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(225, 225, 225, 0.5) 100%);
  border: solid 1px rgba(210, 210, 210, 0.7);
  border-left: none;
  border-bottom: none;
  max-width: 20rem;
  padding: 1rem;
  margin-right: 1rem;
}

div#main {
  flex: 10 0 auto;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

div#footer, footer {
  margin-top: auto;
  width: 100%;
  padding: 10px 0 0 0;
  margin-top: 10px;
  color: #e1e1e1;
  background-color: #777777;
}
div#footer a, footer a {
  color: #f1f1f1;
}
div#footer div.footer_legals, footer div.footer_legals {
  padding: 1rem;
  text-align: center;
}
div#footer div.footer_legals a, footer div.footer_legals a {
  color: #f1f1f1;
}
div#footer div.footer_legals a:hover, footer div.footer_legals a:hover {
  color: #fff;
  text-decoration: underline;
}
div#footer div.footer_copyright, footer div.footer_copyright {
  color: #c1c1c1;
  background-color: #5b5b5b;
  padding: 10px 0 10px 0;
  text-align: center;
}
div#footer div.footer_copyright a:hover, footer div.footer_copyright a:hover {
  color: #fff;
  text-decoration: underline;
}

@media screen and (max-width: 600px) {
  #header #logo {
    padding-left: 2rem;
  }
  #header #menu-bar {
    position: absolute;
    left: 0;
    top: 0;
    clear: both;
  }
  div#built-with-eiffel {
    display: none;
  }
  div#content {
    flex-direction: column;
  }
  #menu-bar div.menu li.icon {
    display: inline-block !important;
  }
  #menu-bar div.menu li:not(.icon) {
    display: none !important;
  }
  #menu-bar div.menu.responsive {
    background-color: white !important;
  }
  #menu-bar div.menu.responsive li:not(.icon) {
    height: auto !important;
    display: block !important;
    text-align: left;
  }
  #menu-bar div.menu.responsive li.icon {
    height: auto !important;
    display: block;
  }
}
a {
  color: var(--color-link);
  text-decoration: none;
}

div#message li.error,
div.error {
  color: red;
  background-color: #fdd;
  /* border: solid 1px #f00; */
  padding: 10px;
}

div.login-box {
  border: solid 3px #6a6;
  background-color: #eee;
}

div#block-register fieldset {
  border: solid 3px #3b53c9;
  background-color: #eee;
}
div#block-register fieldset input[type=submit],
div#block-register fieldset button {
  background-color: #3b53c9;
  color: #fff;
}

div#block-register input[type=text],
div#block-register input[type=email],
div#block-register input[type=password],
div#block-register textarea,
div.login-box input[type=text],
div.login-box input[type=email],
div.login-box input[type=password],
div.login-box textarea {
  margin-bottom: 0.3rem;
  padding: 0.4rem 0.6rem;
  border: solid 1px #ccc;
  border-radius: 0.5rem;
}
div#block-register label,
div.login-box label {
  font-weight: bold;
  font-size: 0.9rem;
}
div#block-register input[type=submit],
div#block-register button,
div.login-box input[type=submit],
div.login-box button {
  margin-top: 0.3rem;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  background-color: #5ea458;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}
div#block-register input[type=submit].link,
div.login-box input[type=submit].link {
  background-color: transparent;
  color: #1b2ace;
  border: none;
  font-size: 0.9rem;
  font-weight: bold;
}
div#block-register input[type=submit].link:hover,
div.login-box input[type=submit].link:hover {
  color: #1b2ace;
  text-decoration: underline;
}

div.menu.tabs ul.horizontal {
  list-style-type: none;
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
}
div.menu.tabs ul.horizontal li {
  padding-left: 1em;
  padding-right: 1em;
  padding-top: 2px;
  border-left: solid 1px #ccc;
  border-top: solid 2px #eee;
  border-bottom: solid 1px #ddd;
}
div.menu.tabs ul.horizontal li:hover {
  font-weight: bold;
}
div.menu.tabs ul.horizontal li.active {
  border-top: solid 2px #ccc;
  border-bottom: solid 1px transparent;
}
div.menu.tabs ul.horizontal li:last-child {
  border-right: solid 1px #ccc;
}

h1, h2, h3 {
  color: #1982D1;
}

form div.horizontal > div {
  padding: 1rem;
  display: inline-block;
}

form div.description.collapsible div:nth-child(0n+1):not(expanded)::before {
  content: "[+] ";
}
form div.description.collapsible div:nth-child(0n+1).expanded::before {
  content: "[ - ] ";
}

ul.pagination li {
  margin-right: 0.5em;
  display: inline-block;
}

input.primary-button {
  background-color: #5ea458;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
}
