@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@200;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@200;400&display=swap');

* {
  box-sizing: border-box;
}

:root {
  --banner-blue: rgb(32, 36, 51);
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'roboto', 'sans-serif';
  background: url('../pics/bg-body.png') #fff;
  scroll-behavior: smooth;
}

p {
  text-align: justify;
}

.wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1300px;
  margin: 0 auto;
}

.header {
  display: grid;
  background-image: url(/pics/headers/banner.jpg);
  background-size: cover;
  position: relative;
  line-height: 1.1;
}

.header-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 80%;
  padding: 10px 20px;
  font-style: normal;
  color: white;
  z-index: 1;
}


.header-grad {
  background-image: linear-gradient(to right, var(--banner-blue), var(--banner-blue) 50%, rgba(255, 0, 0, 0));
  width: 100%;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}


.header h1 {
  font-size: 1.5rem;
}

.header img {
  max-height: 50px;
  margin-right: 20px;
}

img {
  max-width: 100%;
}

.title {
  margin: 10px 0 10px 0;
  overflow: hidden;
}

.align-left {
  text-align: left !important;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

h2 {
  font-weight: 700;
  font-size: 20px;
  color: #2874A6;
  padding: 20px 5px 0 0;
  background: #fff;
  letter-spacing: 2px;
  margin: 0px;
}

h3 {
  font-weight: 400;
  color: #2874A6;
  letter-spacing: 1px;
  margin: 0px;
  padding: 10px 0;
}

h3 a {
  text-decoration: none;
  color: #2874A6;
}

h4 {
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  color: #194e6e;
  margin: auto;
  padding: 10px 5px 0 0;
}

h5 {
  font-size: 16px;
  font-weight: 500;
  font-style: normal;
  color: #194e6e;
  margin: 20px;
  padding: 10px 5px 0 0;
}

#menu-toggler {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

#menu-toggler div {
  background-color: var(--banner-blue);
  border-radius: 5px;
  flex: 1;
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  flex-wrap: nowrap;
}

.worker-content ul .ll2 {
  list-style-type: circle;
}

.worker-content ul .ll3 {
  list-style-type: disc;
}

main p {
  line-height: 24px;
}

.img-right {
  float: right;
  margin: 0 0 20px 20px;
}

.img-right p {
  line-height: 16px;
  margin: 0;
  font-size: 14px;
  text-align: center;
  color: #343639;
}

.img-right img {
  min-width: 280px;
}

.larger img {
  min-width: 350px !important;
}

.lib ul {
  margin: 10px 0px;
}

.lib .marked_list {
  margin: 10px 20px;
  list-style: disc;
}

nav {
  /* background: #8ba4c8; */
  background-color: tan;
  border-top: 3px solid rgba(22, 68, 105, 1);
  z-index: 10;
  margin: 0;
  padding: 0;
}

nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

#elkh {
  padding: 0;
}

nav li {
  display: flex;
}

nav a {
  flex: 1;
  /* <--- kitölti a teljes li-t */
  display: flex;
  /* <--- hogy a szöveget is középre tudd tenni */
  align-items: center;
  /* vertikális közép */
  justify-content: center;
  /* horizontális közép (opcionális) */
  text-align: center;
  padding: 13px 25px;
  font-size: 20px;
  letter-spacing: 2px;
  text-decoration: none;
  color: rgb(43, 56, 62);
  font-weight: 700;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.5)
}

nav a:hover {
  background: rgba(170, 133, 91, 0.267);
  color: rgb(4, 58, 83);
}

nav img {
  max-width: 100%;
  padding: 40px 25px 40px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3)
}

nav .has_submenu {
  position: relative;
}

.l1 {
  list-style: disc;
  padding-left: 20px;
}

.l1 li {
  line-height: 24px;
}

.l1>li {
  padding: 10px 0;
}

.l2 {
  list-style: circle;
  padding-left: 25px;
}

.l3 {
  margin: 10px 0;
  list-style: none;
}

.l3 li {
  line-height: 22px;
}

p {
  margin: 10px 0;
}

.read_more a {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.7);
}

.read_more a:hover {
  text-decoration: underline overline;
}

.read_more {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 25px;
}

.img-right img {
  max-width: 250px;
  min-width: 250px;

}

.fig-caption {
  max-width: 250px;
  min-width: 250px;
  padding-bottom: 15px;
}

nav .has_submenu:hover .submenu {
  display: block;
}

nav .submenu {
  position: absolute;
  width: 300px;
  top: 50px;
  background: tan;
  display: none;
  z-index: 10;
}

nav .submenu a {
  display: block;
  padding: 13px 15px;
  font-size: 18px;
  letter-spacing: 1px;
  text-decoration: none;
  color: rgb(43, 56, 62);
  font-weight: 500;
  text-shadow: none;
  border-bottom: rgba(68, 113, 156, 0.2) 1px solid;
}

