/* Base styles */
/* .header-container {
    background-image: url("assets/bg.jpeg");
  color: #FEF5B8;
  text-align: center;
  background-size: cover;
    background-position: center;
} */

.header-container {
    background-color: white; /* Dark teal background */
    color: black;
    text-align: center; /* Center content on small screens */
    padding: 20px; /* Reduced padding for small screens */
  }

.header-content h1 {
  font-size: 1.5em; /* Adjust font size for small screens */
  margin-bottom: 0.5em;
  line-height: 1.2;
}

.header-image img {
  max-width: 100%; /* Ensure the image is never more than 100% of its container */
  height: auto; /* Maintain the aspect ratio of the image */
  display: block; /* Prevent inline spacing issues */
  margin: 0 auto 20px; /* Center the image horizontally and add margin below */
}
.button-container {
  margin-top: 0px; /* Add margin above the buttons */
  margin-bottom: 0px; /* Add margin below the buttons */
}

.button-container button {
    width: 10vw;
    height: 10vw;
    min-width: 50px; /* Minimum size */
    min-height: 50px;
    max-width: 80px; /* Maximum size */
    max-height: 80px;
    border: 2px solid black; /* Black border */
    padding: 0; /* Removes the padding inside the button */
    display: flex; /* Aligns the background image in the center */
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0; /* Light gray background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds shadow for depth */
    cursor: pointer; /* Changes cursor to pointer on hover */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.button-container .teaser-button {
    width: 80px; /* Equal width and height to make the button square */
    height: 80px;
    border: 2px solid black; /* Black border */
    padding: 0; /* Removes the padding inside the button */
    display: flex; /* Aligns the text in the center */
    align-items: center;
    justify-content: center;
    color: #ebe5d8;
    border-color: #231f19;
    background-color: #3e3024; /* Dark background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds shadow for depth */
    cursor: pointer; /* Changes cursor to pointer on hover */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}


.button-container button:hover, .button-container button.active {
    background-color: #F2D3B4; /* Slightly darker background on hover */
    box-shadow: 0 6px 12px #F2D3B4; /* Larger shadow on hover */
    border: 2px solid #F2D3B4;
}

/* Update the rest of the button styles as needed */


.button-container a.button {
  display: inline-block; /* Make buttons inline */
  margin: 10px; /* Space around buttons */
  padding: 10px 20px; /* Increase tap area for touch screens */
}

.button-container a.button {
  background-color: #aed6f1; /* Yellow background */
  color: #000; /* Black text */
  border: 2px solid #231f19; /* Orange border */
  border-radius: 25px; /* Rounded borders */
  padding: 10px 20px; /* Top and bottom padding, left and right padding */
  margin: 5px; /* Space between the buttons */
  text-decoration: none; /* Remove the underline from links */
  display: inline-block; /* Display links as inline blocks */
  font-weight: bold; /* Make the text bold */
  transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button-container a.button:hover {
  background-color: #3498db; /* Darker yellow background on hover */
  color: #fff; /* White text on hover */
}

button.pose-editing {
    background-image: url('assets/logo/pose.jpg');
}
button {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 25px;  /* Adjust as needed */
    height: 25px; /* Adjust as needed */
    border: none;   /* Optional: removes the button border */
    padding: 0;     /* Optional: removes the padding inside the button */
}
button.rotation {
    background-image: url('assets/logo/rotate.jpg');
}

button.translation {
    background-image: url('assets/logo/translate.jpg');
}
button.composition {
    background-image: url('assets/logo/compose.jpg');
}
button.rotation-left-slider {
    background-image: url('assets/logo/left_arrow.jpg');
}
button.rotation-right-slider {
    background-image: url('assets/logo/right_arrow.jpg');
}
button.carving {
    background-image: url('assets/logo/carving.jpg');
}

button.addition {
    background-image: url('assets/logo/stack.jpg');
}
button.rotation-left-slider,
button.rotation-right-slider {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 1vw;  /* Adjust as needed */
    height: 1vw; /* Adjust as needed */
    border: none;   /* Optional: removes the button border */
    padding: 0;     /* Optional: removes the padding inside the button */
}
#minusButtonduck, #plusButtonduck,  #minusButtonfish, #minusButtoncake,
#plusButtonfish, #plusButtoncake{
    box-shadow: none;
    height: auto;
    width: 1em;
    background-color: #363636; /* Bulma's is-dark color */
    color: white;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    padding: 0.5rem 1.5rem; /* Button padding */
    font-size: 1rem; /* Font size */
    line-height: 1.5;
    border-radius: 290486px; /* Bulma's is-rounded border radius */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#minusButtonduck:hover, #plusButtonduck:hover, #minusButtonfish:hover, #minusButtoncake:hover, #plusButtonfish:hover, #plusButtoncake:hover {
    color: rgb(255, 204, 0); /* Slightly darker background on hover */
}

/* Styles for larger screens using a media query */
@media (min-width: 600px) {
  .header-container {
    display: flex; /* Use flexbox for positioning on larger screens */
    justify-content: space-between; /* Space between the content and image */
    align-items: center; /* Align items vertically */
    padding: 50px 50px; /* Increase padding for larger screens */
  }

  .header-content {
    max-width: calc(50% - 20px); /* Adjust width to include margin */
    text-align: center; /* Align text to the left for larger screens */
    margin-right: auto; /* Add margin to the right of the header content */
    margin-left: auto; /* Add margin to the right of the header content */
  }

  .header-content h1 {
    font-size: 2.4em; /* Increase font size for larger screens */
  }

  .header-image {
    max-width: calc(50% - 20px); /* Adjust width to include margin */
  }

  .header-image img {
    max-width: 100%; /* Image should be responsive within the container */
    height: auto; /* Maintain the aspect ratio */
  }
}


.byline {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0 5px 10px; /* Add padding to the top and bottom */
  margin-bottom: 20px;
}

.byline-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Align columns by the top */
  max-width: 1000px; /* Adjust as needed for your design */
  margin: 0 auto; /* Center the container */
}

