@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans&family=Poppins&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root{
  --footer_bg_color: #e6fff2;
  --header_color: #004225;
  --bg-color-list: #e9ffdb;
  --hover-color: #111a00;
  --hover-color-list: #d5ff80;

  --scale: 0; 
  --arrow-size: 10px;

  margin-left: auto;
  margin-right: auto;
}

body {
  display: flex;

  justify-content: center;

  height: 10em;

  margin: 0;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; 
  font-size: 1.0rem;
  font-weight: 400;

  line-height: 1.5;
  width: min(80%, 140rem);

  display: grid;
  grid-template-rows: 5em 3vh auto 5em;
  grid-template-columns: 3.0fr 7.5fr 1.0fr 0.01fr;
  grid-template-areas:
    ". header header ."
    ". hero hero ."
    ". main sidemenu ."
    ". footer footer .";

  color: var(--header-color);
  text-decoration: none;
}

.all__the__buttons {
  float: left;
  padding: 1.5em;
}

.container {
  width: 95%;
  margin: 0 auto;
  max-width: 1024px;
}

header {
  grid-area: header;	
  background: var(--header_color);
}

header::after {
  content: '';
  display: table;
  clear: both;
}

.hero {
  grid-area: hero;	
}

.aside {
  margin-top: 15px;
  grid-area: sidemenu;
  margin-left: 3em;

  color: var(--header_color);
}

main {
  margin-top: 15px;

  flex: 1 1 80%; 
  grid-area: main;
  margin-left: 1em;
  background: white;
}

footer {
  grid-area: footer;
  background: var(--footer_bg_color);
}

.home {
  font-size: 33px;
}


.logo {
  float: left;
  margin-left: 1em;
  padding: 4px 0;
}

nav {
  float: right;
}

nav ul {
  margin-top: 2px;
  margin: 7px;
  padding: 7px;
  list-style: none;
}

nav li {
  display: inline-block;
  margin-left: 30px;
  padding-top: 15px;
  position: relative;
}

nav a {
  color: #e6e6ff;
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
}

nav a:hover {
  color: #000;
  background-color: #ffffc0;
}

nav a::before {
  content: '';
  display: block;
  height: 5px;
  background-color: #e6e6ff;

  position: absolute;
  top: 0;
  width: 0%;

  transition: all ease-in-out 250ms;
}

nav a:hover::before {
  width: 100%;
}

.home_page {
  display: grid;
  gap: 0.8em;
  grid-template-rows: repeat(3, 0.55fr);
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-areas: "row_1" "row_2" "row_3"
}

.home_top_img {
  grid-area: row_1;
  grid-column: span 2;
}

.home_top_text {
  grid-area: row_1;
  grid-column: 3 / 5;
}

.home_middle_text {
  grid-area: row_2;
  grid-column: span 2;
}

.home_middle_img {
  grid-area: row_2;
  grid-column: 3 / 5;
}

.home_bottom_text {
  grid-area: row_3;
  grid-column: 3 / 5;
}

.home_bottom_img {
  grid-area: row_3;
  grid-column: span 2;
}

ul.side-menu li {
  border: 1px solid #e6ffe6;

  list-style: none;
  text-decoration: none;

  margin-top: -1px; /* Prevent double borders*/ 
  padding: 12px;
}

ul.side-menu a {
  font-size: 14px;
  text-decoration: none;
}

ul.side-menu li:hover {
  color: var(--hover-color);
  background-color: #d5ff80;
}

.information__list {
  display: grid;
  grid-template-columns: 3em [blank] 1fr [col_1] 1fr [col_2];
  grid-template-rows: min-content auto;
  grid-template-areas: "row_1";

  grid-row-gap: 2em
}

.blank_column {
  grid-area: row_1;
  grid-column: 1 / 2;
}

.column_1 {
  grid-area: row_1;
  grid-column: col_1
}

.column_2 { 
  grid-area: row_1;
  grid-column: col_2;
}

.hyperlink__title {
  margin-top: 4px;
}

.hyperlink__entry {
/*  list-style: none;*/
  text-decoration: none;
  color: var(--header_color);
  position: relative;
}

/*
 * Webpage with information sources
 * This adds a link hint to each entry
 *
 * *****/
.hyperlink__entry::before,
.hyperlink__entry::after {
  position: absolute;

  font-size: 80%;

  top: -0.25rem;
  transform:
     translateX(-50%)
     translateY(-100%)
     scale(var(--scale));
  transition: 150ms transform;
  transform-origin: bottom center;
}

