/**
 * CONTENT
 * =======
 * 00. STANDARD STYLING
 * 01. NAVBAR
 * 02. ABOUT ME
 * 03. BLOG FEED
 * 04. BLOG POSTS
 * 05. ERROR
 * 06. RESPONSIVE DESIGN
 */
html,
body {
  align-items: center;
  display: flex;
  font-family: "JetBrains Mono", serif;
  justify-content: center;
  margin: 0px;
  overflow-x: hidden !important;
  overflow-y: auto;
}

body {
  background: #111016;
  font-size: 20px;
}

h1,
h2,
h3 {
  color: #faf9f6;
}

h2 {
  font-size: 25px;
}

h3 {
  font-size: 32px;
}

p {
  color: #c8c7c4;
}
p a {
  text-decoration: underline;
  text-decoration-color: #c8c7c4;
}
p a:hover {
  text-decoration-color: #8caaee;
}

ul {
  width: 100%;
  padding: 0;
}
ul li {
  list-style-type: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  padding: 0px;
  gap: 10px;
}
ul li a {
  flex-grow: 1 1 auto;
  flex-shrink: 0;
  min-width: 90%;
  max-width: 0%;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
ul li small {
  flex: 0 0 auto;
  font-weight: normal;
  text-align: left;
  white-space: nowrap;
  min-width: 10%;
}

a {
  color: #f0f0f0;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-decoration-color: #c8c7c4;
}

main,
.blogPosts {
  max-width: 40%;
  min-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0px;
}

main {
  padding-top: 125px;
}
main .blog,
main .social {
  margin-top: 2%;
  padding-top: 10px;
  padding-bottom: 10px;
  color: #c8c7c4;
}
main .blog h1,
main .social h1 {
  text-decoration: underline;
  text-decoration-color: #8caaee;
}
main .blog p,
main .social p {
  width: 100%;
  text-align: left;
}

header.navbar {
  position: absolute;
  overflow-x: hidden !important;
  top: 10px;
  padding: 10px 0;
  background: #111016;
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  transform: translateX(-50%);
  transition: top 0.5s;
  left: 30%;
}
header.navbar a {
  color: #f0f0f0;
  text-decoration: none;
}
header.navbar a:hover {
  text-decoration: none;
  color: #8caaee;
}

main.aboutme .header {
  align-items: left;
}
main.aboutme .header h1 {
  margin: 0;
  font-size: 60px;
}
main.aboutme .header h2 {
  margin-top: 5px;
  margin-bottom: 5px;
}
main.aboutme .header h2 a {
  text-decoration: underline;
  text-decoration-color: #1a1821;
}
main.aboutme .header h2 a:hover {
  text-decoration-color: #c8c7c4;
}
main.aboutme .header .name {
  color: #8caaee;
  text-decoration: underline;
}
main.aboutme .header .at {
  color: #c8c7c4;
}
main.aboutme .header p {
  margin-top: 10px;
}
main.aboutme .divider {
  margin-top: 5%;
  margin-bottom: 0%;
  height: 2px;
  background: #1a1821;
  border: none;
}
main.aboutme .blog h3,
main.aboutme .social h3 {
  margin-top: 20px;
  text-decoration: underline;
  text-decoration-color: #8caaee;
}
main.aboutme .allPosts {
  color: #c8c7c4;
}
main.aboutme .allPosts:hover {
  color: #8caaee;
  text-decoration: none;
}
main.aboutme .allPosts img.outward-icon {
  top: 2.5px;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.2s ease-in-out;
}
main.aboutme .allPosts:hover img.outward-icon {
  transform: translate(5px, -5px);
}
main.aboutme .social {
  margin-bottom: 15px;
}

main.blogFeed h1 {
  margin: 0px;
}
main.blogFeed li {
  width: 95%;
}
main.blogFeed .intro {
  margin-top: 5px;
  margin-bottom: 35px;
}

.blogPosts h1 {
  color: #f0f0f0;
  padding-top: 100px;
  text-align: left;
}
.blogPosts h2 {
  color: #c8c7c4;
  padding-left: 0px;
  margin-top: -25px;
  text-align: right;
}
.blogPosts h3 {
  margin-bottom: 20px;
  text-align: left;
}
.blogPosts p {
  text-align: justify;
  padding-bottom: 10px;
}
.blogPosts img {
  width: 100%;
  border-radius: 3%;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.5019607843);
}
.blogPosts pre,
.blogPosts .toTop {
  font-size: 18px;
  color: #c8c7c4;
  font-family: "JetBrains Mono", serif;
}
.blogPosts pre {
  background: #1a1821;
  border: 1px solid #1a1821;
  border-left: 3px solid #8caaee;
  break-inside: avoid;
  display: block;
  line-height: 1.6;
  margin-bottom: 1.6em;
  margin: 0 auto 1.6em;
  overflow: auto;
  padding: 1em 1.5em;
  white-space: pre-wrap;
  width: 90%;
  word-wrap: break-word;
}
.blogPosts .toTop {
  background-color: #111016;
  border-radius: 10px;
  border: 1px solid #111016;
  cursor: pointer;
  display: none;
  margin: 15px auto;
  padding: 5px;
}
.blogPosts .toTop:hover {
  border: 1px solid #262330;
  background-color: #262330;
  transition: 0.3s;
}

main.error {
  width: 25%;
}
main.error h1 {
  color: #8caaee;
  font-size: 150px;
  width: 100%;
  text-align: center;
  margin-bottom: 0px;
  text-decoration: underline;
}
main.error h2 {
  margin-top: 0px;
  width: 100%;
  text-align: center;
  font-size: 35px;
}

@media only screen and (max-width: 2000px) {
  header.navbar {
    left: 27.5%;
  }
  main,
  .blogPosts {
    max-width: 50%;
    min-width: 700px;
  }
  main {
    padding-top: 125px;
  }
  ul li {
    width: 97.5%;
  }
}
@media only screen and (max-width: 1500px) {
  body {
    font-size: 16px;
  }
  h2 {
    font-size: 23px;
  }
  h3 {
    font-size: 30px;
  }
  header.navbar {
    left: 25%;
  }
  main {
    padding-top: 100px;
  }
  main.aboutme .header h1 {
    font-size: 56px;
  }
  main.aboutme .header h2 {
    font-size: 21px;
  }
  main.aboutme .allPosts img.outward-icon {
    width: 15px;
    height: 15px;
  }
  .blogPosts pre,
  .blogPosts .toTop {
    font-size: 14px;
  }
}
@media only screen and (max-width: 1000px) {
  header.navbar {
    left: 22.5%;
  }
  ul li {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  ul li a {
    min-width: 100%;
  }
  ul li small {
    min-width: 100%;
    text-align: left;
  }
  main,
  .blogPosts {
    max-width: 75%;
    min-width: 500px;
  }
  main {
    padding-top: 85px;
  }
  .blogPosts .toTop {
    border: 1px solid #262330;
    background-color: #262330;
  }
}
@media only screen and (max-width: 800px) {
  header.navbar {
    left: 42.5%;
    gap: 15px;
    min-width: 80%;
  }
  main,
  .blogPosts {
    padding-top: 0;
    max-width: 90%;
    min-width: 90%;
  }
  main h1,
  .blogPosts h1 {
    padding-top: 65px;
  }
  main.aboutme .header {
    padding-top: 20px;
    margin-bottom: 30px;
  }
  main.aboutme .header h1 {
    font-size: 40px;
  }
  main.aboutme .header h2 {
    font-size: 19px;
  }
  .blogPosts h3 {
    margin-top: 0px;
  }
  .blogPosts pre {
    width: 80%;
  }
}
