* {
  box-sizing: border-box;
}

html, body {
background:unset;
font-family: 'Montserrat', 'Open Sans', sans-serif;
}

/* language changer */

.lang {
  width: 40px;
  height: 40px;
  animation: bounceIn 0.6s;
  transform: rotate(0deg) scale(1) translateZ(0);
  transition: all 0.4s cubic-bezier(.8,1.8,.75,.75);
  cursor: pointer;
}

.lang:hover {
  transform:  rotate(10deg) scale(1.2);
}


@keyframes bounceIn {
  0% {
    opacity: 1;
    transform: scale(.3);
  } 

  50% {
    opacity: 1;
    transform: scale(1.05);
  } 

  70% {
    opacity: 1;
    transform: scale(.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.logo:hover {
  transform: rotate(10deg) scale(1.1);
}

/*.chooseLang {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
}

.chooseLang div {
  height: 60px;
  position: relative;
  top: 5px;
  left: -48px;
  width: 200px;
}

.lang {
  cursor: pointer;
  display: block;
  height: 40px;
  position: absolute;
  opacity: 0;
  left: 48px;
  top: 0;
  -webkit-transition: 0.76s;
  -o-transition: 0.76s;
  transition: 0.76s;
  width: 40px;
}

.hu-lang {
  background-image: url(flags/hu.svg);
}

.open .hu-lang {
  right: -48px;
  top: 0px;
  opacity: 1;
}

.en-lang {
  background-image: url(flags/gb.svg);
}

.open .en-lang {
  left: 0;
  top: 0px;
  opacity: 1;
}

.chooseLang .chosen {
  opacity: 1;
  z-index: 1;
}*/

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 3rem;
  color:black ;
  text-decoration: none;
}

.history {
  padding-right: 3rem;
}

.history:hover {
  padding-right: .5rem;
  -webkit-transition: 0.76s;
  -o-transition: 0.76s;
  transition: 0.76s;
}

.container {
  position: absolute;
  margin: 0 auto;
  padding: 2em 0;
  top: 60px;
  left: 26.5%;
  width: 80%;
  min-width: 500px;
  max-width: 900px;
  background: snow;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-box-shadow: 4px 4px 20px 1px rgba(99,99,99,0.75); 
  box-shadow: 4px 4px 20px 1px rgba(99,99,99,0.75);
}

.picture {
  height: 100%;
  padding-left: 35px;
}

img {
  width: 265px;
}

.text {
  padding: 0 3em 0 2em;
}

h1 {
  font-family: 'Raleway', sans-serif;
  margin: unset;
  font-size: 1.55rem;
}

h3 {
  font-family: 'Raleway', sans-serif;
  margin: unset;
}

p {
text-align: justify;
}

/*a {
  color:black ;
  font-weight: bolder;
  text-decoration: none;
  float: right;
  font-weight: 600;
}*/

.popup_close {
  position: absolute;
  right: -1rem;
  top: -1rem;
  width: 3rem;
  height: 3rem;
  font-size: 1rem;
  font-weight: 100;
  border-radius: 100%;
  background-color: #0a0a0a;
  z-index: 4;
  color: #fff;
  line-height: 3.25rem;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}

.popup_close:hover {
    color: #4CCEE8;;
}

@media screen and (max-width: 1250px) {

 
  .container {
      position: absolute;
      margin: 0 auto;
      top: 60px;
      left: 260px;
      width: 80%;

  }
  
  @media screen and (max-width: 1180px) {
    .helptext{
      visibility: hidden;
     }
  }}


  
@media screen and (max-width: 640px) {

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
 
  .container {
      flex-direction: column;
      position: absolute;
      top: 50px;
      left: 0;
      width: 100vw;
      min-width: unset;
      overflow: auto;
  }   

h1 {
  font-size: 1.2rem;
}

.picture {

padding:0; 
display: flex;
justify-content: center;
}

.text {
  padding: 15px;
  height:300px;
}

.text p {
  padding-bottom: 1em;
}

img {
  width: 75%;
  margin-bottom: 1em;
}

.popup_close {
  position: fixed;
  right: .5rem;
  top: 2rem;
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  font-weight: 100;
  border-radius: 100%;
  background-color: #0a0a0a;
  z-index: 40;
  color: #fff;
  line-height: 2.25rem;
  text-align: center;
  cursor: pointer;
  text-decoration: none;

}
} 