
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Segoe UI', Arial, Helvetica, sans-serif;
    font-size: 14px;
}
a {
	color:#007f88;
	text-decoration: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


input[type=number] {
  -moz-appearance: textfield;
}

@media (orientation: portrait) {
    .batresult div {
        width:90%;
        border-right: none;
    }
    .batresult div span {
        float:right;
    }
    #logo { margin-top:10px; }
    #langsel {
        margin-right: 5px;
    }
    .usertable td, .usertable th {
        padding:2px;
    }
    #resulttab {
        border-left:none;
        display:block;
        text-align: center;
    }
}

#head {
    display:block;
    width:100%;
    min-height:165px;
    background: #ffffff;
    line-height:2em;
	float: left;
	position: relative;
}
#head_title {
    display:inline-block;
    margin-left:20px;
    margin-top:35px;
	float: left;
	padding-right: 20px;
}
#head_title p{
    font-style: italic;
    font-size:0.9em;
}


#logo {
    margin-top:56px;
    margin-left:20px;
    float:left;
}
#langsel {
    margin-right: 20px;
	position: absolute;
	right: 0px;
	top: 0px;
	margin-top: 15px;
}
#lang {
    border:none;
    box-shadow: none;
}
#divider {
    display: block;
    width:100%;
    height:20px;
    background-color: #007f88;
	float: left;
}
#main {
    display: block;
    background-color: #ffffff;
    height:100%;
    position: relative;
	float: left;
	width: 100%;
}
#loginform {
    display:block;
    width: calc(100% - 40px);
    margin: 20px;
    padding-top:125px;
    text-align: center;
    height:500px;
    background-color: #ffffff;
    border:0;
    border-radius: 10px;
}
#loginform label {
    display:block;
    margin:20px;
}
#loginform input[type=text], #loginform input[type=password]{
    border:none;
    border-bottom:solid 1px #bcbec0;
    max-width:530px;
	width: 80%;
    display: block;
    margin: 0 auto;
}
#login{
    background-color: #007f88;
    width:180px;
    height:45px;
    border:none;
    border-radius:10px;
    color:#fff;
    padding:0;
    margin:30px auto;
    display: block;
}
#logout {
    float:right;
    background-color: #007f88;
    width:120px;
    height:30px;
    border:none;
    border-radius:10px;
    color:#fff;
    padding:0;
    margin:15px 120px 30px 0;
    display: block;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
}

.tile {
    display: block;
    float: left;
    min-width:300px;
    width:36vw;
    min-height:140px;
    border:solid 1px #007f88;
    border-radius:10px;
    margin:4vh 2vw;
    padding:40px 60px;
}
.tile h3 {
    font-weight: normal;
    font-size: 2em;
}
.tile p {
    font-style: italic;
}
.tile a {
    color:#000;
}

.frame h3 {
    color:#000;
}
.frame {
    display: block;
    border:solid 1px #bcbec0;
    border-radius:10px;
    color:#007f88;
    padding:20px;
    margin:10px;
}
.frame.noframe {
    border:none;
    margin:0;
}

.frame label {
    color:#007f88;
    display:inline-block;
    width:40vw;
    max-width:400px;
    margin:10px;
}
.frame input {
    width:80px;
    border:solid 1px #bcbec0;
    border-radius:5px;
    padding:5px;
    text-align: center;
    color:#007f88;
}
.inp {
    display:block;
    border-bottom: solid 1px #bcbec0;
    line-height: 2em;
}
.noborder {
    border-bottom:none;
}
.greyinp {
    background-color:#eee;

}
.rborder {
    margin:0 20px 0 20px;
    border-right: solid 1px #bcbec0;
}
.err {
    display: inline-block;
    max-width:20vw;
    color:#f00;
    margin-left:20px;
}
.result {
    background-color: #007f88;
    padding:20px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}
.result h2 {
    color:#fff;
    display:inline-block;

}
#resulttab {
    padding:20px;
    margin-left:20px;
    border-left: solid 1px #bcbec0;
}
#h3mehr { width:40vw; max-width:400px; margin:10px; display:inline-block;}
#resultmehr { display:inline-block; }
.hiddeninp {
    display: none;
}
.monoinvest td {
    padding:8px;
}
.batresult {
    display: block;
    width: calc(100% - 40px);
    border: solid 1px #007f88;
    border-radius: 10px;
    font-size:1.6em;
    padding:20px;
}
.batresult div {
    width:32%;
    display:inline-block;
    min-width: 200px;
    text-align: center;
    padding:5px;
    border-right: solid 1px #007f88;
}
.batresult div span {
    display: inline-block;
    width:120px;
    background:#000;
    color:#fff;
    margin-left:10%;
    border-radius:10px;
    padding:6px;
    font-size: 0.8em;
}
.batresult div:last-child {
    border:none;
}

.usertable {
    max-width:100%;
}
.usertable td:first-of-type {
    text-align: left;
}
.usertable td, .usertable th {
    text-align: center;
    padding:8px;
}
#batshowbackend {
    float:right;
    background-color: #007f88;
    width:120px;
    height:30px;
    border:none;
    border-radius:10px;
    color:#fff;
    padding:0;
    margin:30px 20px;
    display: block;

}
.monounit {
    display: inline-block;
    width:60px;
}
.monoinvest td, .monoinvest th {
    padding-right:12px;
    text-align: center;
}

	.up, .down {
		display: inline;
		padding-right: 20px;
		font-size: 30px;
	}

	.up:hover, .down:hover {
		cursor: pointer;
	}


@media screen and (max-width: 1100px) {
	#head_title {
		margin-left: 20px;
		margin-top: 0px;
		clear: left;
	}

	#logo {
		margin-left: 20px;
	}
    #logout {
        margin:15px 20px 20px 0;
    }
}

@media screen and (max-width: 1160px) {
	.batresult {
		margin-top: 15px
	}

	.batresult div {
		border-right: 0px;
		width: 100%;
		text-align: left;
		font-size: 18px;
	}

	.batresult div span {
		 margin-left: 0px;
		float: right;
	}
}

@media screen and (max-width: 500px){
	#main {
		margin-top: 20px;
	}

	#divider {
		z-index: 10;
		height: 40px;
	}

	.tile {
		width: calc(100% - 80px);
		margin: 0px;
		min-width: auto;
		margin-left: auto;
		margin-right: auto;
		float: none;
		padding: 20px;
		margin-top: 20px;
	}

	#main > a:last-child .tile{
		margin-bottom: 20px;
	}



	#head_title h1 {
		font-size: 1.5em;
		line-height: 1.3em;
	}

	.frame label {
		width: 30vw;
		margin-top: 0px;
	}

	.inp * {
		vertical-align: top;
	}

	.inp {
		margin-bottom: 15px;
	}



}
