/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */
@font-face {
  font-family: 'Spectral';
  src: url('./fonts/Spectral/Spectral-Regular.ttf');
  font-style: normal;
}

@font-face {
	font-family: 'Pony Club';
	src: url('./fonts/Pony-Club.ttf');
}

body {
  background-color: #c9a6a1;
  font-size: 16px;
  font-family: 'Spectral';
  margin: 0;
}

p {
  line-height: 1.6em; /*I find the default HTML line-height tends to be a bit claustrophobic for main text*/
}

hr {
  border: solid #c7b591;
  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;
}

.caption {
  margin-top: 0;
  font-size: 0.9em;
  font-style: italic;
}

a {
	color: #7c8460;
	text-decoration: none;
}

a:visited {
	color: #815a74;
}

a:hover { 
  background-color: #7c8460;
  color: #eee9dd;
}

h1, h2, h3, h4, h5 {
  font-family: 'Pony Club';
  color: #815a74;
}

/*#CONTAINER is the rectangle that contains everything but the background!*/
#container {
  margin: 3em auto;
  width: 90%;
	max-width: 900px;
	background-color: #eee9dd;
  color: #382138;
  display: flex;
  flex-direction: column;
}

#main-area {
	display: flex;
	flex-direction: row;
}

#sidebar {
	width: 180px;
	min-width: 180px;
	background-color: #4a4b26;
	padding: 1.5em 1em;
}

#sidebar ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

#sidebar li {
	margin-bottom: 0.8em;
	font-size: 1.1em;
}

#sidebar li a {
	color: #eee9dd;
	text-decoration: none;
}

#sidebar li a:hover {
	text-decoration: underline;
	background-color: inherit;
}

#sidebar li a:visited {
	color: #eee9dd;
}

#content {
  padding: 10px 5% 20px 5%;
  flex: 1;
}

/*HEADER STYLE*/
#header {
  background-color: #c9a6a1;
  padding: 0;
}

#header img {
	display: block;
	width: 100%;
}

#header ul {
  list-style-type: none;
  padding: 0.5em 0;
  margin: 0;
}

/*POST LIST STYLE*/
#postlistdiv ul {
  font-size: 1em;
  padding: 0;
  list-style-type: none;
}
#recentpostlistdiv ul {
  font-size: 1em;
  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;
}

/*BUTTON WALL*/
.button-container {
	display: flex;
	flex-wrap: wrap;
	gap: 1px;
}

.button-container img {
	display: block;
	margin-top: 0;
	margin-bottom: 0;
}

.button-container a {
	line-height: 0em;
}

.button-container a:hover {
	background-color: transparent;
}

.link-list {
	list-style: none;
	display: flex;
	align-items: center;
	padding: 0;
	gap: 0.3em;
}

.separator {
  vertical-align: middle;
  margin: 0 0.3em;
}

/*DISQUS STYLE*/
#disqus_thread {
  margin-top: 1.6em;
}

/*FOOTER STYLE*/
#footer {
  font-size: 0.8em;
  padding: 0 5% 10px 5%;
  text-align: center;
}

#footer a {
	text-decoration: none;
}

@media only screen and (min-width: 600px) {
  .small {
    max-width: 60%;
    height: auto;
  }
}

/* Mobile nav bar - hidden on desktop */
#mobile-nav {
	display: none;
  }

@media only screen and (max-width: 599px) {
  #main-area {
    flex-direction: column;
  }
  #sidebar {
    display: none;
  }
  #header {
    display: block;
  }
#mobile-nav {
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 0;
	background-color: #4a4b26;
	padding: 0;
  }
#mobile-nav a {
	color: #eee9dd;
	text-decoration: none;
	padding: 0.7em 1.4 em;
	font-size: 1.05em;
	flex: 1;
	text-align: center;
  }
#mobile-nav a:visited {
	color: #eee9dd;
  }
#mobile-nav: a:hover {
	background-color: #7c8460;
	color: #eee9dd;
  }
}