body {
  font-family: "Source Sans Pro", sans-serif;
  background-color: #f7f2ee;
  color: #543;
}

@media only screen and (max-width: 575px) {
  #brand {
    margin-bottom: auto;
  }
}

nav a.nav-link {
  color: #a98;
}
nav .border_bottom {
  display: flex;
  width: 100%;
  border-bottom: 1px solid #987;
  margin-bottom: 1rem;
}
.navbar-expand-sm .navbar-nav .nav-link,
.dropdown-item.nav-link {
  padding-left: 1rem;
}

main {
  min-height: calc(100vh - 13rem);
}

h1 {
  font-size: 2.25rem;
  border-bottom: 1px solid #dcb;
  margin-bottom: 2rem;
}

footer {
  background-color: #e6e3dd;
  padding: 1rem;
  margin-top: 3rem;
}
footer a {
  color: #a98;
}

a {
  text-decoration: none;
  color: #940;
}
a:hover {
  color: #000;
}

.url-wrap span {
  display: inline-block;
}

/* post listing */

.post {
  margin-bottom: 1.5rem;
}

@media only screen and (max-width: 768px) {
  .post .post-title {
    display: block;
    border-top: 1px solid #dcb;
    margin-top: 1.5rem;
    padding-top: 0.5rem;
  }
  .group.post .post-title {
    border: none;
    margin-top: 0;
    padding-top: 0;
  }
}

.post-card {
  background-color: #fdfbfa;
  box-shadow: 2px 2px 10px #ede6de;
}

.post-title {
  color: #000;
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: bold;
}
.post-title:hover {
  color: #543;
}
.post p {
  font-size: 0.9rem;
  margin: 0.5rem 0;
}
.post .tags {
  margin: 0.6rem 0;
}

.post-meta,
.gray {
  color: #a98;
}
.black {
  color: #000;
}

.post-meta {
  font-size: 0.9rem;
}
.post-meta a {
  color: #543;
}
.post-meta a:hover {
  color: #000;
  text-decoration: underline;
}

.btn-primary {
  color: #797169;
  background-color: #ddcfc1;
  border-color: #ddcfc1;
}
.btn-primary:hover {
  background-color: #797169;
  border-color: #797169;
}

.tag {
  display: inline-block;
  background: #ebe0d6;
  padding: 0.3rem 0.6rem;
  border-radius: 1rem;
  margin-right: 0.25rem;
  margin-top: 0.3rem;
  transition: 0.2s all;
}
.tag:hover {
  background: #edc;
}

.post-card .tag {
  background: #f7f2ee;
  color: #a98;
}
.post-card .tag:hover {
  color: #000;
  background: #edc;
}

.icon-search,
.icon-user,
.icon-link {
  width: 1rem;
  height: 1rem;
}
.icon-search {
  fill: none;
  stroke-width: 3px;
  stroke: #a98;
}
.icon-user circle,
.icon-user path,
.icon-link path {
  fill: #a98;
}
.dropdown-toggle::after {
  margin-left: 0;
}

.tag-card {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #a98;
}

/* submit form */

label {
  margin: 1.5rem 0 0;
  position: relative;
  display: block;
}

span.placeholder {
  padding: 8px;
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
  transition: 0.2s;
  transition-timing-function: ease;
  transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
  opacity: 0.5;
  color: #666;
}

input,
textarea {
  padding: 10px;
}

textarea:focus + span,
textarea:not(:placeholder-shown) + span,
input:focus + span,
input:not(:placeholder-shown) + span {
  opacity: 1;
  transform: scale(0.75) translateY(-100%) translateX(-20px);
}

/* For IE Browsers*/
textarea:focus + span,
textarea:not(:-ms-input-placeholder) + span,
input:focus + span,
input:not(:-ms-input-placeholder) + span {
  opacity: 1;
  transform: scale(0.75) translateY(-100%) translateX(-30px);
}

/* file upload */

.file-upload {
  margin: 0 auto;
}

.file-upload-btn {
  width: 100%;
  padding: 1rem;
}

.file-upload-content {
  display: none;
  text-align: center;
}

.file-upload-input {
  position: absolute;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  outline: none;
  opacity: 0;
  cursor: pointer;
}

