/* styles.css */

body{
  background-image: url(assets/pic0.avif);
  background-repeat: no-repeat;
  background-size:cover;
  background-attachment: fixed;
  min-height: 100dvh;
  background-color: #fff;
  overflow: hidden;
}

.site-logo {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
}

.site-logo img {
  height: 120px;
  width: auto;
  transition: transform 0.2s ease;
}

.site-logo img:hover {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .site-logo img {
    width: 40px;
    height: 40px;
  }
}

img{
  max-width: 100%;
  min-width: none;
  max-height: 50%;
  width: 480px;
  object-fit: contain;
}

iframe{
  max-width: 100%;
  min-width: none;
  max-height: 50%;
  width: 480px;
  object-fit: contain;
}

video{
  max-width: 100%;
  min-width: none;
  max-height: 50%;
  width: 480px;
  object-fit: contain;
}

a:link{
    color:#FFFFFF;
}

a:visited{
    color:#FFFFFF;
}

a:hover {
    color:#FFFFFF;
}

.container {
  position: absolute;
  overflow-y: auto;
  width: 92%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Black with 50% opacity */
  margin: auto;
  border-radius: 10px; /* Optional: for rounded corners */
  color: white; /* Make text visible against the dark background */
}

.container-whitespace { /* Adding this because I don't feel like editing all my posts just to fit the new white-space rule lol*/
  position: absolute;
  overflow-y: auto;
  width: 92%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Black with 50% opacity */
  margin: auto;
  border-radius: 10px; /* Optional: for rounded corners */
  color: white; /* Make text visible against the dark background */
  white-space: pre;
}

.index {
  position: relative;
  overflow-y: auto;
  width: 92%;
  height: auto;
  background-color: rgba(0, 0, 0, 0.5); /* Black with 50% opacity */
  margin: auto;
  border-radius: 10px; /* Optional: for rounded corners */
  color: white; /* Make text visible against the dark background */
}

:root {
  --main-color: #3498db;
  --font-family: 'Arial', sans-serif;
}

.header {
  position: relative;
  overflow-y: auto;
  width: 92%;
  height: auto;
  background-color: rgba(0, 0, 0, 0.5); /* Black with 50% opacity */
  margin: auto;
  border-radius: 10px; /* Optional: for rounded corners */
  color: white; /* Make text visible against the dark background */
}
.content {
  margin-left: 60px;
  padding: 1em;
  overflow: hidden;
  text-wrap: wrap;
}

ul
{
  list-style-type: none;
}

li a {
  display: block;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
}

.sidebar ul li:hover {
  background-color: #29292a;
  border-color: #fff; /* Adds a white border on hover */
}

/* Non-hoverable section */
.sidebar ul li.no-hover:hover {
  background-color: transparent; /* Prevent background color change on hover */
  border-color: transparent; /* Prevent border color change */
  cursor: default; /* Optional: make cursor look non-interactive */
}

tr:nth-child(1) {
  background-color: #84e4e2;
  color: white;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: -250px; /* Initially hidden off-screen */
  width: 250px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75); /* Black with 50% opacity */
  color: #fff;
  transition: left 0.3s ease; /* Smooth transition for sliding in and out */
}

.sidebar.active {
  left: 0; /* When active, slide in */
}
/* Hover effect for sidebar items */


/* Burger Menu Icon */
.burger-menu {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  cursor: pointer;
}

.burger-icon span {
  display: block;
  width: 30px;
  height: 4px;
  margin: 6px 0;
  background-color: #3498db;
  transition: 0.3s ease;
}

/* Burger icon animation */
.burger-menu.active .burger-icon span:nth-child(1) {
  transform: rotate(45deg);
  transform-origin: top left;
}

.burger-menu.active .burger-icon span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-icon span:nth-child(3) {
  transform: rotate(-45deg);
  transform-origin: bottom left;
}

.xScrollable {
  overflow-x: scroll;
}

/* Base style for inline images */
.content img {
  width: 480px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect (zoom and subtle highlight) */
.content img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.clickable-img {
  cursor: pointer;
  transition: transform 0.2s;
}

.clickable-img:hover {
  transform: scale(1.03);
}

/* The overlay that appears when you click an image */
.image-overlay {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

/* Centered image styling */
.image-overlay img {
  width: auto;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 15px;
  border-radius: 10px;
  transform: scale(1);
  animation: zoomIn 0.25 ease forwards;
}

.image-caption {
  color: #fff;
  font-size: 1rem;
  opacity: 0.85;
  max-width: 90vw;
  text-align: center;
  line-height: 1.4;
}

/* Optional smooth fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  to { transform: scale(1); }
}
