@import url('https://fonts.googleapis.com/css?family=Open+Sans&subset=latin-ext');

* {
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background-color: #ddd;
}

.content {
  flex: 1;
  margin: 20px 5px 10px 5px;
  z-index: 0;
}

.content hr {
  margin-left: -5px;
  margin-right: -5px;
}

/* search */
.search-field {
  display: block;
  width: 90%;
  max-width: 420px;
  border: 0px;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(154, 154, 154, 0.65);
  padding: 6px;
  margin: 20px auto;
  font-size: 1em;
}
.search-field:focus {
  outline: none;
  box-shadow: 0 0 12px 1px rgba(154, 154, 222, 1);
}

#logo {
  width: 60%;
  margin: auto;
  padding-top: 2em;
  max-width: 500px;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: #333;
  box-shadow: 0 5px 10px rgba(51, 51, 51, 0.25);
}

#brand {
  text-align: left;
  font-weight: 900;
}

nav ul {
  list-style-type: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  background-color: #333;
  font-size: 1.1em;
  color: #eee;
}

nav li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  transition: background-color 0.2s;
}

/* Change the link color to #111 (black) on hover */
nav li a:hover {
  background-color: #111;
}

nav .social {
  margin: -2px auto 0px;
  text-align:center;
}

nav .dropdown-content {
  display: none;
  background-color: #333;
  padding: 0;
  overflow: hidden;
}

nav .dropdown-content>hr {
  margin: 2px 0;
}

nav .dropdown-content a {
  padding: 8px 8px;
}

@media screen and (min-width: 630px) {
  nav .dropdown:hover .dropdown-content {
    display: block;
  }

  nav .dropdown-content {
    position: absolute;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 5px 5px;
  }
}

@media screen and (max-width: 630px) {
  nav .dropdown-content.active-dropdown {
    display: block;
    padding: 4px 0;
    background-color: #222;
  }
}

.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 4px dashed;
  border-top: 4px solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  vertical-align: middle;
}

footer {
  position: relative;
  z-index: 100;
  width: 100%;
  background-color: #333;
  margin: 3em 0 0 0;
  box-shadow: 0 -5px 10px rgba(51, 51, 51, 0.25);
}

footer>p {
  margin: auto;
  width: 100%;
  color: #eee;
  text-align: center;
  line-height: 3em;
  font-weight: bold;
}

.gallery {
  position: relative;
}

#navbar {
  margin: auto;
  max-width: 1850px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.photo-in-gallery {
  position: absolute;
  background-repeat: no-repeat;
  background-position: 50%;
  background-color: rgba(0, 0, 0, 0);
  background-size: cover;
  display: block;
}

.photo-in-gallery {
  display: block;
  margin: 0;
}

.photo-in-gallery>a {
  width: inherit;
  height: inherit;
}

.photo-in-gallery>a>img {
  width: inherit;
  height: inherit;
}

header {
  text-align: center;
  margin: 0;
  width: 100%;
  font-weight: 300;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #111;
  text-shadow: 0px 0px 5px #fff;
}

header>h1 {
  margin: 30px 0 10px 0;
  font-size: 2em;
}

header>h2 {
  margin: 0;
  font-size: 1.5em;
}

.grid {
  margin: auto;
  margin-top: 10px;
  width: 100%;
  padding-left: 5px;
  padding-right: 5px;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  min-width: 100px;
}

.grid.fresh {
  height: 335px;
  overflow: hidden;
  max-width: 2200px;
}

.album-subtitle {
  margin-left: 5em;
  font-size: 1.5em;
}

.album {
  width: 400px;
  float: left;
}

.album>.card {
  box-shadow: 0 0 10px rgba(154, 154, 154, 0.65);
  background-color: #fff;
  position: relative;
  border-radius: 5px;
  margin-bottom: 20px;
  height: 320px;
  margin-left: 10px;
  margin-right: 10px;
}

.album>.card>.link {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 50;
  background: transparent;
}

.album>.card>.cover {
  height: 250px;
  background-size: cover;
  background-image: url("/img/test_pattern.png");
  background-position: center;
  border-radius: 5px 5px 0 0;
}

