* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
  font-size: 16px;
}

body {
  background-color: #FFFFFF;
  margin: 0;
}

.navtop {
  background-color: #394557;
  height: 60px;
  width: 100%;
  border: 0;
}

.navtop div {
  display: flex;
  margin: 0 auto;
  width: 1000px;
  height: 100%;
}

.navtop div h1, .navtop div a {
  display: inline-flex;
  align-items: center;
}

.navtop div h1 {
  flex: 1;
  padding: 0;
  margin: 0;
  color: #ebecee;
}

.navtop div h1 a {
  font-weight: 600;
  font-size: 18px;
  padding: 0;
}

.navtop div a {
  padding: 0 20px;
  text-decoration: none;
  color: #c4c7cd;
  font-weight: bold;
}

.navtop div a i {
  padding: 2px 8px 0 0;
}

.navtop div a:hover {
  color: #ebecee;
}

.content {
  width: 1000px;
  margin: 0 auto;
}

.content h2 {
  margin: 0;
  padding: 25px 0;
  font-size: 22px;
  border-bottom: 1px solid #ebebeb;
  color: #666666;
}

.content p {
  padding: 25px 0;
  margin: 0;
}

.content .pagination {
  display: flex;
  justify-content: flex-end;
  padding: 25px 0;
}

.content .pagination a {
  display: inline-block;
  text-decoration: none;
  background-color: #565656;
  font-weight: 600;
  color: #FFFFFF;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
}

.content .pagination a:hover {
  background-color: #636363;
}

.content .pagination div {
  display: inline-block;
  font-size: 14px;
  color: #777777;
  font-weight: bold;
  padding: 5px 10px;
}

.media-popup {
  display: none;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 999999;
}

.media-popup .con {
  display: flex;
  position: relative;
  flex-flow: column;
  background-color: #ffffff;
  padding: 25px;
  border-radius: 4px;
}

.media-popup .con h3 {
  margin: 0;
  font-size: 18px;
}

.media-popup .con img {
  object-fit: contain;
  max-width: 100%;
}

.media-popup .con .thumbs-up-down {
  display: flex;
  padding-top: 15px;
}

.media-popup .con .thumbs-up-down a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: #eee;
  color: #777;
  border-radius: 50px;
  width: 40px;
  height: 40px;
}

.media-popup .con .thumbs-up-down a.thumbs-up.active, .media-popup .con .thumbs-up-down a.thumbs-up:hover {
  background-color: #42a567;
  color: #fff;
}

.media-popup .con .thumbs-up-down a.thumbs-down.active, .media-popup .con .thumbs-up-down a.thumbs-down:hover {
  background-color: #a54242;
  color: #fff;
}

.media-popup .con .thumbs-up-down span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 10px;
  color: #777;
}

.media-popup .prev {
  padding: 0 25px;
}

.media-popup .next {
  padding: 0 25px;
}

.media-popup .next, .media-popup .prev {
  text-decoration: none;
  color: rgba(10, 227, 241, 1.0);
}

.media-popup .next:hover, .media-popup .prev:hover {
  color: rgba(10, 227, 241, 1.0);
}

.home .con {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0 30px;
}

.home .con .upload-media {
  display: inline-block;
  text-decoration: none;
  background-color: #407cb9;
  font-size: 14px;
  border-radius: 4px;
  color: #FFFFFF;
  padding: 10px 15px;
  font-weight: 600;
}

.home .con .upload-media:hover {
  background-color: #396fa6;
}

.home .con form label {
  padding: 0 5px 0 15px;
}

.home .con form select {
  border-radius: 4px;
  border: 1px solid #cccccc;
  padding: 5px 10px;
}

.home .media-list {
  display: flex;
  flex-flow: wrap;
}

.home .media-list a {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  margin-right: 20px;
}

.home .media-list a:hover .description {
  opacity: 1;
  transition: opacity 1s;
}

.home .media-list a:nth-child(3n) {
  margin-right: 0;
}

