@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

/* Global */
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.55rem;
}

code, pre {
  background-color: rgba(246, 242, 240, 1) !important;
  font-size: 0.95em !important;
}

.katex { font-size: 1.2em !important; }

a {
  text-decoration: none;
  color: black;
}

a:hover {
  color: blue;
  background-color: rgba(0, 0, 0, 0.1);
  text-decoration: underline;
}

/* Home animation */
#canvas-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
  width: 100vw;
  margin: 0rem;
  padding: 0rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  flex-direction: column;
}

.canvas-title-container {
  display: flex;
  margin-top: 1rem;
  margin-bottom: 1rem;
  justify-content: center;
  align-items: center;
}

.canvas-nav-container {
  display: flex;
  margin-top: -0.5rem;
  padding-top: 0rem;
  justify-content: center;
  align-items: center;
}

.canvas-nav-button {
  padding: 0 0.75rem;
}

.canvas-title {
  margin: 0rem;
  padding: 0rem;
  margin-bottom: 0.75rem;
  font-family: 'Lora';
  font-weight: 400;
  font-size: 1.9rem;
}

.canvas-animation-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
  margin-bottom: 0rem;
  padding-bottom: 0rem;
}

/* Containers */
.flex-wrapper {
  display: flex;
  min-height: 90vh;
  flex-direction: column;
  justify-content: flex-start;
}

.row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
}

.column-center {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 1;
  max-width: 768px;
}

.column-edge {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: 10%;
  /* background-color: rgb(100, 100, 100); */
}

/* Header */
.header-title {
  margin: 0.25rem;
  padding: 0rem;
  margin-bottom: 0.75rem;
  font-family: 'Lora';
  font-weight: 400;
  font-size: 1.75rem;
}

.header-container {
  margin-top: 1.25rem;
}

.header-nav-button {
  padding-right: 0.25rem;
  padding-left: 0.25rem;
}

#site-name {
  margin-left: 0.3rem;
  margin-bottom: 0.75rem;
}

#site-caption {
  margin-left: 0.3rem;
  padding-top: 0rem;
  margin-top: 0rem;
}

/* Blog */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Arial', sans-serif;
  font-weight: 700;
}

.blog-gallery-container {
  margin: 0rem;
  padding-top: 0.5rem;
}

.blog-gallery-link {
  margin-left: 0.25rem;
}

.blog-title {
  padding-top: 0.5rem;
  font-family: 'Arial', sans-serif;
}

.blog-date {
  padding-top: 0rem;
  margin-top: 0rem;
  font-family: 'Arial', sans-serif;
  font-weight: 200;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.75);
}

/* Software */
.software-title {
  padding-top: 0.5rem;
  font-family: 'Arial', sans-serif;
}

.software-summary {
  padding-top: 0rem;
  margin-top: 0rem;
  font-family: 'Arial', sans-serif;
  font-weight: 200;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.9);
}

/* Footer */
/* Make a footer with gray background that spans entire page and fix footer to bottom of page but if content goes past page then footer should be out of view. */
#footer-container {
  height: 100px;
  margin-top: auto;
  margin-bottom: 0px;
  margin-left: 0px;
  margin-right: 0px;
  padding: 1rem;
}

/* Range slider */
.slider {
    position: absolute;
    margin-top: 0px;
    border-radius: 0px;
    width: 153px;
    height: 5px;
    -webkit-appearance: none;
    background: transparent; /* Ensure the track is transparent */
}

/* Track styling */
input::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.15);
    width: 100%;
    height: 12px; /* Height of the track */
    border-radius: 10px;
    overflow: visible;
}

/* Thumb styling */
input::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: radial-gradient(circle at center, rgb(119, 254, 154), rgb(26, 194, 252) 80%);
    width: 25px; /* Width of the thumb */
    height: 25px; /* Height of the thumb */
    border-radius: 50%; /* Make it circular */
    transform: translateY(-25%); /* Center the thumb vertically */
    cursor: pointer; /* Add pointer cursor for better UX */
    box-shadow: none;
    position: relative;
    z-index: 1; /* Ensure the thumb is above the track */
}

/* Figure box */
.figure-box {
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Responsive adjustments for tablets and phones */
@media (max-width: 768px) {
  .canvas-title {
    font-size: 1.3rem;
    text-align: center;
  }

  .canvas-animation-container {
    height: 180px;
  }

  .column-center {
    padding: 0 1rem;
    max-width: 100%;
  }

  .column-edge {
    display: none; /* hide side columns on small screens */
  }

  .header-title {
    font-size: 1.5rem;
  }

  .blog-title,
  .software-title {
    font-size: 1.25rem;
  }

  .blog-date,
  .software-summary {
    font-size: 0.9rem;
  }

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

  .canvas-nav-button {
    padding: 0 0.5rem;
    font-size: 0.9rem;
  }

  .slider {
    width: 100px;
  }
}

/* Make 3D canvas non-blocking for clicks */
#three-container canvas {
  pointer-events: none; /* Allow clicks and taps to pass through */
}

/* Ensure nav links appear above the 3D canvas */
.canvas-nav-container {
  position: relative;
  z-index: 10;
}

#three-container {
  position: relative;
  z-index: 1;
}