nav .submenu a:hover {
  color: rgb(4, 58, 83);
}


.people {
  font-size: 14px;
}

.people-sep {
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  padding: 20px 0 15px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2874A6;
  text-decoration: underline;
  text-shadow: 2px 1px rgba(66, 69, 72, .2);
}

#topButton {
  display: none;
  position: fixed;
  bottom: 10px;
  right: 50%;
  z-index: 99;
  font-size: 18px;
  border: solid 2px rgb(51, 51, 51);
  ;
  outline: none;
  background-color: rgba(255, 255, 255, .5);
  background-image: url('../pics/scrollUp.png');
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  cursor: pointer;
  padding: 20px;
  border-radius: 50%;
}

#myBtn:hover {
  background-color: #555;
}

.mtmt-btn {
  margin: 4px 17px 0;
  max-width: 39%;
}

.aside-title {
  color: cornflowerblue !important;
  padding: 20px 0;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
}



.links-and-contact {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  gap: 20px;
  padding: 20px 40px;
}


.links-and-contact a {
  text-decoration: none;
  font-weight: bold;
  padding: 5px 0;
  color: white;
}

.links-and-contact a:hover {
  color: lightsteelblue;
}

.links-and-contact h3 {
  padding: 0;
  font-size: 16px;
  font-weight: 400;
  text-transform: capitalize;
}

.language-selector-box {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  z-index: 5;
}


.language-selector a {
  display: inline;
  padding: 0;
  font-size: 16px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.language-selector a:hover {
  text-decoration: underline;
}

footer {
  border-top: 5px solid rgba(22, 68, 105, 1);
  background: url('../pics/footerbg1.png') repeat;
  padding: 5px;
}

footer a {
  margin: 0;
  color: rgb(206, 206, 206);
  font-size: 16px;
  text-decoration: none;
  text-align: center
}

footer img {
  max-height: 28px;
}

.footer_container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  align-content: center;
  padding: 0 20px;
}


#fc {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#fr {
  order: 3;
  font-style: italic;
  color: rgb(206, 206, 206);
  font-size: 16px;

}

.worker-h1 {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 5px 15px;
}

.worker-h2 {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 22px;
  padding: 0px 15px 0px 15px;
}

.worker-h3 {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  padding: 2px;
}

.worker-content ul {
  list-style: square;
  padding: 0px 25px 0px 35px;
  line-height: 18px;
  margin: 5px 0px;
}

.worker-content li {
  padding: 0px 5px;
  line-height: 18px;
  text-align: justify;
  text-justify: inter-word;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: normal;
}

.worker-content-no-marker ul {
  margin: 5px 0;
  list-style: none;
  padding: 0px 15px;
  line-height: 18px;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: normal;
}

.worker-content-no-marker img {
  max-width: 33%;
}

.buttons {
  line-height: 25px;
  margin: 0 15px 0 15px;
}

.buttons a {
  text-decoration: none;
  margin-right: 0px;
}

.buttons a img {
  max-width: 22%;
}

.title2 {
  margin: 0 0 2px;
  overflow: hidden;
}

.title3 {
  margin: 0 0 8px 20px;
  font-weight: 400;
}

.hidden {
  display: none;
}

.worker-h3 {
  padding: 20px;
  border-bottom: 1px solid lightgray;
}

.worker-button a {
  display: block;
  color: #354052;
  padding: 15px;
  font-size: 14px;
  text-decoration: none;
  line-height: 20px
}

.worker-header {
  display: flex;
  flex-wrap: nowrap;
  background: rgb(35, 56, 77);
  background: var(--banner-blue);
  justify-content: center;
  align-items: center;
  min-height: 250px;
}

.worker-header-left {
  flex-basis: 60vw;
  margin: 0 0 0 20px;
  order: 1;
}

.worker-header-right {
  flex-basis: 40vw;
  order: 2;
}

.worker-img {
  margin: 0;
  padding: 0;
  min-height: 250px;
  max-height: 250px;
  display: block;
  margin: auto;
}

.lab-header {
  display: flex;
  flex-wrap: nowrap;
  background: rgb(66, 69, 72);
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
  min-height: 150px;
  max-height: 150px;
  position: relative;
}

.lab-header-left {
  flex-basis: 60vw;
  margin: 0 0 0 20px;
  order: 1;
}

.lab-header-right {
  flex-basis: 40vw;
  order: 2;
  position: absolute;
  top: 0;
  right: 0;
  min-height: 150px;
  max-height: 150px;
}

.lab-img {
  margin: 0;
  padding: 0;
  min-height: 150px;
  max-height: 150px;
  display: block;
  margin: auto;
}

