/* Base variables for dark theme (default) */
:root {
  --black: #ebcce0;
  --trublack: #D9399E;
  --white: #ffffff;
  --grey: #604f60;
  --linkcolor: rgb(132, 164, 220);
  --background-color: var(--grey);
  --background-color2: rgb(199, 143, 186);
  --color: var(--white);
  --accent-color: #dfa4c8;
}

/* Light theme variables */
@media (prefers-color-scheme: light) {
  :root {
    --background-color: var(--white);
    --black: #D9399E;
    --background-color2: rgb(235, 227, 237);
    --color: black;
    --accent-color: rgb(213, 143, 202);
}
}

* {
  background-color: var(--background-color);
  margin-top: 0;
  box-sizing: border-box;
}

html {
  min-height: 100vh;
}

body {
  color: var(--color);
  margin: 0;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100vw;
}

main {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 2rem;
  @media screen and (min-width: 768px) {
    width: 600px; /* Set width to 600px on larger screens */
  }
}

img {
  display: flex;
  position: relative;
  top: 0;
  margin: 0 auto;
  /* margin-left: 0%; */
  /* margin-top: -40%; */
  /* transform: translateX(-30%); */
  width: 100%;
}

pre {
  background-color: var(--grey);
  padding: 0.5rem;
  min-width: 100%;
  white-space: pre-wrap;
}

 /* unvisited link */
a:link {
  /* color: var(--accent-color); */
  color: var(--linkcolor);
}

/* visited link */
a:visited {
  /* color: var(--accent-color); */
  color: var(--linkcolor);
}

/* mouse over link */
a:hover {
  /* color: hotpink; */
  color: rgb(255, 118, 186);
}

/* selected link */
a:active {
  color: blue;
} 

/* a {
  font-weight: bold;
  color: var(--accent-color);
}

a:hover {
  text-decoration: underline;
} */

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  line-height: 1;
}

h1 { 
  font-size: 3.5rem;
  color: var(--black); 
}
h2 { 
  font-size: 2.3rem;
  line-height: 0;
  padding-bottom: 2rem;
}
h3 { font-size: 7rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
  font-size: 2rem;
}

li {
  font-size: 1.65rem;
  margin-top: -1rem;
  padding-bottom: 2rem;
  line-height: 1;
  color: var(--color);
}

/* https://stackoverflow.com/a/11525422 */


div#wrapperHeader {
 width:100%;
 /* padding-top: 4rem; */
 height:11.5rem; /* height of the background image? */
 /* background:url(/assets/iconheader.png) repeat-x 0 0; */
 background: var(--trublack);
 text-align:center;
}

div#wrapperHeader div#header {
 width:20rem;
 height:11.5rem;
 margin:0 auto;
 background: var(--trublack);
}

div#wrapperHeader div#header img {
 /* width:5000px;/* /* the width of the logo image */
 /* height:913px;/* /* the height of the logo image */
 height: 11.5rem;
 width: auto;
 margin:0 auto;
}

.post > header {
  height: 60px;
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  margin: 1rem 0;
  width: 100%;
}

.post main {
  min-height: calc(100vh - 180px);
  align-items: flex-start;
}

.post a, ul li a {
  padding: 0;
  background-color: unset;
}

.post footer {
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.post footer a.previous {
  margin-right: auto;
}

.post footer a.next {
  margin-left: auto;
}
