body {
	font-family: Georgia, "Times New Roman", Times, serif;
}

img {
	max-width: 100%;
}

.myohassa, .poista, .punainen {
	color: red;
}

#avaaLoota, #varmistus {
	display: none;
}
.loota {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 3; /* Sit on top */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.ilmoitussisalto {
	margin: 15% auto; /* 15% from the top and centered */
	padding: 20px;
	border: 3px solid #804000;
	border-top: 10px solid #804000;
	border-radius: 5px;
	width: 80%; /* Could be more or less, depending on screen size */
}

#confirmLoanPopup .ilmoitussisalto {
	margin: 15% 20%;
	text-align: center;
	width: auto;
}

.qrcontainer {
	width: 500px;
	max-width: 500px;
}

.close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	}
	
.close:hover, .close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

#kirjat, #kayttajat {
	width: 100%;
	padding: 0px;
	display: table;
}

#hakutekijat {
	display: none;
	margin-bottom: 5px;
}
#rivi {
	display: table-row;
	width: 100%;

}

#solu, #soluOtsikko {
	display: table-cell;
	padding: 5px;
}

#solu15, #solu20, #solu25, #solu33, #solu40, #soluOtsikko15, #soluOtsikko20, #soluOtsikko25, #soluOtsikko33, #soluOtsikko40 {
	float: left;
	margin-top: 6px;
}

#solu20, #soluOtsikko20 {
	width: 20%;
}

#solu25, #soluOtsikko25 {
	width: 25%;
}

#solu33, #soluOtsikko33 {
	width: 33%;
	margin: 2px;
}

#solu40, #soluOtsikko40 {
	width: 40%;
}

#solu15, #soluOtsikko15 {
	width: 15%;
}

#soluMobile {
	display: none;
}

#soluOtsikko, #soluOtsikko20, #soluOtsikko25, #soluOtsikko15, #soluOtsikko40 {
	font-size: large;
	border-style: solid;
	border-width: 0px 0px 1px 0px;
	border-color: #804000;
}

#similarBook {
	width: 20%;
	float:left;
	
}

#divLogin {
	text-align: right;
	background-color:  #fff2e6;
	display: inline-block;
	width: 100%;
}
	
#menu {
	display: block;
}
#logo {
	width: 100%;
	font-size: 4vw;
	color: #804000;
	margin: 5px;
	text-align: center;
}

#sisalto {
	margin: 20px;
}

#listaus {
	border-radius: 5px;
	padding: 0px;
}

.adminpoista {
	display:none;

}
.adminlistaus {

	list-style-type: none;
	background-color: #f2f2f2;
	border-radius: 5px;
	margin: 5px;
	padding: 5px;

}

.adminlinkit {
	list-style-type: none;
}
.adminlinkit a {
	background-color: #f2f2f2;
	border-radius: 5px;
	margin: 5px;
	padding: 5px;
	display:block;
}

.adminlinkit a:hover {
	background-color: #e67300;
}

#listaus #rivi, #riviYleinen {
	display: table;
	width: 100%;
}
#listaus #rivi:after, #riviYleinen {
	content: "";
	display: table;
	clear: both;
}

#listaus li {
	list-style-type: none;
}
#listaus li:nth-child(2n+2), #rivi:nth-child(2n+2), .ilmoitussisalto {
	background-color: #f2f2f2 ;
}

#tervetuloateksti, #huomio, #tulos {

	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: normal;
	padding-top: 20px;
	text-align: left;
	border-radius: 5px;
	margin: 10px;
	padding: 20px;
}

#tervetuloateksti {
	color:#222;
	border: 2px solid #804000;
	background-color: #8040005d;
}

/* lähtöarvo */
#qrtulos, #loaned, #reload, #adminilmoitusteksti {
	display: none;
}

a.bookLoanButton, a.bookReturnButton, a.scan_new {
	display: block;
	font-family: Georgia, "Times New Roman", Times, serif;
	border-radius: 5px;
	margin: 20px;
	padding: 20px;
	font-size: large;
	color:#222;
	border: 2px solid #804000;
	background-color: #8040005d;
	width: 200px;
}

