@font-face {
    font-family: 'Roboto', sans-serif;
}

body {
  background-color: #F1F3F4;
}
header {
  background-color: #474E5A;
  height: 6em;
  position: absolute;
  left: 0px;
  right: 0px;
  top: 0px;
}

.navbar-header {
  float: left;
  position: inline;
}

header img {
  position: relative;
  padding-left: 3em;
  padding-top: 0.75em;
  float: left;
  width: 6.5em;
}

p.navbar-text {
  font-family: Roboto;
  font-weight: 400;
  color: #FFFFFF;
  position: absolute;
  top: 1.5em;
  left: 10em;
}

select {
  float: right;
  font-family: Roboto;
  font-weight: 300;
  color: #FFFFFF;
  background: transparent;
  margin-right: 3em;
  margin-top: 2em;
  width: 9em;
  min-width: 8em;
  padding: .25em 1em .3em 1.8em;
  font-size: 14px;
  height: 2em;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

h1 {
  margin-top: 5em;
  margin-left: .7em;
  position: relative;
  font-family: Roboto;
  font-weight: 400;
  color: #8494AB;
  font-size: x-large;
}

.grid-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
}

.col-4 {
  margin-left: 1.4%;
  margin-right: 1.4%;
  width: 21%;
}

.col-4 img {
  width: 250px;
  position: inherit;
  box-sizing: border-box;
  margin-top: 1%;
  margin-right: 1.5%;
  margin-left: 1.5%;
  margin-bottom: 1%;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  -webkit-box-shadow: 0px 0px 12px 5px #BCBBB8;
  box-shadow: 0px 0px 12px 5px #BCBBB8;
}

.col-4:hover .title {
  visibility: visible;
  opacity: 1;
}

span.title {
  opacity: 0;
  visibility: hidden;
  display: block;
  font-family: Roboto;
  font-weight: 400;
  letter-spacing: 1px;
  transition: opacity 0.3s;
}

[class*='col-'] > p {
 text-align: center;
 color: #555555;
}

.modal-container {
  display: none;
}

/*pagination*/

ul.pagination {
  display: inline-block;
  padding-top: 1em;
  margin-top: 2em;
}

ul.pagination li {display: inline;}

ul.pagination li a {
  font-family: Roboto;
  font-weight: 400;
  letter-spacing: 1px;
  color: #97A3BC;
  float: left;
  padding: .75em 1.2em;
  text-decoration: none;
  transition: background-color .2s;
  border: 1px solid #97A3BC;
}
.pagination li:first-child a {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.pagination li:last-child a {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

ul.pagination li a.active {
  color: #3EB895;
  border-color: #3EB895;
}

ul.pagination li a:hover:not(.active) {
  color: #3EB895;
  border-color: #3EB895;
}

div.center {
  display: inline-flex;
  margin-bottom: 2%;
  margin-left: 25%;
  width: 55%;
  text-align: center;
}

/*modal*/

.modal img {
  width: 342px;
  float: left;
  padding-right: 1.5em;
}

.modal h1 {
  margin-top: 0;
  margin-left: 0;
}

.modal h2 {
  font-family: Roboto;
  font-weight: 300;
  color: #8494AB;
  font-size: large;
}

.modal h3 {
  font-family: Roboto;
  font-weight: 300;
  color: #8494AB;
  font-size: small;
}

@media all and (max-width:1086px){
  .col-4 {
    width: 30%;
    }
  .modal {
    min-width: 90%;
  }
  .modal img {
    width: 342px;
    float: left;
    padding-right: .8em;
  }
  div.center {
    width: 75%;
    margin-left: 22%;
  }
  .compact-theme a, .compact-theme span, .ellipse {
    padding: .7em .9em;
  }
}

@media all and (max-width:966px){
  div.center {
    width: 83%;
    margin-left: 17.5%;
  }

@media all and (max-width:883px){
  div.center {
    margin-left: 15%;
  }

@media all and (max-width:800px){
  .col-4{
    width: 47.1%;
    }
  .modal img {
    width: 250px;
  }
  .modal h3 {
    position: absolute;
    padding-top: 12em;
    font-size: larger;
  }
  div.center {
    width: 90%;
    margin-left: 12%;
  }
}

@media all and (max-width:725px){
  div.center {
    width: 100%;
    margin-left: 8%;
  }
}

@media all and (max-width:650px){
  .col-4{
    width: 92%;
    margin-left: 4.13%;
  }
  .modal img {
    width: 200px;
  }
  .modal h1 h2 {
    font-size: larger;
  }
  .modal h3 {
    padding-top: 28%;
  }
  div.center {
    width: 100%;
    margin-left: 9.5%;
  }
  .compact-theme a, .compact-theme span {
    font-weight: 200;
    padding: .9em .7em;
  }
  .compact-theme .ellipse {
    padding: .9em .7em;
  }
}
@media all and (max-width:600px){
  div.center {
    margin-left: 4.5%;
  }
}

@media all and (max-width:525px){
  div.center {
    margin-left: 11%;
  }
}

@media all and (max-width:500px){
  div.center {
    margin-left: 7%;
  }
  .compact-theme a, .compact-theme span {
    font-weight: 400;
    padding: .5em .8em;
  }
  .compact-theme .ellipse {
    padding: .5em .9em;
  }
}

@media all and (max-width:450px){
  div.center {
    margin-left: -5%;
  }
}
