@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100;200;300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-color: #07415F; /*rgba(24, 24, 198, 0.7);#002240;*/
  --secondary-color: #54546d;
  --dark-color: #002240;
  --light-color: #f4f4f4;
  --accent-color: #2FAFFF; /*#009D09;  #e36686; */
  --link-color: #5C5CD6;
  --success-color: #40B9C8; /* #5cb85c; */
  --error-color: #d9534f;
  --nav-color: #d8d6d6;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: "Montserrat", "Lato", "Josefin Sans", sans-serif;
  color: #333;
  line-height: 1.6;
  /* background-image: url("../images/background-rombos.png"); */
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: var(--link-color); /* #54546d #0e7bed*/
  font-weight: 800;
}

h1 {
  font-weight: 400;
  line-height: 1.2;
  margin: 20px 0;
}

h2 {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  margin: 1.5rem 0;
}

p {
  margin: 10px 0;
}
/*
img {
  width: 100%;
}*/

hr {
  height: 5px;
  background-color: var(--primary-color);
  margin: 40px 0px 20px;
}

.container {
  max-width: 1200px; /* 1100px */
  margin: 0 auto;
  overflow: auto;
  padding: 0 40px;
}

.card {
  background-color: #fff;
  color: #333;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  padding: 14px;
  margin: 10px;
}

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.section-header {
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
}

.section-header i {
    color: var(--success-color);
}

.section-header h2 {
  font-size: 2rem;
}

/* **************** Navbar *************** */
.navbar {
  background-color: var(--primary-color);
  color: var(--nav-color);
  height: 75px; /* 98px */
}

.navbar .flex {
  justify-content: space-between;
}

.navbar-image {
  position: relative;
  /* top: 60px; */
  height: auto;
  width: 200px;
  /* background-color: var(--nav-color); */
  border-radius: 5px;
}

.navbar ul {
  display: flex;
  flex-wrap: wrap;
  padding-left: 20px;
}

.navbar a {
  color: var(--nav-color);
  padding: 10px;
  margin: 0 5px;
}

.navbar a:hover {
  border-bottom: 8px var(--success-color) solid;
}

.navbar a.language {
  background-color: var(--nav-color);
  border-radius: 50%;
  font-weight: 600;
  color: #333;
}

.navbar a.language:hover {
  border: none;
}

.active {
  font-weight: bold;
  border-bottom: 8px var(--success-color) solid;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 140px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}
.dropdown-content a {
  float: none;
  color: black;
  padding: 5px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}
.dropdown-content a:hover {
  background-color: #ddd;
  border-bottom: 5px var(--success-color) solid;
}
.dropdown:hover .dropdown-content {
  display: block;
}
/* **************** Navbar *************** */

/* **************** Header *************** */
.header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 2rem 0;
}

.header h1 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.6;
}

.header .container {
  text-align: center;
  padding: 0px 130px;
}

.header p {
  margin: 40px 0px;
  font-style: italic;
}

.home-header-text h1 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.6;
}
/* **************** Header *************** */

/* **************** Footer *************** */
.footer * {
  color: #fff;
}

.footer {
  background-color: var(--dark-color);
  padding: 4rem 0;
}

.footer .grid-3 {
  justify-items: center;
  grid-template-columns: 45% 25% 25%;
}

.footer .funded {
  font-style: italic;
  font-size: 0.9em;
  text-align: justify;
  padding-bottom: 15px;
}

.footer nav ul li a:hover {
  /* text-decoration: underline; */
  border-bottom: 4px var(--success-color) solid;
}

.footer .social {
  margin: 20px 0px;
}

.footer .social a i {
  margin: 0 10px;
  transition: 0.4s;
  transition-property: transform;
}

.footer .social a i:hover {
  transform: scale(1.5);
}

.research-gate:hover {
  color: #50cdbc;
}

.youtube:hover {
  color: #f32711;
}

.facebook:hover {
  color: #5379ca;
}
/* **************** Footer *************** */

/* **************** RESPONSIVE *************** */
/* Resizing navigation */
@media (max-width: 1055px) {
  .navbar {
    height: 83px;
  }

  .navbar ul {
    line-height: 2.6em;
    /* justify-content: center; */
    /* align-items: center; */
  }

  .header .container {
    text-align: center;
    padding: 0px 40px;
  }
}

/* Tablets and under */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .flex {
    justify-content: flex-start;
  }

  .navbar {
    height: 130px;
  }

  .footer .grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .footer .grid-3 {
    justify-items: flex-start;
  }
}

/* Mobile */
@media (max-width: 500px) {
  h2 {
    font-size: 1.6rem;
  }

  .navbar {
    height: 330px;
  }

  .navbar .flex {
    flex-direction: column;
  }

  .navbar ul {
    line-height: 1em;
    flex-direction: column;
    padding-left: 0px;
  }

  .navbar ul li {
    padding: 10px;
    margin: 3px;
    /* background-color: rgba(133, 132, 132, 0.1); */
    text-align: center;
  }

  .header .container {
    padding: 10px;
  }
}
/* **************** RESPONSIVE *************** */
