/*
 * Globals
 */

@import url('https://fonts.googleapis.com/css2?family=Overpass:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap');

/* Links */
a,
a:focus,
a:hover {
  color: #e25e6a;
  text-decoration: none;
}

a:hover {
  color: #41b990;
}

.hidden {
  display: none;
}

.container {
  max-width: 80ch;
  font-size: 130%;
}

/*
 * Base structure
 */

html,
body {
  height: 100%;
  background: #fff;
  font-family: 'Nunito', sans-serif;
}
body {
  color: #333;
  text-align: left;
}

/* Index page */

nav {
  margin-top: 2em;
}

time {
  font-style: italic;
  color: #607d8b;
  font-size: 80%;
}

.pile {
  margin-top: 1.2rem;
}

dl a {
  color: #41b990;
  text-decoration: none;
  font-size: 120%;
}

dl a:hover,
dl a:focus {
  color: #3a846b;
  text-decoration: none;
}

dt {
  font-weight: normal;
}

.pile {
    color: #fff;
    padding: 2px 8px;
    display: inline-block;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

/* Post page */

h1 {
  color: #265483;
}

h1 .rss {
  font-size: 50%;
}

h1, h2, h3, h4, h5, h6 {
  color: #265483;
  margin-top: 1.2em;
  margin-bottom: 1em;
  font-weight: 700;
  /* font-size: 160%; */
}

code {
  font-size: 100%;
  color: #c35b7d;
  font-family: 'IBM Plex Mono', monospace;
}

pre {
  font-family: 'IBM Plex Mono', monospace;
  padding: 20px;
  margin: 2em 0 !important;
}

pre.lang-c::before, pre.lang-python::before, pre.lang-python3::before, pre.lang-bash::before, pre.lang-json::before, pre.lang-text::before {
  display: block;
  float: right;
  color: #1bc5e0;
  font-size: 75%;
  user-select: none;
}

pre.lang-c::before {
  content: "C";
}
pre.lang-python::before, pre.lang-python3::before {
  content: "Python";
}
pre.lang-bash::before {
  content: "sh";
}
pre.lang-json::before {
  content: "json";
}
pre.lang-text::before {
  content: "plaintext";
}

article {
  margin-top: 2em;
}

article aside {
  font-size: 80%;
}

article time {
  font-style: italic;
  color: #607d8b;
}

article aside.timestamp {
  text-align: right;
}

article aside a,
article aside a:focus,
article aside a:hover  {
  color: #41b990;
}

article blockquote {
  border-left: .1em solid #8768bb;
  padding-left: 1em;
  color: #545b62;
  margin: 2em 0;
}

article img {
  width: 90%;
  margin: 0 auto;
  display: block;
  padding: 2em 0;
}

article img.small {
  width: 30%;
}

article iframe {
  margin: 2em auto;
  display: block;
  max-width: 90%;
}

article .twitter-tweet {
  margin: 0 auto;
}

footer {
  margin-top: 2.2em;
  padding-top: 2em;
  margin-bottom: 2em;
  border-top: 1px solid #433e56;
}

.img-me-container {
  padding-right: 0px;
  margin-top: -10px;
}

.disclaimer {
  text-align: right;
  font-size: 75%;
  color: #999;
}

.info {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 75%;
}

.info a,
.info a:focus {
  color: #41b990;
  text-decoration: none;
  white-space: nowrap;
}

.info a:hover {
  color: #63c8f6;
}

.name {
  color: #c35b7d;
}

.location {
  font-size: 90%;
  color: #666;
}

@media(max-width: 768px) {
  .disclaimer, .info {
    text-align: center;
  }

  .disclaimer {
    margin-top: 1em;
  }
}

.image-caption {
  display: block;
  text-align: center;
  margin-top: -2em;
  margin-bottom: 3em;
}

/* Forms. */

.pure-form input[readonly] {
  background-color: #e7fbf0;
  font-weight: bold;
  color: black;
  border: none;
  box-shadow: none;
}
.pure-form {
  width: 90%;
  max-width: 500px;
  margin: 2em auto;
}
.pure-form input, .pure-form select {
  width: 100%;
}
.pure-form .pure-form-message {
  color: #003b69;
  text-align: right;
}
#form-warning {
  color: red;
  font-weight: bold;
}

/* Support me! */
.support-me {
  display: block;
  padding: 2em;
  margin: 4em auto;
  max-width: 80%;
  color: white;
  background-color: #17a2b8;
}

.support-me a, .support-me a:hover, .support-me a:active, .support-me a:visited {
  color: #c2ffdf;
}

#h1-nav-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
}

nav li {
  display: inline;
  margin-right: 10px; /* Add some spacing between items */
}

/* Basic admonition styling */
.admonition {
  margin: 1.5em 0;
  padding: 0.8em;
  border-left: 4px solid #448aff;
  background-color: #e3f2fd;
  border-radius: 4px;
}

.admonition-title {
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 0.6em;
  color: #01579b;
}

/* Types of admonitions */
.admonition.note {
  border-left-color: #448aff;
  background-color: #e3f2fd;
}

.admonition.warning {
  border-left-color: #ff9100;
  background-color: #fff8e1;
}

.admonition.danger {
  border-left-color: #ff1744;
  background-color: #ffebee;
}

.admonition.info {
  border-left-color: #00c853;
  background-color: #e8f5e9;
}
