/*Fonts*/

@font-face {
  font-family: 'Windows95';
  src: url('fonts/w95fa.woff2') format('woff2'),
       url('fonts/w95fa.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}




/*Custom colours*/

:root {
	--windowsblue: #000080;
	--windowsgrey: #c0c0c0;
}




* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: Arial, Windows95, Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
	height: 100%;
}

body {
	background-color: var(--windowsgrey);
	display: flex;
	flex-direction: column;
}

a {
	color: black;
}

p {
	line-height: 1.5;
}

ul {
	text-indent: 1rem;
	list-style: none;
}

li, 
li > a {
	padding: 4px;
	line-height: 1.5;
}

a:hover,
a:focus {
	color: white;
	background-color: var(--windowsblue);
}

q {
    font-style: italic;
    line-height: 1.2;
}




/*Reusable theme styles*/

.raised-box {
	border-top: 2px solid #f1f1f1;
	border-left: 2px solid #f1f1f1;
	border-bottom: 2px solid #404040;
	border-right: 2px solid #404040;
}

.inverted-box {
	border-top: 2px solid #404040;
	border-left: 2px solid #404040;
	border-bottom: 2px solid #f1f1f1;
	border-right: 2px solid #f1f1f1;
}

.retro-box {
	background-color: var(--windowsgrey);
	color: black;
	box-shadow: none;
}




/*Title*/

.title a {
	color: white;
	text-decoration: none;
}

.title a:hover, 
.title a:focus,
.title a:active {
	color: whitesmoke;
	background-color: transparent;
}

.retro-box .title-bar {
	background-color: var(--windowsblue);
	color: white;
	padding: 6px 8px;
	font-weight: bold;
	display: flex;
	justify-content: space-between;
}

.skip-link,
.skip-link:visited
 {
	color: white;
	text-decoration: none;
}




/*Navigation links*/

nav {
	position: relative;
}

nav > a,
nav > div {
	display: inline-block;
	color: black;
	text-decoration: none;
	padding: 4px 4px;
	cursor: pointer;
	border: 2px solid transparent;
}

nav .menu {
	padding: 0;
}

nav .menubtn {
	text-decoration: none;
	display: block;
	width: 100%;
	height: 100%;
	padding: 4px 4px;
}

nav a:not(.menubtn):active,
.menu:active {
	border-top: 2px solid #404040;
	border-left: 2px solid #404040;
	border-bottom: 2px solid #f1f1f1;
	border-right: 2px solid #f1f1f1;
}

nav .menubtn:visited {
	color: inherit;
}

nav .menubtn:hover,
nav .menubtn:focus,
nav .menubtn:active {
	background-color: var(--windowsblue);
	color: white;
}

.dropdown {	
	background-color: var(--windowsgrey);
	width: max-content;
	position: absolute;
    top: 36px;
    left: -2px;
	z-index: 99;
	display: none;
}

.dropdown-item {
	display: block;
	padding: 6px 8px;
	text-decoration: none;
}

.dropdown-item:visited {
	color: inherit;
}

.dropdown-item:hover,
.dropdown-item:active,
.dropdown-item:focus {
	background-color: var(--windowsblue);
	color: white;
}




/*Main section*/

main {
	margin: 12px;
	margin-bottom: 0px;
	flex: 1;
	display: flex;
	flex-direction: column;
	background-color: var(--windowsgrey);
	overflow-y: scroll;
}

.main-wrapper {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1;
	background-color: var(--windowsgrey);
}




/*Sidebar*/

.main-heading {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: row;
	gap: 10px;
}

.main-heading h1 {
	display: inline;
	font-size: 1.4rem;
}

.main-heading a {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.main-heading button {
	padding: 8px;
	margin: 10px;
	cursor: pointer;
}

.main-heading button:active {
	border-top: 2px solid #404040;
	border-left: 2px solid #404040;
	border-bottom: 2px solid #f1f1f1;
	border-right: 2px solid #f1f1f1;
}

.main-heading img {
	max-width: 45px;
	border-radius: 99999px;
}

#quote {
	display: none;
	flex-direction: column;
	gap: 6px;
	margin: 20px auto;
}

#quote-by {
	text-align: right;
}

#sidebar {
	display: none;
}

.sidebar {
	padding: 15px;
}

.sidebar-heading {
	line-height: 2rem;
}

.all-posts-link {
	padding: 4px 8px;
}

.list {
	margin: auto;
}

.list-item a {
	display: block;
	line-height: 1.5;
}




/*Right side*/

.right-main {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
}

.intro {
	padding: 10px;
	text-align: center;
	max-width: 80ch;
    margin: auto;
}

.intro p {
    margin: 10px;
}

.post-previews-heading,
.right-main-heading {
	text-align: center;
	padding: 10px;
	width: 100%;
	background-color: var(--windowsgrey);
}

.post-previews {
	height: 100%;
	width: 100%;
	margin: auto;
	background-color: white;
	display: flex;
    flex-direction: column;
}

.galleries-container {
	height: 100%;
	width: 100%;
	margin: auto;
	background-color: white;
	display: flex;
    flex-direction: column;
}

.preview-container {
	padding: 10px;
}

