.modal-shadow {
    display: none;
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    height: 110vh;
    width: 100%;
    background: rgba(0, 0, 0, 0.7)
}

.modal-wrap {
    display: none;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    pointer-events: none;
    text-align: center;
    align-items: center;
    justify-content: center
}

.modal-wrap .css-modal {
    display: inline-block;
    background-color: #fff;
    text-align: left;
    min-height: 100px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
    pointer-events: all;
    border: 1px solid transparent;
    min-width: 300px;
    max-width: 90%;
    border-radius: 0;
    padding: 1px;
		position: relative;
}

.modal-no-height .modal-wrap .css-modal {
 	width: 90vw;
	height: 90vh;
	max-width: 90%;
	max-height: 600px;
}

.flirt-u-top-quest.modal-wrap .css-modal {
    max-width: 60%;
	max-height: 600px;
    overflow: auto;
}

.modal-control:checked ~ .modal-shadow,
.animate-from-top .modal-control:checked ~ .modal-shadow,
.modal-control:checked ~ .modal-wrap {
    display: flex;
}

.modal-header {
    padding: 0 10px 0px 10px;
    background: #eee;
    height: 40px;
    line-height: 40px;
    position: relative;
    font-size: calc(1em + .2vw);
    border-radius: 0;
}

.close-modal {
    cursor: pointer;
    width: 40px;
    height: 40px;
    text-align: center;
    position: absolute;
    top: 0;
    right: 0
}

.close-modal-v2 {
	cursor: pointer;
    width: 36px;
    height: 36px;
    text-align: center;
    position: absolute;
	background-color: #999;
	border-radius: 36px;
	color: #fff;
	line-height: 36px;
	top: -13px;
    right: -13px;
	z-index: 2;
}

.close-modal:hover {
    opacity: .8
}

.modal-body {
    padding: 20px
}

#fu-top-questions .modal-body {
    max-height: 500px;
    overflow: auto;
}

#fu-top-questions .modal-wrap .css-modal {
    max-width: 60%;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin: 0px 2px 0px 2px;
    box-sizing: border-box;
    text-align: center
}

.modal-footer .btn {
    margin-bottom: 0px;
    margin-top: 0px
}

.modal-top .modal-wrap {
    align-items: flex-start
}

.animate-from-top .modal-control ~ .modal-wrap {
    margin-top: -100%;
    transition: margin .3s ease-out;
    display: flex;
}

.animate-from-top .modal-control:checked ~ .modal-wrap {
    margin-top: 0%;
    transition: margin .3s ease-out;
    display: flex;
}

.animate-zoom .modal-control ~ .modal-wrap {
    transition: transform .3s ease-out;
    transform: scale(0);
    display: flex;
}

.animate-zoom .modal-control:checked ~ .modal-wrap {
    transition: transform .3s ease-in;
    transform: scale(1);
}


/* Add Model*/
.add-model-modal {
	padding: 30px;
	min-width: 700px;
}

.add-model-header {
	text-align: center;
}

.add-model-header i {
	color: #383838;
	font-size: calc(22px + 5vw);
}

.add-model-header div {
	color: #383838;
	font-size: calc(18px + .6vw);
	font-weight: 400;
	margin: 8px 0px 0px 0px;
}

.add-model-header span {
	color: #383838;
	font-size: calc(16px + .1vw);
	display: block;
	padding-bottom: 10px;
	border-bottom: 2px solid rgba(150,150,150,.5);
}

.iframe-modal iframe {
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	padding: 10px;
}

.iframe-modal {
	width: 100%;
	height: 96%;
	position: relative;
}

.iframe-modal iframe {
	width: 100%;
	height: 96%;
	position: absolute;
	top: 0;
	left: 0;
}

.is-modal .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.modal-wrap .css-modal.modal-align-bottom {
    align-self: flex-end;
    margin-bottom: 200px;
}

/* #photoLoadingSpinner is used in bio-update-photo.tpl*/
#photoLoadingSpinner {
    display: block;
    margin: 1em auto;
    -webkit-animation: spin .5s linear infinite;
    animation: spin .5s linear infinite;
}

@media all and (max-width: 1280px) {

	#fu-top-questions .modal-wrap .css-modal {
		max-width: 80%;
	}

}

@media all and (max-width: 1024px) {
	
    .modal-shadow {
        height: 120%
    }
	
	.add-model-modal {
		min-width: 0;
		padding: 10px;
	}
	
	.add-model-modal .label-text {
		display: none;
	}
	
	.css-modal {
		width: 90%;
	}
	
	.add-model-modal .btn.btn-link.sm-link {
		font-size: 10px;
		margin-top: 5px;
	}
	
	.add-model-header span {
		font-size: calc(14px + .1vw);
	}

}