@font-face {
  font-family: GermaniaOne;
  src: url(../style/GermaniaOne-Regular.ttf);
}

@font-face {
  font-family: CrimsonText;
  src: url(../style/CrimsonText-Regular.ttf);
}

@font-face {
  font-family: CrimsonText-bold;
  src: url(../style/CrimsonText-Bold.ttf);
}

@font-face {
  font-family: Tropi;
  src: url(../style/Tropi.ttf);
}

body {
  background-color: #fff;
  font-size: 16px;
  font-family: "Arial", sans-serif;
  margin: 0;
  background-image: url("../images/background.png");
  background-repeat: repeat;
  background-position: left top;
  background-attachment: fixed;
  background-size: cover;
}

h1 {
  font-family: Tropi, "Times New Roman", serif;
  color: #000;
  margin-top: 0em;
  margin-bottom: 0em;
  font-variant: small-caps;}

h2 {
  font-family: Tropi, "Times New Roman", serif;
  color: #000;
  margin: .1em;
  font-style: italic;
}

h3, h4, h5 {
  font-family: a, "Arial", sans-serif;
  color: #000;
  margin: .1em;
  font-style: italic;
}

p {
  line-height: 1.3em; 
  margin-bottom: 1em;
  text-align: justify;
  text-justify: auto;
  text-indent: 0em;
}

hr {
  border: solid #000;
  border-width: 1px 0 0 0;
  margin: 2em;
}

img {
  max-width: 100%;
  max-height: 80vh;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.right {
  float: right;
  margin: 1em;
}

.left {
  float: left;
  margin: 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;
}

#container {
  display: flex;
  flex-wrap: wrap;
}

#header {
  font-size: max(2vw, 1.5em);
  font-family: SenseFont, "Times New Roman", serif;
  color: white;
  filter: drop-shadow(1px 1px 1px black);
}

#sidebar {
  color: white;
  width: 20%;
  overflow: auto;
  position: -webkit-sticky;
  position: sticky;
  top: 0px;
  height: 100%;
  min-height: 100px;
  min-width: 200px;
  margin: 10px;
  margin-right: 0px;
  margin-left: auto;
  font-family: SenseFont, "Times New Roman", serif;

}

#header a {
  color: white;
  text-decoration: none;
}

#header img {
  width: 40px;
  margin: 0px;
}

#sidebar a{
  color: white;
  text-decoration: none;
}

#sidebar a:hover{
  color: white;
  text-decoration: underline;
}

#content {
  width: 67%;
  min-width: 300px;
  max-width: 1200px;
  background: #fff;
  padding: 35px;
  margin: 10px;
  margin-left: auto;
  margin-right: auto;
  border: 1px black solid;
  border-radius: 10px;
}

#main-text{
 margin: 2em;
}


#sidebar li {
  font-size: 1em;
  display: block;
  margin-right: 1.5em;
  margin-bottom: 0em;
  margin-top: 0em;
  padding: 1px;
}

#sidebar li a {
  text-decoration: none;
  background-color: inherit;
}
#sidebar li a:hover {
  text-decoration: underline;
}

#recentpostlistdiv {
  font-size: 1em;
  border: 1px black solid;
  border-radius: 10px;
  padding: 10px;
  background-color: #fff;
}


/*POST LIST STYLE*/
#postlistdiv  {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 20px;
  justify-content: center;
}

/*POST LIST STYLE*/
.archivepost {
  font-size: 1.2em;
  padding: 0;
  border: black 1px solid;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center; 
  width: 20vw;
  height: 20vw;
  min-width: 150px;
  min-height: 150px;
  max-width: 400px;
  max-height: 400px;
  transition: transform .2s;
}

.archivepost a {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    text-shadow: 3px 3px 6px grey;
}

.archivepost a:link {
    color: #fff;
}

.archivepost a:visited {
    color: #fff;
}

.archivepost a:hover {
    color: #fff;
    text-shadow: 3px 3px 6px dimgrey;
}

.archivepost:hover {
  transform: scale(1.005);
}

 /* unvisited link */
a:link {
  color: #17840f;
}

/* visited link */
a:visited {
  color: #648271 ;
}

/* mouse over link */
a:hover {
  color: #c9a188;
}

/* selected link */
a:active {
  color: #17840f;
} 

.moreposts {
  font-size: 0.8em;
  margin-top: 0.2em;
}

/*NEXT AND PREVIOUS LINKS STYLE*/
#nextprev {
  text-align: center;
  margin-top: 1.4em;
}

/*FOOTER STYLE*/
#footer {
  font-size: .8em;
  padding: 0 5% 10px 5%;
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: justify;
  text-justify: auto;
  text-align-last: right;
}


@media only screen and (max-width: 825px) {
  #sidebar {
    width: 67%;
    min-width: 300px;
    overflow: scroll;
    position: static;
    margin-right: auto;
    margin-left: auto;
  }
  #footer{
    display: none;
  }
  #main-text{
    margin: .1em;
  }
  #content{
    padding-left: 20px;
    padding-right: 20px;
    width: 90%;
  }
}