@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic");
@import url("font-awesome.min.css");
.usc-logo {
    width: 20px;  /* Adjust the size as necessary */
    height: auto;
    margin-right: 20px;  /* Space between the logo and the title */
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.title{
    font-family: "Source Sans Pro", Palatino, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size:48px;
    font-weight:100;
    /* letter-spacing:4px; */
    line-height:64px;
    margin-top:0;
    margin-bottom:0;
}
.divider{
  height: 2px;
  width: 40%; /* Even shorter line */
  margin: 25px auto;
  background: 
      linear-gradient(
          to right,
          transparent,
          #808080 30%,  /* Gray color */
          #808080 70%,
          transparent
      );
  position: relative;
}

.vert-divider{
  width: 2px;
  height: 500px; /* Even shorter line */
  margin: 25px auto;
  background: 
      linear-gradient(
          to bottom,
          transparent,
          #808080 10%,  /* Gray color */
          #808080 90%,
          transparent
      );
  position: relative;
}

.subtitle{
    font-family: Palatino, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size:48px;
    font-weight:100;
    line-height:52px;
    margin-top:0;
    margin-bottom:0;
}

.sectitle{
    font-family:  "Source Sans Pro","Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size:24px;
    font-weight:800;
    line-height:28px;
    margin-top:10px;
    margin-bottom:30px;
}

.sectitle2{
    font-family:  "Source Sans Pro","Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size:24px;
    font-weight:800;
    line-height:28px;
    text-align: center;
    margin-top:10px;
    margin-bottom:30px;
}

.author{
    font-family: FontAwesome, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size:22px;
    font-weight:400;
    line-height:22px;
    margin-top:5px;
    margin-bottom:10px;
    padding-left:25px;
    padding-right:25px;
    text-align:justify;
}

.text{
    font-family:  FontAwesome, "Source Sans Pro", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size:20px;
    font-weight:400;
    line-height:22px;
    margin-top:5px;
    margin-bottom:10px;
    padding-left:25px;
    padding-right:25px;
    text-align:justify;
}

.container{
    margin-top:15px;
    margin-left:auto;
    margin-right:auto;
    max-width:1200px;
}

.container:before,.container:after{
    content:"";
    display:table;
    grid-column-start:1;
    grid-row-start:1;
    grid-column-end:2;
    grid-row-end:2
}

.grey_container{
    background-color:#f2f2f2
}

.widget_container {
	display: flex;
    margin-bottom:15px;
    padding-left:25px;
    padding-right:25px;
}

.video_container {
	margin: 0.4em;
    width: 100%;
}

.citation {
    background-color:#e6e6e6;
    font-family:"Lucida Console", monospace, sans-serif;
    font-size:14px;
    padding-top:25px;
    padding-bottom:25px;
}

.top-image img {
    width: 100%; /* Full width for the top image */
    max-width: 800px; /* Optional: limit max width */
    border-radius: 8px;
    margin-bottom: 20px;
}

.bottom-images {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}


.image-case {
    width: 45%; /* Adjust to control the width of each bottom image */
}

.image-case img {
    width: 100%;
    border-radius: 8px;
}

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

button {
    padding: 0.5em 0.75em;
    margin: 0.4em 0.4em;
    min-width: 20ch;
    background-color: #ddd;
    color: #333;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    display: block;
}

button.on {
	background-color: #333;
	color: #bbb;
}

video {
	width: 100%;
}

video.on {
	display: block;
}


/* Layout for Representative Failure Cases: Three videos in one row */
.failure-videos {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Layout for Funny Cases: Two videos in one row */
.funny-videos {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

a:link,a:visited {
    color: #1367a7;
    text-decoration: none;
}

a:hover {
    color: #208799;
}

.layered-paper-big { /* modified from: http://css-tricks.com/snippets/css/layered-paper/ */
    box-shadow:
            0px 0px 1px 1px rgba(0,0,0,0.35), /* The top layer shadow */
            5px 5px 0 0px #fff, /* The second layer */
            5px 5px 1px 1px rgba(0,0,0,0.35), /* The second layer shadow */
            10px 10px 0 0px #fff, /* The third layer */
            10px 10px 1px 1px rgba(0,0,0,0.35), /* The third layer shadow */
            15px 15px 0 0px #fff, /* The fourth layer */
            15px 15px 1px 1px rgba(0,0,0,0.35), /* The fourth layer shadow */
            20px 20px 0 0px #fff, /* The fifth layer */
            20px 20px 1px 1px rgba(0,0,0,0.35), /* The fifth layer shadow */
            25px 25px 0 0px #fff, /* The fifth layer */
            25px 25px 1px 1px rgba(0,0,0,0.35); /* The fifth layer shadow */
    margin-left: 10px;
    margin-right: 45px;
}

.layered-paper { /* modified from: http://css-tricks.com/snippets/css/layered-paper/ */
    box-shadow:
            0px 0px 1px 1px rgba(0,0,0,0.35), /* The top layer shadow */
            5px 5px 0 0px #fff, /* The second layer */
            5px 5px 1px 1px rgba(0,0,0,0.35), /* The second layer shadow */
            10px 10px 0 0px #fff, /* The third layer */
            10px 10px 1px 1px rgba(0,0,0,0.35); /* The third layer shadow */
    margin-top: 5px;
    margin-left: 10px;
    margin-right: 30px;
    margin-bottom: 5px;
}
/* Center the heading */
#battery-images .sectitle {
    text-align: center;
  }
  
  /* Center the image */
  .image-container {
    text-align: center;
  }
  
  .centered-image {
    max-width: 55%;
    height: auto;
  }
/* Container for single top image */
.image-single {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  /* Common styling for all images */
  .image-case {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .image-case img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
  }
  
  /* Style for images in a row */
  /* Center container for single top image */
.image-single {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  /* Common styling for all images */
  .image-case {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center-aligns images */
    text-align: center;
    margin: 0 auto; /* Centers the container within its parent */
  }
  
  .image-case img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px; /* Space between image and caption */
  }
  
  /* Specific scaling for Force Trend and Failure Mode images */
  .large-image {
    width: 80%; /* Scales larger image to 80% of container */
  }
  
  .small-image {
    width: 20%; /* Scales smaller image to 70% of container */
  }


  /* Specific scaling for Force Trend and Failure Mode images */
  .large-part-image {
    width: 72.5%; /* Scales larger image to 80% of container */
  }

  .med-part-image {
    width: 67%; /* Scales larger image to 80% of container */
  }
  
  .small-part-image {
    width: 27.5%; /* Scales smaller image to 70% of container */
  }

  /* Styling for captions */
  .caption {
    font-size: 18px;
    color: #555;
    margin-top: 5px;
  }
  
  /* Force row styling for two and three images */
  .bottom-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }
  
  /* Adjust for mobile responsiveness */
  @media (max-width: 768px) {
    .bottom-images {
      flex-direction: column;
      align-items: center;
    }
    .large-image,
    .small-image,
    .image-case img {
      width: 80%; /* Adjusts size for smaller screens */
    }
  }
  /* General Styling for Videos */
  .video-case {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    margin: 1rem;
    text-align: center;
}

.video-case:hover {
    transform: translateY(-2px);
}

.video-case video {
    width: 100%;
    border-radius: 8px 8px 0 0;
}

.caption {
  font-size: 18px;
  color: #555;
  margin-top: 5px;
}

/* Styling for Images 2x2 Grid */
.img-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 1rem;
  justify-items: center;
}

/* Styling for Demo Videos Row (Four Side by Side) */
.demo-videos .video-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 1rem;
  justify-items: center;
}

