/*
 *  ___
 * /\_ \
 * \//\ \      __      ___   __  __    ___     ___
 *   \ \ \   /'__`\  /' _ `\/\ \/\ \  / __`\ /' _ `\
 *    \_\ \_/\ \_\.\_/\ \/\ \ \ \_\ \/\ \_\ \/\ \/\ \
 *    /\____\ \__/.\_\ \_\ \_\/`____ \ \____/\ \_\ \_\
 *    \/____/\/__/\/_/\/_/\/_/`/___/> \/___/  \/_/\/_/
 *                               /\___/
 *                               \/__/
 *
 * Designed, built, and released under MIT license by @mdo. Learn more at
 * https://github.com/poole/lanyon.
 */


/*
 * Contents
 *
 * Global resets
 * Masthead
 * Sidebar
 * Slide effect
 * Posts and pages
 * Pagination
 * Reverse layout
 * Themes
 */


/*
 * Global resets
 *
 * Update the foundational and global aspects of the page.
 */

/* Prevent scroll on narrow devices */
html,
body {
  overflow-x: hidden;
}

html {
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "PT Sans", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: #313131;
  letter-spacing: -.025rem;
}


/*
 * Wrapper
 *
 * The wrapper is used to position site content when the sidebar is toggled. We
 * use an outter wrap to position the sidebar without interferring with the
 * regular page content.
 */

.wrap {
  position: relative;
  width: 100%;
}


/*
 * Container
 *
 * Center the page content.
 */

 .container {
  max-width: 45rem;
  margin: 0 auto; /* Center the container */
  padding-top: 2rem; /* Add top padding to account for the masthead height */
}

@media (min-width: 38em) {
  .container {
    max-width: 48rem; /* Increased width for medium screens */
    padding-top: 2rem; /* Ensure consistent spacing on medium screens */
  }
}

@media (min-width: 56em) {
  .container {
    max-width: 56rem; /* Increased width for large screens */
    padding-top: 2rem; /* Ensure consistent spacing on large screens */
  }
}

.content {
  text-align: justify; /* Justifies the text */
  line-height: 1.6; /* Adds line spacing for readability */
}



/*
 * Masthead
 *
 * Super small header above the content for site name and short description.
*/
.masthead {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0rem;
  border-bottom: 1px solid #eee;
  background: linear-gradient(to right, #311D3F, #E23E57);
  position: fixed; /* Fix the masthead at the top of the page */
  top: 0; /* Stick it to the top */
  left: 0; /* Ensure it spans the full width */
  width: 100%; /* Full width */
  z-index: 10; /* Keep it above other content */
  transition: background-color 0.3s ease; /* Smooth transition for interactivity */
  box-sizing: border-box; /* Ensure padding is included in the width */
}

.masthead-title {
  margin-top: 0;
  margin-bottom: 0;
  color: #ffffff; /* White text for better contrast */
  display: flex; /* Align title and nav links horizontally */
  justify-content: space-between; /* Space out the title and links */
  align-items: center; /* Vertically center the elements */
  width: 100%; /* Ensure the title and navigation take up the full width */
  text-align: center; /* Ensure centered text alignment */
  font-family: 'fonttitle', sans-serif; /* Apply the custom font family */
  padding-left: 30px;
}

.masthead-title span {
  font-size: 1.5rem; /* Adjust the size of the main title */
  flex-shrink: 0; /* Prevent the title from shrinking */
}

.masthead-title small {
  font-size: 1.2rem; /* Adjust the size of the tagline */
  font-weight: 400;
  color: #343434; /* Slightly lighter than the main title */
  margin-left: 1rem; /* Space between title and tagline */
  flex-grow: 0; /* Ensure tagline does not stretch */
}

.masthead-title .site-title-link {
  text-decoration: none; /* Remove underline by default */
  color: #ffffff; /* Match navigation link color */
  transition: color 0.3s ease, text-decoration 0.3s ease; /* Smooth effects */
}

.masthead-title .site-title-link:hover {
  text-decoration: underline; /* Add underline on hover */
  color: #ffffff; /* Hover color - keep white */
}

.masthead-title .site-title-link:focus {
  outline: none; /* Remove focus outline */
  border-bottom: 2px solid #0056b3; /* Add bottom border on focus */
}
.masthead-title nav {
  display: flex; /* Align nav links horizontally */
  align-items: center; /* Vertically align items within the nav */
}

.masthead-title nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex; /* Align items in a row */
  align-items: center; /* Ensure the list items are vertically aligned */
}

