@charset "UTF-8";
/* CSS Document */

body {
    background-image: linear-gradient(#000066, #3333E8, #39D4F0);
    background-attachment: fixed;
    font-family: korolev, sans-serif;
    font-weight: 300;
    width: 100%;
    margin: 0 auto;
  }
#container {
      background-color: #fff;
      padding: 1em;
      width: 80%;
      margin: 2% auto;
      border-radius: 5px;
      border: 3px solid #E8C733;
  }
main {
  margin: auto;
}
nav {
  position: absolute;
  top: 3%;
  right: 10%;
}

nav ul li {
display: inline;
text-decoration: none;
}

nav ul li a {
  text-decoration: none;
  color: black;
  padding: 3px;
  border-radius: 3px;
}
nav ul li a:hover {
  border-radius: 3px;
  background:#E8C733;
}

#logo {
  border: none;
}

#logo img {
  display: inline;
  position: relative;
  left: 5px;
  top: 25px;
  
}

#logotext {
  font-weight: 700;
  margin: auto 0;
  display: inline;
  padding: 10px 0;
  line-height: 100px;
  height: 100px;
  
}

.flex-container {
	display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 10px;
}

.flex-container div {
  margin: auto;
  padding: 5px;
  cursor: pointer;
}

.flex-container img {
  border-radius: 5px;
  box-shadow: 3px 3px 3px #000000;
}

.thumbtext{
  display: none;
}

.thumb:hover  .thumbtext {
  display: block;
  color: black;
  text-align: left;
  font-weight: 600;
  position: relative;
  top: -55px;
  padding: 5px;
  background-image: linear-gradient(to left, rgba(255,255,255,0), rgba(255,255,255,0.7));
}
.space {
  height: 20px;
}
.thumb:hover .space {
  display: none;
}

/* .thumb {
  min-height: 19em;
} */
.thumb > img {
  width: 100%;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 10px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  margin: auto;
  padding: 20px 0;
  position: relative;
  top: 1%;
  text-align: center;
}

.modal-content > img {
  border: 3px solid #E8C733;
  max-width: 96%;
  max-height: 90vh;
  margin: auto;
}

@media screen and (max-width : 1500px){
  .flex-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 10px;
  }
}

@media screen and (max-width : 800px){
  .flex-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
  }
  .thumbtext {
    display: block;
    color: black;
    text-align: left;
    font-weight: 600;
    position: relative;
    top: -55px;
    padding: 5px;
    background-image: linear-gradient(to left, rgba(255,255,255,0), rgba(255,255,255,0.7));

  }
  .space {
    display: none;
  }
   /* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 10px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  margin: auto;
  padding: 20px 0;
  position: absolute;
  top: 1%;
  text-align: center;
}

.modal-content > img {
  border: 3px solid #E8C733;
  width: 96%;
  max-height: 90vh;
}
}

@media screen and (max-width : 500px){
  .flex-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 10px;
  }
  .thumbtext {
    display: block;
    color: black;
    text-align: left;
    font-weight: 600;
    position: relative;
    top: -55px;
    padding: 5px;
    background-image: linear-gradient(to left, rgba(255,255,255,0), rgba(255,255,255,0.7));

  }
  .space {
    display: none;
  }
  /* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 10px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  margin: auto;
  padding: 20px 0;
  position: absolute;
  top: 1%;
  text-align: center;
}

.modal-content > img {
  border: 3px solid #E8C733;
  width: 96%;
  max-height: 90vh;
}

}
