* {
	box-sizing: border-box;
}

@media only screen and (min-width: 1080px) {
	#home .home:not(:hover),
	#about .about:not(:hover),
	#gallery .gallery:not(:hover),
	#donate .donate:not(:hover),
	#textboard .textboard:not(:hover),
	#cv .cv:not(:hover),
	#contact .contact:not(:hover),
	#vid .vid:not(:hover),
	#links .links:not(:hover)
	{
		border-radius: 5px 0 0 5px;
	}
	
}

pre {
	margin: 0;
}

hr {
	border: none;
	border-bottom: 1px dashed;
	color: inherit;
}

body {
	display: flex;
	margin: 0;
	height: 100vh;
	flex-flow: row nowrap;
	overflow: hidden;
	font-family: Verdana, Geneva, sans-serif;
}

nav {
	max-width: 4vw;
	transition: 0.5s ease-in-out;
	overflow: hidden;
}

h1, h2, h3 {

}

nav:hover {
	max-width: 100%;
}

nav > * {
	text-decoration: none;
	color: inherit;
	display: block;
	font-size: 2vw;
	padding: 0.8vw 1vw 0.8vw 0;
	white-space: nowrap;
}

#themechoice {
	border: none;
	border-radius: 2px;
	font-size: 2vw;
}

nav i {
	width: 4vw;
	text-align: center;
	font-size: 2vw;
	margin-right: 5px;
}

select {
	font-family: inherit;
}

main {
	flex: 1;
	overflow: auto;
}

main > p {
	max-width: 50vw;
	line-height: 1.5em;
	margin: 20px;
}

main > div {
	margin: 20px;
}

main h1:first-child {
	margin-top: 0;
}

p a, .post-footer a, form a, .threads a, ul a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px dotted;
}

p a:after, form a:after, .post-header > span:nth-child(2) a:hover:before {
	content: "\f0c1";
	font-family: "font awesome 5 free";
	font-weight: bold;
	margin: 0 0.2em;
	border: none;
}

.flex-column {
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	justify-content: center;
}

.flex-row {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: center;
}

.drop {
	animation: drop-in 1.5s ease-out forwards;
	position: relative;
}

@keyframes drop-in {
	0% {transform: translate(0, -200%)}
	50% {transform: translate(0, -200%)}
	80% {transform: translate(0, 50px)}
	90% {transform: translate(0, -10px)}
	100% {transform: translate(0, 0)}
}

.img-hover span {
    position: absolute;
    display: none;
    z-index: 99;
}

.img-hover:hover span {
    display:block;
}

.img-hover:hover span img {
    box-shadow: 0px 1px 2px rgba(0,0,0,0.8);
    max-width: 90vw;
    border-radius: 4px;
}

.img_gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between; 
}

.img_gallery > div {
	padding: 10px;
	width: 20%;
	line-height: 0;
	transition: 0.2s;
}

.img_gallery > div > div {
	overflow: hidden;
	border-radius: 4px;
}

/*Makes the grid leave a blank space that fills rest of last row so things align to left*/
.img_gallery:after {
	content: "";
	flex: auto;
}

.img_gallery img {
	transition: 0.2s;
	width: 100%;
	filter: saturate(0) brightness(75%);
}

.img_gallery > div > div:hover img{
	transform: scale(1.1);
	filter: saturate(1);
}

body#textboard > main > div.flex-column {
	align-items: flex-start;
}

input[type=text], input[type=email], textarea {
	max-width: 100%;
	min-width: 100%;
}

form#post_input {
	width: 500px;
	max-width: 100%;
	margin-bottom: 40px;
	border-radius: 2px;
}

form#post_input #message, form#post_input #name, form#post_input #topic {
	font-family: inherit;
	font-size: 0.8em;
}

form#post_input label[for] {
	display: block;
	font-size: 0.8em;
}

form br {
	clear: left;
	margin-bottom: 10px;
}

form ul {
	padding: 0 15px;
	font-size: 0.7em;
	margin: 0;
}

form ul li {
	margin: 5px 0;
}

