/*!
 * Bootstrap v3.2.0 (http://getbootstrap.com)
 * Copyright 2011-2014 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * This has been modified from the original version
 */
 
.modal::-webkit-scrollbar {
	width: 13px;
	background-color: #ababab;
}
	
.modal::-webkit-scrollbar-track {
	background-color: #ababab;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
}
	
.modal::-webkit-scrollbar-thumb {  
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);   
	background-color: #777777;
    border-radius: 10px;
}
	
.modal-full::-webkit-scrollbar-track,
.modal-full::-webkit-scrollbar-thumb {  
    border: 2px solid #F7FCFC
}

.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999999 !important;
  display: none;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  outline: 0;
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}
.modal-full .modal-dialog {
  width: 100%;
  height: 100%;
  margin: 0;
}
.modal-full .modal-content {
  border-radius: 0;
  min-height: 100%;
  box-sizing: border-box;
}
.modal-dialog {
  position: relative;
  width: auto;
  margin: 7%;
}
.modal-content {
  border-radius: 4px;
  position: relative;
  background-color: #FFFFFF;
  -webkit-background-clip: padding-box;
          background-clip: padding-box;
  outline: 0;
  padding: 39px 40px 30px;
}

.modal-content::-webkit-scrollbar {
	width: 13px;
	background-color: #ababab;
}

.modal-content::-webkit-scrollbar-track {
	background-color: #ababab;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
    border: 2px solid #F7FCFC
}

.modal-content::-webkit-scrollbar-thumb {  
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);   
	background-color: #777777;
    border-radius: 10px;
    border: 2px solid #F7FCFC
}

.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999999 !important;
  background-color: #778790;
}
.modal-backdrop.fade {
  filter: alpha(opacity=0);
  opacity: 0;
}
.modal-backdrop.in {
  filter: alpha(opacity=100);
  opacity: 1;
}

.modal-header {
  border-bottom: 1px solid #778790;
  padding-bottom: 20px;
  font-size: 20px;
}

.modal-header .close {
  margin-top: -2px;
}

.modal-title {
  margin: 0;
  line-height: 1.42857143;
}
.modal-body {
  padding-top: 24px;
  padding-bottom: 20px;
}

.modal-footer {
  padding-top: 29px;
  border-top: 1px solid #778790;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse; /* row reverse so single OK button appears right-justified */
  justify-content: space-between;
}

.modal-footer .btn-group .btn + .btn {
  margin-left: -1px;
}
.modal-footer .btn-block + .btn-block {
  margin-left: 0;
}
.modal-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll;
}

.modal-footer .btn, 
.modal-footer .cancel-button,
.modal-footer .tinybutton {
	width: 120px;
	height: 40px;
}

.modal-footer img.loading-icon {
	width: 40px;
	margin-left: 5px;
}

.close-button {
	cursor: pointer;
	float: right;
	position: relative;
	right: -4%;
	height: 4%;
	width: 4%;
}

.centered-button {
	text-align:center; 
	height: 7vh; 
	width: 33%; 
	margin: 10% auto; 
	background: #FFFFFF; 
	border: 1px solid #009999;
	border-radius: 5px; 
	cursor: pointer; 
	color: #009999;
}

.centered-button:hover {
    background-color:#66c2c2;
    color: #FFFFFF;
}

.modal-body ul li {
	list-style-type: none;
}

@media (orientation: landscape) {
	
	.modal-dialog {
		width: 50%;
		margin: auto;
		margin-top: 3%;
	}

	.centered-button {
		height: 7vw; 
	}
}

/* mobile styles */
@media (hover:none), (hover:on-demand), (pointer: coarse), (max-width: 650px) {
	
	.modal-content {
		padding: 0;
	    overflow: auto;
		height: 100%;
		box-sizing: border-box;
		border-radius: 0;
	}
	
	.modal-header {
		padding-top: 20px;
		font-size: 16px;
		font-family: Siemens Sans Bold;
		display: flex;
		align-items: center;
		justify-content: center;
		border: none;
	}
	
	.modal-body {
		padding-top: 2px;
		padding-left: 20px;
		padding-right: 20px;
		margin-bottom: 80px;
	}
	
	.modal-dialog {
		width: 100%;
		height: 100%;
		margin: 0;
	}
	
	.modal-footer {
		min-height: 80px;
		width: 100%;
		padding-top: 0;
		padding-left: 20px;
		padding-right: 20px;
		padding-bottom: 20px;
		box-sizing: border-box;
		background-color: #FFFFFF;
		position: fixed;
		bottom: 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		border: none;
		box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.1);
	}
	
	.modal-footer button:only-child {
		margin-left: auto;
    	margin-right: auto;
	}
	
	.modal-footer button {
		margin-top: 20px;
	}
}

/* This query targets Safari version 10.1+ */
@media not all and (min-resolution:.001dpcm) { 
	@media { /* this @media line is necessary for whatever reason */
		@media (hover:none), (hover:on-demand), (pointer: coarse), (max-width: 650px) {
			.modal-footer {
				position: sticky;
			}
			
			.modal-body {
				padding-bottom: 80px;
				margin-bottom: 0;
			}
		}
	}
}