* {
  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: #4d4242;
  height: 60px;
  width: 100%;
  border: 0;
}

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

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

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

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

.navtop div a {
  padding: 0 20px;
  text-decoration: none;
  color: #cac6c6;
  font-weight: 500;
  font-size: 15px;
}

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

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

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

.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: #4e4141;
  font-weight: 600;
  color: #FFFFFF;
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 14px;
}

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

.content .pagination div {
  display: inline-block;
  font-size: 14px;
  color: #70767c;
  font-weight: bold;
  padding: 7px 12px;
}

.page-title {
  border-bottom: 1px solid #e5e7ea;
}

.page-title h2 {
  display: inline-block;
  margin: 0;
  padding: 25px 0;
  font-size: 20px;
  font-weight: 500;
  border-bottom: 3px solid #b94040;
  color: #696b6e;
}

.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.8);
  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 {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 18px;
  color: #696b6e;
}

.media-popup .con h3 a {
  text-decoration: none;
  font-size: 12px;
  color: #dfe2e6;
  padding: 5px 10px;
}

.media-popup .con h3 a i {
  font-size: inherit;
}

.media-popup .con h3 a:hover {
  color: #d1d5db;
}

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

.media-popup .con .like-con {
  display: flex;
  padding-top: 15px;
}

.media-popup .con .like-con a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: #e8ebf0;
  color: #949699;
  border-radius: 50px;
  width: 40px;
  height: 40px;
}

.media-popup .con .like-con a.like.active, .media-popup .con .like-con a.like:hover {
  background-color: #e23e4b;
  color: #fff;
}

.media-popup .con .like-con span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 10px;
  color: #949699;
  font-weight: 500;
  font-size: 14px;
}

.media-popup .con .like-con .action-btns {
  align-self: flex-end;
  margin-left: auto;
}

.media-popup .con .like-con .action-btns a {
  margin-left: 5px;
}

.media-popup .con .like-con .action-btns a.active, .media-popup .con .like-con .action-btns a:hover {
  background-color: #44474e;
  color: #fff;
}

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

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

.media-popup .next, .media-popup .prev {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.3);
}

.media-popup .next:hover, .media-popup .prev:hover {
  color: rgba(255, 255, 255, 0.4);
}

.media-popup .next.hidden, .media-popup .prev.hidden {
  visibility: hidden;
}

.media-popup .close {
  position: absolute;
  top: 25px;
  right: 25px;
  color: rgba(255, 255, 255, 0.3);
}

.media-popup .close:hover {
  color: rgba(255, 255, 255, 0.4);
}

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

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

.home .con form select, .home .con form input, .collection .con form select, .collection .con form input {
  border-radius: 4px;
  border: 1px solid #dfe2e6;
  padding: 5px 10px;
  height: 40px;
}

.home .con form select:focus, .home .con form input:focus, .collection .con form select:focus, .collection .con form input:focus {
  border: 1px solid #b4bbc4;
}

.home .con form select::placeholder, .home .con form input::placeholder, .collection .con form select::placeholder, .collection .con form input::placeholder {
  color: #8994a3;
}

.home .desc, .collection .desc {
  padding: 20px 0 0 0;
}

.home .media-list, .collection .media-list {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.home .media-list .flexible-column, .collection .media-list .flexible-column {
  width: 30%;
}

.home .media-list a, .collection .media-list a {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  grid-row: auto;
}

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

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

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

.home .media-list .description, .collection .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;
}

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

.gallery-form.full {
  width: 100%;
}

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

.gallery-form select, .gallery-form input, .gallery-form textarea {
  padding: 10px;
  width: 100%;
  border-radius: 4px;
  margin-right: 25px;
  margin-bottom: 15px;
  outline: 0;
  border: 1px solid #dfe2e6;
}

.gallery-form select:focus, .gallery-form input:focus, .gallery-form textarea:focus {
  border: 1px solid #b4bbc4;
}

.gallery-form select::placeholder, .gallery-form input::placeholder, .gallery-form textarea::placeholder {
  color: #8994a3;
}

.gallery-form textarea {
  height: 150px;
}

.gallery-form .btn {
  width: 150px;
  margin-top: 15px;
}

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

.gallery-form #drop_zone {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 2px dashed #a4b9cc;
  background-color: #cde7ff;
  padding: 25px;
  margin: 15px 0 15px 0;
  border-radius: 4px;
}

.gallery-form #drop_zone p {
  font-size: 14px;
  font-weight: 600;
  color: #677480;
  text-align: center;
  padding: 10px 5px;
}