.masthead-title nav ul li {
  margin-right: 20px;
}

nav ul li img {
  vertical-align: middle; /* Ensure the icons align properly with the text */
  margin-bottom: 0rem;
}

nav ul li img + img {
  margin-left: 10px; /* Adjust this value to reduce space between the two images */
}

.masthead-title nav ul li a {
  text-decoration: none;
  color: #ffffff; /* Set color for links */
  font-size: 16px; /* Font size for links */
  font-weight: normal; /* Bold for better emphasis */
  transition: color 0.3s ease; /* Smooth color transition */
}

.masthead-title nav ul li a:hover {
  text-decoration: underline;
  color: #15191e; /* Change color on hover */
}

.masthead-title nav ul li a:focus {
  outline: none; /* Remove outline when focusing on links */
  border-bottom: 2px solid #0056b3; /* Add border on focus */
}

/* Responsive behavior */
@media (max-width: 48em) {
  .masthead-title {
    flex-direction: column; /* Stack title and links vertically on smaller screens */
    text-align: center;
  }

  .masthead-title small {
    display: none; /* Hide tagline on smaller screens */
  }

  .masthead-title nav {
    margin-top: 1rem; /* Add spacing between title and nav */
  }

  .masthead-title nav ul {
    flex-direction: column; /* Stack the nav links vertically on mobile */
  }

  .masthead-title nav ul li {
    margin-bottom: 10px; /* Add margin between links */
  }
}

