@media (min-width: 1200px) {
  .container {
    width: 916px !important;
  }
}

/* Always show navigation items, even on mobile */
.navbar-toggle {
  display: none !important;
}

.navbar-collapse {
  display: block !important;
  height: auto !important;
  padding-bottom: 0;
  overflow: visible !important;
  border: none !important;
}

.navbar-collapse.collapse {
  display: block !important;
}

.navbar-right {
  float: right !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

@media (max-width: 767px) {
  .navbar-header {
    float: left !important;
  }

  .navbar-collapse {
    clear: none !important;
    float: right !important;
    margin: 0 !important;
  }

  .navbar-right {
    float: right !important;
    margin: 0 !important;
  }

  .navbar-right > li {
    float: left;
  }

  .navbar-right > li > a {
    padding: 10px 8px;
    font-size: 14px;
  }
}

@font-face {
  font-family: "STIX Two Math";
  src: url("STIXTwoMath-Regular.ttf") format("truetype");
}

.tech-stack {
  margin-bottom: 12px;
}

.tech-badge {
  display: inline-block;
  background-color: #f0f0f0;
  color: #333;
  padding: 4px 10px;
  margin: 3px 4px 3px 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
}

.tech-badge:hover {
  background-color: #e0e0e0;
  border-color: #ccc;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav > li > a:hover,
.nav > li > a:focus {
  text-decoration: none;
  background-color: transparent;
}

.navbar-toggle .icon-bar {
  background-color: #888;
}

.navbar-brand {
  padding-left: 0;
}

.navbar {
  margin-left: 0;
  margin-right: 0;
}

.post-item {
  height: 100% !important;
  margin: 0;
  padding: 0;
}

.about-me-section {
  margin-left: 0;
  margin-right: 0;
}

.post-item .post-title {
  display: block;
  text-decoration: none;
  font-weight: normal;
  line-height: 42px;
  height: auto;
}

.post-item .post-title a:visited {
  color: #888;
}

.post-item .post-meta span {
  color: #777777;
}

.post-item .post-meta a:hover,
.post-item .post-meta a:focus {
  text-decoration: none;
  outline: none;
}

.post-meta > span:not(:last-of-type)::after {
  content: "·";
  margin: 0 4px;
  color: #adadad;
}

.post-item .post-meta img {
  width: 16px;
  height: 16px;
}

.post-item .post-summary {
  font-size: 1.125em;
  line-height: 1.5em;
  margin: 0 0 1.5em;
}

.post-item .post-summary .feature-image {
  margin-top: 5px;
  display: block;
  text-align: center;
  cursor: pointer;
  cursor: -webkit-zoom-in;
  cursor: -moz-zoom-in;
}

.post-item .post-summary .feature-image img {
  max-width: 100%;
  height: auto;
  border: 1px solid #f7f7f7;
}

math {
  font-size: 105.46%;
  font-family: "STIX Two Math" !important;
}

math[display="block"] {
  padding: 1rem 0;
  max-width: 100%;
  overflow-x: auto;
}

.post-item .post-summary .summary-text {
  padding-top: 15px;
  word-wrap: break-word;
  text-align: justify;
}

.post-item .post-summary img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.post-item .post-summary .summary-text .gist .gist-file .gist-data {
  max-height: 250px;
}

.post-item .post-summary pre {
  background-color: #f5f5d5;
  line-height: 1.42857143;
  color: #333;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  border: none;
}

.post-item .qrcode {
  float: right;
  display: none;
  margin-top: 5px;
}

.modal-dialog {
  max-width: 600px;
}

.modal .modal-dialog img {
  display: block;
  margin: auto;
  background-color: #fff;
  max-width: 100%;
  max-height: 100%;
}

footer li,
footer li a {
  color: #777;
}

#scrollUp {
  bottom: 10px;
  right: 12px;
  opacity: 0.4;
  filter: alpha(opacity=40);
}

#scrollUp:hover {
  opacity: 1;
  filter: alpha(opacity=100);
}

.github-corner:hover .octo-arm {
  animation: octocat-wave 560ms ease-in-out;
}

@keyframes octocat-wave {
  0%,
  100% {
    transform: rotate(0);
  }
  20%,
  60% {
    transform: rotate(-25deg);
  }
  40%,
  80% {
    transform: rotate(10deg);
  }
}

@media (max-width: 500px) {
  .github-corner:hover .octo-arm {
    animation: none;
  }

  .github-corner .octo-arm {
    animation: octocat-wave 560ms ease-in-out;
  }
}
