/* Additional Style Sheet ASC */
/* adjust Logo, Footer */

#logo { position: absolute; top: 6px; right: 6px; }
.footerwrap { margin-left: auto; margin-right: auto; width: 100em; height: 5em; }

/* Line added by Matteo Tommasini to solve some visualization problems generated by
the default settings of Chrome/Chromium-based browsers */
* { text-size-adjust: none; }

/* Code from

https://use.fontawesome.com/releases/v5.0.9/css/all.css

Font Awesome Free 5.0.9 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)

*/

@font-face {
  font-family: 'Font Awesome 5 Free';
  font-style: normal;
  font-weight: 900;
  src: url("https://asc.tuwien.ac.at/fonts/fonts_awesome/webfonts/fa-solid-900.eot");
  src: url("https://asc.tuwien.ac.at/fonts/fonts_awesome/webfonts/fa-solid-900.eot?#iefix") format("embedded-opentype"),
      url("https://asc.tuwien.ac.at/fonts/fonts_awesome/webfonts/fa-solid-900.woff2") format("woff2"), 
      url("https://asc.tuwien.ac.at/fonts/fonts_awesome/webfonts/fa-solid-900.woff") format("woff"), 
      url("https://asc.tuwien.ac.at/fonts/fonts_awesome/webfonts/fa-solid-900.ttf") format("truetype"), 
      url("https://asc.tuwien.ac.at/fonts/fonts_awesome/webfonts/fa-solid-900.svg#fontawesome") format("svg"); 
}

/* From here: copyleft Matteo Tommasini - matteo.tommasini2@gmail.com */
body {
    font-family: "Lato", sans-serif;
    /*overflow-x: hidden; */
}

/* "no script" alert (to be displayed when JavaScript is not enabled) */
/*#noscript-alert {
    margin-top: 5px; 
    margin-left: 5px;
    margin-right: 25px;
    z-index: 100; 
    background: #fff;
}
@media screen and (min-width: 485px) {
    #noscript-alert {
        margin-right: 0;
    }
}*/

/* interfering object (to be displayed on small screens when the menu button is clicked) */
#interfering-object {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 85;
    background: #fff;
    opacity: 0.6;
    display: none;
}
/*@media screen and (min-width: 800x) {
    #interfering-object {
        display: none !important;
    }
}*/

#side-bar,
#side-bar ul {
    /*transition: all 0.8s ease-in-out; /* NOTE: if we modify this, we have to modify also the transition for #openNavButton */
}

#side-bar>ul { 
    /* note: only the direct child of the #side-bar must have this padding-bottom 
    (we are excluding secondary <ul> children representing sub-menus) */
    padding-bottom: 20px;
}
#side-bar.small-screens {
    overflow-y: scroll;
}
#side-bar.small-screens::-webkit-scrollbar {
    width: 10px;
}
/* Track */
#side-bar.small-screens::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
    -webkit-border-radius: 10px;
    border-radius: 10px 30px 10px 10px;
}
/* Handle */
#side-bar.small-screens::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: rgb(38 85 127);
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
}
#side-bar.small-screens::-webkit-scrollbar-thumb:window-inactive {
	background: rgba(51, 0, 190, 0.4); 
}

/* page content */
#page-content {
    margin-top: 0;
}

/* side navigation bar (to be used on small screens) */
.small-sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 90;
    top: 0;
    left: 0;
    background-color: #d4dbe8;
    overflow-x: hidden;
    transition: 0.5s;
}
/*@media screen and (min-width: 800px) {
    .small-sidenav {
        display: none;
    }
}*/

.small-sidenav .name-main-area,
.small-sidenav a {
    font-size: 20px;
    color: rgb(14, 108, 177);
    display: block;
    transition: 0.3s;
    letter-spacing: 2px;
    width: 100%;
    user-select: none;
    border: none;
    vertical-align: middle;
    overflow: hidden;
    background-color: inherit;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    outline: 0;
    box-sizing: inherit;
    padding: 4px 0 4px 0;
}


.single-link {
    letter-spacing: 2px;
    font-weight: 400;
    font-size: 15px;
    margin: 6px 0;
}

.single-link:hover {
    color: #0c1e82 !important;
    background: #e6e6e6 !important;
}

