/* References: https://www.w3schools.com/howto/howto_css_image_grid_responsive.asp https://www.imarketinx.de/artikel/text-centered-on-image.html 
https://www.w3schools.com/howto/howto_css_image_overlay.asp */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
}

h1 {
  margin-top: 150px;
  text-align: center;
  max-width: 100px;
}

.row {
  /* border: 3px green solid; */
  display: flex;
  flex-wrap: wrap;
  /* padding: 0 4px; */
  margin-bottom: 10px;
  margin-top: 10px;

}
 
.column-nav {
  /* border: 1px red solid; */
  flex: 10%;
  max-width: 20%;
  padding: 0 8px;
}

.column-pic {
  /* border: 1px red solid; */
  flex: 40%;
  max-width: 40%;
 }


.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}

p {
  text-decoration: none;
  color: black;
  font-weight: 100;
}

/* p:hover {
  color: MediumVioletRed;
} */

nav {
  display: flex;
  flex-direction: column;
  align-items: center;
 }

nav p {
  border-top: thin solid black;
  /* text-transform: uppercase; */
  font-size: 20px;
  /* margin-top: 20px; */
  margin-top: 7px;
  margin-bottom: 20px;
  padding-top: 20px;
  text-align: center;
}

.box-flex {
  /* border: red solid 1px; */
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  font-size: 0.7rem;
  word-break: break-word;
  color: #d9d9d9;
  opacity: 1;
  /* padding: 5px; */
  margin: 10px;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.overlay {
   word-break: break-word;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: scroll;
  width: 100%;
  height: 100%;
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
  -webkit-transition: 0.3s ease;
  transition: 0s ease;
}

.box-flex:hover .overlay {
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}

.text {
  padding: 50px;
  font-size: 0.8rem;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  text-align: start;
  color:white;

 }

@media screen and (max-width: 800px) {
  .column-nav {
    flex: 100%;
    max-width: 100%;
  }
  .column-pic {
    flex: 47%;
    max-width: 47%;
  }
  .box-flex {
    font-size: 0.9rem;
  }
  .text {
    padding: 30px;
    
   }
}

@media screen and (max-width: 600px) {
  .column-pic {
    flex: 100%;
    max-width: 100%;
  }
  .box-flex {
    font-size: 0.9rem;
  }
  .text {
    padding: 10px;
    font-size: 11px;

  
   }
  h1 {
    max-width: 300px;
    margin-top: 50px;
  }

    h2 {
      font-size: 15px;
    }
  nav p {
    border-top: none;
    text-transform: uppercase;
    font-size: 16px;
    margin-top: 5px;
    margin-bottom: 5px;
    padding-top: 5px;
   }
  nav p:last-child {
    margin-bottom: 30px;
  }
}