/* --- Global Reset & Base --- */
:is(h1, h2, h3, h4, h5, h6, tr) {
  color:lightcyan !important;
}

:is(p, ul, ol, li, td,hr,nav) {
  color: whitesmoke !important;
}

nav a {
  color:lightgrey !important;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

.underline {
  text-decoration: underline;
}

p {
  font-weight: normal;
}

::selection {
  color: #e7860f;
  background: #afcdda;
}

::-moz-selection {
  color: #e7860f;
  background: #afcdda;
}

.background-bg {
  background-color: #212121;
}

.background-black {
  background-color: rgb(38, 38, 38);
}

.hero-text {
  text-align: center;
  padding: 11rem 0;
  color: #212121;
}

.hero-text h1 {
  font-family: "Dynalight", cursive;
  font-weight: 500;
  font-size: clamp(8rem, 12vw + 2rem, 16rem);
  transform: rotate(-15deg) skew(-25deg);
  letter-spacing: -0.0000009em;
  line-height: 1;
  color: #111;
}

.hero-gradient-bg {
  background: radial-gradient(circle, #accbee 60%, #e2fee5db 100%);
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-gradient-bg p {
  font-size: 1.1rem;
  color: #555;
}

/* --- Navbar --- */
.navbar-bg {
  box-shadow: 0 0 5px 0;
  background-color: #6341821d;
  backdrop-filter: blur(10px);
  background: linear-gradient(45deg,
      rgba(195, 175, 255, 0.2),
      rgba(100, 216, 243, 0.2),
      rgba(236, 222, 198, 0.2),
      rgba(146, 245, 214, 0.2),
      rgba(149, 52, 219, 0.3)) 0 0 / 1000% no-repeat;
  animation: gradientAnimation 30s ease infinite;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 30%, 0 0;
  }

  50% {
    background-position: 100% 70%, 0 0;
  }

  100% {
    background-position: 0% 30%, 0 0;
  }
}

.nav-link {
  font-weight: 100;
}

.nav-link:hover {
  font-weight: 500;
  font-style: italic;
  text-decoration: underline;
  background-color: rgba(137, 43, 226, 0.09);
  border-radius: 19%;
}

.nav-emoji .nav-emoji-2 {
  opacity: 0;
  position: absolute;
  transition-duration: 0.3s;
}
.nav-emoji:hover .nav-emoji-1 {
  opacity: 0;
  transition-duration: 0.3s;
}

.nav-emoji:hover .nav-emoji-2 {
  opacity: 1;
  transition-duration: 0.3s;
}
.nav-emoji-2,
.nav-emoji-1 {
  position: absolute;
  right: 18px;
  top: 15px;
}


/* ensure your content stays above */
.container {
  position: relative;
  z-index: 1;
}

/* --- Layout --- */
.container {
  display: flex;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
}

.content {
  flex: 1;
  padding: 20px;
}

.separator {
  width: 1px;
  background-color: #ddd;
  height: calc(100vh - 60px);
}

.matter {
  flex: 1;
}

.layout {
  display: flex;
  gap: 20px;
  padding: 20px;
  margin: auto;
  width: 90%;
  align-items: flex-start;
}

#blog-side {
  display: none;
  color: red;
}

/* --- Sidebar --- */
.sidebar {
  width: 250px;
  padding: 20px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  position: sticky;
  top: 60px;
  z-index: 900;
}

#sidebar-shadow {
  border-left: 3px solid #5f3e7b59;
  box-shadow: -3px 0 5px rgba(0, 0, 0, 0.25);
  /* left shadow */
}

.sidebar nav ul {
  list-style-type: none;
  padding: 0;
}

.sidebar nav ul li {
  margin-bottom: 10px;
}

.sidebar nav ul li ul {
  margin-top: 5px;
  margin-left: 20px;
}

.sidebar nav ul li a {
  text-decoration: none;
  color: #ccc;
  font-weight: bold;
}

.sidebar nav ul li a:hover {
  color: #007BFF;
}

/* --- Content Area --- */
.content :is(h1, h2, h3, h4, h5, h6, tr) {
  color: burlywood;
}

.content :is(p, ul, ol, li, td) {
  color: whitesmoke;
}

.sidebar :is(li, a, h2, h3) {
  color: whitesmoke;
}

.content section {
  margin-bottom: 40px;
}

/* --- Footer --- */
footer {
  display: block;
  height: fit-content;
  margin-top: auto;
}

/* --- Code Blocks --- */
.code-snippet tr {
  border: solid #282a3a;
}

.code-snippet code {
  font-weight: bolder;
  text-align: center;
}

.code-snippet pre {
  display: inline-block;
  margin: 5px;
  padding: 5px;
}

.code,
code {
  background: rgba(135, 131, 120, 0.15);
  border-radius: 3px;
  padding: 0.2em 0.4em;
  font-size: 85%;
  tab-size: 2;
}

.code {
  padding: 1em 1em;
}

.code-wrap {
  white-space: pre-wrap;
  word-break: break-all;
}

/* --- Cards --- */
.card {
  transition: transform 0.3s ease-in-out;
  background-color: rgb(70, 70, 70) !important;
  color: whitesmoke;
}

.card:hover {
  transform: translateY(-5px);
}

/* --- Figures --- */
figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

figure img {
  max-width: 100%;
}

figcaption {
  opacity: 0.5;
  font-size: 85%;
  margin-top: 0.5em;
}

/* --- Disqus --- */
.disqus_container {
  padding: 2%;
}

#disqus_thread {
  padding: 0 1.5dvh;
  margin-top: 40px;
  width: 100%;
}

/* --- Media Queries --- */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    margin-top: 0;
    border-left: none;
    box-shadow: none;
  }

  .separator {
    display: none;
  }

  .content {
    padding: 10px;
  }

  #disqus_thread {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .content {
    margin-left: 0;
  }

  .toggle-btn {
    display: block;
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1000;
  }
}

/* --- Styled H1 (Used in Linux Page) --- */
.sh1 h1 {
  text-transform: capitalize;
  position: relative;
}

.sh1 h1::before {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  content: "";
  background-color: #c50000;
}

.sh1 h1 span {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
  line-height: 3em;
  color: rgba(0, 0, 0, 0.4);
  padding-bottom: 10px;
}



.sidebar .list-group,
.sidebar .list-group-item {
  background-color: transparent;
  border: none;
  color: whitesmoke;
}