.cols {
	display: flex;
	flex-wrap: wrap;
    width: 100%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.cols-heading {
	padding: 10px;
    flex: 1;
    text-align: center;
}

.recent-posts,
.left {
	min-width: 300px;
    max-width: 600px;
	width: 100%;
	padding: 20px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.plant-family,
.right {
	width: 100%;
	padding: 20px;
}

.plant-family {
	padding: 20px;
	max-width: 80ch;
    margin: auto;
}

.preview {
	line-height: 1.5rem;
	margin: 20px 10px;
}

.thumbnail a {
	padding: 4px;
	display: inline-flex;
}

.thumbnail img {
	max-height: 200px;
  	max-width: 100%;
	object-fit: contain;
}

.preview-title {
	margin: 15px 0;
	line-height: 2rem;
}

.preview-link {
	margin: auto;
	padding: 4px 0;
}

.preview p:last-child {
	margin: 5px 0;
	font-weight: normal;
}

.excerpt {
	max-width: 80ch;
}




/*Individual posts*/

.full-post-container {
	height: 100%;
	width: 100%;
	margin: auto;
	padding: 0 20px;
	background-color: white;
}

.full-post {
	max-width: 80ch;
	margin: auto;
}

.full-title {
	font-size: 2rem;
	text-align: center;
	margin: 30px;
}

.full-image-container {
	text-align: center;
}

.full-image-container img {
	max-height: 300px;
  max-width: 100%;
	object-fit: contain;
}

.full-post p {
	line-height: 1.5rem;
}

.full-post .category,
.full-post .tags,
.full-post .date {
	font-weight: bold;
	text-align: center;
	margin: 4px;
}

.full-post .content {
	margin: 20px 0;
}

.post-divider {
	width: 100%;
	text-align: center;
}




/*Cool stuff page*/

.cool-stuff-main-content {
	padding: 30px;
}

#cool-links {
	display: flex;
	flex-direction: column;
	/*justify-content: center;*/
	gap: 20px;
	/*margin: 20px;*/
}

#cool-links a {
	padding: 4px;
}

#cool-links a:hover,
#cool-links a:focus {
	padding: 4px;
	background-color: var(--windowsblue);
}




/*Footer*/

footer {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 25px;
	position: relative;
}

.copyright {
	margin-left: 12px;
}




/*404 Page*/

.error404 {
    text-align: center;
    margin: 30px auto;
}

.error404 a {
    text-decoration: underline;
    cursor: pointer;
	padding: 4px 4px;
}




/*Post pictures*/

.post-pictures-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.post-picture {
    padding: 10px;
    width: 100%;
    max-width: 360px;
    height: auto;
}




/*Gallery page*/

.galleries-container {
	height: 100%;
	width: 100%;
	margin: auto;
	padding: 20px;
	background-color: white;
	display: flex;
    flex-direction: column;
}

.month {
    text-align: center;
    max-width: 90%;
    margin: 15px auto;
}

.gallery,
.pf-gallery {
    display: grid;
    column-gap: 20px;
 	row-gap: 20px;
 	padding: 10px;
}

.gf {
    width: 100%;
    float: left;
	visibility: hidden;
}

.active_figure {
	visibility: visible;
}

.gf img {
    width: 100%;
    height: auto;
    border-radius: 100%;
}

.gfc {
    text-align: center;
    padding: 5px;
}





/*Movies list*/

.movie::before {
	content: "\1F37F   ";
}

.movie_container {
	margin: 5px 0;
}

.movie {
	text-decoration: none;
	padding: 4px;
}




/*Book list*/

.book::before {
	content: "\1F4D5   ";
}

.book_list_container {
	margin: 5px 0;
}

.book {
	text-decoration: none;
	padding: 4px;
}




/*Mobile*/

@media screen and (min-width: 390px) {
	nav {
		padding-left: 12px;
	}

	.dropdown {
		width: max-content;
		position: absolute;
		top: 30px;
		left: 10px;
		display: none;
	}
	
	/*Gallery*/
	.gallery,
	.pf-gallery {
	    grid-template-columns: repeat(2, 1fr);
	}
}




/*Tablet and higher*/

@media screen and (min-width: 680px) {
	.main-wrapper {
		flex-direction: row;
	}

	.sidebar {
		border-bottom: none;
		max-width: 300px;
		height: 100%;
		width: 100%;
	}

	.main-heading button {
		display: none;
	}

	#quote {
		display: flex;
	}

	#sidebar {
		display: block;
	}
}

/*Desktop and higher*/

@media screen and (min-width: 900px) {
	.sidebar {
		max-width: 360px;
	}
}

@media screen and (min-width: 1024px) {
	/* width */
	::-webkit-scrollbar {
	  width: 12px;
	}

	/* Track */
	::-webkit-scrollbar-track {
	  background: lightgrey; 
	}
	 
	/* Handle */
	::-webkit-scrollbar-thumb {
	  background: var(--windowsgrey);
		border-top: 2px solid #f1f1f1;
		border-left: 2px solid #f1f1f1;
		border-bottom: 2px solid #404040;
		border-right: 2px solid #404040;
	}

	/* Handle on hover */
	::-webkit-scrollbar-thumb:hover {
	  cursor: pointer; 
	}
	
	/*Gallery*/
	.gallery {
	    grid-template-columns: repeat(4, 1fr);
	    max-width: 1600px;
	    margin: 0 auto;
	}

	.pf-gallery {
		grid-template-columns: 1fr;
        max-width: 300px;
        padding: 20px;
	}

    /*Homepage columns*/
    .recent-posts,
    .left {
		flex: 2;
	}

	.plant-family,
	.right {
		border-top: none;
		flex: 1;
	}

	/*Right side*/
	.post-previews {
	    flex-direction: row;
        max-width: 80ch;
        text-align: center;
	}

	.three-sections {
	    max-width: 1080px;
	    flex-direction: column;
	}
	.three-sections .cols {
	    flex-direction: row;
        height: 100%;
	}
}


