
html {
	--text-background-color: #CCE0FF;
	--page-background-color: #210B47;
}

body {
	margin: 0px;
	width: 100%;
	min-height: 100vh;
	background-color: var(--page-background-color);
	display: flex;
	flex-direction: column;
}

a {
	text-decoration: none;
	color: black;
}

/* header */

header {
	display: flex;
	justify-content: space-between;
	background-image: linear-gradient(to top, #ccc, #ddd, #ccc);
	border-bottom : solid;
	
	#header-left {
		max-width: 150px;
		margin: auto 20px;
		height: 50px;
		
		a img {
			height: 50px;
			display: inline-block; 
		}
		
	}
	#header-right {
		max-width: 150px;
		margin: auto 20px;
		
		#header-right-hover {
			display: none;
			border-radius: 0px 0px 0px 15px; 
		}
		
	}
	
	#header-right:hover {
		max-width: 150px;
		margin: auto 20px;
		#header-right-hover {
			width: 150px;
			position: fixed;
			right: 0px;
			display: block;
			background-color: #ccc;
		}
	}
	
	#header-center {
		margin: auto 0;
		height: 80%;
		border-radius: 30px;
		padding:  0px 15px 0px 15px;
		background-color: #ccc;
		border: solid;
		border-width: 1px;
		p {
			width: 300px;
			margin: 5px;
		}
	}
	
	input {
		background-color: transparent;
		border: none;
		outline: none;
	}
	
}

/* main body */

#main-block {
	margin: 0px auto;
	max-width: 940px;
	display: grid;
	grid-template-columns: 20px 900px 20px;
	min-height: 100%;
	flex: 1;
	
	#main-fuzzy-left {
		background-image: linear-gradient(to right, rgba(0,0,0,0), var(--text-background-color));
	}
	
	#main-fuzzy-right {
		background-image: linear-gradient(to left, rgba(0,0,0,0), var(--text-background-color));
	}
	
	main {
		height: 100%;
		color: black;
		text-indent: 30px;
		background-color:var(--text-background-color);
		padding-left: 10px;
		padding-right: 10px;
	}
	
	hr {
		border-color: black;
	}
	
	
}

@media(max-width: 940px) {
	
	#main-block {
		grid-template-columns: auto;
		width: 100%;
	}
	
	#main-fuzzy-left {
		display: none;
	}
	
	#main-fuzzy-right {
		display: none;
	}
	
}

/* footer */

footer {
	background-image: linear-gradient(to top, #ccc, #ddd, #ccc);
	text-align: center;
	font-family: monospace;
	border-top: solid;
	img {
		position: absolute;
		transform: translate(460px, -24px);
	}
	@media(max-width:1000px) {
		img {
			display: none;
		}
	}
}

/* note class*/
.note {
	text-indent: 0px;
	border-radius: 5px;
	box-shadow: 3px 3px 3px;
	background-color: #FFFF99;
	padding: 6px;
	margin: 10px 5px;
}

/* flex gallery */

.flex-gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
	section {
		max-width: 45%;
	}
}