@import '/atom-one-dark.css';

#darkModeBtn::before {
  content: "Change to dark theme";
}

.dark #darkModeBtn::before {
  content: "Change to light theme";
}

html {
  display: flex;
  justify-content: center;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #000000;
  opacity: 0.9;
  max-width: 600px;
  padding: 10px;
  font-size: large;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0px;
  background-color: white;
  transition: color 0.1s, background-color 0.1s;

  .dark & {
    background-color: rgb(3, 7, 18);
    color: rgb(209, 213, 219)
  }

  font-size: 1rem;
  line-height: 1.75;
}


h1:nth-child(1) {
  text-align: center;
}

h1,h2,h3,h4,h5,h6 {
  color: black;
  .dark & {
    color: white;
  }
}

h1 {
  font-size: 2.25em;
  font-weight: 800;
  margin-top: 0px;
  margin-bottom: 0.8889rem;
  line-height: 1.1;
}

h2 {
  font-weight: 700;
  font-size: 1.5em;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3333333;
}

h3 {

}

pre {
  border-radius: 10px;
  background-color: #000005;
  overflow-x: scroll;
  padding: 4px;
  color: white;
}

blockquote {
  font-style: italic;
  font-weight: 500;
  color: black;
  padding-left: 20px;
  margin-left: 20px;
  border-inline-start-width: .25rem;
  border-inline-start-color: #374151;
  border-inline-start-style: solid;
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-inline-start: 1em;

  .dark & {
    color: white;
  }
}

p {
  margin: 1.25em 0;
}

a {
  color: black;
  font-weight: 500;
  .dark & {
    color: white;
  }
}

button {
  padding: 6px 10px;
  border-radius: 5px;
  background: white;
  font-size: large;
  border: #333 solid 2px;
  color: black;
  cursor: pointer;
  transition: all 0.2s;
  max-width: fit-content;
}

button:hover {
  background: rgb(209, 209, 209);
}

button:active {
  background: rgb(182, 182, 182);
}

.dark button {
  background-color: #111;
  border-color: #888;
  color: #fff;
}

.dark button:hover {
  background-color: rgb(41, 41, 41);
}

.dark button:active {
  background-color: rgb(60, 60, 60);
}

input {
  padding: 6px 10px;
  border-radius: 5px;
  background: white;
  color: black;
  font-size: large;
  border: #333 solid 2px;
}


