html {
  font-size: 17px;
}

body {
  font-family: "Segoe UI", "Open Sans", "Helvetica Neue", "sans-serif";
  margin: 0;
  color: #eeeeee;
  background-color: #090E13;
  opacity: 0;
  transition: opacity 1s ease;
}

body.loaded {
  background-color:#090E13;
  opacity: 1;
}

a {
  color: #FFFFFF; 
  text-decoration: none;
}

blockquote {
  color: hsl(215, 10%, 70%);
  padding-left: 20px; /* Padding inside the blockquote */
  border-left: 5px solid hsl(215, 15%, 60%);
  margin-left: 0px; 
  font-style: italic; 
}

code {
  font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
  color: hsl(215, 10%, 70%);
  font-size: 1rem;
  background-color: hsl(215, 15%, 20%);
  border-radius: 3px;
  padding-left: 5px;
  padding-right: 5px;
}

pre > code {
  display: inline-block;
  background-color: hsl(215, 25%, 15%);
  padding: 0.7rem;
  border: 1px solid hsl(215, 25%, 20%);
  border-radius:8px;
  overflow-x: auto;
  max-width: 99%; 
  font-size: 0.9rem;
  line-height: 1.5rem;
}

hr {
  border-style: double;
  border-color: hsl(215, 15%, 35%) hsl(215, 15%, 35%); 
  margin-top: 2rem;
  margin-bottom: 2rem;
}

#header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  box-sizing: border-box;
  font-size: 1rem;
}

.header-content {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  background-color: #181E24;
  height: 2.2rem;
  padding: 0.7rem;
  justify-content: space-between;
  align-items: center;

  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 15px;
  
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

#search-input {
  color: #DDDDDD;
  background-color: #24292F;
  padding: 0.7rem;
  border-radius: 10px;
  outline: none;
  -webkit-appearance: none; 
  -moz-appearance: none; 
  appearance: none; 
  border-width: 0px;
  margin-left: 2%;
  width: 13%;
  transition: width 0.2s ease, margin-left 0.2s ease;
}

#search-input:hover, #search-input:focus {
  width: 15%;
  margin-left:0px;
}

#header-image {
  width: 100%;
  height: 500px;
}

#header ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 1.2rem;
  padding-left: 0px;
}

#header li {
  font-size: 1rem;
  padding: 0.5rem;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  font-weight: bold;
}

#header li:hover {
  background-color: hsl(215, 25%, 23%);
  border-radius: 5px;
}

#header li a {
  text-decoration: none;
  color: #eeeeee;
}

@media (max-width: 768px) {
  #header {
    font-size: 1.7rem;   
  }
  
  #header li {
    font-size: 1.6rem; 
    padding: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  } 
  
  #search-input {
    font-size: 1.6rem;
  }
  
  .header-content {
    height: 3.5rem; 
  }
}


/* main page */

#content {
  padding: 0px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  margin-top: -3rem;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}

#left-column {
  width: 23%;
  min-width: 260px;
}

#right-column {
  width: 77%;
  box-sizing: border-box;
  min-width: 900px; /* not sure how to do this none px */
}


.post-statistics {
  color: #999999;
  font-weight: bold;  
  display: flex; 
  gap: 1rem; 
  padding-left: 1rem;
  padding-bottom: 0.4rem;
}

.post-statistics-item {
  font-size: 0.7rem;
  line-height: 0.8rem;
  border: none;
  background: hsl(215, 15%, 23%);
  padding: 0.2rem;
  padding-right:.5rem;
  padding-left:.5rem; 
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius:4px;
}

.like-button {
  cursor: pointer;
  font-size: .7rem;
  transition: background 0.2s ease; 
}

.like-button:hover {
  background: hsl(215, 80%, 33%);
}

.like-icon {
  margin-right: 5px;
}

.post-statistics-count {
  margin-top:2px;
  font-weight: bold;
  color: #FFFFFF;
}





.post {
  width: 95%;
  background-color: #181E24;
  padding: 1.33rem;
  margin-bottom: 1.3rem;
  position: relative;
  align-items: stretch;
  display: flex;
  line-height: 1.8rem;
}

.post-content-wrapper { 
  width: 100%;
  flex-grow: 1; 
}

.post-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.7rem;
  margin-right: -1rem;
}

.post-button {
  background-color: hsl(215, 25%, 33%);
  color: hsl(215, 90%, 80%);
  font-size: 1.5rem;
  padding: 1.1rem;
  border: none;
  cursor: pointer;
  height: 90%; 
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  transition: transform 0.2s ease;
  border-right: 1px solid hsl(215, 25%, 50%);
}

.post-button:hover {
  background-color: hsl(215, 25%, 40%);
  transform: translateX(5px);
}

.post-title {
  display: flex;
  padding: 0px; 
  margin: 0px;
  padding-bottom: 15px;
}

a.post-title {
  padding: 0px; 
  margin: 0px;
  text-decoration: none;
  align-items: center;
  color: #FFFFFF;
}

a.post-title:hover {
  color: hsl(215, 90%, 80%); 
}

