/*common*/

:root {
	--header-height:3.2em;
}

* {
	box-sizing:border-box;
}

body {	
	font-family: 'Kanit', sans-serif;
	background-color: #C4D6D5;
}

h1 {
	font-family: 'Sriracha', cursive;
	font-size: 2.8em;
	text-align: center;
}

a {
	text-decoration: none;
	color: #A5441D;
}

[data-role='page'] {
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
}

.centered-child {
	position:absolute;
	top:50%;
	left:50%;
	transform:translate(-50%,-50%);
}

.placeholder {
	height: 4em;
	clear: both;
}

/*landing*/

#landing-page img {
	width: 80%;
	margin-left: 10%;
}

/*login, signup*/

#login-form img ,
#signup-form img {
	width: 80%;
	margin-left: 10%;
}

.form-control {
	margin: 1em 0;
	height: 2em;
}

.form-control input, 
.form-control label {
	display: block;
}

.form-control input {
	width: 100%;
}

.form-control input[type=text],
.form-control input[type=password],
.form-control select {
	font-size: 0.9em;
	color: #333;
	padding: 0.5em;
    border: 1px solid #6B9097;
    border-radius: 5px;
}

.form-control input[type=button],
.form-control input[type=submit] {
	padding: 0.4em 0.5em;
	font-family:inherit;
	font-size: 0.9em;
	font-weight: bold;
	border: 2px solid #6B9097;
	border-radius: 5px;
	background-color: #F7F7EE;
	color: #6B9097;
}

#lab-forget-password {
	text-align: right;
	margin-top: -0.2em;
}

#lab-forget-password a {
	text-decoration: none;
	font-size: 0.8em;
	color: #6B9097;
}

#lab-not-member,
#lab-member {
	text-align: center;
	padding-bottom: 0.8em;
	color: #6B9097;
}

.lab-error {
	text-align: center;
	font-size: 0.7em;
	color: #A5441D;
}

.line hr {
	border: 0;
	height: 1px;
	background: #6B9097;
}

#lab-login-error,
#lab-signup-error {
	display: none;
}

/*main map*/

#map-page {
	/*background-image: url("../img/mapCapture_1.jpg");
	background-position: center; 
  	background-repeat: no-repeat; 
  	background-size: cover; */
}

.map {
	width:100%;
	height:100%;
	position:relative;
}


.map-area {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	overflow:hidden;
}
.map-popover {
	position:absolute;
	bottom:0;
	left:50%;
	width:calc(100% - 4em);
	height:8em;
	background-color:white;
	transform: translate(-50%,100%);
	transition:all 0.3s;
}
.map-popover.active {
	transform:translate(-50%,0);
}


.ui-mobile .ui-page-active {
	display:flex;
	flex-direction:column;
}

[data-role="header"],
[data-role="footer"] {
	height:var(--header-height);
	line-height:var(--header-height);
	border-width:0;
	flex:none;
	overflow:hidden;
	
}

[data-role="main"] {
	flex:1 1 auto;
	height:100%;
	overflow:auto;
}

[data-role="header"] {
	background-color: #A5441D;
	color: #F7F7EE;
}


[data-role="header"]+
[data-role="footer"]+
[data-role="main"] {
	height:calc(100% - (2 * var(--header-height)));
}
[data-role="header"]:first-child+[data-role="main"],
[data-role="footer"]:first-child+[data-role="main"] {
	height:calc(100% - var(--header-height));
}

[data-role="header"]{
	order:1;
}
[data-role="footer"]{
	order:3;
}
[data-role="main"]{
	order:2;
}


.btn-row ul,
.flex-parent {
	display:flex;
}
.flex-child {
	flex:1 1 auto;
}
.flex-none {
	flex:none;
}
.flex-center {
	align-items:center;
}

.flex-vertical {
    flex-direction: column;
}

.collapsed,
.nav ul,
.btn-row ul {
	list-style-type:none;
	margin-top:0;
	margin-bottom:0;
	padding-left:0;
}
.nav a,
.btn-row a {
	display:block;
	text-align:center;
	text-decoration:none;
	color:inherit;
	font-weight:bold;
	padding:0 1em;
}
.ui-header .ui-title{
	margin:0;
	padding:0;
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:var(--header-height);
	line-height:var(--header-height);
}
h1+.btn-row {
	position:relative;
	float: left;
	z-index:2;
}

.home-btn {
	width: 4em;
	height: 100%;
	position:absolute;
	top: 0;
	left:100%;
	transform:translate(-100%,0);
}

.home-btn a img {
	height: 35%;
}

.footer-btn {
	width: 120px;
	height: 40px;
	margin-left: auto;
	margin-right: auto;
	font-family:inherit;
	position: absolute;
	top: 98%;
	left: 50%;
	transform:translate(-50%,-98%);
	font-size: 1.1em;
	border: 2px solid #6B9097;
	border-radius: 5px;
	background-color: #C4D6D5;
	color: #A5441D;
}

