@charset "utf-8";
/* CSS Document */

/* SMARTPHONES PORTRAIT */
@media only screen and (min-width: 300px) and (max-width: 479px) {
	.leveys {
		width: 100%;
	}
	#ylapalkki_vasen {
		display:none;
	}
	#ylapalkki_oikea {
		float: right;
		width: 24%;
		padding-right: 24px;
		padding-top: 12px;
		text-align: right;
	}
	#ylapalkki_menu {
		float: left;
		width: 75%;
		padding-left: 12px;
		text-align: left;
		height: 45px;
	}
	#ylapalkki_kirjautuminen {
		display:none;
	}
	#ylapalkki_korkeus {
		height: 55px;
	}
	#tekstiosa {
		padding-right: 12px;
		padding-left: 12px;
		/*background-color:#0C0;  Vihreä */
	}
	#vasen_palkki {
		display:none;
	}
	#oikea_palkki {
		width:100%;
		float: right;
	}
	.alapalkki_vasen {
		float: left;
		width: 45%;
		font-size: 70%;
		padding-top: 6px;
		padding-left: 12px;
	}
	.alapalkki_vasen2 {
		display:none;
	}
	.alapalkki_oikea {
		float: right;
		width: 45%;
		text-align: right;
		font-size: 70%;
		padding-top: 6px;
		padding-right: 12px;
	}
	#piiloon {
		font-size: 80%;
		color: #F00;
        padding-bottom: 10px;
	}
	.sivukuvat img{
		max-width:100% !important;
		height:auto;
	}
	input[type=text]{
		width:100%;
	}
	textarea{
		width:100%;
	}
    .vasen {
        width: 100%;
        float: left;
    }
    .oikea {
        width: 100%;
        float: left;
    }
}

/* SMARTPHONES LANDSCAPE */
@media only screen and (min-width: 480px) and (max-width: 767px) {
	.leveys {
		width: 100%;
	}
	#ylapalkki_vasen {
		display:none;
	}
	#ylapalkki_oikea {
		float: right;
		width: 31%;
		padding-right: 30px;
		padding-top: 12px;
		text-align: right;
	}
	#ylapalkki_menu {
		float: left;
		width: 68%;
		padding-left: 15px;
		text-align: left;
		height: 45px;
	}
	#ylapalkki_kirjautuminen {
		display:none;
	}
	#ylapalkki_korkeus {
		height: 55px;
	}
	#tekstiosa {
		padding-right: 15px;
		padding-left: 15px;
		/*background-color:#F00;  Punainen */
	}
	#vasen_palkki {
		display:none;
	}
	#oikea_palkki {
		width:100%;
		float: right;
	}
	.alapalkki_vasen {
		display:none;
	}
	.alapalkki_vasen2 {
		float: left;
		width: 55%;
		font-size: 80%;
		padding-top: 3px;
		padding-left: 15px;
	}
	.alapalkki_oikea {
		float: right;
		width: 44%;
		text-align: right;
		font-size: 80%;
		padding-top: 3px;
		padding-right: 15px;
	}
	#piiloon {
		font-size: 80%;
		color: #F00;
        padding-bottom: 10px;
	}
	.sivukuvat img{
		max-width:100% !important;
		height:auto;
	}
    .vasen {
        width: 100%;
        float: left;
    }
    .oikea {
        width: 100%;
        float: left;
    }
}

/* TABLETS PORTRAIT */
@media only screen and (min-width: 768px) and (max-width: 1019px) {
	.leveys {
		width: 100%;
	}
	#ylapalkki_vasen {
		float: left;
		width: 45%;
		padding-left: 32px;
		padding-top: 3px;
		text-align: right;
		font-size: 100%;
		color: #C00;
	}
	#ylapalkki_oikea {
		display:none;
	}
	#ylapalkki_menu {
		display:none;
	}
	#ylapalkki_kirjautuminen {
		float: right;
		width: 54%;
		padding-right: 26px;
		padding-top: 2px;
		text-align: right;
	}
	#ylapalkki_korkeus {
		height: 35px;
	}
	#tekstiosa {
		padding-right: 26px;
		padding-left: 26px;
		/*background-color:#03C;  Sininen */
	}
	#vasen_palkki {
		width:28%;
		float: left;
		padding-top: 8px;
		font-size: 90%;
	}
	#oikea_palkki {
		width:70%;
		float: right;
	}
	.alapalkki_vasen {
		display:none;
	}
	.alapalkki_vasen2 {
		float: left;
		width: 65%;
		font-size: 90%;
		padding-top: 3px;
		padding-left: 26px;
	}
	.alapalkki_oikea {
		float: right;
		width: 30%;
		text-align: right;
		font-size: 90%;
		padding-top: 3px;
		padding-right: 26px;
	}
	#piiloon {
		display:none;
	}
	.sivukuvat img{
		max-width:100% !important;
		height:auto;
	}
    .vasen {
        width: 60%;
        float: left;
    }
    .oikea {
        width: 40%;
        float: right;
    }
}

