@font-face {
	font-family: Font-1;
	src: url('fonts/1.otf');
}

@font-face {
	font-family: Font-2;
	src: url('fonts/2.otf');
}

:root {
    --card-width: 22vw;
    --card-height: 35.6vw;
    --duration: 0.7s;
    font-family: helvetica, Arial, Noto Sans, sans-serif;
}
.card.center:after, p#result-text:after {
    box-shadow: inset 0 0 0px 0.9vw rgb(255 255 255);
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 7px;
}
p#result-text {
    position: relative;
}
body {
	background: url(images/fon-desc.jpg);
	background-size: cover;
	margin: 0;
	overflow: hidden;
}

#card-stack {
	position: relative;
	width: 100vw;
	height: 100vh;
}

.card {
	position: absolute;
	top: 20%;
	transform-origin: center center;
	/*border: 1px solid #555;*/
	width: var(--card-width);
	height: var(--card-height);
	transition: all var(--duration) ease-in-out;
	border-radius: 10px;
	background-size: contain;
    background-position: center;
	display: none;
	box-shadow: 0px 0px 2px #000;
	background-color: white;
	user-select: none;	
	border: 1px solid #ddd;
	box-shadow: 0px 0px 2px #666;	
	background-image: url(images/image.jpg);
}



.card.active {
	cursor: pointer;
}

.card.active:hover {
	border-color: white;
	box-shadow: 0px 0px 3px #fff, 0px 0px 6px #fff, 0px 0px 10px #aaa;
}

.card img {
	width: 100%;
	height: 100%;
	border-radius: 10px;
}

.card div {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%,-50%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card-result.card div p {
    background: #E72487;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: inset 0 0 0px 0.7vw rgb(255 255 255);
    padding: 1vw;
    box-sizing: border-box;
}


.card.left {
	left: calc(-1 * var(--card-width) * 2);
}

.card.right {
	left: calc(100vw + var(--card-width) * 2);
}

.card.center {
	top: 50%;
	left: 50%;
	transition: all var(--duration) ease-in-out;	
}

.card h1 {
	text-align: center;
	font-family: Font-1;
	color: #fff;
	margin: 0;
}

.card p {
	padding-left: 15px;
	padding-right: 15px;
	padding-top: 20px;
	font-family: Font-2;
	font-size: 11px;
	color: white;
}
.card p span {
    display: block;
    font-size: 0.9vw;
    text-align: center;
}

#arrow {
	background-image: url(images/arrow.png);
	animation: spin 1.2s infinite linear;
	position: absolute;
	left: 50vw;
	margin-left: -25px;
	width: 50px;
	height: 50px;
	bottom: 12%;
	background-size: cover;
	display: none;
}

.btn {
    width: 7vw;
    height: 7vw;
    border: 0px solid #666;
    border-radius: 100%;
    position: absolute;
    bottom: 45%;
    left: 50%;
    font-size: 1.3vw;
    cursor: pointer;
    display: block;
    transition: all var(--duration) ease-in-out;
    font-family: Font-2;
    background-color: white;
    display: none;
}

.btn:hover {
	background-color: #4ca4ff;
}

.btn:disabled {
	cursor: default;
	opacity: 0.5;
}

#false-btn {
	margin-left: calc(-30% - 3.5vw);
}

#true-btn {
	margin-left: calc(30% - 3.5vw);
}

.is-true {
	color: #fff;
	background-color: #090!important;
	opacity: 1 !important;		
}

.is-false {
	color: #fff;
	background-color: #b00!important;
	opacity: 1 !important;		
}

@keyframes spin {
	0% {
		transform: translate3d(0, -5%, 0);
	}
	50% {
		transform: translate3d(0, 5%, 0);
	}
	100% {
		transform: translate3d(0, -5%, 0);
	}
}
.share {
    text-align: center;
    background: #e72487;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0px 0px 2px #666;
    margin: 0 0 10px 0;
}
.share h4 {
    margin: 0 0 1vh;
    color: #fff;
    font-size: 1vw;
}
#form {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--card-width);
    height: var(--card-height);
    display: none;
    transform-origin: center center;
}
div#form img {
    width: 100%;
    border: 1px solid #ddd;
    box-shadow: 0px 0px 2px #666;
    border-radius: 10px;
}
#form hr {
	opacity: 0.85;
	margin: 30px;
	height: 1px;
	padding: 0;
	background: #888;
	border: none;
}