.byline-column {
  /* Columns will take up width based on their content */
  display: flex;
  flex-direction: column;
  text-align: left; /* All text within columns left-aligned */
}

.byline-column h3 {
  margin-bottom: 10px; /* Space between the header and the content */
  color: #333; /* Dark grey color for the text */
  font-size: 16px; /* Adjust the font size as needed */
}

.byline-column p {
  color: #666; /* Lighter grey color for the text */
  font-size: 14px; /* Adjust the font size as needed */
  margin: 5px 0; /* Space between paragraphs */
  margin-bottom: 0px;
}

.author-link, .affiliation-link {
  color: #666; /* Set the color to match the other text */
  text-decoration: none; /* Removes the underline */
  border-bottom: none;
  cursor: pointer; /* Changes cursor to pointer to indicate link */
}

.author-link:hover, .affiliation-link:hover {
  text-decoration: underline; /* Adds underline on hover for visual feedback */
  border-bottom: none;
}


d-article {
  contain: none;
}

d-article d-contents {
  max-width: 100%; /* Or the maximum width you want it to have */
  box-sizing: border-box; /* Include padding in the width calculation */
  align-self: start;
  grid-column: 1 / 4;
  grid-row: auto / span 4;
  justify-self: end;
  margin-top: 5em;
  padding-right: 3em;
  padding-left: 2em;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
}


d-article d-contents nav {
  display: block;
}

d-article d-contents nav h4 {
  margin-top: 0;
  margin-bottom: 1em;
}

d-article d-contents nav div {
  color: rgba(91, 184, 73, 0.8);
  font-weight: bold;
}

d-article d-contents nav a {
  color: rgba(0, 0, 0, 0.8);
  border-bottom: none;
  text-decoration: none;
}

d-article d-contents li {
  list-style-type: none;
}

d-article d-contents ul {
  padding-left: 1em;
}

d-article d-contents nav ul li {
  margin-bottom: 0.25em;
}

d-article d-contents nav a:hover {
  text-decoration: underline solid rgba(0, 0, 0, 0.6);
}

d-article d-contents nav ul {
  margin-top: 0;
  margin-bottom: 6px;
}

d-article d-contents nav > div {
  display: block;
  outline: none;
  margin-bottom: 0.5em;
}

d-article d-contents nav > div > a {
  font-size: 13px;
  font-weight: 600;
}

d-article d-contents nav > div > a:hover,
d-article d-contents nav > ul > li > a:hover {
  text-decoration: none;
}

.active-nav-item {
  color: #0d6efd; /* Change as per your preference */
}

.shaded-figure {
  background-color: hsl(0, 0%, 97%);
  border-top: 1px solid hsla(0, 0%, 0%, 0.1);
  border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
  padding: 30px 0;
}

.pointer {
  position: absolute;
  width: 26px;
  height: 26px;
  top: 26px;
  left: -48px;
}

.sidebar {
  position: sticky;
}

d-article section{
  margin: 0 !important;
}

.video-margin {
    margin-bottom: 40px;
}

.table-container {
  overflow: auto;
  overflow-y: hidden;
  max-width: 90vw;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch; /* for smoother scrolling on iOS */
}

.data-table {
  border-collapse: separate;
  border-spacing: 2.5px;
  margin: 0 auto;
  font-size: 12px;
  min-width: 100%;
  /* width: max-content; */
  width: 100%;
  line-height: 1.25;
  border-collapse: separate;
}

.data-table th {
  text-align: center;
}

.data-table td {
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.data-table td, .data-table th {
  padding: 0.25em 0.25em;
}

.data-table th:first-child, .data-table td:first-child {
  text-align: left;
}

.tb-hdr {
  background-color: #f2f2f2;
  font-weight: bold;
  text-align: center !important;
}

.highlight {
  background-color: #e6ffe6;
  font-weight: bold;
}

.highlight-green {
  background-color: #e6ffe6;
  font-weight: bold;
}

.highlight-orange {
  background-color: #fff2e6;
}

.highlight-gray td {
  background-color: #f2f2f2;
  text-align: left !important;
}

.highlight-blue {
  background-color: #e6f2ff;
}