a.bookLoanButton:hover, a.bookReturnButton:hover, a.scan_new:hover{
	display: block;
	background-color: #4422015d;
	color: white;
}

#huomio, #tulos {
	color:#222;
	border: 2px solid #338000;
	background-color: #3380005d;
}

#navigaatio {
	display: block;
}
#navigaatio ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #804000;	
}

#navigaatio li {
	float: left;
}
#navigaatio li.omattiedot {
	float: right;
	background-color: #e67300;
}

#navigaatio li a {
	display: block;
	color: white;
	text-align: center;
	padding: 14px 16px;
	text-decoration: none;
}

#navigaatio li a:hover {
	background-color: #e67300;
}

#kirjankopiot ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color:  #ffe6cc;
}

.box {
	display: none;
	margin: 20px;
}

#loading { 
	background-image: url("transparentbg.png"); 
	display: none;
	height: 100%;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
}
	
#kirja input {
	width: 200px;
}

#tulos {
	float: none;
	clear: both;
	padding: 15px;
	display:none;
}

#kirjaListaus {
	float: none;
	clear: both;
	padding: 15px;
}

.huomautus {
	padding: 5px;
}

.otsikko {
	font-size: large;
	border-style: solid;
	border-width: 0px 0px 4px 0px;
}

#kirjanKuvaus {
	width: 100%;
}
#kirjanKuvaus img, #bookLoanWidget {
	border: 2px solid #8a4419;
	border-radius: 4px;  /* Rounded border */
	padding: 5px; /* Some padding */
	width: 150px; /* Set a small width */
	float: left;
	margin: 10px;
}

#bookLoanWidget {
	width: 300px;
}
#kirjanKuvaus ul {
	list-style-type: none;
	margin: 10px;
	padding: 5px;
}

.pieniteksti {
	font-size:small;
	color: grey;
}

#kirjanOtsikko {
	font-size: large;
	border-style: solid;
	border-width: 0px 0px 4px 0px;
}

#muokkaaKirjaa {
	float: right;
}

#kirjanKuvaus {
	display: inline-block;
	padding: 5px;
}
#kirjanKuvaus img {
	float: left;
	margin: 10px;
	padding: 10px;
}

#kirjanKuvaus ul {
	margin: 10px;
}

#lomake, #hakutekijat {
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 20px;
}

#lomake .rivi:after {
	content: "";
	display: table;
	clear: both;
}
#lomake .sarake25 {
    float: left;
    width: 25%;
	margin-top: 6px;
}
#lomake .sarake75 {
    float: left;
    width: 75%;
	margin-top: 6px;
}
#lomake input[type=text], #lomake input[type=password], #lomake select, #lomake textarea {
	border: 1px solid #ccc;
	border-radius: 4px;
	margin: 0.25em 0 0.5em 0;
	padding: 12px;
	resize: vertical;
	width: 100%;
}
#lomake input:focus, textarea:focus, #haku input:focus {
	border: 3px solid #804000;
}

#haku {
	padding: 10px;
}
#haku input {
	width: 100%;
}

#modalpieni {
	display: none;
	width: 100px;
	height: 100px;
    background: rgba( 255, 255, 255, .8 ) 
                url('ajax-loader.gif') 
                50% 50% 
                no-repeat;

}
#modal {
    display:    none;
    position:   fixed;
    z-index:    1000;
    top:        0;
    left:       0;
    height:     100%;
    width:      100%;
    background: rgba( 255, 255, 255, .8 ) 
                url('ajax-loader.gif') 
                50% 50% 
                no-repeat;
}

.dialogijuuri {
    display:        none;
    justify-items:  center;
    max-height:     50vh;
    overflow:       auto;
    position:       fixed;
    top:            25%;
    width:          100%;
    z-index:        1000;
}

