* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  background: #FCFCFC;
  position: relative;
  height: 100%;
}

header {
  height: 60px;
  background: #333333;
  display: flex;
  align-items: center;
  justify-content: left;
}

header h1 {
  color: #8AEAE2;
  text-shadow: -1px 0 #000, 0 2px #000, 1px 0 #fff, 0 -1px #fff;
  letter-spacing: .1em;
  padding-left: 1.3rem;
}

header h3 {
  color: #FCFCFC;
  font-family: 'Qwigley', cursive;;
  font-size: 2rem;
  letter-spacing: .1em;
  padding: 0.2em 0 0 .5em;
  transform: rotate(-.5deg);
}

.popular {
  color: #333333;
  padding-top: .8rem;
  font-weight: 600;
  color: #665C96
}

.popular a {
  text-decoration: none;
  color: #333333;
  font-weight: 400;
  padding: 0 8px;
  text-align: center;
}

.popular a:hover {
  background-color: #8AEAE2;;
}

.title {
  color: #665C96;
  font-family: 'Work Sans', sans-serif;
  font-size: 1.8rem;
  text-align: center;
  padding: 2rem 0 1.5rem 0;
}

.form-input {
  text-align: center;
  padding-bottom: 2rem;
}

.form-input label {
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
}

.user-input {
  padding: .4rem 10rem;
  text-align: center;
}

#submit {
  padding: .4rem;
}

#submit:hover {
  background-color: #8AEAE2;
}

#return-msg {
  padding-top: .8rem;
  color: #C41A23;
}

.image-list {
  padding: 0 12rem 5rem 12rem;
}

.img-thumbnail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.img-thumbnail img {
  padding: 1.2rem;
  object-fit: cover;
  width: 180px;
  height: 180px;
}

.img-thumbnail img:hover {
  filter: grayscale(100%);
  transform: scale(1.1);
}

.page-button {
  position: fixed;
  bottom: 1.3rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.page-button button {
  width: 2rem;
  height: 1.6rem;
  appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
  margin: .1rem;
  background-color: #BBBBBB;
  transition: 0.4s;;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.page-button button:hover {
  background-color: #8AEAE2;
}

.page-button button.active {
  background-color: #8AEAE2;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.2);
}

.page-button button.prev,
.page-button button.next {
  background-color: #737373;
  color: #fff;
  width: 50px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
}

.modalImage {
  margin: auto;
  display: block;
  max-width: 700px;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #8AEAE2;
  cursor: pointer;
}

/*----- @MEDIA -----*/
@media screen and (max-width: 1300px) {
  .image-list {
    padding: 0 7rem 3rem 7rem;
  }
}
@media screen and (max-width: 1150px) {
  .image-list {
    padding: 0 3rem 3rem 3rem;
  }
  .img-thumbnail img {
    padding: 1rem;
    width: 170px;
    height: 170px;
  }
}

@media screen and (max-width: 950px) {
  .image-list {
    padding: 0 1rem 3rem 1rem;
  }
  .img-thumbnail img {
    padding: .8rem;
    width: 150px;
    height: 150px;
  }
}

@media screen and (max-width: 800px) {
  .image-list {
    padding: 0 0 3rem 0;
  }
  .img-thumbnail img {
    padding: .6rem;
    width: 140px;
    height: 140px;
  }
  .title {
    font-size: 1.5rem;
  }  
  .popular {
    font-size: .9rem;
  }
  .page-button {
    bottom: 3rem;
  }
}

@media screen and (max-width: 680px) {
  
  .img-thumbnail img {
    padding: .6rem;
    width: 100px;
    height: 100px;
  }
  .title {
    font-size: 1.3rem;
  }  
  .popular {
    font-size: .8rem;
  }

  .user-input {
    padding: .4rem 6rem;
    text-align: center;
  } 

  .page-button {
    bottom: 5rem;
  }
}