/* footer */
.footer {
  background-color: #88304E; /* Footer background color */
  color: #ffffff; /* Text color for the footer */
  text-align: center; /* Center align text */
  font-size: 0.9rem; /* Slightly smaller font size */
  position: relative; /* Ensure it stays below other content */
  background: linear-gradient(to right, #E23E57, #311D3F);
  width: 100%; /* Full width */
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-top: auto; /* Push the footer to the bottom */
  display: flex; /* Use flexbox for vertical and horizontal centering */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  min-height: 100px; /* Adjust the height to your preference */
}

.footer {
  background-color: #333; /* Dark background for footer */
  color: #ffffff; /* White text color */
  padding: 20px;
  text-align: center;
}

.team-list {
  display: flex; /* Align items in a row */
  justify-content: center; /* Center the list */
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.team-list li {
  display: flex; /* Align the name and the icon horizontally */
  align-items: center; /* Vertically align text and icon */
  margin-right: 20px; /* Space between team members */
}

.team-list li span {
  display: inline-flex; /* Ensure the span behaves like an inline block element */
  align-items: center; /* Align text and icon */
}

.team-list li a {
  margin-left: 10px; /* Space between name and GitHub icon */
}

.team-list li img {
  width: 20px; /* Set the size of the icon */
  height: 20px; /* Set the size of the icon */
  vertical-align: middle; /* Align the icon with the middle of the text */
  margin-bottom: 0;
}



/*
 * Sidebar
 *
 * The sidebar is the drawer, the item we are toggling with our handy hamburger
 * button in the corner of the page.
 *
 * This particular sidebar implementation was inspired by Chris Coyier's
 * "Offcanvas Menu with CSS Target" article, and the checkbox variation from the
 * comments by a reader. It modifies both implementations to continue using the
 * checkbox (no change in URL means no polluted browser history), but this uses
 * `position` for the menu to avoid some potential content reflow issues.
 *
 * Source: http://css-tricks.com/off-canvas-menu-with-css-target/#comment-207504
 */

/* Style and "hide" the sidebar */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: -14rem;
  width: 14rem;
  visibility: hidden;
  overflow-y: auto;
  font-family: "PT Sans", Helvetica, Arial, sans-serif;
  font-size: .875rem; /* 15px */
  color: rgba(255,255,255,.6);
  background-color: #202020;
  -webkit-transition: all .3s ease-in-out;
          transition: all .3s ease-in-out;
}
@media (min-width: 30em) {
  .sidebar {
    font-size: .75rem; /* 14px */
  }
}

/* Sidebar content */
.sidebar a {
  font-weight: normal;
  color: #fff;
}
.sidebar-item {
  padding: 1rem;
}
.sidebar-item p:last-child {
  margin-bottom: 0;
}

/* Sidebar nav */
.sidebar-nav {
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-nav-item {
  display: none;
  padding: .5rem 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.sidebar-nav-item.active,
a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
  text-decoration: none;
  background-color: rgba(255,255,255,.1);
  border-color: transparent;
}

@media (min-width: 48em) {
  .sidebar-item {
    padding: 1.5rem;
  }
  .sidebar-nav-item {
    padding-left:  1.5rem;
    padding-right: 1.5rem;
  }
}

/* Hide the sidebar checkbox that we toggle with `.sidebar-toggle` */
.sidebar-checkbox {
  position: absolute;
  opacity: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Style the `label` that we use to target the `.sidebar-checkbox` */
.sidebar-toggle {
  position: absolute;
  top:  .8rem;
  left: 1rem;
  display: none;
  align-items: center;
  padding: .25rem .75rem;
  color: #505050;
  background-color: #fff;
  border-radius: .25rem;
  cursor: pointer;
}

.sidebar-toggle::before {
  display: none;
  width: 32px;
  height: 32px;
  content: "";
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%23555' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M2.5 11.5A.5.5 0 013 11h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5zm0-4A.5.5 0 013 7h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5zm0-4A.5.5 0 013 3h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat;
}

.sidebar-toggle:active,
#sidebar-checkbox:focus ~ .sidebar-toggle,
#sidebar-checkbox:checked ~ .sidebar-toggle {
  color: #fff;
  background-color: #555;
}

.sidebar-toggle:active:before,
#sidebar-checkbox:focus ~ .sidebar-toggle::before,
#sidebar-checkbox:checked ~ .sidebar-toggle::before {
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M2.5 11.5A.5.5 0 013 11h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5zm0-4A.5.5 0 013 7h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5zm0-4A.5.5 0 013 3h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat;
}

@media (min-width: 30.1em) {
  .sidebar-toggle {
    position: fixed;
  }
}

@media print {
  .sidebar-toggle {
    display: none;
  }
}

/* Slide effect
 *
 * Handle the sliding effects of the sidebar and content in one spot, seperate
 * from the default styles.
 *
 * As an a heads up, we don't use `transform: translate3d()` here because when
 * mixed with `position: fixed;` for the sidebar toggle, it creates a new
 * containing block. Put simply, the fixed sidebar toggle behaves like
 * `position: absolute;` when transformed.
 *
 * Read more about it at http://meyerweb.com/eric/thoughts/2011/09/12/.
 */

.wrap,
.sidebar,
.sidebar-toggle {
  -webkit-backface-visibility: hidden;
      -ms-backface-visibility: hidden;
          backface-visibility: hidden;
}
.wrap,
.sidebar-toggle {
  -webkit-transition: -webkit-transform .3s ease-in-out;
          transition: transform .3s ease-in-out;
}

#sidebar-checkbox:checked + .sidebar {
  z-index: 10;
  visibility: visible;
}
#sidebar-checkbox:checked ~ .sidebar,
#sidebar-checkbox:checked ~ .wrap,
#sidebar-checkbox:checked ~ .sidebar-toggle {
  -webkit-transform: translateX(14rem);
      -ms-transform: translateX(14rem);
          transform: translateX(14rem);
}


/*
 * Posts and pages
 *
 * Each post is wrapped in `.post` and is used on default and post layouts. Each
 * page is wrapped in `.page` and is only used on the page layout.
 */

.page,
.post {
  margin-bottom: 4em;
}

/* Blog post or page title */
.page-title,
.post-title,
.post-title a {
  color: #303030;
}
.page-title,
.post-title {
  margin-top: 0;
}

/* Meta data line below post title */
.post-date {
  display: block;
  margin-top: -.5rem;
  margin-bottom: 1rem;
  color: #9a9a9a;
}

/* Related posts */
.related {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid #eee;
}
.related-posts {
  padding-left: 0;
  list-style: none;
}
.related-posts h3 {
  margin-top: 0;
}
.related-posts li small {
  font-size: 75%;
  color: #999;
}
.related-posts li a:hover {
  color: #268bd2;
  text-decoration: none;
}
.related-posts li a:hover small {
  color: inherit;
}


/*
 * Pagination
 *
 * Super lightweight (HTML-wise) blog pagination. `span`s are provide for when
 * there are no more previous or next posts to show.
 */

.pagination {
  overflow: hidden; /* clearfix */
  margin-left: -1rem;
  margin-right: -1rem;
  font-family: "PT Sans", Helvetica, Arial, sans-serif;
  color: #ccc;
  text-align: center;
}

