* {

  box-sizing: border-box;
}

body {
  color: #414141; /* Dark grey*/
  background-color: #white;
  margin: 0px;
}
a:link,
a:visited {
  color: #000000;
  text-decoration: none;
}

.ergkpic {
  position: relative;
  text-align: center;
  color: black;
}

.centered_ergk {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.menu-container {
  color: #fff;
  background-color: #5995DA;  /* Blue */
  padding: 10px 0;
  display: flex;
  justify-content: center;
}

.menu {
  width: 900px;
  display: flex;
  justify-content: space-between;
}

.links {
  display: flex;
  justify-content: flex-end;
}

.login {
  margin-left: 20px;
  color: black;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-family: "Helvetica", "Arial", sans-serif;
}

.loginerror {
  color: red;
}

.header-container {
  color: #5995DA;
  background-color: #D6E9FE;
  display: flex;
  justify-content: center;
}

.flexcontainer {
  display:flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.form-row {
    padding: 5px;
    display:flex;
    justify-content: center;
    flex-direction: column;
}

input[type=text] {
  max-width: 500px;
  width: 100%;
  padding: 8px 14px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type=submit]{
    color: #FFF;
    background-color: #88AAEE;
    font-weight: bold;
    padding: 5px;
    margin: 8px 5px;
    text-align: center;
    border: 2px solid #5D6063;
    border-radius: 5px;
    width: 60%;
    cursor: pointer;
    align-self: center;

}

.header {
  width: 900px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.beaker img{
  height:60px;
  width:auto;
}

.main-menu-container {
  color: #000000;
  background-color: #b4d6fe;
  display: flex;
  justify-content: center;
  font-size: 18px;
  font-family: sans-serif;
  width: 100%;
/*  padding: 20px;*/
}

.main-menu {
  width: 900px;
  display:flex;
  margin: 0px;
  padding:0px;
  list-style-type: none;
/*  background-color: pink;*/
}

.main-menu > li {
  display: flex;
  flex: 1 1 auto;
  }


.main-menu-box {
  display:flex;
  flex: 1 1 auto;
  margin-right: 0px;
  padding: 10px;
  justify-content: center;
}

.active-box {
  background-color: #34567E;
}

a.active-box:link, a.active-box:visited {
  color: white;
  text-decoration: none;
}

.main-menu-box:hover {
  background-color: #34567E;
  color: white;
}

.heading {
  font-size: 20px;
  font-family: "Helvetica", "Arial", sans-serif;
  padding-left: 20px;
}
.heading > a {
  color:#5995DA;

}

.main-box {
  margin-left: auto;
  margin-right: auto;
  width:1200px;
}

.gallery-container {
  display: flex;
  justify-content: flex-start;

}

.gallery-grid {
  max-width: 1200px;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;

}

.gallery {
  margin: 5px;
  border: 1px solid #ccc;
}

.gallery:hover {
  border: 1px solid #777;
}

.gallery img {
  width: 350px;
  height: 225px;
  object-fit:cover;

}

.desc {
  padding: 15px;
  text-align: center;
}

.button {
  color: #FFF;
  background-color: #5995DA;
  font-weight: bold;
  text-align: center;
  border: 2px solid #5D6063;
  border-radius: 5px;

  width: 200px;
  box-sizing: border-box;
  margin: 20px auto; /*Vertical Horizontal */
}

.button2 {
  font-family: "Helvetica", "Arial", sans-serif;
  font-size: 16px;
  border: 1px solid #5D6063;
  color: #FFF;
  background-color: #5995DA;
  text-align: center;
  padding: 3px;
  margin: 0 2px;
  cursor: pointer;
}

.button2 > a {
  color:#FFF;
}
#loader {
  border: 8px solid #f3f3f3; /* Light grey */
  border-top: 8px solid #3498db; /* Blue */
  border-bottom: 8px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
  text-align: center;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}




.footer-items {
  display: flex;
  justify-content: space-between;
}

.footer-item {
  background-color: #D6E9FE;
  flex:1;
}

.footer-two {
  width:900px;
  background-color: #D6E9FE;
  flex: initial;
  justify-content: center;

}

.signup-form{
  width: 400px;
  display: flex;
  flex-direction: column;
}

@media (max-width:480px){
  .header {
    height:80px;
  }
  .heading {
    font-size: 12px;
  }
  .beaker {
    width:40px;
  }
  .gallery img {
    width: 130px;
    height: 80px;
    object-fit:cover;
  }
  .desc {
    max-width:130px;
  }
  .main-box {
    width: 100%;
  }
  .gallery-grid {
    width: 100%;
  }
}
@media (max-aspect-ratio: 1/1) {
  .photo-grid-item{
    height: 30vh;
  }
}