.footerbBtn-div {
    width: 50%;
    height: 100%;
    float: left;
    position: relative;
}

.footerbBtn-div.left-side {
	background-color: #6B9097;
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
	/*border-right: 1px solid #6B9097;*/
}

.footerbBtn-div.right-side {
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
}

.footer-btn a img {
	height: 70%;
}

.round-btn {
	width: 40px;
	height: 40px;
	font-size: 1.4em;
	background-color: #F7A736;
	border: 2px solid #6B9097;
	border-radius: 50%;
	position:absolute;
	top: 98%;
	left:95%;
	transform:translate(-95%,-98%);
}

.round-btn-left {
	width: 40px;
	height: 40px;
	font-size: 1.4em;
	background-color: #F7A736;
	border: 2px solid #6B9097;
	border-radius: 50%;
	position:absolute;
	top: 98%;
	left: 5%;
	transform:translate(-5%,-98%);
}

.round-btn a img, .round-btn-left a img {
	height: 50%;
}

.edit-btn {
	width: 40px;
	height: 40px;
	background-color: #F7A736;
	border: 1px solid #6B9097;
	border-radius: 50%;
	position: relative;
	margin-left: auto;
	margin-right: auto;
}

.edit-btn a img {
	height: 50%;
}

.edit-btn-group {
	width: 80px;
	margin-left: auto;
    margin-right: auto;
}

.edit-btn-left, .delete-btn-right {
	width: 30px;
	height: 30px;
	background-color: #F7A736;
	border: 1px solid #6B9097;
	border-radius: 50%;
	position: relative;
	margin: 10px 5px;
}

.edit-btn-group a img {
	height: 50%;
}

.photo-btn {
	width: 30px;
	height: 30px;
	background-color: #F7A736;
	border: 1px solid #6B9097;
	border-radius: 50%;
	position: relative;
	margin-top: -30px;
	margin-left: 72%;
}

.photo-btn a img {
	width: 70%;
	height: 70%;
}


.btn-row #h-menu {
	font-size: 2em;
}

.modal, .delete-modal, .add-error-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition:all 0.3s;
    opacity:0;
    pointer-events:none;
    z-index: 10;
}

.modal-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    opacity: 0;
    transition: all 0.3s;
}

.delete-modal-back,
.add-error-modal-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    position: absolute;
    width: 60%;
    height: 100%; 
    background-color: #6B9097;
    padding: 30px;
    transition:all 0.5s;
    text-align: center;
    transform: translateX(-100%);
}
.modal.active {
	opacity:1;
	pointer-events:initial;
}

.modal.active .modal-back {
    opacity: 1;
}

.modal.active .modal-content {
    transform: translateX(0);
}

.delete-modal-content,
.add-error-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,calc(-50% + 2em));
    background-color: #6B9097;
    padding: 10px;
    border-radius: 5px;
    transition:all 0.3s;
}
.delete-modal.active,
.add-error-modal.active {
	opacity:1;
	pointer-events:initial;
}
.delete-modal.active .delete-modal-content,
.add-error-modal.active .add-error-modal-content {
	transform:translate(-50%,-50%);
}

.modal-content .x-btn {
	display: block;
	margin-bottom: 20px;
	text-align: right;
	color: #F7F7EE;
}

.modal-content img {
	clear: both;
	width: 120px;
	height: 120px;
	border-radius: 10px;
	object-fit: cover;
}

.modal-content ul {
	list-style-type: none;
	padding-left: 0;
	font-size: 1.2em;
}

.modal-content ul li {
	margin-bottom: 10px;
}

.modal-content .modal-icon {
	width: 15px;
	height: 15px;
	border-radius: 0;
}


a.back-btn {
    font-size: 1.6em;
    margin-left: 1%;
}


#listview-1 {
	margin: 4%;
}

.col-md-6 {
	width:50%;
	text-align: center;
	float: left;
	padding: 3%;
}

.col-md-6 .contents {
	border: 1px solid #6B9097;
	border-radius: 5px;
	background-color: #F7F7EE;
}

.col-md-6 .pet-profile-img {
	width: 80%;
	height: 120px;
	max-width: 240px;
	object-fit: cover;
	border-radius: 10px;
	margin: 10px auto;
}

.col-md-6 p {
	margin: 0;
}

.col-md-12 {
	width: 90%;
	margin: 15px auto 0px auto;
	border: 1px solid #6B9097;
	border-radius: 5px;
	padding: 1%;
	background-color: #F7F7EE;
}

.col-md-12 .contents {
	display: flex;
	align-items: center;
}

.col-md-12 input[type='checkbox'] {
    position: relative;
}

