/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.5;
    tab-size: 4;
    --font-inter: "__inter_20b187","__inter_Fallback_20b187"
    font-family: var(--font-inter),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    font-feature-settings: "ss03","cv02","cv11";
    font-variation-settings: normal;
  }
  
  #animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease-out;  /* Fade effect */
    opacity: 1;  /* Initially fully visible */
  }
  
  /* Hidden state for the animation after it finishes */
  #animation.hidden {
    opacity: 0;  /* Fade to transparent */
    visibility: hidden;  /* Ensure it's not interactable */
    transition: opacity 1.5s ease-out, visibility 0s 1.5s;  /* Visibility changes after fade completes */
  }
  
  /* Canvas to render the particles */
  #particleCanvas {
    width: 100%;
    height: 100%;
    display: block;
  }
  
  .background {
    position: fixed;
    background-color: rgb(15 23 42);
    height: 200vh;
    width: 100%;
    overflow: auto;
  }

  /* Main content hidden initially */
  .container {
    display: flex;
    height: 100vh;
    /* font-family: Arial, sans-serif;*/
    color: #333;
    background: radial-gradient(600px at 0% 0%, rgba(29, 78, 216, 0.15), transparent 80%);
    visibility: hidden;
    flex-direction: row;
    justify-content: space-between;
    height: 100vh;
  }
  
  
  .container.visible {
    visibility: visible;
  }
  
  
  /* Left (Static) Section */
  .left {
    position: fixed;
    margin-right: auto;
    left: 0;
    top: 0;
    width: 30%;
    height: 100vh;
    /* background-color: #0f172a; */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    padding-top: 80px; /* Add padding for space inside */
    height: 100vh; /* Ensure the left column takes full height */
    /* align-items: center; */
  }

  @media (min-width: 600px) and (min-height: 400px) {
    .left {
      margin-left: calc(max(15%, 100px)); /* Large left margin for wide screens */
    }
  }  
  
  .left .content {
    /*text-align: center;*/
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    width: 100%
  }

  .left .content .top {
    margin-bottom: auto;
    width: 100%
  }

  .left .content .top .NameAndPicture {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .left .content .top .NameAndPicture .Name {
    margin-right : auto;
    width : 60%;
  }

  .left .content .top .NameAndPicture .Picture {
    margin-left: auto;
    width : 40%;
  }

  .left .content .bottom {
    margin-top: auto;
    margin-bottom: 80px;
  }
  
  .left h1 {
    font-size: 36px;
    margin-bottom: 5px;
    /* width: 70%;*/
  }

  .left h2 {
    font-size: 24px;
    margin-bottom: 20px;
    /* width: 70%; */
  }
  
  .left p {
    margin-top: 10px;
    font-size: 1.2rem;
    /* width: 33%; */
    margin-bottom: 40px;
  }


/* Table of contents */
.table-of-contents {
    margin-bottom: auto;
  }
  
  .table-of-contents ul {
    list-style: none;
    padding: 0;
  }
  
  .table-of-contents ul li {
    position: relative;
    margin-bottom: 20px;
  }
  
  .table-of-contents ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    display: inline-block;
    padding-left: 60px; /* Increased padding to make space for the extended line */
    transition: color 0.3s ease;
    position: relative; /* Ensures the ::before element stays within the anchor tag */
  }
  
  /* Horizontal line before each item */
  .table-of-contents ul li a::before {
    content: '';
    position: absolute;
    left: 0; /* Keep the line to the far left of the padding */
    top: 50%;
    width: 30px; /* Initial width */
    height: 2px;
    background-color: rgba(255, 255, 255, 0.4); /* Faded white */
    transform: translateY(-50%);
    transition: width 0.3s ease, background-color 0.3s ease;
  }
  
  /* On hover or focus */
  .table-of-contents ul li a:hover::before,
  .table-of-contents ul li a:focus::before {
    width: 50px; /* Extended width on hover, but within the padded area */
    background-color: rgba(255, 255, 255, 1); /* Brighter white */
  }
  
  .table-of-contents ul li a:hover,
  .table-of-contents ul li a:focus {
    color: #fff; /* Optional: Make the text color change brighter */
  }
  
  /* Social media icons */
  .social-icons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    align-self: flex-end;
    margin-top: auto; /* Pushes the icons to the bottom of the left column */
  }
  
  .social-icons img {
    width: 30px;
    height: 30px;
  }
  
  /* Right (Scrolling) Section */
  .right {
    /* background-color: #0f172a; */
    color: #92a3b8;
    width: 50%;
    padding-top: 80px; /* Add padding for space inside */
    padding-left: 50px;
    padding-right: 50px;
    height: 100vh;
    overflow-y: auto;
    margin-left: auto;
  }

  @media (min-width: 600px) {
    .right {
      margin-right: calc(max(5%, 33px)); /* Large right margin for wide screens */
    }
  }  
  
  .right .scroll-content {
    padding: 0px;
    margin-bottom: 50vh;
  }

  .right .scroll-content ul {
    list-style: none;
    padding: 0;
  }
  
  .right .scroll-content ul li {
    position: relative;
    margin-bottom: 20px;
  }
  
  .right .scroll-content ul li {
    text-decoration: none;
    display: inline-block;
    padding-left: 60px; /* Increased padding to make space for the extended line */
    transition: color 0.3s ease;
    position: relative; /* Ensures the ::before element stays within the anchor tag */
  }

  .right a {
    color: #fff; /* Set the text color to white */
    font-weight: bold; /* Make the text bold */
    text-decoration: none; /* Remove the underline */
    transition: color 0.3s ease; /* Smooth transition for color change */
    cursor: pointer; /* Change cursor to pointer on hover */
    position: relative;
    z-index: 1;
  }

  .right a::after {
    content: '↗';
    font-size: 12px;
    margin-left: 5px;
    display: inline-block;  /* Ensures it's inline with the text */
    transition: transform 0.3s ease;
    top: 0;
  }

  .right a:hover::after {
    transform: translate(3px, -3px);; /* Move the arrow slightly upwards */
  }

  .right .scroll-content .elemlist {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .right .scroll-content .elemlist .elem {
    display: flex;
    flex-direction: row;
    margin-top: auto;
    margin-bottom: auto;
    justify-content: space-between;
    transition: background-color 0.3s ease, border-radius 0.3s ease;  /* Smooth transition */
    z-index: 1;
    padding: 25px;
    position: relative;
  }

  .right .scroll-content .elemlist .elem:hover {
    background: rgba(94, 234, 212, 0.1);
    border-radius: 15px;  /* Rounded corners on hover */
  }

  .right .scroll-content .elemlist .elem .dateandinfo {
    margin-right: auto;
    width: 30%;
  }
  .right .scroll-content .elemlist .elem .spacer {
    width : 5%;
    margin-left: auto;
    margin-right: auto;
  }

  .right .scroll-content .elemlist .elem .titleandabstract {
    margin-left: auto;
    width : 65%
  }

  .right .scroll-content .elemlist .elem .titleandabstract .nonlinked-a {
    color: #fff; /* Set the text color to white */
    font-weight: bold; /* Make the text bold */
    text-decoration: none; /* Remove the underline */
  }

  .right a:hover,
  .right a:focus {
    color: #40b7e6; /* Maintain white color on hover/focus */
    /* text-decoration: underline; /* Optional: Add underline on hover/focus if desired */
  }
  
  /* Horizontal line before each item */
  .right .scroll-content ul li::before {
    content: '';
    position: absolute;
    left: 0; /* Keep the line to the far left of the padding */
    top: 50%;
    width: 30px; /* Initial width */
    height: 2px;
    background-color: rgba(255, 255, 255, 0.4); /* Faded white */
    transform: translateY(-50%);
    transition: width 0.3s ease, background-color 0.3s ease;
  }
  
  .right .scroll-content section {
    margin-bottom: 50px;
  }
  
  .right .scroll-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color:#fff;
  }
  
  .right .scroll-content p {
    font-size: 1rem;
  }
  
  .right::-webkit-scrollbar {
    width: 0px;
  }
  .right::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
  }
  
  .right::-webkit-scrollbar-thumb:hover {
    background-color: #555;
  }
  
  /* Smooth scrolling */
