/* General Reset Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

@font-face {
  font-family: "Playwrite";
  src: url("playwrite.ttf");
  font-display: swap;
}

html,
body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  height: -webkit-fill-available;
  margin: 0;
  padding: 0;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow-x: hidden; /* Prevent horizontal overflow */
  overflow-y: hidden; /* disable vertical scrolling*/
}

body.no-scroll {
  overflow: hidden; /* Prevent body from scrolling when inspector is open */
}

a {
  text-decoration: none;
  color: #0b16ad;
}

h1, h2, h3, h4, h5, h6 { margin-top: 1em; }

/* Container Styles */
.container {
  display: flex;
  flex-direction: column;
  flex:1;
}

/* Header Styles */
.header {
  height: 64px;
  background: #f0f0f0;
  padding: 1em;
  z-index: 10; /* Ensure the header is above other content */
  flex-shrink: 0; /* Prevent header from shrinking */
  position: fixed; /* Keep header fixed at the top */
  top: 0;
  left: 0;
  width: 100%;
}

/* List Styles */
.list {
  flex: 1; /* Allow the list to grow and take available space */
  overflow-y: auto; /* Allow scrolling for list content */
  padding: 1em; /* Add padding for better readability */
}

/* Inspector Styles */
.inspector {
  position: fixed; /* Make the inspector stick to the right-hand side */
  top: 64px; /* Align just under the header */
  right: 0; /* Align to the right side of the viewport */
  width: 400px; /* Fixed width */
  height: calc(100vh - 60px); /* Full viewport height minus offset for the top */
  border-left: 1px solid #ccc;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
  padding: 1em;
  overflow-y: auto; /* Make sure content inside the inspector is scrollable if needed */
  -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
  z-index: 1; /* Ensure inspector appears above footer */
  transform: translateX(100%); /* Initially off-screen to the right */
  opacity: 0; /* Initially invisible */
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out; /* Smooth transition for visibility */
}

/* Show inspector when container has inspector-visible class */
.container.inspector-visible .inspector {
  transform: translateX(0); /* Slide into view */
  opacity: 1; /* Make fully visible */
}


/* Inspector Content Styling */
.inspector-content {
  box-sizing: border-box;
  padding: 10px;
}

p {
  margin: 0.5em 0;
}

img {
  max-width: 100%;
  height: auto;
}

.button-container {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Responsive Styles for Small Screens */
@media (max-width: 500px) {
  button.close {
    top: 10px; /* Adjust positioning of the close button */
    right: 10px;
  }

  .inspector {
    width: 100%;
  }
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", sans-serif;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url("/noise.webp");

  background-attachment: fixed;
  overflow-x: hidden;
}