@font-face {
    font-family: new;
    src: url(new.ttf);
}

body{
	background: #009999;
	font-family: new;
	width: 90%;
	margin: auto;
	display: grid;
	grid-template-areas:
	"nav nav nav"
	"about about me"
	"research research me"
	"teaching teaching me"
	"other other me"
	"data data colors "
	"data data colors";
	grid-template-columns: 1fr 1fr 1fr;
	line-height: 1.2em;	
}

#nav{
	grid-area: nav;
}

#nav p img{
	display: inline;
	padding-top: 1vw;
	padding-left: 1vw;
}


#about{
	grid-area: about;
	height: max-content;
}

p{
	padding:1vw;
}

#me {
	grid-area: me;
	height: max-content;
}

#dataa{
	grid-area: data;
}

.window{
	background: #d4d0c8;
	padding:2px;
	box-shadow: 1vw 1vw;
	margin: 2.5vw;
	line-height: 1.5;
}

.window_title{
	background: linear-gradient(to right, #0000cc, #0066ff);
	padding: 3px;
	color: white;
	line-height: 1.3em
}

.window_title img{
	float: right;
	height: 1.3em;
}

#data{
	font-size: 2em;
	text-align: center;
	line-height: 2em;
	max-height: max-content;
}

.row{
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
}

.column{
	flex-basis: 100%;
}

#flimflam{
	display: grid;
	grid-template-areas:
	"icon tot"
	". boxes";
}

#icon{
	grid-area:icon;
}

#tot{
	grid-area:tot;
	line-height: 2em;
}

#boxes{
	grid-area:boxes;
}

a{
	display: inline-block;
	color: black;
	text-decoration: none;
	margin: 1vw;
	border: 1px solid black;
	box-shadow: 5px 5px;
}

.plainLink{
	color: blue;
	margin: 0vw;
	border: 0px;
	box-shadow: 0px 0px;
	display: inline;
}

.box{
	border-top: 2px solid rgb(237, 237, 237);
	border-left: 2px solid rgb(237, 237, 237);
	border-right: 2px solid rgb(115, 115, 115);
	border-bottom: 2px solid rgb(115, 115, 115);
	padding: .15vw;
	width: 13vw;
	float: right;
	text-align: center;
}

.box:active{
	border: 2px solid black;
	background: rgb(180, 180, 180);

}

img{
	max-width: 100%;
	margin: auto;
}

#teaching{
	grid-area:teaching;
	height: max-content;
}

#other{
	grid-area:other;
	height: max-content;
}

#teaching .box{
	float: left;
}

#research{
	grid-area:research;
	height: max-content;
}

#colors{
	grid-area: colors;
	display: inline-block;
	height: fit-content;
}

#color{
	height: 40vw;
}


@media screen and (max-width: 800px){
	.box{
		min-width: fit-content;
		width:50%;
		padding:1vw;
		margin: 3vw;
		line-height: 1.3em;
	}

	body{
		margin: auto;
		display: flex;
		flex-direction: column;
		width: 90%;
	}

	.window{
		margin: auto;
		margin-top: 3vw;
		width: 100%;
	}

	#about{
		line-height: 1.6em;
	}