.image-upload-wrap {
  margin-top: 20px;
  border: 2px dashed #a98;
  position: relative;
  background-color: #fff;
  transition: all 0.2s ease;
}

.image-dropping,
.image-upload-wrap:hover {
  background-color: #ddcfc1;
  border-color: #ddcfc1;
  border: 2px dashed #797169;
}

.image-title-wrap {
  padding: 0 15px 15px 15px;
  color: #222;
}

.drag-text {
  text-align: center;
  padding: 5rem 1rem;
}

.image-upload-wrap.has-image .drag-text {
  padding: 1rem;
}

.file-upload-image {
  max-width: 100%;
  margin: 1rem 0;
}

.remove-image {
  margin: 0;
  color: #cd4535;
  background: inherit;
  padding: 0;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.remove-image:hover {
  color: #333;
  transition: color 0.2s ease;
  cursor: pointer;
}

.remove-image:active {
  border: 0;
  transition: all 0.2s ease;
}

/* Bootstrap TagsInput */

.bootstrap-tagsinput {
  display: inline-block;
  vertical-align: middle;
  width: 100%;

  border: 1px solid;
  background-color: #fff;
  border-color: #ddd;
  border-radius: 4px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.bootstrap-tagsinput input {
  direction: ltr;
  border: 0;
  outline: 0;
  background-color: transparent;
  padding: 7px 0;
  margin-top: 3px;
  margin-bottom: 3px;
  width: auto !important;
  min-width: 100px;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.bootstrap-tagsinput input:focus {
  border: none;
  box-shadow: none;
}

.bootstrap-tagsinput .twitter-typeahead {
  width: auto;
}

.bootstrap-tagsinput .tt-dropdown-menu {
  margin-top: 5px;
  min-width: 200px;
}

.bootstrap-tagsinput .tag {
  margin-top: 3px;
  margin-bottom: 3px;
  margin-right: 6px;
  border: 0;
  border-radius: 100px;
  padding: 7px 14px;
  padding-right: 33px;
  float: left;
  font-size: 1rem;
  line-height: 1.6666667;
  font-weight: 400;
  text-transform: none;
  position: relative;
}

.bootstrap-tagsinput .tag [data-role="remove"] {
  cursor: pointer;
  position: absolute;
  top: 50%;
  right: 14px;
  line-height: 1;
  margin-top: -5.5px;
  opacity: 0.7;
  filter: alpha(opacity=70);
}

.bootstrap-tagsinput .tag [data-role="remove"]:hover {
  opacity: 1;
  filter: alpha(opacity=100);
}

.bootstrap-tagsinput .tag [data-role="remove"]:after {
  content: "×";
  font-size: 1.25rem;
  line-height: 0;
  color: #900;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bootstrap-tagsinput .tag:not([class*="bg-"]) {
  background-color: #ebe0d6;
}

/* Twitter Typeahead */

.twitter-typeahead {
  width: 100%;
}

.typeahead,
.tt-query,
.tt-hint {
  outline: 0;
}

.tt-hint {
  color: #999;
}

.tt-menu {
  width: 100%;
  min-width: 180px;
  border: 1px solid transparent;
  max-height: 300px;
  overflow-y: auto;
  -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);

  margin: 0;
  padding: 4px 4px 0 4px;
  background-color: #f7f2ee;
}

.typeahead-scrollable .tt-menu {
  max-height: 250px;
}

.typeahead-rtl .tt-menu {
  text-align: right;
}

.tt-suggestion {
  color: #272727;
  cursor: pointer;
  margin-bottom: 0.3rem;
  padding: 8px 15px;
}

.tt-suggestion:hover,
.tt-suggestion:focus,
.tt-suggestion.tt-cursor {
  background-color: #ebe0d6;
}

.tt-dataset-group .tt-suggestion {
  padding-left: 32px;
  padding-right: 32px;
}

.tt-heading {
  font-size: 11px;
  line-height: 1.82;
  padding: 8px 15px;
  text-transform: uppercase;
  display: block;
  font-weight: 700;
  margin-top: 2px;
  margin-bottom: 2px;
}

.typeahead-template .empty-message {
  padding: 8px 15px;
  text-align: center;
}

/* pagination */

.page-link {
  background: #fdfbfa;
  color: #a98;
}

.page-item.active .page-link {
  background: #a98;
  color: #fff;
  border-color: #a98;
}
