/* assets/css/styles.css */

/* Reset some defaults */
body, h1, h2, h3, p, ul, li, table, th, td, pre, code, select, label {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Body styling */
  body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
  }
  
  /* Container */
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
  }
  
  /* Header */
  header {
    background-color: #f8f8f8;
    padding: 1rem 0;
    border-bottom: 1px solid #eaeaea;
  }
  header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  header p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
  }
  nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
  }
  
  /* Footer */
  footer {
    background-color: #f8f8f8;
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid #eaeaea;
    margin-top: 2rem;
  }
  footer a {
    color: #333;
  }
  
  /* Section styling */
  section {
    margin-bottom: 3rem;
  }
  
  /* Code blocks */
  pre {
    background: #f4f4f4;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 4px;
    font-size: 0.9rem;
  }
  
  /* Reward function code box fixed height and scrollable */
  #rewardFunctionDisplay pre {
    height: 500px;
    overflow-y: auto;
  }
  
  /* Dropdowns and controls */
  select, label {
    margin: 0.5rem;
    font-size: 1rem;
  }

.project-image {
  text-align: center;
  margin: 1.5rem auto;
  width: 100%;          /* take full available width */
  /*max-width: 400px;     /* but not wider than 400px */
}
.project-image img {
  display: block;
  width: 100%;          /* always fill the container */
  height: auto;
  margin: 0 auto;
}

/* Video grid */
.video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* add space between items */
  justify-content: space-between;
}
.video-container {
  flex: 0 0 22%; /* roughly 1/4 minus gap */
  max-width: 22%;
}
.video-container video {
  width: 100%; /* fill container */
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .video-container {
    flex: 0 0 22%;
    max-width: 22%;
  }
}

@media (max-width: 768px) {
  .video-container {
    flex: 0 0 22%;
    max-width: 22%;
  }
}

/* Center and style included tables */
.table-responsive {
  display: flex;
  justify-content: center;
}
.table-responsive table {
  border-collapse: collapse;
  margin: 1.5rem 0;  /* vertical spacing only */
  width: auto;
}
.table-responsive th,
.table-responsive td {
  border: 1px solid #ccc;
  padding: 1rem 1.5rem;
}
.table-responsive th[rowspan] {
  vertical-align: middle;
}



