:root {
  --color-1: #fbfbfd;
  --color-2: #dcd8f1;
  --post-border: none;
  --link-color: #599dff;
  --blockquote-color: #cec9e6cd;
  --navbar-color: var(--color-1);
  --post-card-color: hsl(290 50% 99%);
  --post-card-shadow: inset 0 1px 0 rgba(255, 255, 238, 0.872), 0 2px 3px 0 rgba(95, 141, 210, 0.18), 0 2px 4px 0 rgba(198, 198, 198, 0.192);
  --post-card-shadow-hover: inset 0 4px 0 #fff, 0 4px 5px 0 rgba(66, 103, 159, 0.18), 0 4px 6px 0 rgba(120, 117, 117, 0.192);
  --text-color: #232323;
  --nav-hover-color: rgb(198, 191, 232);
  --background-gradient: linear-gradient(180deg, var(--color-1) 5%, var(--color-2) 100%);
  --code-box-shadow: 0 4px 8px 0 rgba(95, 141, 210, 0.18), 0 6px 10px 0 rgba(198, 198, 198, 0.192);
  --bs-heading-color: var(--text-color);
  --bs-body-color: var(--text-color);
  --bs-nav-link-color: var(--text-color);
  --bs-nav-link-hover-color: var(--text-color);
  --button-close: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
  --navbar-toggler-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2823, 23, 23, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dark {
  --color-1: #1a0826; 
  --color-2: #000000;
  --link-color: #599dff;
  --color-post-card-svg: #351c45;
  --post-border: #383b3d;
  --blockquote-color: #351c45;
  --post-card-color: #ffffff0e;
  --post-card-shadow:  inset 0 1px 0 rgba(132, 32, 157, 0.18), 0 2px 4px 0 rgba(16, 1, 1, 0.18);
  --post-card-shadow-hover:  inset 1px 4px 4px rgba(174, 79, 198, 0.15), 0 8px 10px 0 rgba(80, 46, 108, 0.3);
  --navbar-color: var(--color-1);
  --code-box-shadow: 0 4px 10px 0 rgba(66, 31, 94, 0.2), 0 2px 5px 0 rgba(118, 118, 118, 0.192);
  --text-color: #e5e5e5;
  --nav-hover-color: #8829d2;
  --background-gradient: linear-gradient(180deg, var(--color-1) 5%, var(--color-2) 100%);
  --bs-heading-color: var(--text-color);
  --bs-body-color: var(--text-color);
  --button-close: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
  --navbar-toggler-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Override bootstrap */
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.h1, h1 {
  margin-top: 8rem;
}

td, th {
  padding: 8px;
}

table {
  margin-bottom: 2rem;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

.row {
  max-width: 100vw;
}

html {
  background: unset;
}

body {
  background: unset;
  display: flex;
  flex-flow: column;
  background-image: var(--background-gradient);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "avenir next", avenir, helvetica, "helvetica neue", ubuntu, roboto, noto, "segoe ui", arial, sans-serif
}

.navbar {
  --bs-navbar-toggler-icon-bg: var(--navbar-toggler-icon);
}

.navbar-nav {
  justify-content: center;
}

.nav-link {
  color: var(--text-color);
}
.nav-link:focus, .nav-link:hover {
  color: var(--nav-hover-color);
}

@media (max-width: 767px) {
  .navbar-expand-md .offcanvas {
    max-width: 75%; 
  }
}

.offcanvas {
  background-color: var( --navbar-color);
}

.btn-close {
  background: transparent var(--button-close) center/1em auto no-repeat;
}

.main {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-grow: 1;
}

.hr {
  margin-top: .5rem;
  width: 80px;
  border-top: 2px solid var(--text-color);
}

.social-logo {
  margin-right: 10px;
}

.body-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 auto;
}

.navbar {
  width: 100%;
}

@media(min-width: 768px) {
  .navbar {
    background: var(--navbar-color);
  }
}

.container {
  max-width: 95%;
}

.side-bar {
  max-width: 350px;
}

.profile-pic {
  width: 275px;
  border-radius: 50%;
  cursor: default;
}

.profile-desc {
  margin-top: 20px;
  margin-left: 30px;
}

.main-content {
  width: 90%;
}

.main-content > p:first-of-type {
  margin-top: 5rem;
}

.about-content {
  max-width: 900px;
  width: 90%;
}

.row {
  --bs-gutter-x: 0px;
}

@media(min-width: 500px) {
  .main-content {
    width: 75%;
    max-width: 1000px;
  }
}

.main-content img {
  max-width: 100%;
  border-radius: 5px;
}

#modal {
  display: none;
}

@media (min-width: 500px) {

  img:hover {
    cursor: pointer;
  }

  /* The Modal (background) */
  #modal {
    position: fixed; /* Stay in place */
    z-index: 1020; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    align-items: center;
    justify-content: center;
  }
  
  #modal-content {
    margin: auto;
    text-align: center;
  }
  
  #modal-image {
    max-width: 91%;
    display: inline-block;
  }

  #modal-legend {
    color: white;
    position: relative;
    background-color: #00000070;
    width: 91%;
    padding: 2px 2px;
  }
}