.lab-h1 {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 5px 15px;
}

@font-face {
  font-family: 'fontello';
  src: url('../font/fontello.eot?96500972');
  src: url('../font/fontello.eot?96500972#iefix') format('embedded-opentype'),
    url('../font/fontello.woff2?96500972') format('woff2'),
    url('../font/fontello.woff?96500972') format('woff'),
    url('../font/fontello.ttf?96500972') format('truetype'),
    url('../font/fontello.svg?96500972#fontello') format('svg');
  font-weight: normal;
  font-style: normal;
}

[class^="icon-"]:before,
[class*=" icon-"]:before {
  font-family: "fontello";
  font-style: normal;
  font-weight: normal;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 1em;
  text-align: center;
  margin-right: 5px;
}

.icon-print:before {
  content: '\e800';
}

.icon-mail:before {
  content: '\e801';
}

.icon-phone:before {
  content: '\e802';
}

.icon-location:before {
  content: '\e803';
}

.icon-home:before {
  content: '\e804';
}

.icon-fax:before {
  content: '\f1ac';
}

.icon-copyright:before {
  content: '\f1f9';
}

.icon-at:before {
  content: '\f1fa';
}

.icon-pdf:before {
  content: '\1f5ce';
}

table {
  border-collapse: collapse;
  width: 100%;
}

thead {
  text-align: left;
  font-size: 18px;
  font-weight: 700;
}

td,
th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #dddddd;
}

.custom-list {
  counter-reset: list;
  text-align: left;
}

.custom-list>li {
  list-style: none;
}

.custom-list>li:before {
  content: counter(list) ") ";
  counter-increment: list;
  margin: 0px 0.5rem 0px -1.7rem;
}

ul.rg-list {
  margin-left: 20px;
}

.rg-list li {
  padding: 5px;
  list-style-type: disc;
}



/***********************************************************/

main {
  padding: 60px 100px;
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  border-left: gray solid 1px;
  border-right: gray solid 1px;
}

main.home {
  padding: 0;
  border-left: none;
  border-right: none;
}

.language-selector-box {
  position: absolute;
  right: 10px;
  top: 10px;
  color: white;
}

.cards {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.cards h1 {
  margin-top: 80px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 30%;
  width: 100%;
  min-height: 250px;
  background-size: cover;
  background-position: center;
}

.card>div {
  transition: opacity 1s ease-in-out;
  background-color: rgb(255, 255, 255);
  backdrop-filter: blur(10px);
  width: 100%;
  height: 100%;
  padding: 50px;
  border: solid 1px black;
  opacity: 0;
}


.card-pointer {
  cursor: pointer;
}

.card h2 {
  position: absolute;
  margin: 0;
  padding: 0;
  text-align: center;
  transition: all 0.5s ease-in-out;
  z-index: 5;
  background-color: rgba(0, 0, 0, 0);
  padding: 40px 60px;
  max-width: 80%;
  backdrop-filter: blur(15px);
  color: white;
  border-radius: 5px;
  font-size: x-large;
}

.card:hover h2 {
  color: rgba(0, 0, 0, 0);
  background-color: rgba(0, 0, 0, 0);
  transform: scale(0);

}

.card a {
  text-decoration: none;
  color: darksalmon;
  font-weight: bold;

}

.card:hover div {
  opacity: 1;
}

.card-description>div {
  max-width: 800px;
  width: fit-content;
  text-align: justify;
  margin: auto;
}


.card-description>h4 {
  max-width: 800px;
}

.card-c1 {
  display: grid;
  grid-template-columns: auto;
  gap: 20px;
  width: 100%;
}

.card-c2 {
  display: grid;
  grid-template-columns: auto auto;
  gap: 20px;
  width: 100%;
}

.card-c2-g12 {
  grid-template-columns: 1fr 2fr;
}


.card-c2-g23 {
  grid-template-columns: 2fr 3fr;
}


.card-c2-g34 {
  grid-template-columns: 3fr 4fr;
}



.card-c2-g45 {
  grid-template-columns: 4fr 5fr;
}


.card-c3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  width: 100%;
}

.card-bg-mission {
  background-image: url(/pics/home/image01.jpg);
}

.card-bg-contact {
  background-image: url(/pics/home/image02.jpg);
}

.card-bg-kgvgy {
  background-image: url(/pics/home/image03.jpg);
}

.card-bg-activities {
  background-image: url(/pics/home/image04.jpg);
}

.card-bg-nkkp {
  background-image: url(/pics/home/image05.jpg);
}

.card-bg-organization {
  background-image: url(/pics/home/image06.jpg);
}

.card-bg-docs {
  background-image: url(/pics/home/image07.jpg);
}

