/* jacek-style.css */
/* combination of style.css and style2.css */

/*  */
/* Body */
body {
    background-color: #F5F5F5; /* Adjust the background color as desired */
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
  }

/* Center the body-container on the page */
.body-container {
    /* max-width: 1200px; */ /*  Adjust the container width as needed */
    margin: 0 auto;
    padding: 10px;
    max-width: 1150px;  /* sidebar (350) + main (800) */
    width: 100%;
  }

@media screen and (min-width: 2300px) {
  .body-container {
        width: 50%;
        max-width: 1400px;
    }
}

#above-header {
  display: flex;
  justify-content: space-between;
  align-items:  flex-end;
  margin-bottom: 10px;
  position: relative;
  /* max-width: 1150px;  */
  height: 200px;
}

#above-header img {
  max-width: 250px;
  height: auto;
  background-color: #fff; /*#22222D;*/
}

.stack-image {
  position: absolute;
}

#stack-image1 {
  z-index: 2;
  top: 5px;
  left: 0px;
  border: 1px solid #555;  
}

#stack-image2 {
  z-index: 3;
  top: 0;
  left: 100px;  
  border: 1px solid #555;  
}
#stack-image3 {
  z-index: 1;
  top: 30;
  right: 0;  
  border: 1px solid #555;  
}
/* Header */
header {
    /* height: 150px; Set the height of your header */
    /* background-color: #E0E0E0;  Example background color */
    /* color: #940b0b; Example text color */
    background-color: #35373b; /*#22222D;*/
    color: #EAEAEA;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    position: sticky;
    /* transition: 0.1s; */
    top: 0px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items:  flex-end;
    align-items: baseline; /* Align items at the baseline */
    top: 10px;
    margin: 0px;
    padding: 0px;
    /* padding-bottom: 25px; */
}

header h1 {
    margin-bottom: 0px; /* Remove the bottom margin of the main heading */
    font-weight: 300;
    padding: 20px 10px 0px 10px;
    margin-top: 10px;
    margin-bottom: 15px;
    margin-left: 20px;
  }


.subheading {
  margin-top: 0px;
  text-align: left;
  /* display: none; */
}

.subheading-line {
  font-size: 14px;
  font-weight: 300;
  margin-left: 2px;
}

/* Menu in the header */
/* Reset default list styles */
ul {
    list-style-type: none;
    padding: 0;
    padding-right: 20px;
    margin: 0;
  }
  
  /* Style the navigation menu */
  nav ul {
    display: flex;
    justify-content: flex-end; /* Align menu items to the right */
  }
  
  nav li {
    margin-left: 20px; /* Adjust spacing between menu items */
  }
  
  nav a {
    text-decoration: none;
    color: #333;
    color: #FFFFFF;
    /* font-weight: bold; */
    font-size: 0.9em;
    font-size: 1em;
    letter-spacing: 2px;
  	padding: 7px 0px 7px 0px;  
    margin: 0px 0px 0px 20px;
    border-radius: 5px;

    position: relative;
    display: inline-block;
  }
  
  nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    background-color: #FFFFAA; 
    left: 50%;
    transition: width .3s, left .3s;
    transform: translateX(-50%);    
}

  nav a:hover {
    color: #555;
    color: #FFFFAA;    
  }

  nav a:hover::after {
    width: 100%;
}
nav a.current_page {
	color: #FFAAAA;
	font-weight: 600;
}



  /* Sidebar */
.sidebar {
    position: sticky;
    top: 88px;
    max-width: 350px; /* Adjust the width as needed */
    background-color: #f1f1f1; /* Example background color */
    padding: 20px; /* Example padding */
    padding-left: 5px;
    height: 400px;
    display: flex;
    flex-direction: column;
  }

  .sidebar-content {
    background-color: rgba(193, 190, 190); 
  }
  
  .sidebar-picture {
    /* height: 120px; */
    /* width: 100px; */
    margin-left: auto;
    margin-right: auto;    
    /* background-color: #0000ff;  */
  }
  .sidebar-picture img {
    width: 200px; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
  }

  .sidebar-heading {
    font-size: 16px;
    margin-top: 0px;
    text-align: left;
    margin-bottom: 2px;
    margin-left: 5px;
  }
  
  .sidebar-subheading-line {
    font-size: 13px;
    font-weight: 200;
    margin-left: 5px;
    margin-top: 0px;
    padding: 0px;
    margin-bottom: 2px;
}


  /* For very narrow screen/viewport remove the sidebar and show the sidebar-above*/
