body {
	margin: 0 auto;
	padding: 0 0 0 0;
	width: 100%;
	height: 100%;
	background-image: url("kuvat/tausta.jpg");
	background-repeat: repeat;
	background-attachment: fixed;
	background-color: black;
}

#container {
	margin: 0 auto;
	width: 100%;
	max-width: 920px;
	border-right: none;
	background: rgb(225, 210, 165) /*#e1d2a5*/;
	
	/* NOISE-TESTI
	background: #ffe185;
	background-image: url(noise.svg);*/
}

.content {
	padding: 15px 60px 30px 60px;
	font-family: "Crimson Text", serif;
	font-weight: 400;
	font-size: 22px;
	color: #090705;
	background: transparent;
}

/*reduce padding for mobile devices*/
@media only screen and (max-width: 700px){  
  .content {
	padding: 5px 15px 10px 20px;
  }
}

p {
	padding: 0;
	margin: 0 0 15px 0;
}

p.italic {
	padding: 0;
	margin: 0 30px 20px 30px;
	font-style: italic;
	text-align: center;
}

p.handwriting {
	padding: 0;
	margin: 0 30px 20px 30px;
	font-family: 'Nothing You Could Do', cursive;
	font-size: 18px;
	text-align: center;
}

.viivat {
	margin: 0 auto;
	padding: 0;
	width: 80%;
	height: 5px;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
}

#footer {
	font-family: "Crimson Text", serif;
	font-size: 18px;
	color: #090705;
	text-align: center;
	background: transparent;
	padding: 15px 15px 15px 15px;
	margin: 0 0 0 0;
}

/*----- TITLES -----*/

h1 {
	font-family: "Uncial Antiqua", serif;
	font-size: 2em;
	font-weight: 400;
	color: #090705;
	text-transform: uppercase;
	text-align: center;
	word-break: break-word;
}

h2 {
	font-family: "Sedan SC", serif;
	font-size: 1.5em;
	font-weight: 400;
	color: #090705;
	text-align: center;
	word-break: break-word;
}

/*----- BASIC LINKS -----*/

a.link {
	text-decoration: underline;
	color: #090705;
	font-weight: 500;
}

a.link:hover {
	background-color: #090705;
	color: #e1d2a5;
	text-decoration: none;
	font-weight: 400;
}

a.footer {
	text-decoration: underline;
	color: #090705;
}

/*----- IMAGES -----*/

.kuvakeskelle {
	display: flex;
	justify-content: center;
}

img.kuvitus {
	margin: 0 0 25px 0;
	padding: 0;
	max-width: 90%;
	box-sizing: border-box;
	border: 8px solid white;
	box-shadow: 3px 3px 10px #090705;
}

/*----- NAVIGATION MENU -----*/

#viivat-sticky-container {
	position: sticky;
	z-index: 2;
	top: 70px;
	max-width: 900px;
	width: 100%;
	margin: 0;
	padding: 0;
	background: rgb(225, 210, 165);
}

#viivat-sticky {
	margin: 0 auto;
	padding: 0;
	width: 80%;
	height: 5px;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
}

.topnav {
	position: sticky;
	z-index: 2;
	top: 0;
	max-width: 920px;
	height: 52px;
	margin: 0 0 0 0;
	padding: 10px 20px 8px 100px;
	text-align: center;
	font-family: "Sedan SC", serif;
	font-weight: 400;
	font-size: 18px;
	color: #090705;
	text-transform: uppercase;
	letter-spacing: -1px;
	background: rgb(225, 210, 165);
	overflow: hidden;
}

a.navlink {
	float: left;
	display: block;
	font-family: "Sedan SC", serif;
	font-weight: 400;
	font-size: 18px;
	color: #e1d2a5;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: -1px;
	margin: 5px;
	padding: 10px;
	border: 1px solid #e1d2a5;
	background: #090705;
	box-shadow: 0px 0px 0px 3px #090705;
	white-space: nowrap;
}

a.navlink:hover {
	text-decoration: none;
	background: #e1d2a5;
	color: #090705;
	padding: 10px;	
	border: 1px solid #090705;
	box-shadow: none;
}

.navicon { /*hamburger-menu nappula*/
	display: none;
	font-size: 24px;
	color: #e1d2a5;
	padding: 0;
	margin: 3px 15px 0 5px;
}

a.navicon:hover {
	color: #e1d2a5;
}

/* When the screen is less than 820 pixels wide, hide all links, except for the first one ("Home"). 
Show the link that contains should open and close the topnav (.navicon) */
@media screen and (max-width: 820px) {
	a.navlink {display: none;}
	a.navicon {
    float: right;
    display: block;
  }
  
  #viivat-sticky-container {display: none;}
  #viivat-sticky {display: none;}
  .topnav {background: #090705;}
}

/* The "responsive" class is added to the topnav with JavaScript when the user 
clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 820px) {
  .topnav.responsive a.navicon {
	position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav {height: auto;}
}

/*----- YLÖS-NAPPULA -----*/

#topbutton {
	display: none;
	position: fixed;
	bottom: 20px;
	right: 30px;
	z-index: 99;
	color: #e1d2a5; 
	cursor: pointer;
	padding: 15px;
	border: 1px solid #e1d2a5;
	background: #090705;
	box-shadow: 0px 0px 0px 3px #090705;
	font-family: "Crimson Text", serif;
	text-transform: uppercase;
	font-size: 18px;
}

#topbutton:hover {
	background: #e1d2a5;
	color: #090705;
	border: 1px solid #090705;
	box-shadow: 0px 0px 0px 3px #e1d2a5;
}
