* {
  outline: none;
}

.largeText {
  font-size: 44px;
  color: #000000;
  width: 100%;
  word-wrap: break-word;
}

img {
  width: 100%;
  padding-bottom: 5px;
}

.secondaryText {
  color: #666666;
}

.primaryText {
  color: #333333;
}

nav {
  margin-top: 5em;
}

nav ul {
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline;
}

.about-content {
  /* margin-top: 10px; */
  padding-top: 20px;
}

/* nav a:not(#language-switcher a)::before {
  content: "_";
} */

.language-space {
  margin: 0 5px; /* Adjust the margin as needed */
}

nav a {
  text-decoration: none;
  color: inherit;
  font-size: 44px;
}

nav a:hover {
  text-decoration: underline;
}

/* style.css */
#language-switcher {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 16px;
  color: #333;
}

#language-switcher a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

#language-switcher a:hover {
  color: #007bff; /* Change to your desired hover color */
}

.active-link {
  color: #ffee33;
}

#link-haralds-matulis-en {
  color: #333; /* Replace with your desired color for "HARALDS MATULIS" */
}

.about-content {
  margin-top: 40px; /* Margin above the first <p> */
  margin-bottom: 40px; /* Margin after the last <p> */
  margin-left: 50px; /* Margin for the left side */
  max-width: 500px; /* Maximum width for desktop version */
  padding-right: 20px; /* Margin for right side */
  text-align: left; /* Left justify the text */
  width: 100%; /* Ensure the container uses full available width */
}

.about-content p {
  margin-top: 20px; /* Space above each paragraph */
  font-size: 18px; /* Larger font size for paragraphs */
}

@media (max-width: 1600px) {
  .about-content {
      max-width: 500px; /* Full width for mobile version */
      width: calc(100% - 40px); /* Subtract the left and right margins */
      margin-left: 20px; /* Margin for the left side on mobile */
      padding-right: 20px; /* Margin for right side on mobile */
  }
}

.about-image {
  width: 100%; /* Adjust to desired width */
  height: auto; /* Maintain aspect ratio */
  margin-bottom: 20px; /* Space below the image */
  max-width: 500px; /* Constrain maximum width on larger screens */
}

.route-content {
  margin-bottom: 0px;
  padding-top: 0px;
}




#timeline {
  margin-top: 6rem; /* or 32px */
  margin-bottom: 12rem; /* space below timeline */
}


#timeline li {
  list-style-type: none;
}



  /* Container for the timeline item */
.timeline-item {
    /* display: flex;
    align-items: flex-start; */
    margin-bottom: 30px;
    max-width: 500px; /* Limit the maximum width */
    /* width: 100%;  */
}
/* Left whitespace */
.left-space {
    width: 20px;
    /* background-color: lightgray; Just to visualize the space */
}
/* Timeline summary */
.timeline-summary {
    flex: 1; /* Allow this to grow and take available space */
    display: flex;
    align-items: flex-start;
}
/* Short text */
.short-text {
    overflow: hidden;
    white-space: normal;
}
.short-text p {
    margin: 0;
    margin-bottom: 1px; /* Add space between paragraphs */
}
/* Right link */
.right-link {
    width: auto; /* Allow it to fit the content */
    margin-left: 10px; /* Space between summary and link */
}
/* Style the details element */
details {
    margin: 0;
    margin-left: 0px;
    width: 100%; /* Ensure it uses available space */
}

details p {
  margin-top: 7px;
  margin-bottom: 7px;
  margin-left: 7px;
}

summary {
    cursor: pointer;
    color: rgb(7, 7, 76);
    text-decoration: underline;
}

summary::after {
  content: ' read more'; /* Default text */
  color: #555;
  text-decoration: underline;
}

details[open] summary::after {
  content: ' '; /* Text when details are open */
}

summary::-webkit-details-marker {
    display: none; /* Hide the default marker */
}

#timeline details[open] summary::after {
  content: ' less less '; /* Text when details are open */
  color: #555;
}


/* Ensure default behavior remains unaffected for other elements */
details summary {
  cursor: pointer;
  color: rgb(7, 7, 76);
  text-decoration: underline;
}




/* Hide the default triangle indicator for expandable sections */
.expandable summary::-webkit-details-marker {
  display: none; /* Hide the default triangle in WebKit-based browsers */
}

/* Ensure no extra content before or after the summary for expandable sections */
.expandable summary::before,
.expandable summary::after {
  content: ''; /* Remove any extra content */
}

/* Style for the summary in expandable sections */
.expandable summary {
  cursor: pointer;
  color: rgb(7, 7, 76);
  text-decoration: underline;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  /* background-color: #f9f9f9; */
  font-weight: bold;
  list-style: none; /* Remove default list styling */
  padding-left: 10px; /* Add padding for alignment */
}

/* Link styled as an expandable summary heading (used on teaching pages) */
.expandable-link {
  display: block;
  cursor: pointer;
  color: rgb(7, 7, 76);
  text-decoration: underline;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-weight: bold;
  padding-left: 10px;
}

/* Workshop entries inside expandable sections (DH page) */
.workshop-entry {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.workshop-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Reusable styles for containers */
.box-style {
  margin: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  /* background-color: #f4f4f4; */
}

/* Style for the content inside expandable sections */
.expandable p {
  margin: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  /* background-color: #f4f4f4; */
}

/* Inline toggle for values section - styled as regular link */
.values-toggle {
  cursor: pointer;
}

/* Inline expandable for values section - no boxed styling */
.expandable-inline {
  display: none;
}

.expandable-inline summary {
  display: none !important;
}

.expandable-inline summary::-webkit-details-marker {
  display: none !important;
}

.expandable-inline summary::marker {
  display: none !important;
}

.expandable-inline[open] {
  display: block;
  margin-top: 10px;
}

.expandable-inline[open] summary {
  display: none !important;
}

.expandable-inline p {
  margin: 10px 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background-color: transparent;
}

.section-container {
  margin-left: 40px; 
  padding-bottom: 200px;
}




a {
  color: black;       /* Set the text color to black */
  text-decoration: underline; /* Keep the text underlined */
}

/* Remove the visited color */
a:visited {
  color: black;       /* Ensure the visited link remains black */
}

#series-wrapper {
  display: flex;
  flex-wrap: wrap; /* Allow the sketches to wrap to the next line if there isn't enough space */
  gap: 20px; /* Adds spacing between the sketches */
  justify-content: flex-start; /* Aligns the sketches to the left */
}

.computational-literature {
  width: 100vw;         /* Use full viewport width */
  max-width: none;      /* Remove the inherited 500px limit */
  margin-left: 0;       /* Optional: remove inherited left margin */
  padding-left: 20px;   /* Optional: add your own padding */
}


/* for projects-portfolio items, so that they look the same as non-popping items */
.summary-link {
  display: block;
  color: rgb(7, 7, 76);
  text-decoration: underline;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-weight: bold;
}

.summary-link:hover {
  background-color: #f9f9f9; /* Optional hover effect */
}

/* .expandable { */
  /* margin-left: -7px; Aligns with other <details> blocks */
/* } */


/* Only target year headers, not inner event summaries */
details.year-group > summary {
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin: 1em 0;
    list-style: none; /* remove default marker */
}

details.year-group > summary::marker {
    content: "► "; /* closed */
}

details.year-group[open] > summary::marker {
    content: "▼ "; /* open */
}

