@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab');

body{
  font-family: 'Roboto Slab', sans-serif;
  margin: 0px;
  color: #282828;
}

.col3 {
  float: left;
  width: 33.33%;
  text-align: center;
  height: 20px;
}

.col2 {
  float: left;
  width: 50%;
  text-align: center;
  height: 20px;
}

.col1 {
  float: left;
  width: 99%;
  text-align: center;
  height: 20px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
  padding: 5px;
}

.center_img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 60%;
  padding-bottom: 10px;
}

.button_container {
  position: relative;
  text-align:center;
}

.button_link {
  height: 43px;
  width: 100px;
  display: inline-block;
  margin: 10px;
  border-radius: 5px;
}

.button_link:hover {
  background: #cfd;
}

.scroll_box {
  overflow-x: scroll;
}

.small_header {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 20px 0;

}

.small_header_box {
  height: 60px;
  flex: 1;
  min-width: 300px;
  margin: 15px 0;
}

.name_header_box {
  display: inline-block;
  margin: 0 auto;
}

.name_header_img {
  float: left;
  width: 80px;
}

.name_header_name {
  float: left;
  position: relative;
  bottom: 15px;
}

.language-python.highlighter-rouge {
  background-color: rgb(219, 219, 219);
  padding: 1px 10px;
  border-radius: 8px;
}

.language-matlab.highlighter-rouge {
  background-color: #eee;
  padding: 1px 10px;
  border-radius: 8px;
}

.language-r.highlighter-rouge {
  background-color: #eee;
  padding: 1px 10px;
  border-radius: 8px;
}

.post_tag {
  display: inline-block;
  background: #404b57;
  padding: 0.3rem 0.5rem;
  margin: 0.25rem;
  border-radius: 5px;
}

.post_tag:hover {
  background: #1f242a;
}

.col1 img, span {
  vertical-align: middle;
}

.col2 img, span {
  vertical-align: middle;
}

.header {
  background-color: #1f242a;
  color: #ebebeb;
}

.header h1, a {
  text-decoration: none;
  text-align: center;
}

.header a {
  color: #ebebeb;
}

.header a:hover {
  color: #3aa6fb;
}

.footer {
  color: #ebebeb;
}

.footer a {
  color: #ebebeb;
}

.footer a:hover {
  color: #3aa6fb;
}

.content a {
  color: #3aa6fb;
}

.content a:visited {
  color: #0a0a0a;
}

.content {
  padding: 20px 40px;
}

.post_block h3 {
  margin-block-end: 2px;
}

/* Dark mode */



@media (prefers-color-scheme: dark) {


  body {
    background-color: #292929;
    color: #ffffff;
  }

  .header {
    background-color: #1a1a1a;
    color: #ffffff;
  }

  .header a {
    color: #ffffff;
  }

  .header a:hover {
    color: #636EFA;
  }

  .footer {
    color: #ffffff;
  }

  .footer a {
    color: #ffffff;
  }

  .footer a:hover {
    color: #636EFA;
  }

  .content a {
    color: #636EFA;
  }

  .content a:visited {
    color: #636EFA;
  }

  .post_tag {
    background: #353638;
  }

  .post_tag:hover {
    background: #1a1a1b;
  }

  .language-python.highlighter-rouge {
    background-color: #171616;
  } /* Python code block background color */

  .language-matlab.highlighter-rouge {
    background-color: #171616;
  }

  .language-r.highlighter-rouge {
    background-color: #171616;
  }

  .button_link:hover {
    background: #4643a4;
  }


}




/* Large screen widths */
@media print, screen and (min-width: 1240px) {

  .header {
    position: fixed;
    width: 25%;
    height: 100%;
    top: 0;
    left: 0;
  } /* Adjusts the header width */

  .footer {
    position: fixed;
    width: 300px;
    bottom: 20px;
    left: 20px;
  }

  .link_group {
    padding-top: 30px;
  }

  .name_group {
    padding-top: 20px;
    padding-bottom: 10px;
  }

  div.small_header {
    display:none;
  }

  .content {
    width: 55%;
    position: relative;
    left: calc(calc(100% - 350px)/2 - 400px + 350px);
  }

}

/* Small screen widths */
@media print, screen and (max-width: 1240px) {

  .header {
    width: 100%;
  }

  div.big_header {
    display:none;
  }

  div.small_header {
    display:flex;
  }

  .footer{
    background-color: #1f242a;
    padding: 20px;
  }

}