html {
    scroll-behavior: smooth;
  }


/* Responsive Design - Hide left column on small screens */
@media (max-width: 1000px) {
    .container {
      grid-template-columns: 1fr; /* Only one column */
    }
  
    .left {
      display: none; /* Hide the left column */
    }
  
    .right {
      width: 100%; /* Take up the full width */
      margin-left: 0%;
    }
  }

.separator {
  display: none;
}

  @media (max-width: 500px) {
  .separator {
    display: block;
    border: none;
    border-bottom: 1px solid #ccc;
    margin: 10px 0;
  }

  .right .scroll-content .elemlist .elem {
    flex-direction: column;
  }

  .right .scroll-content .elemlist .elem .dateandinfo {
    margin-right: none;
    margin-bottom: auto;
    width: 100%;
  }
  .right .scroll-content .elemlist .elem .spacer {
    width : 0%;
    height: 25px;
    margin-left: none;
    margin-right: none;
    margin-top: auto;
    margin-bottom: auto;
  }

  .right .scroll-content .elemlist .elem .titleandabstract {
    margin-left: none;
    width : 100%;
    margin-top: auto;
  }
}

@media (max-height: 800px) {
  .left .content .top .table-of-contents {
      display: none;
  }
}

@media (max-height: 400px) {
  .container {
    grid-template-columns: 1fr; /* Only one column */
  }

  .left {
    display: none; /* Hide the left column */
    margin-left: 0%;
  }

  .right {
    width: 100%; /* Take up the full width */
    margin-left: 0%;
  }
}

