@font-face {
  font-family: 'Ferrite-Core';
  src: url(/fonts/FerriteCoreDX-Regular.otf);
}

@font-face {
  font-family: 'Atkinson';
  src: url(/fonts/AtkinsonHyperlegibleNext-Light.otf);
}

@font-face {
  font-family: 'Atkinson';
  src: url(/fonts/AtkinsonHyperlegibleNext-Light.otf);
}

body {
  background-color:whitesmoke;
  background-image: url('../images/bg_vind.bmp');
  background-position: top;
  background-repeat: repeat;
  background-attachment: fixed;
  font-size: 16px;
  margin: 0;
  font-family: 'Atkinson';
}

p {
  line-height: 1.2em;
  /*I find the default HTML line-height tends to be a bit claustrophobic for main text*/
}

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;
}

.tinyimg {
  width: 3em;
  margin-bottom: -1em;
}

@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: blue;
  text-decoration: none
}

a:hover {
  color: lightblue;
}

h1 {
  color: black;
}

h2,
h3,
h4,
h5 {
  color: black;
}

hr {
  border-width: 2px 0 0 0;
  border-style: dashed;
  border-color: #black;
}

/*#CONTAINER is the rectangle that has contains everything but the background!*/
#container {
  margin: 3em auto;
  width: 90%;
  max-width: 700px;
  background-color:whitesmoke;
  background-image: url();
  color: black;
  outline-color: black;
  outline-style: groove;
  outline-width: 16px;
  outline-offset: 0;
}

#content {
  padding: 10px 5% 20px 5%;
}

/*HEADER STYLE*/

#header {
  text-align: center;
  max-width: 700px;
}

#header ul {
  display: contents;
  list-style-type: none;
  padding: 0;
  margin-bottom: 1em;
  margin-top: 1em;
  font-weight: bolder;
  display:inline-flex;
}

#header li a {
  color: black;
  /*
  background: linear-gradient(blueviolet 0%, yellow 100%);*/
  font-size: 1.5em;
  padding: 0.5em 0.5em 0.5em 0.5em;
}

#header li a:hover {
  background-color: black;
  color: whitesmoke;
}

/* border: green solid;
#header {
  margin: auto;
  text-align: center;
  font-family: Ferrite-Core;
  padding: 0 5%;
  }
  /*
  
#header ul {
  display: inline-block;
  list-style-type: none;
  padding: 0;
  margin-bottom: 1em;
  margin-top: 1em;
}

#header li {
  font-size: 24px;
  display: inline-block;
  padding-inline: 0.3vw;
  align-content: baseline;
  align-items: safe; 
  font-size: 1.2em;
  display: inline-block;
  margin-right: 0.2em;
  margin-bottom: 0.8em;
  margin-top: 0.8em;
}
#header li a {
  color: greenyellow;
  background: linear-gradient(blueviolet 0%, yellow 100%);
  border-radius: 20%;
  padding: 0.5em 0.5em 0.5em 0.7em;
}

#header li a:hover {
  text-decoration: none;
  color: black;
}

#header li a:active {
  background-color: silver;
  color: black;
}
*/

/*POST LIST STYLE*/
#postlistdiv ul {
  font-size: 1.2em;
  padding: 0;
}
}

#recentpostlistdiv ul {
  font-size: 1.4em;
  padding: 0;
}

.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%;
}

.box {
  display: none;
  width: 100%;
}

a:hover+.box,
.box:hover {
  display: block;
  position: relative;
  z-index: 100;
}

/*IMAGE GRID STUFF*/
.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

/* Create four equal columns that sits next to each other */
.column {
  flex: 25%;
  max-width: 25%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}