.menu-links-alone {
  margin-left: 32px;
}

.small-sidenav .link-container {
    text-decoration: none;
    font-size: 20px;
    letter-spacing: 2px;
    color: #0c1e82;
    transition: 0.3s;
    width: 100%;
    user-select: none;
    vertical-align: middle;
    overflow: hidden;
    background-color: inherit;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    outline: 0;
    text-transform: none;
    margin: 0;
    box-sizing: inherit;
    display: none;
}

.small-sidenav .arrow-down {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.small-sidenav .arrow-down:before {
    content: "\f0d7";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

/* link container: normally hidden, is shown whenever the mouse click on the corresponding main-area */
.small-sidenav .link-container {
    color: #000;
    background-color: #fff;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
    box-sizing: inherit;
    display: none;
}
.small-sidenav .link-container a {
    font-size: 15px;    
}
/* if present (added via JavaScript), overwrites the previous "display: none;" property, thus revealing sublinks */
.nav-show {
    display: block !important;
}

/* navigation button on the top-right, to be shown only on small screens; 
if clicked, it will show the navigation bar ".small-sidenav";
 the button changes content and background when clicked */
#buttonOpenNav {
    display: inline-block;
}
/*@media screen and (min-width: 800px) {
    #buttonOpenNav {
        display: none;
    }
}*/
@media print {
    #buttonOpenNav {
        display: none;
    }
}

.buttonOpenNav {
    text-align: center;
    width: 76px;
    z-index: 90; 
    font-size: 58px;
    position: fixed;
    top: 8px;
    left: 8px;
    cursor: pointer;
    height: 76px;
    color: #fff;
    transition: left 0.8s ease-in-out;
}
.buttonOpenNav-closed {
    /*background: rgb(14, 108, 177);*/
    /*background: rgb(14, 108, 177);*/
    /*background: rgba(14, 108, 177, 1);*/
    background: rgb(0, 102, 153);
    border-radius: 10px 10px 10px 10px;
    transition: all 0.2s ease-in-out 0s;
}

.buttonOpenNav-open {
    background: rgb(0, 102, 153);
    border-radius: 0 10px 0px 0px;
    transition: all 0.2s ease-in-out;
    width: 84px;
    height: 84px;
    left: 0;
    top: 0;
}

#hamburger-lines { 
  /* trick adapted from http://www.alwaystwisted.com/post.php?s=2012-05-12-create-a-pure-css-menu-button */
    /*border-bottom: 12px double #fff; 
    border-top: 4px solid #fff; 
    content:"";
    height: 4px; 
    width: 21px;
    position: absolute;
    top: 11px;
    left: 10px;*/
}
/* The next block is adapted from the pseudobox shadow trick here:
https://css-tricks.com/three-line-menu-navicon/ */
#hamburger-lines:before {
    content: "";
    position: absolute;
    left: 13.5px;
    top: 13px;
    width: 50px;
    height: 9px;
    background: #ffffff;
    /* variations of color, but not very well suited with variations of lightblue, removed for the moment */
    /* box-shadow: 0 20px 0 0 #e7ecf0, 0 40px 0 0 #c1cdd6; */ 
    box-shadow: 0 20px 0 0 #fff, 0 40px 0 0 #fff;
}

#closing-symbol {
    display: none;
  	position: relative;
    left: -2px;
    top: 5px;
}


/* menu to be displayed only on big screens */
.main-menu {
	display: none;
    background: #d4dbe8;
}
@media screen and (min-width: 960px) { /* this must be equal to the threshold in the file js/menu.js */
	.main-menu {
		display: block;
	}
}
.small-menu-logo img {
    transition: all 0.8s; /* Animation */
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0) scale(1.0, 1.0);
    -moz-transform: translateZ(0) scale(1.0, 1.0);
    -ms-transform: translateZ(0) scale(1.0, 1.0);
    -o-transform: translateZ(0) scale(1.0, 1.0);
    transform: translateZ(0);
}

.small-menu-logo img:hover {
    transform: scale(1.1);
    border-radius: 0;
    background: #fff;
}

.main-menu-public .menu-block-separator {
	background-color: #259ad4;
}

