body {
	font-family: sans-serif;
}

#topbar {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 129px;
	background-color: #ffffff;
}

#topbar h1 {
	font-size: 40px;
	margin-top: 20px;
	margin-bottom: 0;
	padding-bottom: 5px;
	border-bottom: 4px solid #000000;
	display: inline-block;
}

#topbar h2 {
	font-size: 25px;
	margin-top: 15px;
	margin-bottom: 15px;
}

#valikko {
	position: absolute;
	left: 0;
	top: 130px;
	width: 300px;
	bottom: 0;
}

#valikko ul {
	padding-left: 40px;
}

#valikko li {
	background-color: #bbbbbb;
	list-style-type: none;
	margin-bottom: 5px;
	margin-right: -1px;
	border-top-left-radius: 13px;
	border-bottom-left-radius: 13px;
	border: 1px solid #bbbbbb;
}

#valikko li.changeLang {
	background-color: #9999ff;
	margin-right: auto;
	width: 120px;
	border-top-right-radius: 22px;
	border-bottom-right-radius: 22px;
}

#valikko li.selected {
	background-color: #dddddd;
	border-right: none;
	border-bottom: 3px solid #bbbbbb;
	margin-bottom: 3px;
}

#valikko li a {
	display: block;
	text-decoration: none;
	color: #000000;
	font-weight: bold;
	width: 100%;
	height: 100%;
	padding: 10px;
}

.slicknav_menu {
	display: none;
	position: fixed;
	right: 0;
	top: 0;
	zwidth: 100px;
	z-index: 70;
}

#buttonbar {
	position: absolute;
	left: 300px;
	right: 300px;
	top: 130px;
	height: 50px;
	background-color: #dddddd;
	border-top: 1px solid #bbbbbb;
	border-left: 1px solid #bbbbbb;
	border-right: 1px solid #bbbbbb;
	padding-left: 30px;
	padding-top: 10px;
}

#buttonbar h3 {
	margin-top: 0;
	margin-bottom: 0;
}

select {
	background-color: #cccccc;
	border-radius: 5px;
	height: 28px;
	border: 1px solid #bbbbbb;
}

button {
	background-color: #cccccc;
	border-radius: 5px;
	height: 28px;
	border: 1px solid #bbbbbb;
	cursor: pointer;
}

button:hover {
	background-color: #bbbbbb;
}

input[type='text'] {
	height: 24px;
	border: 1px solid #bbbbbb;
}

#pageUrl {
	width: 250px;
}

#content {
	position: absolute;
	left: 300px;
	right: 300px;
	top: 180px;
	bottom: 0;
	padding-left: 30px;
	padding-right: 30px;
	background-color: #dddddd;
	border-left: 1px solid #bbbbbb;
	border-right: 1px solid #bbbbbb;
	font-size: 16px;
}

#content #editor {
	position: absolute;
	top: 0;
	left: 30px;
	right: 30px;
	bottom: 30px;
	border: 1px solid gray;
	background-color: #ffffff;
	padding: 25px;
	overflow-y: auto;
	box-shadow: 3px 3px 5px black;
	line-height: 1.7em;
}

#content #editor br:not(:last-child) {
	content: " ";
	display: block;
	margin-top: 12px;
}

#content #editor.placeholder {
	color: #777777;
}

.scrollable {
	overflow-y: auto;
}

.processing {
	background-image: url(ajax-loader.gif);
	background-repeat: no-repeat;
	background-position: 2px center;
	padding-left: 20px;
}

.error {
	border-bottom: 2px solid #ff0000;
	cursor: pointer;
}

.gErrorOuter {
	border-bottom: 2px solid #0000ff;
	cursor: pointer;
}

.gErrorOuter .ui-widget-content .ui-state-disabled {
	opacity: 1.0;
	background-color: #eeeeee;
	font-style: italic;
	border-bottom: 1px solid #aaaaaa;
}

.wordInfoDropdown {
	background-color: #eeeeee;
	border-radius: 3px;
	border: 1px solid #aaaaaa;
	line-height: 1.2em;
	padding: 4px;
	font-size: 16px;
	font-weight: normal;
}

.wordInfoItem {
	border-top: 1px solid #aaaaaa;
	padding-top: 5px;
	padding-bottom: 5px;
}

#cleanButton {
	background-image: url(clean.png);
	background-repeat: no-repeat;
	width: 26px;
}

#statisticsButton {
	background-image: url(statistics.png);
	background-repeat: no-repeat;
	width: 26px;
}

table.statistics img {
	vertical-align: middle;
	margin-left: 3px;
}

#mainos {
	position: absolute;
	right: 0;
	top: 130px;
	width: 280px;
	bottom: 0;
	padding: 10px;
}

#mainos ul {
	padding-left: 10px;
	font-size: 90%;
}

#mainos ul li {
	padding-bottom: 10px;
}

p.webvoikkoH, p.webvoikkoLi, p.webvoikkoP {
	margin-left: 1em;
	padding-left: 1em;
}

p.webvoikkoH {
	font-size: 110%;
	font-weight: bold;
}

p.webvoikkoLi {
	display: list-item;
	list-style-position: inside;
}

p.webvoikkoP {
	border-left: 4px solid #559922;
}

p.webvoikkoO {
	/* no formatting */
}

.ui-menu .skipSubMenu {
	min-width: 170px;
}

@media screen and (min-width: 1500px) {
	body #pageUrl {
		width: 550px;
	}
}

@media screen and (min-width: 771px) and (max-width: 1200px) {
	body #valikko {
		width: 200px;
	}

	body #valikko ul {
		padding-left: 20px;
	}

	body #buttonbar {
		left: 200px;
		right: 200px;
	}

	body #content {
		left: 200px;
		right: 200px;
	}

	body #mainos {
		width: 180px;
	}

	#dictionary {
		max-width: 200px;
	}
}

@media screen and (min-width: 880px) {

	#checkButton, #webCheckButton, #statisticsButton, #cleanButton {
        	margin-left: 10px;
	}

}

@media screen and (max-width: 830px) {
        html body #dictionary {
                max-width: 120px;
        }
}

@media screen and (max-width: 770px) {
	body #topbar {
		height: 69px;
	}
	
	body #topbar h1 {
		font-size: 30px;
		margin-top: 6px;
		margin-bottom: 1px;
		padding-bottom: 0;
		border-bottom: 2px solid #000000;
	}

	body #topbar h2 {
		font-size: 15px;
		margin-top: 4px;
		margin-bottom: 4px;
	}

	body #valikko {
		display: none;
	}

	body .slicknav_menu {
		display: block;
	}

	body #buttonbar {
		top: 70px;
		left: 0;
		right: 0;
	}

	body #content {
		top: 120px;
		left: 0;
		right: 0;
		bottom: 100px;
	}

	body #mainos {
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		height: 80px;
	}
}

@media screen and (max-width: 770px) and (max-height: 450px) {
	html body #topbar {
		height: 34px;
	}

	html body #topbar h1 {
		border-bottom: none;
		font-size: 20px;
	}

	html body #topbar h2 {
		display: none;
	}

	html body #buttonbar {
		top: 35px;
	}

	html body #content {
		top: 85px;
		bottom: 0;
	}

	html body #content #editor {
		padding: 10px;
	}

	html body #mainos {
		display: none;
	}
}

@media screen and (max-width: 400px) {
	html body #buttonbar {
		padding-left: 10px;
	}
}