/* Styling for Failure Cases 2x2 Grid */
.failure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 1rem;
  justify-items: center;
}

/* Styling for Edge Cases 2x2 Grid */
/* Grid layout for Edge Cases */
.edge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two columns per row */
  gap: 20px;
  padding: 1rem;
  justify-items: center;
}

/* Ensure the last video spans across both columns in the center */
.video-center {
  grid-column: span 2; /* Spans across two columns */
  justify-self: center;
  max-width: 60%; /* Adjust size if needed */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .edge-grid {
    grid-template-columns: 1fr; /* Stack videos in one column */
  }

  .video-center {
    grid-column: auto; /* Normal placement for mobile */
    max-width: 100%;
  }
}


/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .demo-videos .video-row,
  .failure-grid {
      grid-template-columns: 1fr;
  }
}
pre {
  font-family: "Courier New", Courier, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Image Button Functionality */
/* Center the section title */
#hw_setup .sectitle2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

/* Make the grid a flex container and center columns */
#hw_setup_grid {
  display: flex;
  justify-content: center; /* center columns horizontally */
  gap: 640px;               /* space between columns */
  flex-wrap: wrap;         /* wrap on smaller screens */
}

/* Each column */
#hw_setup_grid .column {
  display: flex;
  flex-direction: column;
  align-items: center;     /* center buttons inside column */
  gap: 18px;
}

/* Basic table styling */
.hw-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}

.hw-table th,
.hw-table td {
  border: 1px solid #ddd;
  padding: 2.5px;
  text-align: center;
}

.hw-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.hw-table .highlight {
    font-weight: bold;
}

/* Center the button in the table cell */
.button-wrapper {
  position: relative;
  display: inline-block;
}

/* Button styling */
.preview-btn {
  padding: 1px 10px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 6px;
  border: 2px solid #e2e2e2;
  background: #f0f0f0;
  transition: background 0.2s;
  font-size: 14px;
}

.preview-btn:hover {
  background: #e2e2e2;
}

/* Hover preview image */
.hover-preview {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 70vw;
  max-height: 70vh;
  border: 3px solid #333;
  background: white;
  padding: 4px;
  z-index: 9999;
}

/* Hover caption */
.hover-caption {
  display: none;
  position: fixed;
  top: calc(50% + 20px); /* just below the image */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  max-width: 60vw;
  text-align: center;
  z-index: 10000;
}

/* Show image + caption on hover */
.button-wrapper:hover .hover-preview,
.button-wrapper:hover .hover-caption {
  display: block;
}

/* Optional: style links inside caption */
.hover-caption a {
  color: #ffd700;
  text-decoration: underline;
}
.hover-caption a:hover {
  color: #fff;
}