.indent-symbol {
  margin-left: -8px;
  color: hsl(215, 90%, 80%);
  margin-right: 0px;
  display: flex;
  align-items: center;
}

.indent-symbol-left {
  color: hsl(215, 90%, 80%);
  margin-right: 0px;
  display: flex;
  align-items: center;
}

.post-meta {
  color: #999999;
  font-weight: bold; 
  display: flex; 
  gap: 2rem;
  margin-bottom: 0.66rem; 
  padding-left: 1rem;
}

.post-meta-head {
  color: #999999;
  font-weight: bold; 
  display: flex; 
  margin-top: -10px; 
  padding-left: 15px;
}

.post-meta-item {
  max-width: 20rem;
  overflow: hidden;
  white-space: nowrap;
}

.post-summary {
  max-width: 100%;
  padding-left: 1rem;
  word-wrap: break-word; /* For older browsers */
  overflow-wrap: break-word; /* Modern standard */
}

.post-full {
  padding-left: 15px;
  max-width: 100%;
  word-wrap: break-word; /* For older browsers */
  overflow-wrap: break-word; /* Modern standard */
}

.post-full img {
  max-width: 100%;
  height: auto;
  display: block;
}

.post-full a {
  text-decoration: underline; 
}

.post-full h1 a {
  text-decoration: none; 
}

.post-full h1 {
  margin-top: 3.0rem;
  border-bottom: 1px solid  hsl(215, 20%, 20%);
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
}

.post-full h2 a {
  text-decoration: none; 
}

.post-full h2 {
  margin-top: 2rem;
  border-bottom: 1px dashed  hsl(215, 20%, 20%);
}

.hljs {
  background-color: hsl(215, 25%, 15%);
  padding: 0.7rem;
  border: 1px solid hsl(215, 25%, 20%);
  border-radius:8px;
  overflow-x: auto;
  max-width: 99%;
  font-size: 0.9rem;
  line-height: 1.5rem;
}


@media (max-width: 768px) {
  .post-title {
    font-size: 3.5rem;
    line-height: 3.5rem;
  }
  
  .post-meta {
    font-size: 1.4rem;
    line-height: 1.6rem;
  }

  .post-full {
    font-size: 2.0rem;
    line-height: 2.4rem;
  }
  
  .post-summary {
    font-size: 1.7rem;
    line-height: 2.2rem;
  }
  
  .post-content-wrapper:has(> .post-summary) {
    max-width: 93%;
  }
  
  .hljs {
    font-size: 1.7rem;
    line-height: 2.0rem; 
  }
}




/* left side stuff */

.left {
  background-color: #181E24;
  padding: 0.60rem;
  padding-left: 0.40rem;
  padding-right: 0.40rem;
  padding-bottom: 1.3rem;
}

span.left-title {
  color: hsl(215, 90%, 80%);
  margin-right: 6px;
  padding-top: 2px;
  display: inline-block;
  transform: scale(1, 3.5);
  line-height: 0.5rem;
  vertical-align: top;
  margin-bottom: 1.3rem;
  font-size: 1.1rem;
}

b.left-title {
  font-size: 1.1rem;
}

.centered {
  text-align: center;
}

.darker_text {
  color: #999999;
}

.vsep {
  margin-top: 1.2rem; 
}

.rounding {
  border-radius: 16px;
} 

.rounding2 {
  border-radius: 10px;
} 

.social {
  border-radius: 7px;
  padding: 0.5rem;
  background-color: hsl(215, 25%, 33%);
}

.category-list {
  margin-top: 0.7rem;
}

.category-item {
  padding: 0.25rem;
  display: flex; 
  justify-content: space-between;
}

.category-item:hover {
  background-color: hsl(215, 25%, 20%);
  border-radius: 5px;
}

.category-name {
  padding: 0.25rem;
  text-align: left;
  text-transform: capitalize;
  font-size: 1.1rem;
  transition: transform 0.1s ease;
}

.category-name:hover {
  transform: translateX(5px);
}

.category-count {
  text-align: right;
  background-color: hsl(215, 25%, 45%);
  padding: 0.4rem;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.8rem;
}

.tag-list {
  margin-top: 15px; 
}

.tag {
  padding: 0.25rem;
  justify-content: space-between;
  transition: transform 0.2s ease;
  background-color: hsl(215, 25%, 20%);
  border-radius: 5px;
  line-height: 2rem;
}

.dashed {
  border-bottom: 1px dashed hsl(215, 25%, 20%); 
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center; 
  color: #FFFFFF;
  text-decoration: none; 
  padding: 0.25rem;
  padding-left: 10px;
  padding-right: 10px;
  font-weight: bold;
}

.header-link:hover {
  background-color: hsl(215, 25%, 23%);
  border-radius: 5px;
}

.home-icon {
  padding-right: 0.25rem;
}

@media (max-width: 768px) {
  html {
      zoom: 0.34; /* hack */
  }

  #content {
      /* flex-direction: column; */
  }
  
  #left-column, #right-column {
      width: 100%;
      padding: 10px 0;
  }
}