/* reset the margins of figure provided by the Chrome (and Chrome-based) user-style sheets */
figure {
    margin: 0;
    margin-block-start:0; margin-block-end:0; margin-inline-start:0; margin-inline-end:0;
}

.people-wrapper {
    display: grid;
    grid-template-columns: 172px 1fr;  /* 1 column, only the width of the first one is fixed, the other occupies the remaining space */ 
    grid-gap: 10px;
    background-color: #fff;
    color: #444;
}

.people-box.people-headline {
    padding-left: 0;
    vertical-align: bottom;
    grid-column: 1 / span 2; /* spans 2 columns on small screens */
    margin-top: 5px;
}
#main-content .people-box.people-headline h1 { 
   padding-top: 0;
   margin-top: 0; 
}
.people-box {
    color: #000;
    border-radius: 5px;
    padding: 5px 5px 10px 5px;
}
.people-box.people-photo {
    background-color: #dee7ec; /* variation of the header color */
    display: flex;
    align-items: center;
}
.people-box.people-photo figure{
    margin-left: 10px;
    padding-top: 10px;
    margin-right: 10px;
}
.people-box.people-photo figure img {
    border-radius: 6px;
}
.people-box.people-details {
    background-color: #dbe5ec54; /* variation of the header color */
    /* vertical-align: bottom; */
    display: flex;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
}
.people-box.people-details p {
    margin-top: 5px;
    margin-bottom: 4px;
}

/* this first selector allows for a variable length, filling nicely only medium and small screens,
the second selector allows to occupy the whole horizontal length available for each type of screen */
.single-person-wrapper,
.single-person-wrapper-whole-row {
    grid-template-columns: 172px 1fr !important;
}

@media screen and (min-width: 1450px) {
    .single-person-wrapper {
        display: inline-flex;
    }
}

.people-wrapper .details-people-occupy-row {
    grid-column: 2 / span 1;
}

.people-wrapper span {
    display: inline-block;
}

@media screen and (min-width: 1470px) {
    .people-wrapper {
       grid-template-columns: 172px 1fr 172px 1fr;  
       /* 2 columns, only the width of the first and third ones have fixed length, the others occupy each half of the remaining space.
       As always in a grid environment, the value of 1fr is computed in this case as:
       (total horizontal space - 180px - 180px) / (num of "fr" stated above) = 
       (total horizontal space - 360px) / 2  */ 
    }
    .people-box.people-headline {
        grid-column: 1 / span 4; /* spans 4 columns on big screens */
    }

    .people-wrapper .details-people-occupy-row {
        grid-column: 2 / span 3;
    }    
}


/* instructions needed for the address details in the footer in every page */
.address-details {
    display: inline-block;
}
#disappearing-separator {
    display: none;
}
@media screen and (min-width: 1220px) {
    .address-details {
        display: inline;
    }   
    #disappearing-separator {
        display: inline;
    }   
}

/* the next instructions force the footer to stick to the bottom of the page, even if the main content
does not contain enough text/images to push it down to the bottom of the page.
Depending on the type of page (homepage, secondary page), the main content is located in a different 
div (#container-l, respectively #container2col), hence we have to target both objects in the lines below.
Code adapted from https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/ */
/**
 * 1. Avoid the IE 10-11 `min-height` bug.
 * 2. Set `flex-shrink` to `0` to prevent some browsers from
 *    letting these items shrink to smaller than their content's default
 *    minimum size. See http://bit.ly/1Mn35US for details.
 * 3. Use `%` instead of `vh` since `vh` is buggy in older mobile Safari.
 */
body {
    display: flex;
    flex-direction: column;
    height: 100%; /* 1, 3 */
    min-height: 100vh;
}

#container-l,
#container2col {
    -webkit-box-flex: 1 0 auto;
	-webkit-flex: 1 0 auto;
	-ms-flex: 1 0 auto;
    flex: 1 0 auto; /* 2 */
}
#footer, #header {
    flex: none; /* 2 */
}

/* this fixes the display of objects in the various lists in the homepage, provided that each <li>...</li> 
object is rewritten as <li><span>...</span></li> */
ul li span {
    display: inline-block;
    vertical-align: text-top;
}