.gallery-form #drop_zone i {
  color: #a4b9cc;
  padding: 5px 5px 10px 5px;
}

.gallery-form #drop_zone.dragover, .gallery-form #drop_zone:hover {
  border: 2px dashed #a0b4c7;
  background-color: #c9e2fa;
}

.gallery-form #drop_zone.dragover p, .gallery-form #drop_zone:hover p {
  color: #525c66;
}

.gallery-form #drop_zone.dragover i, .gallery-form #drop_zone:hover i {
  color: #9aadbf;
}

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

.gallery-form .previews {
  display: flex;
}

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

.gallery-form .btn_wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.gallery-form .upload-result, .gallery-form .result {
  padding: 10px 0;
}

.gallery-form .separator {
  width: 100%;
  height: 1px;
  margin: 15px 25px 15px 0;
  border-bottom: 1px solid #dfe2e6;
}

.collections .login-register {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.collections .login-register .page-title {
  margin-bottom: 20px;
}

.collections .actions {
  padding-top: 30px;
}

.collections .collection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 30px 0;
}

.collections .collection-list a {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border: 1px solid #dfe2e6;
  background-color: #f6f7f8;
  color: #b2b5b8;
  width: 260px;
  height: 200px;
}

.collections .collection-list a i {
  padding-bottom: 10px;
  transition: all .3s;
}

.collections .collection-list a span {
  font-weight: 500;
  padding: 3px;
}

.collections .collection-list a .num {
  font-size: 14px;
  color: #bec0c4;
}

.collections .collection-list a .description {
  display: none;
}

.collections .collection-list a:hover {
  border: 1px solid #d6dadf;
  background-color: #edeff1;
  color: #696b6e;
}

.collections .collection-list a:hover .num {
  color: #75787b;
}

.collections .collection-list a:hover i {
  color: #696b6e;
  transform: scale(1.1);
}

.btn {
  display: inline-block;
  text-decoration: none;
  background-color: #b94040;
  border: 0;
  font-weight: 500;
  text-align: center;
  font-size: 14px;
  color: #FFFFFF;
  cursor: pointer;
  border-radius: 4px;
  padding: 10px 15px;
  box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.15);
}

.btn:hover {
  background-color: #a63939;
}

.btn:disabled {
  background-color: #b6acac;
}

.btn.alt {
  background-color: #383838;
}

.btn.alt:hover {
  background-color: #2b2b2b;
}

.btn.alt:disabled {
  background-color: #b9b9b9;
}

.media-save {
  display: flex;
  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.8);
  z-index: 9999999;
}

.media-save h2 {
  color: #696b6e;
  margin: 0;
  padding: 15px 0 0 0;
}

.media-save .con {
  padding: 0 15px;
  width: 300px;
  background-color: #fff;
  border-radius: 4px;
}

.media-save .btn {
  width: 100px;
}

.media-save input[type="submit"] {
  margin: 15px 10px 0 0;
}

.media-save p {
  margin: 0;
  padding: 5px 0 0 0;
}

/* Responsive design code below */
@media screen and (max-width: 1100px) {
  .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%;
  }
  .gallery-form {
    width: 100%;
  }
  .home .con, .collection .con {
    flex-flow: column;
    justify-content: flex-end;
    align-items: flex-start;
  }
  .home .con .upload-media, .collection .con .upload-media {
    margin-bottom: 15px;
  }
  .home .con form, .collection .con form {
    display: flex;
    flex-flow: column;
    width: 100%;
  }
  .home .con form label, .collection .con form label {
    display: inline-flex;
    margin: 0;
    width: 100%;
    padding: 7px 0;
  }
  .home .con form select, .home .con form input, .collection .con form select, .collection .con form input {
    width: 100%;
    margin-bottom: 10px;
  }
  .home .media-list, .collection .media-list {
    align-items: center;
    justify-content: center;
  }
  .home .media-list a img, .collection .media-list a img {
    width: 100%;
  }
  .media-popup .con {
    width: 95%;
    max-height: 85%;
    padding: 10px;
    border-radius: 0;
  }
  .media-popup .con img {
    width: 100%;
    height: auto;
    max-height: auto;
  }
  .media-popup .con video {
    width: 100%;
    height: auto;
  }
  .media-popup .con audio {
    max-width: 220px;
  }
  .media-popup .next, .media-popup .prev {
    padding: 0 5px;
    font-size: 12px;
  }
  .media-popup .close {
    font-size: 12px;
    right: 10px;
    top: 10px;
  }
}