.home .media-list .placeholder {
  display: flex;
  flex-flow: column;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background-color: #ddd;
  color: #bbb;
  font-weight: bold;
}

.home .media-list .placeholder i {
  padding-bottom: 15px;
}

.home .media-list .description {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: absolute;
  opacity: 0;
  top: 0;
  left: 0;
  color: #fff;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 15px;
  transition: opacity 1s;
}

.view img, .view audio, .view video {
  max-width: 100%;
}

.view img, .view video {
  height: auto;
}

.upload form {
  padding: 15px 0;
  display: flex;
  flex-flow: column;
  width: 400px;
}

.upload form label {
  display: inline-flex;
  width: 100%;
  padding: 10px 0;
  margin-right: 25px;
}

.upload form input, .upload form textarea {
  padding: 10px;
  width: 100%;
  margin-right: 25px;
  margin-bottom: 15px;
  border: 1px solid #cccccc;
}

.upload form textarea {
  height: 200px;
}

.upload form input[type="submit"] {
  background-color: #407cb9;
  border: 0;
  font-weight: 600;
  font-size: 14px;
  color: #FFFFFF;
  cursor: pointer;
  margin-top: 15px;
  border-radius: 4px;
}

.upload form input[type="submit"]:hover {
  background-color: #396fa6;
}

.upload form input[type="submit"]:disabled {
  background-color: #5089c2;
}

.upload form #media, .upload form .thumbnail {
  display: none;
}

.upload form #drop_zone {
  cursor: pointer;
  border: 2px dashed #7a91b4;
  background-color: #d2e3fc;
  padding: 25px;
  margin: 15px 0 15px 0;
}

.upload form #drop_zone p {
  font-size: 14px;
  font-weight: 600;
  color: #404753;
}

.upload form #drop_zone.dragover, .upload form #drop_zone:hover {
  border: 2px dashed #7089ae;
  background-color: #c4dafb;
}

.upload form #drop_zone.dragover p, .upload form #drop_zone:hover p {
  color: #39404a;
}

.upload form #preview {
  display: none;
  margin-bottom: 15px;
  border: 2px dashed #dbdfe6;
  background-color: #eef1f5;
  padding: 15px;
}

.delete .yesno {
  display: flex;
}

.delete .yesno a {
  display: inline-block;
  text-decoration: none;
  background-color: #38b673;
  font-weight: bold;
  color: #FFFFFF;
  padding: 10px 15px;
  margin: 15px 10px 15px 0;
  border-radius: 5px;
}

.delete .yesno a:hover {
  background-color: #32a367;
}

/* Responsive design code below */
@media screen and (max-width: 1000px) {
  .navtop {
    height: auto;
    padding: 10px;
  }
  .navtop div {
    flex-flow: wrap;
    width: 100%;
  }
  .navtop div h1 {
    display: block;
    flex-basis: 100%;
  }
  .navtop div a {
    padding: 10px 0;
    flex-basis: 50%;
  }
  .content {
    padding: 10px;
    width: 100%;
  }
  .content form input[type="text"], .content form input[type="password"], .content form input[type="email"] {
    width: 100%;
  }
  .upload form {
    width: 100%;
  }
  .home .con {
    flex-flow: column;
    justify-content: flex-end;
    align-items: flex-start;
  }
  .home .con .upload-media {
    margin-bottom: 15px;
  }
  .home .con form label {
    display: inline-flex;
    margin: 0;
    width: 40%;
  }
  .home .con form select {
    width: 50%;
    margin-bottom: 10px;
  }
  .home .media-list {
    align-items: center;
    justify-content: center;
  }
  .home .media-list a img {
    width: 100%;
  }
  .home .media-list a:nth-child(3n) {
    margin-right: 15px;
  }
  .media-popup .con {
    width: 95%;
    max-height: 90%;
    padding: 10px;
    border-radius: 0;
  }
  .media-popup .con img {
    width: 100%;
    height: auto;
    max-height: auto;
  }
  .media-popup .con video {
    width: 100%;
    height: auto;
  }
}
