/* General styling */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}
html, body, iframe {
    margin: 0;
    padding: 0;
    border: 0;
}
body, select, input, textarea {
    font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; /* Reverting to original font */
}
body {
    padding: 50px;
    font-size: 1em;
    color: #555; /* Original text color */
    font-weight: 300;
    background-color: #fff;
    position: relative;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, table, pre, dl {
    margin: 0 0 20px;
}
select, input, textarea {
    font-size: 1em;
    border-width: 1px;
}
li ul, li ol {
    margin: 6px 0;
}
h1, h2, h3, h1 a, h2 a, h3 a {
    line-height: 1.1;
    font-weight: 700;
}
h1 {
    font-size: 2em; /* Adjusted font size */
}
h1, h1 a {
    color: #222;
}
h2, h2 a {
    color: #333;
}
h3, h4, h5, h6, h3 a, h4 a, h5 a, h6 a {
    color: #444;
}
h4, h5, h6 {
    font-weight: 600;
}
a {
    color: #39c;
    font-weight: 400;
    text-decoration: none;
}
a:hover {
    color: #069;
}

/* Navigation buttons hover effect */
#tabs li a:hover {
    background-color: #e5e5e5;
    color: #000;
}

/* Adjusting header size */
header {
    width: 20%; /* Increased width */
    float: left;
    position: absolute;
    margin-top: 30pt;
    margin-left: 40pt;
}

/* Navigation buttons hover effect */
#tabs li a:hover {
    background-color: #e5e5e5; /* subtle hover effect */
    color: #000; /* Change text color on hover */
}
    /* General content styling */

    blockquote {
    border-left:1px solid #e5e5e5;
    margin:0;
    padding:0 0 0 20px;
    font-style:italic;
    }
    code, pre {
    font-family:Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal;
    color:#444;
    font-size:0.85em;
    }
    pre code {
    font-size:1em;
    }
    .has-jax {
    font-size:0.85em;
    font-weight:300;
    border:inherit;
    background:inherit;
    color:#777;
    }
    pre {
    padding:8px 15px;
    background: #f8f8f8;  
    border-radius:5px;
    border:1px solid #e5e5e5;
    overflow-x: auto;
    }
    article li {
    margin-bottom:6px
    }
    table {
    width:100%;
    border-collapse:collapse;
    }
    th, td {
    text-align:left;
    padding:5px 10px;
    border-bottom:1px solid #e5e5e5;
    font-weight: 300;
    }
    dt {
    color:#444;
    font-weight:700;
    }
    th {
    color:#444;
    }
    img {
    max-width:100%;
    }
    article img {
    display:block;
    margin:0 auto;
    }
    article img.inline {
    display:inline;
    margin:0;
    }
    strong {
    font-weight:600;
    }
    article p {
    text-align:justify;
    }
    small {
    font-size:0.7em;
    }
    hr {
    border:0;
    background:#e5e5e5;
    height:1px;
    margin:0 0 20px;
    }
    .collapsible div {
    position:relative;
    }
    cite {
    font-style:italic;
    }
    .rotated {
        transform: rotate(180deg);
    }
    
    /* Page structure styling */
    #wrapper {
    width:50%;
    height:100%;
    margin:0 auto;
    }
    header {
    width:15%;
    float:left;
    position:absolute;
    margin-top: 30pt;
    margin-left:40pt;
    }
    .responsive-image {
        display: block;
        margin: 0 auto;
    }
    #tabs ul {
        width: 100%;
        height:50px;
        overflow:hidden;
        position: absolute;
        list-style-type: none;

        margin: 0px;
        padding: 0px;
        top: 0px;
        bottom: 0px;

        
        
    }

  
    #papers ul{
        font-size:large
    }

    #papers ul li{
        clear:left;
        margin: 8pt
    }

    #teaching ul li{
        clear:left;
        margin: 3pt
    }

    li {
        float: left;
    }
    #tabs li a {
        display:inline-block;
        padding-top:15px;
        padding-right:15px;
        padding-left:15px;
        padding-bottom:10pt; 
        font-weight:bold;
        color:black;
        float: none;
      }
    article {
    width:600px;
    float:right;
    padding-bottom:50px;
    font-size:1em;
    }
    
    div .clear {
    clear:both;
    height:1px;
    }
    
    /* Jupyter Notebook Cell Styles */
  .jupyter-cell {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden; /* Ensures content doesn't overflow */
    margin-bottom: 30px;
  }

  /* Jupyter input and output cell styling */
  .jupyter-cell .input,
  .jupyter-cell .output {
    padding: 10px;
    background-color: #f7f7f7;
    font-family: monospace;
    color: #333;
    display: block;
    white-space: nowrap;
  }


  /* Pseudo-elements for input and output labels */
  .jupyter-cell .input:before {
    content: "In [" attr(data-count) "]: ";
    color: #1f77b4; /* Jupyter's blue color for input */
    font-weight: bold;
    display: inline;
  }
  
  .jupyter-cell .output:before {
    content: "Out[" attr(data-count) "]: ";
    color: #d62728; /* Jupyter's red/orange color for output */
    font-weight: bold;
    display: inline;
  }
  

  /* Custom spacing to align text with the first line of the input cell */
  .jupyter-cell .input .indent,
  .jupyter-cell .output .indent {
    margin-left: 8ch; /* Adjust this value as needed for alignment */
  }

    /* Different screen sizes */
    @media print, screen and (max-width: 960px) {
        #wrapper {
        width:auto;
        margin:0;
        }
        header, article {
        float:none;
        position:static;
        width:auto;
        }
        header {
        padding-left:20px;
        }
        article {
        border:1px solid #e5e5e5;
        border-width:1px 0;
        padding:20px 0;
        margin:0 0 20px;
        }
        header a small {
        display:inline;
        }
        header ul {
        position:absolute;
        right:50px;
        top:58px;
        }
        header li {
        display:inline;
        padding:2px 10px;
        }
        header li ul {
            display:none; /* hide submenus */
        }
    }
    
    @media print, screen and (max-width: 720px) {

        body {
        padding:10px;
        }
        body header img{
            max-width:80%;
            height:auto
        }
        header ul {
        list-style:none;
        top:10px;
        right:15px;
        text-align:left;
        line-height:1.2;
        }
        #wrapper{
            margin-left: 0%;
        }
        header li {
        display:inline;
        padding:0;
        margin-top: 0px;
        margin-left:0px;
        }
        h1, h1 a {
            margin:0 0 20 0;
        }
        #tabs ul{
            position: absolute;
        }
        #tabs li a {
            display:inline-block;
            padding-top:6px;
            padding-right:7px;
            padding-left:7px;
            padding-bottom:6px; 
            font-weight:bold;
            color:black;
            float: none;
        }

        .jupyter-cell .input,
        .jupyter-cell .output {
            white-space: normal;
        }
    }
    
    @media screen and (max-width: 480px) {
        article p, article li {
            text-align:left
        }
    }
    
    @media print {
        body {
        padding:0.4in;
        font-size:0.8em;
        color:#444;
        }
    }
    