/* Move edit on GitHub button to the top left */
.markdown-section>:first-child {
    position: absolute;
    left: 0;
    top: -35px;
}

/* CSS related to increase font size */
.markdown-section>:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) code {
  font-size: 1rem;
}

.markdown-section>* {
  font-size: 1.1rem;
}

.markdown-section pre {
  padding: 0 0.7rem;
}

.sidebar ul li a {
  font-size: 17px;
}

/* General page layout */
code {
  white-space: pre-wrap !important;
  background-color: #e9e9e9 !important;
}

.markdown-section pre {
  background-color: #e9e9e9;
}

details {
  background-color: #e9e9e9;
  padding: 10px;
}

summary {
  padding: 4px;
  border: none;
  cursor: pointer;
  color: #2c3e50;
  font-weight: 600;
}

/* Styling of picture caption (https://stackoverflow.com/a/30366422/5263954) */
/* Select all em elements, that are placed immediately after img elements */
img + em {
  display: block;
}

/* Language selector */
.app-nav {
  margin: 25px 100px 0 0;
  top: 0;
}

#lang-selection {
  padding: .375rem 1.75rem .375rem .75rem;
  background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%232d3348' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px;
  border-radius: .25rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Back to top button */
.to-top{
  cursor: pointer;
  position: fixed;
  background: #42b983;
  color: white;
  width: 40px;
  height: 40px;
  text-align: center;
  font-size: 25px;
  border-radius: 50%;
  right: 7px;
  bottom: 15px;
  transition: background 0.5s;
  z-index: 1;
}

.to-top:hover {
  color: #42b983;
  background: white;
}

/* Donate button */
.tc_tip_button {
  background: #42b983;
  color: white;
}

.tc_tip_button:hover {
  opacity: 0.9;
}