:root {
    --text: darkslategrey;
    --border: lightgrey;
    --accent: teal;
    --bg: #dce3e1;
    --gradientTop: white;
    --gradientBottom: rgb(240, 248, 255, .8);
    --link-color: teal;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: white;
        --border: #855639;
        --accent: #e1bb80;
        --bg: #352208;
        --gradientBottom: #3b2817;
        --gradientTop: #503720;
        --link-color: #bb9457;
    }
}

body {
    padding: 10px;
    font-family: 'MS PGothic', sans-serif;
    color: var(--text);

    /* page background pattern */
    /* Cross */
    background-color: var(--gradientTop);
    background: radial-gradient(circle, transparent 20%, var(--gradientTop) 20%, var(--gradientTop) 80%, transparent 80%, transparent), 
                radial-gradient(circle, transparent 20%, var(--gradientTop) 20%, var(--gradientTop) 80%, transparent 80%, transparent) 40px 40px, 
                linear-gradient(var(--bg) 3.2px, transparent 3.2px) 0 -1.6px, 
                linear-gradient(90deg, var(--bg) 3.2px, var(--gradientTop) 3.2px) -1.6px 0;
    background-size: 80px 80px, 80px 80px, 40px 40px, 40px 40px;
}

p {
  line-height: 1.6em; /*I find the default HTML line-height tends to be a bit claustrophobic for main text*/
}

hr {
  border: solid var(--accent);
  border-width: 2px 0 0 0;
}

img {
  max-width: 100%;
  height: auto;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
.right {
  float: right;
  margin-left: 1em;
}
.left {
  float: left;
  margin-right: 1em;
}
.center {
  display: block;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}
@media only screen and (min-width: 600px) {
  .small {
    max-width: 60%;
    height: auto;
  }
}
.caption {
  margin-top: 0;
  font-size: 0.9em;
  font-style: italic;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:visited {
    color: var(--accent);
}

a:hover, a:focus {
    font-style: italic;
    background-color: transparent; /* Usuwa stare tło z bloga */
}

h1, h2, h3, h4, h5 {
  font-family: Tahoma, Geneva, sans-serif;
  color: var(--accent);
}

/*#CONTAINER is the rectangle that contains everything but the background!*/
#container {
  margin: 5vw auto 12px auto;
  width: 90%;
	max-width: 55rem;
	background: linear-gradient(var(--gradientTop), var(--gradientBottom));
  color: var(--text);
  outline-color: var(--border);
  outline-style: ridge;
  outline-width: 4px;
  outline-offset: 0;
  border-radius: 10px;
  overflow: hidden;
}

#content {
  padding: 10px 5% 20px 5%;
}


/*HEADER STYLE*/
#header {
  background: linear-gradient(to right,var(--bg),var(--gradientBottom));
  padding: 0 5%;
  border-color: var(--border);
  border-style: ridge;
  border-width: 0 0 4px 0;
}
#header ul {
  list-style-type: none;
  padding: 0.5em 0;
  margin: 0;
}
#header li {
  font-size: 1.2em;
  display: inline-block;
  margin-right: 1.5em;
  margin-bottom: 0.2em;
  margin-top: 0.2em;
}
#header li a {
  color: white;
  text-decoration: none;
  background-color: inherit;
}
#header li a:hover {
  text-decoration: underline;
}

/*POST LIST STYLE*/
#postlistdiv ul {
  font-size: 1.2em;
  padding: 0;
  list-style-type: none;
}
#recentpostlistdiv ul {
  font-size: 1.2em;
  padding: 0;
  list-style-type: none;
}
.moreposts {
  font-size: 0.8em;
  margin-top: 0.2em;
}

/*NEXT AND PREVIOUS LINKS STYLE*/
#nextprev {
  text-align: center;
  margin-top: 1.4em;
}

/*DISQUS STYLE*/
#disqus_thread {
  margin-top: 1.6em;
}

/*FOOTER STYLE*/
#footer {
  font-size: 0.8em;
  padding: 0 5% 10px 5%;
}