.close {
  color: #000;
  display: block;
  font-size: 20px;
  padding: 12px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  text-decoration: none;
  cursor: pointer;
}



.checkbox {
  opacity: 0;
  position: absolute;
}

.checkbox-label {
  background-color: #111;
  width: 50px;
  height: 26px;
  border-radius: 50px;
  position: relative;
  padding: 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkbox-label .ball {
  background-color: #fff;
  width: 22px;
  height: 22px;
  position: absolute;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  transition: transform 0.2s linear;
}

.checkbox:checked + .checkbox-label .ball {
  transform: translateX(24px);
}

blockquote {
  background: var(--blockquote-color);
  border-left: 4px #a2a1a1 solid;
  padding-left: 7px;
}

blockquote p {
  padding-top: 5px;
  padding-bottom: 5px;
}

.codehilite {
  padding-left: 10px; 
  padding-top: 5px;
  padding-bottom: 5px;
  border-radius: 5px;
  box-shadow: var(--code-box-shadow);
  margin-bottom: 10px;
}

.error-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 40vh;
}

.footer {
  flex-shrink: 0;
  margin-top: 50px;
  color: rgba(128, 128, 128, 0.502);
  font-size: 12px;
}

.spacer-m {
  height: 100px;
}
.spacer-s {
  height: 50px;
}

.social-link:link, .social-link:visited, .social-link:hover, .social-link:active {
  text-decoration: none;
  color: var(--text-color);
}

.post-card {
  margin-top: 15px;
  margin-bottom: 15px;
  border-radius: 25px;
  box-shadow: var(--post-card-shadow);
}

.post-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}


.post-card-inner {
  display: flex;
  flex-direction: row;
  padding: 10px;
  border-radius: 25px;
  background-image: var(--post-background-svg)
}

.post-card-img {
  width: 30%;
  margin-right: 20px;
  object-fit: cover;
  object-position: top right;
}


@media (max-width: 767px) {
  .post-card-inner {
    flex-direction: column;
  }
  
  .post-card-img {
    width: 100%;
    /* height: 30vh; */
    margin-right: none;
    margin-bottom: 7px;
  }
}


.post-card:hover {
  box-shadow: var(--post-card-shadow-hover);
}

.post-card a {
  text-decoration: none;
  color: var(--text-color)
}
.post-card a > * {
  text-decoration: none;
  color: var(--text-color)
}

.badge.Google_Maps {
  background: #dfcb31dc;
}
.badge.Web {
  background: #dfcb31dc;
}
.badge.Hacks {
  background: rgba(240, 69, 97, 0.781);
}
.badge.ML {
  background: rgba(69, 109, 240, 0.781);
}

/* Scroll bar */

/* custom scrollbar in the info overlay */
::-webkit-scrollbar {
  width: 20px;
}

body::-webkit-scrollbar-track {
  background-image: var(--background-gradient);
}
::-webkit-scrollbar-thumb {
  background-color: #808384;
  border-radius: 20px;
  border: 6px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #555656;
}

.icon-toggle {
  cursor: pointer;
}