.dialogisisalto {
    background:   rgba(255, 255, 255, .95);
    border:         3px solid #804000;
    border-top:     10px solid #804000;
    border-radius:  5px;
    padding:        15px 20px;
    position:       fixed;
    z-index:        1000;
}

.formElement {
    margin: 5px;
}

table.laiterekisteriTaulukko {
    border-collapse: collapse;
    width:           100%;
}
table.laiterekisteriTaulukko th, td {
    border:  1px solid #ccc;
	padding: 8px;
}
table.laiterekisteriTaulukko th {
    background: #f0f0f0;
}

#formDeviceRegistration input[type='radio']:not(:checked) {
    color: gray;
}

.formDeviceRegistrationFooter {
    display:         flex;
    justify-content: space-between;
    margin-top:      15px;
}

.tableRoot {
    display: table;
}

.tableRow {
    display: table-row;
}

.tableCell {
    display: table-cell;
}

.fieldDescription {
    color:         gray;
    display:       inline-block;
    font-size:     x-small;
    padding-left:  10px;
    padding-bottom: 5px;
}

.smallerText {
    font-size: smaller;
}

.laiterekisteriTaulukko {
    margin-top: 15px;
}

.tulosteksti {
    color:   orangered;
    display: none; /* block tai none */
    margin:  15px;
}

span.pieni {
	text-align: right;
	float: right;
	font-size: small;
}

span.pieni a, a {
	color: 804000;
	text-decoration: none;
}

span.pieni a:hover, a:hover {
	color: #000;
	text-decoration: none;
}

.icon {
    display: none;
}

#siteQrImageContainer {
	display: block;
	margin: 1em auto 1em auto;
	max-width: 200px;
	text-align: center;
}

@media (max-width: 600px) {
	body {
		margin: 0px;
		padding: 0px;
	}

	a.bookLoanButton, a.bookReturnButton, a.scan_new {
		display: block;
		font-family: Georgia, "Times New Roman", Times, serif;
		border-radius: 5px;
		margin: 20px;
		padding: 20px;
		font-size: large;
		color:#222;
		border: 2px solid #804000;
		background-color: #8040005d;
	}
	a.bookLoanButton:hover, a.bookReturnButton:hover, a.scan_new:hover {
		display: block;
		background-color: #4422015d;
		color: white;
	}

	#bookLoanWidget {
		width: 100%;
		display: block;
	}
	.qrcontainer {
		width: 100%;
	}

	#similarBook {
		width: 100%;
	}
	#navigaatio {
		width: 100%;
	}
	
	.menu {
		display: none;
		width: 100%;
	}
	.menu_nayta {
		display: block;
	}
	#navigaatio li a {
		border-bottom: 2px solid black;
	}

	#lomake .sarake25, #lomake .sarake75 {
        width: 100%;
		margin-top: 0;
		float:none;
	}
	
	#lomake input[type="text"], #lomake input[type="password"], #lomake textarea {
	width: 100%;
	}
	#reviews_widget {
		overflow: auto;
	}
	#divLogin input {
		width: 95%;
		margin: 5px;
	}
	#logo {
		font-size: 6vw;
		background-color: #fff;
		margin: 0px;
		padding: 0px;
		}
	#logo a {
		text-decoration: none;
		color: #804000;
	}

	.icon {

	display: inline;
	}

	#soluMobile, #kirjat, #kayttajat, #rivi  {
		display: block;
	}

	#soluMobile {
		padding: 5px;
		margin-top: 5px;
	}
	#solu, #soluOtsikko,#soluOtsikko20, #soluOtsikko25, #soluOtsikko40, #soluOtsikko15, #jarjesta {
		display: none;
	}

	#solu15, #solu20, #solu25, #solu33, #solu40 {
		width:100%;
		float:none;
	}
	#kirjanKuvaus img {
		width: 90%; 
		max-width: 90%;
	}
	#kirjanKuvaus p {
		margin: 10px;
		padding: 5px;
		margin-top: 20px;
	}
}