/* TABLET LANDSCAPE / DESKTOP */
@media only screen and (min-width: 1020px) {
	.leveys {
		width: 1000px;
	}
	#ylapalkki_vasen {
		float: left;
		width: 45%;
		padding-left: 32px;
		padding-top: 3px;
		text-align: right;
		font-size: 100%;
		color: #C00;
	}
	#ylapalkki_oikea {
		display:none;
	}
	#ylapalkki_menu {
		display:none;
	}
	#ylapalkki_kirjautuminen {
		float: right;
		width: 45%;
		padding-right: 32px;
		padding-top: 4px;
		text-align: right;
		font-size: 80%;
	}
	#ylapalkki_korkeus {
		height: 35px;
	}
	#tekstiosa {
		padding-right: 32px;
		padding-left: 32px;
		/*background-color:#FF0;  Keltainen */
	}
	#vasen_palkki {
		width:25%;
		float: left;
		padding-top: 8px;
		margin-bottom: 20px;
	}
	#oikea_palkki {
		width:73%;
		float: right;
	}
	.alapalkki_vasen {
		display:none;
	}
	.alapalkki_vasen2 {
		float: left;
		width: 45%;
		font-size: 80%;
		padding-left: 32px;
		padding-top: 5px;
	}
	.alapalkki_oikea {
		float: right;
		width: 45%;
		text-align: right;
		font-size: 80%;
		padding-right: 32px;
		padding-top: 5px;
	}
	#piiloon {
		display:none;
	}
	.sivukuvat img{
		max-width:100% !important;
		height:auto;
	}
    .vasen {
        width: 60%;
        float: left;
    }
    .oikea {
        width: 35%;
        float: right;
    }
}

body {
	background-image: url(https://rhy.fi/yhteiset/kuvat/tausta.jpg);
	background-repeat: repeat-x;
	background-color: #5e5a3b;
	margin-top: 0px;
    margin-right: 0px;
	margin-left: 0px;
	margin-bottom: 90px;
	color: #333;
    font-family: Tahoma,Verdana,Segoe,sans-serif;
}
.pohja {
	background-color: #819b92;
	border: 1px solid #333;
	margin-right: auto;
	margin-left: auto;
	overflow: inherit;	
}
.banneri img{
	max-width:100% !important;
	height:auto;
	display:block;
}
.ylapalkki {
	background-image: url(https://rhy.fi/yhteiset/kuvat/ylapalkki.jpg);
	background-repeat: repeat-x;
	background-position: top;
	background-color: #2B382F;
	color: #FFF;
	clear: both;
	padding-top: 5px;
	padding-bottom: 5px;
}
.lomake_kirj {
	font-size: 80%;
	color: #333;
}
.lomake {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 90%;
}
.lomake_virhe {
	font-family: Arial, Helvetica, sans-serif;
	background-color: #F99;
	font-size: 90%;
}
a:link {
	color: #FFF;
	text-decoration: none;
}
a:visited {
	color: #FFF;
	text-decoration: none;
}
a:hover {
	color: #FFF;
	text-decoration: underline;
}
a:active {
	color: #FFF;
	text-decoration: none;
}
a:hover {
	color: #FFF;
	text-decoration: underline;
}
.alapalkki_vasen a {
	color: #FFF;
	text-decoration: underline;
}
.tekstiosa {	
	overflow: auto;
	text-align: left;
	padding-top: 15px;
	padding-bottom: 10px;
	position: inherit;
}
#vasen_palkki a:link {
	color: #000;
	text-decoration: none;
}
#vasen_palkki a:visited {
	color: #000;
	text-decoration: none;
}
#vasen_palkki a:hover {
	color: #000;
	text-decoration: underline;
}
#vasen_palkki a:active {
	color: #000;
	text-decoration: none;
}
.teksti a:link, .highslide-body a:link {
	color: #333;
	text-decoration: underline;
}
.teksti a:visited, .highslide-body a:visited {
	color: #333;
	text-decoration: underline;
}
.teksti a:hover, .highslide-body a:hover {
	color: #333;
	text-decoration: underline;
}
.teksti a:active, .highslide-body a:active {
	color: #333;
	text-decoration: underline;
}
.lukematon {
	color: #cd1515;
}
.lukematon::after {
  content: " " url("https://rhy.fi/yhteiset/kuvat/huomio.png");
}
.alapalkki {
	color: #FFF;
	background-color: #2B382F;
	min-height: 35px;
	width: 100%;
	vertical-align: middle;
	overflow: auto;
	padding-top: 5px;
	padding-bottom: 5px;
}
.teksti {
	background-color: #faf7d7;
	background-image: url(https://rhy.fi/yhteiset/kuvat/teksti_kulma.jpg);
	background-repeat: no-repeat;
	background-position: left bottom;
	padding-top: 15px;
	padding-right: 20px;
	padding-bottom: 30px;
	padding-left: 20px;
	color: #333;
	width: 100%;
	margin-bottom: 10px;
	min-height: 400px;
	overflow:auto;
}
.teksti_yla {
	background-color: #2b382f;
	background-image: url(https://rhy.fi/yhteiset/kuvat/teksti_yla.jpg);
	background-repeat: no-repeat;
	background-position: right top;
	font-size: 100%;
	font-weight: bold;
	color: #FFFFFF;
	padding-left: 20px;
	padding-top: 5px;
	padding-bottom: 5px;
	width: 100%;
}
.virhe {
	color: #990000;
}
.formi {
	border: 1px solid #000;
	padding: 10px;
}
.topMenu {
    position: fixed;
    bottom: 0;
    width: 20%;
    max-width: 100px;
    z-index: 2000;
    transition: all 1s;
    padding-bottom: 30px;
}
.hide {
    opacity:0;
    right:-100%;
}
.show {
    opacity:1;
    right:0;
}