.hyperlink__entry::before,
.hyperlink_after::after {
  content: attr(link-hint);
  color: var(--header-color);
  background: var(--bg-color-list);

  display: block;
  padding: .5rem;
  border-radius: 0.5rem;
  text-align: left;
  
  width: 50ch;
  /*
  --translate-y: calc(100% - var(--arrow-size));
  width: max-content;
  max-width: 100%;
 */
}

.hyperlink__entry:hover::before,
.hyperlink_after::after {
  --scale: 1;
  background-color: var(--hover-color-list);
}

.hyperlink__entry::after {
  content: '';
/*
  --translate-y: calc(-1 * var(--arrow-size));

  border: var(--arrow-size) solid transparent;
  border-top-color : var(--bg-color-list);
  */
}

.hyperlink_no_hint {
  text-decoration: none;
  color: var(--header_color);

}

.hyperlink_no_hint:hover {
  background-color: var(--hover-color-list);
}

/*
.hyperlink__entry > ::marker {
  color: red;
  font-size: 1em;
  content: '✓';
}
*/

/*
 * General items
 *
 * ***/
.bullet__list {
  background-color:  var(--bg-color-list);
}

.bullet__list > ::marker {
  color: red;
  font-size: 1em;
  content: '✓';
}

.list_column {
  padding-left: 2px;
}

.simple__list {
  background-color: var(--bg-color-list);
}

/* required input field */
.required__field {
  color: var(--header_color);
}

.required__field::after {
  content: '★';

  font-size: 60%;
  color: red;
}

.element  {
  margin:1px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

/*
 * Used for the admin (beheerder webpages
 * ***/
.mid-block
{
  margin-top: 5px;
  background-color:#ffe465;
  text-transform:capitalize;
  font-size: 19px;
  box-shadow:inset 0px 5px 5px -4px rgba(50, 50, 50, 0.55), inset 0px -4px 5px -4px rgba(50, 50, 50, 0.55);;
}

.content-section {
  padding: 10px 10px;
  border: 1px solid #dddddd;
  border-radius: 3px;
  margin-bottom: 20px;
}

h1 {
  font-family: 'Poppins';
  font-size: 29px;
  font-weight: 500;
  
  margin-top: 5px;
  margin-right: 20px;
  margin-bottom: 1rem;

  color: #004225;
}

h2 {
  font-size: 23px;
  font-weight: 450;

  margin-top: 0px;
  margin-bottom: 10px;
}

h2 a:link {
  color: #264d00;
  text-decoration: none;
}

h2 a:visited {
  color: #d9b3ff;
}

h2 a:hover {
  color: #004225;	
  background-color: #f2ffe6;
}

h3.side-menu {
  font-size: 23px;
  font-weight: 550;
}

ul.hyperlink {
  margin-top: 0px;
}

article.article-content {
  margin-top: 10px;
  margin-bottom: 32px;

  white-space: pre-line;
}

.article-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.article-metadata {
  columns: 640px;
  padding-bottom: 4px;
  border-bottom: 1px solid #2c3e4c
}

.article-svg {
  width: 25px;
  height: 15px;
  vertical-align: middle;
}

p {
  margin-top: 0px;
  margin-bottom: 3px;
  line-height: 1.35;
}

p.intro {
  font-size:1.13em;
  font-weight: 500;
}

p.extra_space {
  margin-bottom: 1em;
}

.italic {
  font-style: italic;
}

/*
.bg-nyanza {
  background-color: #e9ffdb;
}
*/

.text-muted{
  color: #b3b3cc;
  font-size: 75%;
  font-weight: 300;
}

.copyright {
  font-size: 50%;

  margin-top: 3em;
  margin-left: 2em;
}

.account-img {
  height: 55px;
  width: 55px;
}

.button-img {
  height: 32px;
  width: 32px;
}

.account-heading {
  font-size: 2.5rem;
}

.vertical-menu {
  margin-left: 2em;
  width: 80%;

  display: block;
  padding: 22px;

  list-style: none;
  text-decoration: none;
  background-color: #e6fff2;
}

p.vertical-menu{
  color: black;
  font-size: 15px;
}

.vertical-menu a:hover{
  background-color: #ffffcc;
  color: #a27e37;
}

.tool__tip {
  position: relative;
  border-bottom: 1px dashed; 
}


.tooltip:before {
  content: attr(data-text);
  position:absolute;
  
  top:50%;
  transform:translateY(-50%);
  
  left:100%;
  margin-left:15px;
  
  width:200px;
  padding:10px;
  border-radius:10px;
  background:#000;
  color: #fff;
  text-align:center;

  display:none; 
}

.tooltip:hover:before {
  display:block;
}

.tooltip.left:before {
  left:initial;
  margin:initial;

  right:100%;
  margin-right:15px;
}