.form-alert {
	color: rgb(200,0,0);
	font-weight: bold;
	width: 100%;
	background: white;
	display: block;
	text-align: center;
	padding: 5px;
	border: 1px solid;
	margin-bottom: 10px;
}

form input[type=submit], form input[type=file]::file-selector-button, button {
    border: 1px solid;
    padding: 0.2em 1em;
    border-radius: 2px;
}

.posts-wrapper {
	width: 30vw;
	min-width: 500px;
	max-width: 100%;
	margin-bottom: 30px;
}

.posts-wrapper h2:first-child{
	margin-top: 0;
}

.post {
	border: 1px solid;
	margin-bottom: 1.5em;
	font-size: 0.8em;
	max-width: 100%;
	border-radius: 2px;
	line-height: 1.5em;
}

.post:target {
	outline: 5px solid;
	outline-offset: -1px;
	background: none;
}

.post-header {
	display: flex;
	justify-content: space-between;
	overflow: hidden;
	padding: 0.5em 0.5em;
	border-bottom: 1px solid;
}

.post-body {
	display: flex;
}

.post-body p {
	padding: 0 0.5em;
	margin: 0.5em 0;
	overflow: hidden;
	text-overflow: ellipsis;
	word-wrap: break-word;
}

.post-body img {
	vertical-align: text-bottom;
}

.post-footer {
	display: flex;
	justify-content: space-between;
	overflow: hidden;
	border-top: 1px dashed;
	padding: 0.5em 0.5em;
}

.post-footer span {
	white-space: nowrap;
}

.post-header > span:first-child > span:first-child {
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: bold;
	margin-right: 0.5em;
}

.post .post-header span:first-child span:nth-child(2) a span{
	display: none;
}
.post:hover .post-header span:first-child span:nth-child(2) a span {
	display: initial;
}

.post-footer span {
	overflow: hidden;
	text-overflow: ellipsis;
}

.post-footer a img {
	display: none;
	border-radius: 2px;
}

.post-footer:hover a img, .post-footer a:hover img {
	display: block;
	max-width: 100%;
}

.post-quote {
	border-radius: 2px;
	display: inline-block;
	background: rgba(0,0,0,0.1);
}

.anchor {
	text-decoration: none;
	color: inherit;
	border-bottom: 1px dotted;
	cursor: pointer;
}

#contact p {
	font-size: 2vw;
}

footer {
	text-align: right;
	width:100%;
}

.slider {
	display: flex;
	flex-flow: row nowrap;
	width: 100%;
	margin: 0 0 20px 0;
	border-radius: 3px;
	height: 1px;
}

.slider div:nth-child(1) {
	animation: slide-left 2s ease-in-out alternate infinite;
}

@keyframes slide-left {
	from {flex-grow: 0;}
	to {flex-grow: 1;}
}

.slider div:nth-child(2) {
	margin: 0 5px;
	flex-grow: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.slider  div:nth-child(3) {
	animation: slide-right 2s ease-in-out alternate infinite;
}

@keyframes slide-right {
	from {flex-grow: 1;}
	to {flex-grow: 0;}
}

.yt {
	width: 1280px;
    height: 720px;
	max-width: 100%;
    max-height: 100%;
	border: none;
	border-radius: 3px;
}

.threads {
	border-collapse: collapse;
	line-height: 2em;
	text-align: center;
	margin-bottom: 20px;
	word-wrap: break-word;
	overflow: hidden;
	font-size: 0.8em;
}

.threads thead th, .threads tbody td {
	border: 1px solid;
	padding: 0 5px;
	overflow: hidden;
}

.xdebug-error {
	font-family: arial, sans-serif;
	font-size: 0.8em;
}

.columns {
	columns: 4;
	column-rule-style: dashed;
	column-rule-width: 1px;
	column-fill: auto;
	height: calc(100% - 4em);
}

.columns ul {
	padding-left: 2.5em;
}

.columns li {
	height: 2em;
	font-size: 0.8em;
}

.columns a {
	vertical-align: calc(100% - 1em);
}

#contact main p {
	line-height: 2em;
}