/* wp theme stuff
	Theme Name: Dan Dowd
	Text Domain: dandowd
	Version: 2.0
	Author: Simon Moushabeck
*/

/* boilerplate stuff */
	:root{
		--off-white: #fffbf6;
		--dan-red: rgb(181, 46, 45);
		--dan-dark-red: rgb(140, 26, 24);
	}

	html {
		box-sizing: border-box;
	}

	*, *:before, *:after {
		box-sizing: inherit;
	}

	body{
		margin: 0;
		padding: 0;
	}

/* universal */
	body{
		font-family: 'Gulzar', serif;
	}	

	#sidebar{
		color: var(--off-white);
		background: var(--dan-red);
		background: radial-gradient(circle at center 60px, var(--dan-red) 0%, var(--dan-dark-red) 100%);
	}

	#sidebar #title{
		text-align: center;
	}

	#sidebar a{
		color: var(--off-white);
		text-decoration: none;
	}

	#content{
		background-color: var(--off-white);
		width: 0;
		height: 0;
	}

	#title{
		margin: 40px 0px;
		line-height: 1.3em;
		font-size: 2.375em;
		font-weight: normal;
	}

	.nav-divider{
		border: solid 1px;
		color: var(--off-white);
		width: 75%;
		margin: 10px 0;
	}

	#nav-container{
		height: 10px;
		transition: height 1s;
	}

	#nav{
		margin: 0;
		padding: 0;
		height: 100%;
	}

	input:checked ~ #nav-container{
		height: 30vh;
	}

	#nav li{
		overflow: hidden;
		list-style: none;
		font-size: 1.5em;
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: calc(100%/6);
		background: linear-gradient(black 0%, maroon 10%, #5a0000, maroon 90%, black 100%);
	}

	.div-arrow{
		width: 0;
		height: 0;
		border-top: 60px solid transparent;
		border-bottom: 60px solid transparent;
		display: inline-block;
	}

	.right-arrow{
		border-left: 40px solid white;
	}

	.left-arrow{
		border-right: 40px solid white;
	}

	#saab-logo-outer{
		margin: auto;
		margin-bottom: 20px;
		height: 80px;
		width: 80px;
		background-color: #00285d;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
	}

	#saab-logo-inner{
		height: 90%;
		width: 90%;
		border: white solid 2px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		font-family: sans-serif;
		font-weight: bold;
		letter-spacing: -0.1em;
	}

	.attachment-image {
		max-width: 90%;
	}

	.section.attachment{
		text-align: center;
	}


/* small */
	body{
		min-height: 100vh;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}

	#sidebar{
		width: 100%;
		flex: 0 0;
	}

	#content{
		width: 100%;
		flex: 1 0;
	}

	#racing-stripe{
		width: 100%;
		flex: auto 0;
		height: 70px;
		border-bottom: solid 50px var(--dan-red);
		border-right: none;
	}

	#footer{
		flex: 0 0;
		display: block;
		color: var(--off-white);
		background: var(--dan-red);
		background: radial-gradient(circle at center 60px, var(--dan-red) 0%, var(--dan-dark-red) 100%);
		padding: 10px;
		min-height: 200px;
	}
	
	#sidebar-footer{
		display: none;
	}

	.section{
		max-width: 100%;
		margin: auto;
		padding: 10px;
	}

	.section p{
		margin: 40px 0px;
	}

	#art-categories{
		padding: 30px;
		display: flex;
		flex-wrap: wrap;
		/*min-height: 500px;*/
	}

	.world-post{
		flex: 1 0 50%;
		overflow: hidden;
		position: relative;
		border: solid 2px var(--off-white);
		min-height: 150px;
	}

	.category{
		flex: 1 0 50%;
		overflow: hidden;
		position: relative;
		border: solid 2px var(--off-white);
		min-height: 250px;
	}

	.category-img{
		position: absolute;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: 50% 50%;
	}


	.category-name{
		position: absolute;
		width: 100%;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		z-index: 10;

		color: var(--off-white);
		background-color: rgba(0,0,0,0.3);
		transition: background-color 0.5s;

		text-decoration: none;
		font-size: 1.6em;
		text-align: center;

	}

	.category-name:hover{
		background-color: rgba(0,0,0,0.7);
		
	}




/* big */
@media (width > 786px){
	body{
		width: 100vw;
		height: 100vh;
		overflow: auto;
		display: flex;
		flex-direction: row-reverse;
		justify-content: flex-start;
	}

	#sidebar{
		height: 100%;
		flex: 0 0 18rem;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}

	#racing-stripe{
		height: 100%;
		flex: 0 0 30px;
		border-left: solid 20px var(--dan-red);
		border-bottom: none;
	}

	#nav-container{
		height: 25vh;
	}

	#content{
		height: 100%;
		flex: 1 1 calc(100% - 18rem);
		overflow: auto;
	}

	#footer{
		display: none;
	}
	
	#sidebar-footer{
		display: block;
		
	}
}
