.modal {
  visibility: hidden;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
  z-index: 9999;
}
.modal_inner {
  max-width: 75%;
  min-width: 30%;
  padding: 4rem;
  border-radius: 2px;
  background-color: #ffffff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s;
  text-align: center;
}

@media screen and (max-width: 600px) {
  .modal_inner {
    max-width: 90%;
    padding: 2rem;
  }
}

.modal.-open {
  visibility: visible;
  background-color: rgba(0, 0, 0, 0.4);
}
.modal.-open .modal_inner {
  opacity: 1;
  transform: scale(1);
}

.modal_inner h3 {
  margin: 0 0 3rem 0;
}

.modal_inner a {
  text-decoration: none;
  color: inherit;
}

.modal_content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/*@media screen and (max-width: 600px) {*/
/*  .modal_content {*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*  }*/
/*}*/

.modal_content .flag_container {
  width: 150px;
  height: 100px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s;
}

@media screen and (max-width: 600px) {
  .modal_content .flag_container {
    width: 100px;
    height: 67px;
  }
}


.language_container:hover .flag_container {
  transition: transform 0.2s;
  transform: scale(1.05);
}

.language_container {
  margin: 40px;
}

@media screen and (max-width: 600px) {
  .language_container {
    margin: 15px;
  }
}

.language_container .text_container {
  margin-top: 10px;
}