.album>.card>.title {
  height: 70px;
  width: 400px;
  display: table-cell;
  font-size: 19px;
  font-weight: bold;
  line-height: 1.2em;
  overflow: hidden;
  padding: 0 10px 0 10px;
  text-align: center;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.album>.card>.date {
  position: absolute;
  top: 15px;
  left: 0;
  padding: 2px 7px 2px 7px;
  text-align: center;
  font-weight: bold;
  border-radius: 0 5px 5px 0;

  color: #eee;
  background-color: rgba(56, 56, 56, 0.75);

}

.album>.card>.date>.year {
  font-size: 16px;
}

.album>.card>.date>.month {
  font-size: 15px;
  margin-top: -5px;
}

.members {
  align-self: center;
}

.members .card {
  width: 240px;
  display: inline-block;
  box-shadow: 0 0 10px rgba(154, 154, 154, 0.65);
  background-color: #fff;
  position: relative;
  border-radius: 20px;
  margin-bottom: 15px;
  padding-top: 15px;
  padding-bottom: 25px;
  min-height: 100%;
  margin-left: 10px;
  margin-right: 10px;
  text-align: center;
}

/*
  Mivel a css nem volt felkészítve arra, hogy egy ember több pozíciót is vállal (pontosabban hogy a pozíciói több sorba férnek csak ki),
  (ilyen esetben ha egy sorban van két olyan ember, akinek a pozíciói nem ugyanannyi sorba férnek ki, akkor a kártyák nem ugyanolyan magasak)
  viszont csak ezen az egy helyen jelent gondot, ezért quick fixnek ideiglenesen megteszi. position: relative-vel bár gépen jól működött,
  mobilon sajnos összecsúsztak az ikonok a szöveggel.
*/
/*.members > .grid:first-child > .card:first-child > .social {
  padding-top: 11%;
}*/

.members .card>.cover {
  height: 200px;
  width: 200px;
  background-size: cover;
  background-position: center center;
  border-radius: 50%;
  border: 2px solid #000000;
  display: inline-block;
}

.members .card>.title {
  height: 30px;
  font-size: 19px;
  font-weight: bold;
  line-height: 1.2em;
  padding: 15px 5px 0 5px;
  text-align: center;
}

.members .card>.subtitle {
  font-size: 19px;
  padding: 10px 5px 0 5px;
  text-align: center;
}

.members .card>.social {
  text-align: center;
}

.members .card>.social i {
  display: inline-block;
  font-size: 2em;
  background: black;
  color: white;
  border-radius: 50%;
  line-height: initial !important;
  height: 1.5em;
  width: 1.5em;
  text-align: center;
  margin: 20px 5px 0 5px;
  padding-top: 7px;
}

.members .card>.link {
  position: absolute;
  border-radius: 50%;
  left: 0;
  right: 0;
  height: 200px;
  width: 200px;
  margin: 0px 20px;
  z-index: 50;
}

.members > h1 {
  text-align: center;
  margin-bottom: 1.5%;
}


ul.pagination {
  display: inline-block;
  padding: 0;
  margin: 0;
}

ul.pagination li {
  display: inline;
}

ul.pagination li a {
  font-size: 20px;
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
}

ul.pagination li a.active {
  background-color: #4CAF50;
  color: white;
}

ul.pagination li a:hover:not(.active) {
  background-color: #aaa;
}

@media screen and (min-width: 1036px) {
  nav .spacer {
    flex-grow: 1;
  }
}

#mobile-bar {
  display: none;
}

@media screen and (max-width: 630px) {
  .mobile-hidden, nav .dropdown-content>hr {
    display: none;
  }

  nav {
    overflow-y: auto;
    max-height: 100vh;
  }

  .grid.fresh {
    height: unset;
  }

  .album-subtitle {
    margin: auto;
    width: 100%;
    text-align: center;
  }

  /* hide menu on mobile by default */
  #navbar {
    display: none;
    flex-direction: column;
  }

  /* show menu when requested */
  #navbar.active-menu {
    display: flex;
  }

  #mobile-bar {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    position: relative;
  }

  #menu {
    position: absolute;
    top: 0;
    right: 0;
  }
}

@media screen and (max-width: 800px) {
  nav .dropdown-content {
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
  }

  .members {
    width: 310px;
  }

  .members>.card>.cover {
    height: 200px;
  }

  .members>.card {
    height: 270px;
  }

  .members>.card>.title {
    width: 310px;
  }
}

@media screen and (min-width: 630px) {
  nav li {
    float: left;
  }

  #navbar {
    width: 620px;
  }

  header>h1 {
    font-size: 3em;
  }

  header>h2 {
    font-size: 2em;
  }
}

@media screen and (min-width: 870px) {
  #navbar {
    width: 98%;
  }
}

@media screen and (min-width: 1150px) {
  #navbar {
    width: 90%;
  }
}

img {
  image-rendering: -webkit-optimize-contrast;
}

.photographers {
  text-align: center;
  margin-top: 30px;
  font-size: larger;
}

.photographers span:first-child {
  font-weight: bold;
}
