/* IDENTIFY SHORTCODE STYLES */
#wrapper .post-content .identify_photo_widget.content-otd img {
	width: 100%;
}

#wrapper .post-content .identify_photo_widget.content-otd a#identify-trigger {
    background-color: #f58018;
    border-radius: 3px;
    color: #ffffff !important;
    cursor: pointer;
    display: inline-block;
    padding: 5px 20px;
    transition: all 250ms;
}

#wrapper .post-content .identify_photo_widget.content-otd a#identify-trigger:hover {
    background-color: #a0ce4e;
}

#identify-popup {
	background-color: #ffffff;
	box-shadow: 0 0 40px rgba(0,0,0,0.25);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	max-width: 1160px;
	opacity: 0;
	padding: 20px;
	position: fixed;
		left: 50%;
		top: 50%;
	transform: translate(-50%,-50%) scale(0.9);
	transition: all 250ms;
	visibility: hidden;
	width: 90%;
	z-index: 21;
}

#identify-popup.show {
	opacity: 1;
	transform: translate(-50%,-50%) scale(1);
	visibility: visible;
}

#identify-popup:after {
	align-items: center;
	background-color: rgba(255,255,255,0.75);
	content: 'Identifying your image...';
	display: flex;
	justify-content: center;
	opacity: 0;
	position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		top: 0;
	transition: all 250ms;
	visibility: hidden;
}

#identify-popup.identifying:after {
	opacity: 1;
	visibility: visible;
}

#identify-popup.identifying .identify-popup-col {
	filter: blur(3px);
}

#identify-popup.uploading .identify-popup-col #identify-popup-img-wrapper {
	background-image: none;
}

#identify-popup #identify-popup-img-wrapper .loading {
	opacity: 0;
	position: absolute;
		left: 36%;
		top: 32%;
	transition: opacity 250ms;
	visibility: hidden;
}

@media only screen and (min-width: 768px){
	#identify-popup #identify-popup-img-wrapper .loading {
		left: 41%;
		top: 38%;
	}
}

#identify-popup.uploading #identify-popup-img-wrapper .loading {
	animation: rotation 2s infinite linear;
	opacity: 1;
	visibility: visible;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

#identify-popup #close-identify-popup {
	background-color: #ffffff;
	border-radius: 50px;
	display: flex;
	padding: 8px;
	position: absolute;
		right: 10px;
		top: 10px;
    z-index: 10;
}

@media only screen and (min-width: 768px){
	#identify-popup #close-identify-popup {
		right: 20px;
		top: 20px;
	}

	#identify-popup:before {
		border-left: 1px solid #000000;
		content: '';
		min-height: calc(100% - 40px);
		position: absolute;
			left: 50%;
			top: 20px;
	}
}

#identify-popup .identify-popup-col {
	display: flex;
	filter: blur(0);
	flex-direction: column;
	transition: all 250ms;
}

#identify-popup .identify-popup-col #identify-popup-img-wrapper {
	background-color: #eaeaea;
	background-image: url(/wp-content/plugins/plantID/img/photo-widget-bg.svg);
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	margin-bottom: 20px;
	padding-top: 75%;
	position: relative;
	width: 100%;
}

#identify-popup .identify-popup-col .identify-file-upload-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	width: 100%;
}

#identify-popup .identify-popup-col .identify-file-upload-wrapper h4 {
	font-weight: 400;
	font-size: 1rem;
	margin: 0 0 10px;
	width: 100%;
}

#identify-popup .identify-popup-col .identify-file-upload-wrapper input[type="submit"] {
	background-color: #f58018;
	border: none;
	border-radius: 3px;
	color: #ffffff;
	cursor: pointer;
	font-size: 1rem;
	padding: 10px;
}

#identify-popup .identify-popup-col .identify-file-upload-wrapper label {
    cursor: pointer;
    display: inline-block;
    flex-grow: 2;
    height: 2.5rem;
    margin-right: 10px;
    max-width: 73%;
    position: relative;
}

#identify-popup .identify-popup-col .identify-file-upload-wrapper label input[type="file"] {
    min-width: 14rem;
    margin: 0;
    filter: alpha(opacity=0);
    opacity: 0;
}

#identify-popup .identify-popup-col .identify-file-upload-wrapper label .file-custom {
    position: absolute;
    	top: 0;
    	right: 0;
    	left: 0;
    z-index: 5;
    height: 2.5rem;
    padding: .5rem  90px .5rem 1rem;
    line-height: 1.5;
    color: #555;
    background-color: #fff;
    border: .075rem solid #ddd;
    border-radius: 3px;
    box-shadow: inset 0 0.2rem 0.4rem rgba(0,0,0,.05);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

#identify-popup .identify-popup-col .identify-file-upload-wrapper label .file-custom:before {
    position: absolute;
    	top: -.075rem;
    	right: -.075rem;
    	bottom: -.075rem;
    z-index: 6;
    display: block;
    content: "Select";
    padding: .5rem 1rem;
    line-height: 1.5;
    color: #ffffff;
    background-color: #f58018;
    border: .075rem solid #ddd;
    border-radius: 0 .25rem .25rem 0;
}

#identify-popup .identify-popup-col #identify-popup-content {
	align-items: flex-start;
	box-sizing: border-box;
	display: flex;
	height: 250px;
	justify-content: center;
	margin-top: 20px;
	overflow: auto;
	padding-right: 20px;
	width: 100%;
}

@media only screen and (min-width: 768px){
	#identify-popup .identify-popup-col #identify-popup-content {
		align-items: center;
		height: 500px;
		margin-top: 0;
		width: 94%;
	}
}

#identify-popup .identify-popup-col #identify-popup-content p {
	color: #999999;
	max-width: 50%;
	text-align: center;
}

#identify-popup .identify-popup-col #identify-popup-content.result .placeholder {
    display: none;
}

#identify-popup .identify-popup-col #identify-popup-content.result ul {
	align-self: flex-start;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#identify-popup .identify-popup-col #identify-popup-content.result ul li {
    align-items: flex-start;
    display: flex;
    margin-bottom: 10px;
}

#identify-popup .identify-popup-col #identify-popup-content.result ul li .ident-prob {
	margin-right: 10px;
	width: 20%;
}

@media only screen and (min-width: 768px){
	#identify-popup .identify-popup-col #identify-popup-content.result ul li .ident-prob {
		margin-right: 20px;
		width: 12%;
	}
}

#identify-popup .identify-popup-col #identify-popup-content.result ul li img {
	flex-grow: 1;
	margin-right: 10px;
    width: 64px;
}

#identify-popup .identify-popup-col #identify-popup-content.result ul li .ident-info {
	flex-grow: 2;
	width: calc(80% - 64px);
}

@media only screen and (min-width: 768px){
	#identify-popup .identify-popup-col #identify-popup-content.result ul li .ident-info {
		width: calc(88% - 84px);		
	}
}

#identify-popup .identify-popup-col #identify-popup-content.result ul li .ident-info h4 {
	margin: 0;
}

#identify-popup .identify-popup-col #identify-popup-content.result ul li .ident-info .common_names {
	line-height: 1.25;
	margin: 0;
	max-width: 100%;
	text-align: left;
}

@media only screen and (min-width: 768px){
	#identify-popup {
		flex-direction: row;
	}

	#identify-popup .identify-popup-col {
		flex: 0 0 48%;
		max-width: 48%;
	}
}