.col-md-12 .petlist-img {
	width: 30%;
	float: left;
}

.col-md-12 .pet-profile-img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	/*float: left;*/
	border-radius: 15px;
	padding: 5px;
	display: flex;
	align-items: center;
}

.col-md-12 .petlist-info {
	width: 70%;
	float: left;
	/*padding: 5px;*/
	padding-left: 15px;
}

.petlist-info h4, .petlist-info p {
    margin-top: 0;
    margin-bottom: 5px;
}

.petlist-info p {
	font-size: 0.9em;
}

.petlist-item2 .edit-btn-group {
     margin-right: 0; 
}

.add-btn {
	width: 60px;
	height: 60px;
	font-size: 2em;
	background-color: #F7A736;
	border: 1px solid #6B9097;
	border-radius: 50%;
	position: relative;
	margin-left: auto;
	margin-right: auto;
}

.col-md-6 .add-btn {
	margin-top: 40%;
}


.add-btn a img {
	margin: 0;
	height: 50%;
	width: 50%;
}

.btn {
	width: 40%;
	margin-left: auto;
	margin-right: auto;
}

.btns {
	width: 90%;
	margin: 0 auto;
}

.filter-pet-list-contents input[type=submit],
.filter-pet-list-contents input[type=button],
.pet-list-contents input[type=submit],
.pet-list-contents input[type=button],
.pet-profile-content input[type=submit],
.pet-profile-content input[type=button],
.add-pet-profile-content input[type=submit],
.add-pet-profile-content input[type=button],
.user-profile-content input[type=submit],
.user-profile-content input[type=button] {
	width: 40%;
	height: 40px;
	font-size: 1.1em;
	color: #A5441D;
	margin: 0 1%;
}

.pet-profile-content,
.add-pet-profile-content,
.user-profile-content {
    text-align: center;
    padding: 10% 10% 0 10%;
}

.pet-profile-content img,
.add-pet-profile-content img,
.user-profile-content img {
	width: 150px;
	height: 150px;
	border-radius: 10px;
	object-fit: cover;
}

/*.pet-profile-content .form-control,
.add-pet-profile-content .form-control,
.user-profile-content .form-control {
	height: 2em;
}*/

.pet-profile-content label,
.add-pet-profile-content label,
.user-profile-content label {
	width: 40%;
	float: left;
	text-align: right;
}

.pet-profile-content input[type=text],
.add-pet-profile-content input[type=text],
.user-profile-content input[type=text] {
	border-width:0;
	outline:0;
	background-color:transparent;
	border-radius: 0;
	color:black;
	border-bottom: 1px solid #6B9097;
	margin-left: 5%;
	width: 50%;
	float: left;
	height: 80%;
}

.user-profile-content input[type=text] {
	background-color: #F7F7EE;
}

.add-pet-profile-content select,
.pet-profile-content select {
	outline:0;
	border-radius: 5px;
	color:black;
	background-color: #F7F7EE;
	border: 1px solid #6B9097;
	margin-left: 5%;
	width: 50%;
	float: left;
	height: 70%;
	margin-top: -1%;
}

.select-parent {
	position:relative;
	height: 150%;
}

.select-parent::after {
	position: absolute;
    pointer-events: none;
    top: 30%;
    left: 85%;
    transform: translateY(-50%);
    right: 0.5rem;
    font-size: 0.6em;
    content: '▼';
    color: #999;
}

.pet-locations {
	padding: 5%;
}

.pet-locations hr {
	clear: both;
	border: 0;
	height: 1px;
	background: #6B9097;
}

.location-list {
	width: 98%;
	margin: 10px auto 0px auto;
	border: 1px solid #6B9097;
	border-radius: 5px;
	padding: 2%;
	background-color: #F7F7EE;
}

.location-list .contents,
.location-info-box .contents {
	display: flex;
	align-items: center;
}

.location-img {
    /*width: 40%;*/
    float: left;
    width: 90px;
    display: table-column;
}

.location-list img,
.location-info-box img {
	width: 90px;
    height: 90px;
	/*width: 30%;
	height: 30%;*/
	object-fit: cover;
	float: left;
	border-radius: 20px;
	padding: 10px;
}

.location-list .location-info,
.location-info-box .location-info {
	/*width: 70%;
	float: left;
	padding: 10px;*/
    width: 210px;
    float: right;
    padding-top: 5px;
    display: table-column;
}

.location-list h4, .location-list p,
.location-info-box h4, .location-info-box p {
    margin-top: 0;
    margin-bottom: 5px;
}

.location-list p {
	font-size: 0.9em;
}

.pet-locations + .add-btn {
	width: 40px;
	height: 40px;
	margin-bottom: 20px;
}

#location-page {
	/*background-image: url("../img/mapCapture_2.png");
	background-position: center; 
  	background-repeat: no-repeat; 
  	background-size: cover; */
}