/* Pagination items can be `span`s or `a`s */
.pagination-item {
  display: block;
  padding: 1rem;
  border: 1px solid #eee;
}
.pagination-item:first-child {
  margin-bottom: -1px;
}

/* Only provide a hover state for linked pagination items */
a.pagination-item:hover {
  background-color: #f5f5f5;
}

@media (min-width: 30em) {
  .pagination {
    margin: 3rem 0;
  }
  .pagination-item {
    float: left;
    width: 50%;
  }
  .pagination-item:first-child {
    margin-bottom: 0;
    border-top-left-radius:    4px;
    border-bottom-left-radius: 4px;
  }
  .pagination-item:last-child {
    margin-left: -1px;
    border-top-right-radius:    4px;
    border-bottom-right-radius: 4px;
  }
}


/*
 * Reverse layout
 *
 * Flip the orientation of the page by placing the `.sidebar` and sidebar toggle
 * on the right side.
 */

.layout-reverse .sidebar {
  left: auto;
  right: -14rem;
}
.layout-reverse .sidebar-toggle {
  left: auto;
  right: 1rem;
}

.layout-reverse #sidebar-checkbox:checked ~ .sidebar,
.layout-reverse #sidebar-checkbox:checked ~ .wrap,
.layout-reverse #sidebar-checkbox:checked ~ .sidebar-toggle {
  -webkit-transform: translateX(-14rem);
      -ms-transform: translateX(-14rem);
          transform: translateX(-14rem);
}


/*
 * Themes
 *
 * Apply custom color schemes by adding the appropriate class to the `body`.
 * Based on colors from Base16: http://chriskempson.github.io/base16/#default.
 */

/* Red */
.theme-base-08 .sidebar,
.theme-base-08 .sidebar-toggle:active,
.theme-base-08 #sidebar-checkbox:checked ~ .sidebar-toggle {
  background-color: #ac4142;
}
.theme-base-08 .container a,
.theme-base-08 .sidebar-toggle,
.theme-base-08 .related-posts li a:hover {
  color: #ac4142;
}

/* Orange */
.theme-base-09 .sidebar,
.theme-base-09 .sidebar-toggle:active,
.theme-base-09 #sidebar-checkbox:checked ~ .sidebar-toggle {
  background-color: #d28445;
}
.theme-base-09 .container a,
.theme-base-09 .sidebar-toggle,
.theme-base-09 .related-posts li a:hover {
  color: #d28445;
}

/* Yellow */
.theme-base-0a .sidebar,
.theme-base-0a .sidebar-toggle:active,
.theme-base-0a #sidebar-checkbox:checked ~ .sidebar-toggle {
  background-color: #f4bf75;
}
.theme-base-0a .container a,
.theme-base-0a .sidebar-toggle,
.theme-base-0a .related-posts li a:hover {
  color: #f4bf75;
}

/* Green */
.theme-base-0b .sidebar,
.theme-base-0b .sidebar-toggle:active,
.theme-base-0b #sidebar-checkbox:checked ~ .sidebar-toggle {
  background-color: #90a959;
}
.theme-base-0b .container a,
.theme-base-0b .sidebar-toggle,
.theme-base-0b .related-posts li a:hover {
  color: #90a959;
}

/* Cyan */
.theme-base-0c .sidebar,
.theme-base-0c .sidebar-toggle:active,
.theme-base-0c #sidebar-checkbox:checked ~ .sidebar-toggle {
  background-color: #75b5aa;
}
.theme-base-0c .container a,
.theme-base-0c .sidebar-toggle,
.theme-base-0c .related-posts li a:hover {
  color: #75b5aa;
}

/* Blue */
.theme-base-0d .sidebar,
.theme-base-0d .sidebar-toggle:active,
.theme-base-0d #sidebar-checkbox:checked ~ .sidebar-toggle {
  background-color: #6a9fb5;
}
.theme-base-0d .container a,
.theme-base-0d .sidebar-toggle,
.theme-base-0d .related-posts li a:hover {
  color: #6a9fb5;
}

/* Magenta */
.theme-base-0e .sidebar,
.theme-base-0e .sidebar-toggle:active,
.theme-base-0e #sidebar-checkbox:checked ~ .sidebar-toggle {
  background-color: #aa759f;
}
.theme-base-0e .container a,
.theme-base-0e .sidebar-toggle,
.theme-base-0e .related-posts li a:hover {
  color: #aa759f;
}

