@import url('https://fonts.googleapis.com/css2?family=IM+Fell+Great+Primer:ital@0;1&display=swap');

body {
  background-color: #FFFFFF;
  display: flex;
  font-family: Monaco, monospace;
  justify-content: center;
  align-items: center;
}

.layout {
  width: 1000px;
  display: grid;
  grid-gap: 10px;
  grid-template: "header" auto "main" auto "footer" auto;
  justify-content: center;
  align-items: center;
  /* Confused by the grid? Check out tutorial: https://petrapixel.neocities.org/coding/positioning-tutorial#grid */
}

header {
  grid-area: header;
  font-family: Monaco, monospace;
  padding: 15px 0 10px 0;
  position: relative;
  width: 75%;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}
.header-content{
  
}


	nav {
		overflow: hidden;
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
	}

		nav a {
		  color: black;
		  text-align: center;
		  padding: 14px 16px;
		  text-decoration: none;
		}
nav a:hover, .dropdown:hover .dropbtn, .dropdown:focus .dropbtn {
		  background-color: #5495CF;
		}
    
main {
  grid-area: main;
  overflow-y: auto;
}

.main-section{
  padding: 10px;
  margin: 10px;
  background: #FFFFFF;
  border-radius: 15px;
  width: 75%;
  display: flex;
  flex-wrap: wrap;
}

h1 {
  font-family: 'IM Fell Great Primer', sans-serif;
  text-align: center;
}

.text {
  display: inline-block;
  vertical-align: top;
}

.imageflex { display: flex; }
.imageflexcontent { margin-left: 5px; margin-top: 0; }

input {
    display: none;
}
span#content {
    display: none;
}
input#show:checked ~ span#content {
    display: block;
}

.container{
  box-sizing: border-box;
  width: calc(33% - 25px);
  height: 133%;
  padding: 5px;
  margin: 10px;
  background: #FFFFFF;
  box-shadow: 10px 10px #5495CF;
  border: 1px dotted;
}

.example-image-gallery div img {
  width: calc(100% - 16px);
  height: auto;
  object-fit: cover;
  padding: 8px;
  float: left;
}

.example-image-gallery {
  display: flex;
  flex-wrap: wrap;
}

.example-image-gallery p {
  margin: 3px;
  width: 100%;
  color: black;
}

.overlayBlue{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: #5495CF;
}
.overlayYellow{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: #F5AF4D;
}

.overlayRed{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: #DB4743;
}

.overlayGreen{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: #7C873E;
}

.container {
  position: relative;
}
.container:hover .overlayBlue{
  opacity: 1;
}
.container:hover .overlayGreen{
  opacity: 1;
}
.container:hover .overlayYellow{
  opacity: 1;
}
.container:hover .overlayRed{
  opacity: 1;
}


.text{
  color: white;
  font-size: 15px;
  font-family: Monaco, monospace;
  position: absolute;
  top: 50%;
  left:50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}