.sidebar-above-large {
    display: none;
    height: 70px;
    width: auto;
    padding: 5px; 
    padding-left: 20px; 
    margin: auto;
}

.sidebar-above-large img {
  height: 50px;
  width: auto;
}
.sidebar-above-large p {
  padding: 0px;
}

  .sidebar-above {
    display: none;
  /*  background-color: #d60909; /* Example background color */
    height: 50px;
    width: auto;
    padding: 5px; 
    padding-left: 20px; 
  }
  .sidebar-above img {
    height: 35px;
    width: auto;
  }
  .sidebar-above p {
    padding: 0px
  }
  
  .next-small-image {
    display: block;
    padding: 2px;
    margin-left: 5px;
    font-size: 95%;
  }

  .next-small-image p {
    margin: 1px;
  }

  .next-small-image-large {
    display: block;
    padding: 2px;
    margin-top: 5px;
    margin-left: 5px;
  }

  .next-small-image-large p {
    margin: 1px;
  }
  /* Main content */

  .below-header-container {
    display: flex;
    margin-top: 2px; /* Ensure content starts below the header */
    justify-content: left;
  }

  .main-content {
    flex-grow: 1;
    max-width: 1200px;  
    /* height: 1200px; */
    padding: 10px; 
    padding-top: 0px; 
  }

  ul.outside-links {
    margin-top: 10px;
    list-style-position: inside;
    font-size: 14px;
    font-weight: 200;
    /* font-size:20px; */
  }
  /* url("/graphics/ORCIDiD_iconvector.svg") '  ';  */

  ul.outside-links ::marker {
	content: url("/graphics/Google_Scholar_logo14x14.svg")  '  ';
  }
  .outside-links li:nth-child(2)::marker {
    content: url("/graphics/ORCIDiD_iconvector16x16.svg")  '  ';   
  }

  .outside-links a {
    text-decoration: none;
    color: #000;
  }
  
  .outside-links a:hover {
    color: #00d;
  }


  /* Research */

p.paper {
	line-height: 150%;
}

.paper a {
	text-decoration: none;
	color: #0000BB;
}

.paper a:hover {
	text-decoration: underline;
}



.paper a.link, a.link {
    color: #000066;
    text-decoration: none;
}


.paper a.quiet, a.quiet {
    color: #000066;
    text-decoration: none;
}

.paper a.quiet:hover, a.quiet:hover {
    color: #0000AA;
    text-decoration: none;
}

.paper a.journal {
  font-style: italic;
}  
.paper a.journal:hover {
  color: #0000AA;
  font-style: italic;
  text-decoration: none;
}  


main {
  display: flex;
  /* align-items: center; Vertically center the content     */
}

#common-content-placeholder {
  /* color: #00ff; */
  margin-left: auto; /* Push the content to the right */
  padding-top: 10px;
  max-width: 350px;
  font-size: 0.875em;
}

p.classes {
	line-height: 125%;
}

.classes a {
	text-decoration: none;
	color: #0000BB;
}

.classes a:hover {
	text-decoration: underline;
}


/* Media query for screens smaller than 768px */
@media (max-width: 808px) {
  .sidebar {
    display: none;
  }
  .sidebar-above-large {
    display: flex;
  }  
}

@media (max-width: 768px) {
  main {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column-reverse; /* Change the stacking order of main content and sidebar */
    flex-direction: column; /*  */
  }


  .inside-main-column:nth-child(1) {
    order: 1;
  }
  .inside-main-column:nth-child(2) {
    order: 3;
  }
  .inside-main-column:nth-child(3) {
    order: 2;
  }

  #common-content-placeholder {
      /* flex-basis: 100%; Make the sidebar take up the full width */
      padding: 20px;
      padding-top: 20px;
      max-width: 768px;
      margin: 0px;
      font-size: 0.875em;      
  }

  .subheading {
    display: block;
  }

  .sidebar {
    display: none;
  }
  /* .sidebar-above-large {
    display: flex;
  } */
}

@media (max-width: 550px) {
  header h1 {
    display: none;
  }
  body {
    min-width: 350px;
  }  

  .sidebar-above-large {
    display: none;
  }

  .sidebar-above {
    display: flex;
  }


  #common-content-placeholder {
      /* flex-basis: 100%; Make the sidebar take up the full width */
      padding: 20px;
      padding-top: 00px;
      padding-bottom: 10px;
      max-width: 405;
      margin: 0px;
      font-size: 0.875em;      
  }

}


code {
  font-size: 1.25em;
}