/* fixed an overflow on the top-right corner, generated by the photo in the header on small screens */
body { 
    overflow-x: hidden;
} /* NOTE: if we target #header instead of body, we end up with the header cut a bit, 
so this would not be the right approach to solve this overflow-x */

/* style for the menu: since we added sub-<ul>s of the main <ul>, we need to take care of not introducing additional padding, etc
/* reset our lists to remove bullet points and padding */
.mainmenu, .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}
#side-bar ul.dropdown {
    margin-top: 0;
}
#side-bar li.submenu {
    padding: 0 0 0 0;
}
#side-bar li.toggle-container {
    transition: height 0.35s ease-in-out;
    overflow: hidden;
}
/*#side-bar li.toggle-container:not(.active) {
    display: none;
}*/


body {
    font-size: 16px;
}
@media screen and (min-width: 320px) {
    body {
      font-size: calc(16px + 6 * ((100vw - 320px) / 680));
    }
}
@media screen and (min-width: 1000px) {
    body {
      font-size: 22px;
    }
}


/********************************************************************/
/* UTILITY CLASS FOR THE GOOGLE MAPS EMBEDDED AS AN IFRAME IN THE PAGE howto.php 
 * Standard trick copied from 
 * https://blog.duda.co/responsive-google-maps-for-your-website
/********************************************************************/