/* Brown */
.theme-base-0f .sidebar,
.theme-base-0f .sidebar-toggle:active,
.theme-base-0f #sidebar-checkbox:checked ~ .sidebar-toggle {
  background-color: #8f5536;
}
.theme-base-0f .container a,
.theme-base-0f .sidebar-toggle,
.theme-base-0f .related-posts li a:hover {
  color: #8f5536;
}


/*
 * Overlay sidebar
 *
 * Make the sidebar content overlay the viewport content instead of pushing it
 * aside when toggled.
 */

.sidebar-overlay #sidebar-checkbox:checked ~ .wrap {
  -webkit-transform: translateX(0);
      -ms-transform: translateX(0);
          transform: translateX(0);
}
.sidebar-overlay #sidebar-checkbox:checked ~ .sidebar-toggle {
  box-shadow: 0 0 0 .25rem #fff;
}
.sidebar-overlay #sidebar-checkbox:checked ~ .sidebar {
  box-shadow: .25rem 0 .5rem rgba(0,0,0,.1);
}

/* Only one tweak for a reverse layout */
.layout-reverse.sidebar-overlay #sidebar-checkbox:checked ~ .sidebar {
  box-shadow: -.25rem 0 .5rem rgba(0,0,0,.1);
}


/* Ensures the ligand representation section takes full width */
#ligand-representation {
  width: 100%;  /* Ensures the section uses the full width of its parent container */
  max-width: 100%; /* Prevents any parent element from limiting the width */
}
/* Ensures the plot containers (divs) take full width */
.similarity-graph {
  width: 100%;  /* Ensures plot divs take up the full width */
}
/* Hidden plots after selection of another plot*/
.hidden {
  display: none;
}

/* embeddings plots */
.plots-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px auto;
  align-items: stretch; /* Ensures all items align to the tallest element */
}

.plot-item {
  flex: 0 1 45%;
  max-width: 45%;
  display: flex;
  align-items: center; /* Center content vertically */
  justify-content: center; /* Center content horizontally */
  height: auto; /* Adjusts to the tallest container in the row */
}

.plot-item img {
  height: 100%; /* Scale the image to fit the container */
  width: auto; /* Maintain the aspect ratio */
  display: block;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.plot-item-single {
  flex: 0 1 auto; /* Adjust width dynamically */
  display: flex;
  align-items: center; /* Center content vertically */
  justify-content: center; /* Center content horizontally */
  margin: 0 auto; /* Center the item horizontally */
  max-width: 100%; /* Prevent the item from exceeding the container width */
}

.plot-item-single img {
  height: auto; /* Maintain aspect ratio */
  max-height: 350px; /* Set a consistent height */
  width: auto; /* Maintain aspect ratio */
  display: block;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


/* Side by Side 3D visualizations */
.mutants-container {
  display: flex; /* Align items side by side */
  gap: 20px; /* Space between the two sections */
}

.EGFR-mutant-item, .KAPCA-mutant-item {
  flex: 1; /* Ensure both items take equal width */
}

/* General table styling */
table {
  width: 100%; /* Make the table take the full width of its container */
  border-collapse: collapse; /* Remove spacing between cells */
  margin: 20px auto; /* Center the table with auto margins */
  text-align: center; /* Center-align text in all cells */
  font-family: Arial, sans-serif; /* Set a clean font */
}

/* Header row styling */
th {
  background-color: #f4f4f4; /* Light gray background for headers */
  font-size: 18px; /* Increase font size for headers */
  font-weight: bold; /* Bold font for headers */
  padding: 10px; /* Add some space inside cells */
  border: 1px solid #ddd; /* Add a border to the header cells */
}

/* Data rows styling */
td {
  font-size: 16px; /* Standard font size for data */
  padding: 10px; /* Add some space inside cells */
  border: 1px solid #ddd; /* Add a border to the data cells */
  text-align: center; /* Center-align text */
  word-wrap: break-word; /* Allow wrapping of long text */
}

/* Adjust font size for the second column */
td:nth-child(2) {
  font-size: 14px; /* Slightly smaller font size */
}

/* Alternate row colors */
tr:nth-child(even) {
  background-color: #ffffff !important; /* Ensure even rows are white */
}

tr:nth-child(odd) {
  background-color: #f9f9f9; /* Light gray for odd rows */
}

/* Add scroll margin to all sections when navigating with the links*/
section {
  scroll-margin-top: 60px; /* Adjust this value to match your header or top margin height */
}