.location-info-box {
	width: 92%;
	/*margin-left: auto;
	margin-right: auto;*/
	margin-top: 40%;
	margin-left: 4%;
	border-radius: 10px;
	padding: 2%;
	background-color: #6B9097;
	position: absolute;
	z-index: -1;
}

.location-map {
    height: 100%;
}


.spot-map {
	width: 100%;
	height: 40%;
}

.spotLatLng {
	text-align: center;
	background-color: #6B9097;
	color: #F7F7EE;
	margin: 0;
	padding: 5px;
	border-radius: 5px;
}

.spot-info {
	width: 92%;
	margin: 0 auto;
	padding: 2% 4%;
}

.spot-info h4 {
	margin: 10px auto;
}

.spot-info .form-control label {
	width: 35%;
	float: left;
	text-align: right;
}

.spot-info .form-control input[type=text] {
	border-width:0;
	outline:0;
	background-color:transparent;
	border-radius: 0;
	color:black;
	border-bottom: 1px solid #6B9097;
	/*width: 100%;*/
	margin-left: 5%;
	width: 55%;
	float: left;
	height: 80%;
	background-color: #F7F7EE;
}

.spot-info input[type=submit],
.spot-info input[type=button] {
	width: 150px;
	height: 40px;
	font-size: 1.1em;
	color: #A5441D;
	margin: 0 1%;
}

.spot-info select {
	background-color: #F7F7EE;
	border: solid 1px #6B9097;
	/*width: 80%;
	font-size: 1.2em;
	margin-left: 10%;*/
	outline:0;
	border-radius: 5px;
	color:black;
	background-color: #F7F7EE;
	border: 1px solid #6B9097;
	margin-left: 5%;
	width: 55%;
	float: left;
	height: 70%;
	margin-top: -1%;
}

.select-parent.pet-selection-parent::after {
	left: 87%;
}

.form-control.textarea {
    display: flex;
    height: 100%;
}

.spot-info textarea {
	background-color: #F7F7EE;
	border: 1px solid #6B9097;
}

.imagepicker-con {
    margin: 1em 0;
}

.spot-photo {
	width: 100px;
	height: 100px;
	background-color: #6B9097;
	border-radius: 5px;
	padding-top: 15px;
	margin-bottom: 15px;
}

.form-control.flex-parent.btns {
    display: flex;
    height: 100%;
    margin-bottom: 1em;
}

#edit-location-pet-name {
	background-color: transparent;
}


/*infoWindow*/
.info-window .pet-image,
.info-window .loc-image {
	width: 80px;
	height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.info-window .flex-child {
	margin-left: 10px;
	font-size: 1em;
}

.info-window .pet-name, .info-window .pet-loc {
	padding: 10px 0;
}

.info-window span {
	font-weight: bold;
}


/*imagepicker*/

.imagepicker-div {
    position: relative;
    display: flex;
    left: 50%;
    transform: translate(-4em, 0);
}
/* https://codepen.io/bronkula/pen/bvrgxQ */
/* Create the look of a generic thumbnail */
.thumbnail,
label.imagepicker.imagepicker-replace.thumbnail {
  position:relative;
  display:inline-block;
  width:8em;
  height:8em;
  border-radius:0.6em;
  border: 1px solid #6B9097;
  vertical-align:middle;
  /*box-shadow:0 0.15em 0.35em 0.1em rgba(0,0,0,0.2);*/
  margin:0.5em;
  background-position:center;
  background-size:cover;
}
/* This will hide the file input */
.imagepicker input {
  	display: none;
}
.imagepicker {
  	cursor: pointer;
  	color: #A5441D;
  	background-image: url("../img/photo-placeholder.png");
  	background-color: #F7F7EE;
}
/* This will add the floating plus symbol to the imagepicker */
.imagepicker:before {
  content:'+';
  position:absolute;
  font-size:3em;
  vertical-align:middle;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
}
/* This will hide the plus symbol behind the background of the imagepicker if the class "picked" is added to the element */
.imagepicker.picked:before {
  z-index:-1;
}

.search-box {
	background-color: #F7A736;	
    padding: 0.5em;
}

.top-search {
    background-color: #F7F7EE;
    border: 1px solid #6B9097;
    border-width: 0;
    border-radius: 2em;
    padding: 0.5em 1em;
    width: 100%;
    font-size: 1rem;
    color: black;
    /*outline:0;*/
}

.list-filter {
    padding: 0.5em 1em;
    font-weight: bold;
    white-space: nowrap;
    overflow: auto;
}

.fill-parent {
	width:100%;
	/*height:100%;*/
}
.scrolley {
	overflow:auto;
}


p.noInfo {
    text-align: center;
    background-color: #F7F7EE;
    margin: 0 5%;
    border-radius: 10px;
}