#form h2 {
    padding-bottom: 5px;
    text-align: center;
    background: #E72487;
    color: #fff;
    border-radius: 1vh;
    padding: 0.5vh;
    box-shadow: 0px 0px 2px #666;
    margin: 0 0 1vh 0;
    font-size: 1vw;
}
.ya-share2__container_size_m .ya-share2__badge .ya-share2__icon {
    height: 1.5vw!important;
    width: 1.5vw!important;
    background-size: 1.5vw 1.5vw!important;
}

#form form {
	padding-top: 1px;
	padding-bottom: 0px;
}

#form form input {
	padding: 8px;
	border-radius: 6px;
	border: 1px solid #666;
	width: 96%;
	font-family: helvetica, Arial, Noto Sans, sans-serif;
	font-size: 15px;
	background-color: #fafafa;
	outline: none;
	color: black;
}

#form form input::placeholder { 
	color: #222; 
}

#form form button {
	font-family: helvetica, Arial, Noto Sans, sans-serif;
	padding: 10px;	
	font-size: 15px;
	padding-left: 20px;
	padding-right: 20px;
	background-color: #111;
	color: #eee;
	border-radius: 15px;
	border: none;
	cursor: pointer;
	margin-top: 5px;
}

#form form button:hover {
	opacity: 0.9;
	transition: all 0.2s ease-in-out;	
}

#form #back {
	text-align: center;
	width: 96%;
	position: absolute;
	bottom: -60px;
	color: #000;
	display: none;
}
#form #back a {
    text-decoration: auto;
    background: #00ceff;
    padding: 10px;
    border-radius: 15px;
    color: #fff;
    font-size: 120%;
}

#form #back a:hover {
    background: #6aaf00;
}

#form div.complete {
	display: none;
}

span.next-btn {
    margin: 1vh auto 0;
    width: 50%;
    background: #000;
    font-size: 1vw !important;
    padding: 0.4vh 1vh;
    border-radius: 1vw;
    box-shadow: 4px 4px 0px #0000005e;
    transition: all .5s ease 0s;
    -webkit-transition: all .5s ease 0s;
    -moz-transition: all .5s ease 0s;
    -o-transition: all .5s ease 0s;
}
span.next-btn:hover {
    transform:  scale(1.05);
}
.card-result.card div p h2 {
    margin: 0 0;
}

@media (max-width:600px){
:root {
	--card-width: 280px;
	--card-height: 450px;
	--duration: 1s;
	font-family: helvetica, Arial, Noto Sans, sans-serif;	
}
#true-btn {
    margin-left: calc(30% - 50px);
}
#false-btn {
    margin-left: calc(-30% - 50px);
}
.card.center:after, p#result-text:after {
box-shadow: inset 0 0 0px 11px rgb(255 255 255);}
.btn {
    bottom: 5%;
    width: 100px;
    height: 100px;
    font-size: 18px;
}
.card p span {
    font-size: 110%;
}
span.next-btn, .share h4 {
	font-size: 18px !important;
}
.ya-share2__container_size_m .ya-share2__badge .ya-share2__icon {
    height: 24px !important;
    width: 24px!important;
    background-size: 24px 24px!important;
}
.card-result.card div p {
    background: #E72487;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 13px;
    box-shadow: inset 0 0 0px 10px rgb(255 255 255);
    border-radius: 8px;
}
	#card-stack {
		overflow: hidden;
	}
	body {
	background: url(images/fon1.jpg);
}
#form h2 {
	font-size: 18px;
}
	.card.center {
    top: 40%;
    left: 50%;
}
	div#form {
    width: 70%;
    position: absolute;
    top: 37%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%,-50%);
    margin-left: 0;
}
.card p {
    font-size: 2.6vw;
}
	
}

div#card-9 {
	background-image: url(images/2.gif?v=1);
}
div#card-8 {
	background-image: url(images/3.gif?v=1);
}
div#card-7 {
	background-image: url(images/4.gif?v=1);
}
div#card-6 {
	background-image: url(images/5.gif?v=1);
}
div#card-5 {
	background-image: url(images/6.gif?v=1);
}
div#card-4 {
	background-image: url(images/7.gif?v=1);
}
div#card-3 {
	background-image: url(images/8.gif?v=1);
}
div#card-2 {
	background-image: url(images/9.gif?v=1);
}
div#card-1 {
	background-image: url(images/10.gif?v=1);
}
div#card-0 {
	background-image: url(images/11.gif?v=1);
}

.card-result {
	background-image: url(images/fon.jpg) !important;
}