.card-bg-herkules {
  background-image: url(/pics/home/image08.jpg);
}

.card-bg-otdk {
  background: #020024;
  background: linear-gradient(200deg, rgba(2, 0, 36, 1) 0%, rgb(10, 10, 66) 35%, rgb(13, 81, 95) 100%);
}

.card-bg-vulkan {
  background: #2A7B9B;
  background: linear-gradient(200deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 50%, rgba(237, 221, 83, 1) 100%);
}

.card-bg-hatvani-yae {
  background: linear-gradient(200deg, rgb(112, 22, 196) 0%, rgb(15, 107, 182) 50%, rgb(13, 191, 204) 100%);
}

.card-logo {
  max-height: 100px;
  width: auto;
}

.card h2 {
  display: flex;
  flex-direction: column;
}

.empty-50px {
  height: 50px;
}

.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--banner-blue);
  color: white;
}

body {
  background-color: white;
  background-image: none;
}

.date {
  color: gray;
  text-align: right;
}

.nowrap {
  white-space: nowrap;
}

.gallery {  
  width: 90%;
  margin: 40px auto;
  column-count: 2;
  column-gap: 1rem;
}

.gallery img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  break-inside: avoid;
}

@media only screen and (max-width: 1250px) {
  #menu a {
    font-size: large;
    padding: 15px 20px;
  }
}

@media only screen and (max-width: 1150px) {
  #menu a {
    font-size: medium;
    padding: 15px 15px;
  }
}


@media only screen and (max-width: 1000px) {
  #menu a {
    font-size: normal;
    padding: 10px 10px;
  }
}


@media only screen and (max-width: 1000px) {
  #menu a {
    font-size: small;
    padding: 10px 10px;
  }
}

@media only screen and (max-width: 750px) {
  .card:hover h2 {
    color: white;
    transform: scale(1);

  }

  .card h2 {
    position: relative;
    margin: 20px auto;
    font-size: large;
  }

  .card div {
    opacity: 1;
    padding: 10px;
  }


  /*********************************/


  .header-grad {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .header-content {
    flex-wrap: wrap;
    width: 100%;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0);
  }

  .header-content>div {

    width: 100%;
  }

  #menu {
    flex-direction: column;
  }

  .card-c1,
  .card-c2 {
    grid-template-columns: auto;
  }

  .links-and-contact {
    flex-direction: column-reverse;
  }

  .card h2 {
    position: relative;
    margin: 20px auto;
    font-size: large;
  }

  .card div {
    opacity: 1;
    border: none;
    padding: 10px;
  }

  .card {
    background-attachment: fixed;
  }

  main {
    padding: 40px 30px;
  }

  .img-right {
    float: none;
    margin-top: 20px;
  }

  .lab-h1 {
    font-size: large;
  }

  p.fig-caption {
    margin: auto;
  }

  #menu>li {
    text-align: left;
    width: 100%;
  }

  .people {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* smooth scrolling on iOS */
  }

  .people table {
    width: 100%;
  }

  .worker {
    padding: 0;
  }

  .worker-h3 {
    padding: 20px 10px;
  }

  .worker-header {
    height: fit-content;
    min-height: 50px;
  }

  .worker-img {
    min-height: 0;

  }

  .worker .worker-h1 {
    font-size: large;
  }

  .worker .worker-h2 {
    font-size: medium;
  }

  .worker ul {
    padding-right: 5px;
  }

  #menu-toggler {
    display: flex;
    margin: auto;
  }

  nav {
    padding: 10px;
  }


  #menu {
    display: none;
    margin-top: 10px;
  }

  #menu>li {
    border-top: 1px solid #194e6e;
  }

  nav .submenu {
    display: block;
    position: relative;
    top: auto;
    width: 100%;
  }

  .submenu li {
    border-top: 1px solid #194e6e;
  }

  .submenu a {
    font-size: smaller;
    padding-left: 30px !important;
  }

  .footer_container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer_container>* {
    width: 60%;
    text-align: center;
    margin: 5px auto !important;
    font-size: small !important;
  }

  #fl {
    order: 2;
  }

  #fc {
    flex-direction: column;
    order: 1;
  }

  #fc a {

    font-size: small !important;
  }

  .gallery {  
  width: 100%;
  margin: 40px auto;
  column-count: 1;
}
}

@media only screen and (min-width: 750px) {
  #menu {
    display: flex !important;
  }
}

/* Turn off hover on cards when it's a touchscreen only  */
@media (hover: none) and (pointer: coarse) {
  .card:hover h2 {
    color: white;
    transform: scale(1);

  }

  .card h2 {
    position: relative;
    margin: 20px auto;
    font-size: large;
  }

  .card div {
    opacity: 1;
    padding: 10px;
  }

}