.btnIForm {
    color: #008AFF;
    cursor: pointer;
    text-decoration: underline;
}

.iform {
	display: none; /* Hidden by default */
    position: fixed;
	box-sizing:border-box;
    /*visibility: hidden;*/

    background-color: white;
    border: 1px solid #1d4164;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    box-shadow: 0 0 5px 2px #bac7d2;
    box-shadow: 2px 2px 10px 1px rgba(0,0,0,0.4);

	left: 20%;
	right: 20%;
	
    top: 60px;
    z-index: 100;
	flex-direction: column; /* force body to show scrollbar when form is shrunk vertically */
}

.iformLayer1 {
    z-index: 101;
}

.iformLayer2 {
    z-index: 102;
}

.iform > div:first-child {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
    background-color: #1d4164;
    border-bottom: 2px solid #28bf2c;
    color: white !important;
    font-size: 120% !important;
    font-weight: bold !important;
}

.iform.noHeaderSeparation > div:first-child {
	border-bottom: none;
}


.iform .btnClose {
    border: 1px solid #b50003;
    background-color: #9d1b1d;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    color: white;
    text-align: right;
    font-size: 18px;
    font-weight: bold;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.iform .btnClose:hover {
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 5px 2px #c63b3d;
}

.iform > div:nth-child(2) {
    padding: 20px;
    background-color: white;
	overflow-y: auto;
}

.iform.noBodyScroll > div:nth-child(2){ 
	overflow-y: visible;	
}
.iform.noBodyPadding > div:nth-child(2) {
    padding: 0px;
}

.iformWidth100 {
	left: 0px;
	right: 0px;
	margin-left: 10px;
	margin-right: 10px;
}

.iformWidth90 {
    left: 5%;
	right: 5%;
}
.iformWidth80 {
	left: 10%;
	right: 10%;
}
.iformWidth70 {
	left: 15%;
	right: 15%;
}
.iformWidth60 {
	left: 20%;
	right: 20%;
}
.iformWidth50 {
	left: 25%;
	right: 25%;
}
.iformWidth40 {
	left: 30%;
	right: 30%;
}
.iformWidth30 {
	left: 35%;
	right: 35%;
}

@media (max-height: 600px) {
	.iform {
		top: 0px;
		max-height: 100%;
	}
}
@media (min-height: 600px) {
	.iform {
		top: 60px;
		max-height: calc(100vh - 60px - 80px);		
	}
}
@media (max-width: 760px) {
	.iform { 
		top: 0px;
		left: 0px;
		right: 0px;
		margin-left: 0px;
		margin-right: 0px;
		border-left: none;
		border-right: none;
	}	
}