/* Tokyonight Color Scheme */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');

* {
  box-sizing: border-box;
}

/* Base Background Color */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #1a1b26;
  color: #a9b1d6;
  font-family: 'Fira Code', monospace;
  font-size: 16px; /* Default font size */
}

html {
  font-size: 16px; /* Default font size for most devices */
}

@media (max-width: 48rem) { /* 768px or smaller */
  html {
    font-size: 14px; /* Slightly smaller font size for mobile */
  }
}

/* Flexbox Layout */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  background-color: #24283b;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensure the container takes up at least the full height of the screen */
  width: 100%;
  max-width: 50rem; /* 800px becomes 50rem */
  padding: 0rem;
  box-sizing: border-box;
  margin: 0 auto; /* Center the container if needed */
  flex-grow: 1; /* Allow the content to grow and push the footer down */
}


/* Sticky Nav Bar */
.navbar {
  position: sticky;
  top: 0;
  background-color: #3b4261;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  z-index: 999;
}

.nav-title {
  color: #7aa2f7;
  font-weight: bold;
}

.nav-title img {
  height: 1em; /* Make image height same as text */
  width: auto; /* Maintain aspect ratio of the image */
  vertical-align: baseline; /* Vertically align image with the text */
}

.nav-links {
  display: flex;
  gap: 1rem;  
  flex-direction: row;
  transition: opacity 0.3s ease, transform 0.3s ease; /* Add transition property */
}

.nav-links.active {
  display: flex;
  animation: fadeIn 0.3s ease; /* Add animation property */
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;  /* 1.5rem = 24px */
  color: #00ffcc;
  cursor: pointer;
}

/* Close Button for Mobile */
.close-menu {
  display: none;
  font-size: 2rem;  /* 2rem = 32px */
  color: #00ffcc;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Main Content */
.main {
 display: flex;
 flex-direction: column;
 padding: 1rem;
 background-color: #24283b;
}

.image-container {
 display: flex;
 flex-direction: column; /* Stack image and text vertically */
 align-items: center; /* Center items horizontally */
 justify-content: center; /* Center items vertically */
 text-align: center; /* Center text inside the container */
 width: 100%;
 padding: 0;
 box-sizing: border-box;
}

.image-container img {
 max-width: 50%; /* Make sure the image respects the container's width */
 height: auto; /* Maintain aspect ratio */
}

.description {
 text-align: center; /* Center the description text */
 font-style: italic;
 color: #9d7cd8;
}
  
h1, h2 {
  text-align: center;
  margin-bottom: 1rem;
}

h1 {
  color: #9d7cd8;
  font-size: 2.0rem;
}

h2 {
  color: #41a6b5;
  font-size: 1.5rem; /* 1.75rem = 28px */
}

/* Paragraph and List Styles */
p {
  margin-bottom: 1rem;
}

li {
  margin-bottom: 1em;
}

a {
  color: #00ffcc;
  position: relative;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.125rem; /* 2px becomes 0.125rem */
  width: 100%;
  height: 0.125rem;  /* 2px becomes 0.125rem */
  background-color: #00ffcc;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

a:hover {
  color: #ffffff;
}

a:hover::after {
  transform: scaleX(1);
  background-color: #00ffcc;
  bottom: -0.125rem;
}

/* Footer */
footer {
  text-align: center;
  color: #565f89;
  padding: 1rem;
  font-size: 0.8rem; /* 0.8rem = 12.8px */
  background-color: #24283b;
  font-size: 0.9rem; /* 0.9rem = 14.4px */
  margin-top: auto; /* This will push the footer to the bottom */
}


/* Responsive Styles */
@media (max-width: 48rem) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #3b4261;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* Add overflow property */
    max-height: 0; /* Initialize max-height to 0 */
    transition: max-height 0.3s ease; /* Add transition property */
  }

  .nav-links.active {
    max-height: 20rem; /* Set max-height to a value that's larger than the menu's height */
    transition: max-height 0.3s ease; /* Add transition property */
    padding: 0.15em;
  }
  
  .menu-toggle {
    display: block;
    padding: 0.15em;
  }
}

table {
    border-collapse: separate;
    border-spacing: 0.3em; /* space between cells */
}

td, th {
   padding: 10px;        /* space inside cells */
   border: none;         /* ensure no visible borders */
   vertical-align: top;
   text-align: left;
}
