* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border: 0;

    font-family: Trykker;
}



body {
    margin: 0;
    padding: 0;

    background-color: grey;

    padding-top: 2rem;
}



#all {
    margin: auto;
    height: 42rem;
    width: 900px;
}



header {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;

    display: flex;
    flex-flow: row;
    justify-content: center;

    background-image: linear-gradient(#eee, #5ab, #eee);
    
    position: relative;
}


header>div {
    display: flex;
    align-items: center;
    height: 4rem;
    //border: solid 1px;
}
    


header>img {
    position: absolute;
    width: 6rem;
    right: 30px;
    top: -1rem;
}



#content {
    background-color: #eee;
    height: 100%;

    display: flex;
    flex-flow: row;
    justify-content: flex-start;
    align-items: center;

    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}


nav {
    flex-basis: 180px;
    border-right: 1px solid grey;

    padding: 20px;
    height: 25rem;

    display: flex;
    flex-flow: column;
    justify-content: space-between;

    padding-bottom: 3rem;
}


nav>a {
    color: black;
    font-weight: bold;
    text-decoration: none;
    //border: 1px solid;

    font-family: sans-serif;
}



nav>a:hover {
    color: grey;
}



nav>a.active {
    color: #167;
}



#overlay {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.7;
    display: none;
    z-index: 100;
}



#overlayContent {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    display: none;
    opacity: 1;
    z-index: 100;
}



#big {
    max-width: 100%;
    max-height: 100%;
    top: 50%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}



#text {
    flex-basis: 100%;
    //border: 1px solid;
    padding: 40px;
}



#text>h2 {
    margin-bottom: 2rem;
    text-align: center;
    //border: 1px solid;
}



.framed {
    border: 1px solid black;
    padding: 0.5rem;
}



img:hover {
    cursor: pointer;
}



.red {
    color: red;
}


@media only screen and (max-width: 900px) {


    body {
	background-color: #eee;
	padding: 0;
    }


    
    #all {
	margin: auto;
	height: 100%;
	width: 100%;
    }
    

    
    header>img {
	display: none;
    }


    
    header {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
    }

    

    #content {
	display: block;
	
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	height: 100%;
    }



    nav {
	margin-top: 0;
	padding: 0;
	padding-top: 1rem;
	height: auto;
	border: none;
    }



    nav>a {
	padding-top: 5px;	
	padding-bottom: 5px;
	text-align: center;
	border: 1px solid #ccc;
    }


    
    #text {
	padding: 10px;
	padding-top: 25px;
	padding-left: 20px;
	height: none;
    }
}