.map-responsive{
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
  }
  
  .map-responsive iframe{
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
  }
  
  /********************************************************************/
  /* SMALL UTILITY CLASS FOR HANDLING THE LONG URLS SHOWN IN THE PAGE OF THE EVENTS
  /* Code taken from
   * https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
  /********************************************************************/
  
  .dont-break-out {
    /* These are technically the same, but use both */
    overflow-wrap: break-word;
    word-wrap: break-word;
  
    -ms-word-break: break-all;
    /* This is the dangerous one in WebKit, as it breaks things wherever */
    word-break: break-all;
    /* Instead use this non-standard one: */
    word-break: break-word;
  
    /* Adds a hyphen where the word breaks, if supported (No Blink) */
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
  
  /********************************************************************/
  /* STYLE FOR THE TABLE OF THE GRANTS
  /* Code adapted from
   * https://css-tricks.com/responsive-data-table-roundup/
  /********************************************************************/
  
  .table-grants tr.table-heading {
    font-weight: bold;
  }
  
  .table-grants th, 
  .table-grants td {
    padding: 10px;
  }
  
  .table-grants td {
    border-bottom: 1px solid #ccc;
  }
  
  /*.table-grants td:nth-of-type(1) {
    max-width: 200px;
  }*/
  
  .table-grants td:nth-of-type(4) {
    max-width: 200px;
  }
  
  .research-grant {
    float: right; 
    margin-bottom: -40px;
  }
  
  /* Max width before this PARTICULAR table gets nasty. */
  @media screen and (max-width: 1200px) {
  
    /* Force table to not be like tables anymore */
    table.table-grants, 
    .table-grants thead, 
    .table-grants tbody, 
    .table-grants th, 
    .table-grants td, 
    .table-grants tr {
      display: block;
      border-collapse: collapse; 
    }
  
    /* Hide table headers (but not display: none;, for accessibility) */
    .table-grants thead tr,
    .table-grants tr.table-heading {
      position: absolute;
      top: -9999px;
      left: -9999px;
    }
  
    .table-grants tr {
      margin: 0 0 1rem 0;
      border-radius: 10px;
    }
    
    .table-grants tr:nth-child(odd) {
      background:#dbe5ec54;
    }
  
    .table-grants tr:nth-child(even) {
      background: #dee7ec;
    }
    
    .table-grants td {
      /* Behave  like a "row" */
      border: none;
      border-bottom: 0;
      position: relative;
      padding-left: 220px;
      /* NOTE: 220px is a bit more than the length of the longer label ("Principal investigator", see below)
       * with the biggest font-size (22px) that we use on big screens,
       * so that we do not have overlaps between labels and text (and still occupy the space in the best possible way)
       * Alternatively, we could have opted for padding-left: 50%; for example: this ensures 2 "virtual" columns 
       * of (apparently) the same width. */
    }
  
    .table-grants td:before {
      /* Now like a table header */
      position: absolute;
      /* Top/left values mimic padding */
      top: 10px;
      left: 8px;
      width: 45%;
      padding-right: 10px;
      white-space: nowrap;
    }
  
    /* Label the data - Remember to change the labels below if the labels in the html/PHP change! */
    .table-grants td:nth-of-type(1):before { content: "Funding body"; }
    .table-grants td:nth-of-type(2):before { content: "Start"; }
    .table-grants td:nth-of-type(3):before { content: "End"; }
    .table-grants td:nth-of-type(4):before { content: "Project title"; }
    .table-grants td:nth-of-type(5):before { content: "Principal investigator"; }
  
    .table-grants .headline-title td:nth-of-type(1):before {
      content: '';
    }
  
    .table-grants .headline-title td:nth-of-type(1) {
      padding-left: 0;
      max-width: 100%;
      background: #fff;
    }
  
    .table-grants .headline-title td:nth-of-type(1) h2 {
      margin-bottom: 0;
      margin-top: 0;
    }
  
    .research-grant {
      float: none; 
      margin-bottom: 10px;
    }
  }
  
  /********************************************************************/
  /* STYLE FOR THE TABLE OF THE PREPRINTS
  /* Code adapted from
   * https://css-tricks.com/responsive-data-table-roundup/
  /********************************************************************/
  
  .table-preprints tr.table-heading {
    font-weight: bold;
  }
  
  .table-preprints th, 
  .table-preprints td {
    padding: 10px;
  }
  
  .table-preprints td {
    border-bottom: 1px solid #ccc;
  }
  
  .table-preprints td:nth-of-type(1) {
    max-width: 200px;
  }
  
  .research-preprint {
    float: right; 
    margin-bottom: -40px;
  }
  
  /* Max width before this PARTICULAR table gets nasty. */
  @media screen and (max-width: 1200px) {
  
    /* Force table to not be like tables anymore */
    table.table-preprints, 
    .table-preprints thead, 
    .table-preprints tbody, 
    .table-preprints th, 
    .table-preprints td, 
    .table-preprints tr {
      display: block;
      border-collapse: collapse; 
    }
  
    /* Hide table headers (but not display: none;, for accessibility) */
    .table-preprints thead tr,
    .table-preprints tr.table-heading {
      position: absolute;
      top: -9999px;
      left: -9999px;
    }
  
    .table-preprints tr {
      margin: 0 0 1rem 0;
      border-radius: 10px;
    }
    
    .table-preprints tr:nth-child(odd) {
      background:#dbe5ec54;
    }
  
    .table-preprints tr:nth-child(even) {
      background: #dee7ec;
    }
    
    .table-preprints td {
      /* Behave like a "row" */
      border: none;
      border-bottom: 0;
      position: relative;
      padding-left: 220px;
      /* NOTE: 220px is a bit more than the length of the longer label ("Principal investigator", see below)
       * with the biggest font-size (22px) that we use on big screens,
       * so that we do not have overlaps between labels and text (and still occupy the space in the best possible way)
       * Alternatively, we could have opted for padding-left: 50%; for example: this ensures 2 "virtual" columns 
       * of (apparently) the same width. */
    }
  
    .table-preprints td:before {
      /* Now like a table header */
      position: absolute;
      /* Top/left values mimic padding */
      top: 10px;
      left: 8px;
      width: 45%;
      padding-right: 10px;
      white-space: nowrap;
    }
  
    /* Label the data - Remember to change the labels below if the labels in the html/PHP change! */
    .table-preprints td:nth-of-type(1):before { content: "Year"; }
    .table-preprints td:nth-of-type(2):before { content: "Authors"; }
    .table-preprints td:nth-of-type(3):before { content: "Title"; }
    .table-preprints td:nth-of-type(4):before { content: "Link"; }
  
    .table-preprints .headline-title td:nth-of-type(1):before {
      content: '';
    }
  
    .table-preprints .headline-title td:nth-of-type(1) {
      padding-left: 0;
      max-width: 100%;
      background: #fff;
    }
  
    .table-preprints .headline-title td:nth-of-type(1) h2 {
      margin-bottom: 0;
      margin-top: 0;
    }
  
    .research-preprint {
      float: none; 
      margin-bottom: 10px;
    }
}


.topbar {
    margin-right: 0;
}