@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Victor+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Mono&display=swap');

html, body {
	height: 88vh;
	width: 100%;
	background: #081119;
	background-image: url(../../slagalica/s6-bckg.jpg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	
}

.bodi-1 {
	background: rgb(25, 25, 25);
	background: linear-gradient(90deg, rgba(25, 25, 25, 1) 24%, rgba(39, 66, 201, 1) 100%);
}

#slagalica1 {
	background: #2742C9;
	border-radius: 12px;
	position: relative;
	z-index: 6;
}

/* Puzzle frame styling */
.puzzle-frame {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.puzzle-row {
	display: flex;
	width: 100%;
}

.puzzle-cell {
	flex: 1;
	position: relative;
	/* border: 2px dashed rgba(255, 255, 255, 0.6); */
	margin: 2px;
	border-radius: 8px;
	min-height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.puzzle-cell:hover {
	border-color: rgba(255, 255, 255, 0.9);
	background-color: rgba(255, 255, 255, 0.1);
}

.puzzle-cell img {
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
}

#red-1 {
	position: relative;
	z-index: 12;	
}

#red-1 img {
	width: 70%;
	height: auto;
	margin-left: auto;
	margin-right: auto;
	bottom: 0;
	left: 0;
	right: 0;
	position: absolute;	
}

#red-1 div {
	opacity: 0;
	visibility: hidden;
}

.col-2 {
	position: relative;
}

#red-2 img {
	width: 90%;
	height: auto;
	position: absolute;
}

#r1 img {
	right: 0;
	bottom: 0;
	position: absolute;
	margin-bottom: -10%;
	margin-right: -25%;
	z-index: 66;
}

#r4 img {
	right: 0;
	top: 0;
	position: absolute;
	margin-top: -10%;
	margin-right: -25%;
	z-index: 66;
}

#r2 img {
	left: 0;
	right: 0;
	top: 0;
	position: absolute;
	margin-top: -10%;
	margin-left: auto;
	margin-right: auto;
	z-index: 66;
}

#r5 img {
	left: 0;
	right: 0;
	bottom: 0;
	position: absolute;
	margin-bottom: -10%;
	margin-left: auto;
	margin-right: auto;
	z-index: 66;
}

#r3 img {
	left: 0;
	bottom: 0;
	position: absolute;
	margin-bottom: -10%;
	margin-left: -25%;
	z-index: 66;
}

#r6 img {
	left: 0;
	top: 0;
	position: absolute;
	margin-top: -10%;
	margin-left: -25%;
	z-index: 66;
}

#spare-block img {
	width: 44%;
	height: auto;
	margin-left: auto;
	margin-right: auto;
	left: 0;
	right: 0;
	position: absolute;
	margin-top: 20px;
}

#spare-block {
	border-radius: 20px;
	border: 1px dashed #AF2655;
	background: rgba(55,58,64,.5);
	background-image: url(../../slagalica/puzzle-man.png);
	background-repeat: no-repeat;
	background-position: left bottom;
	background-size: 46% auto;
}

#block-izbor {
	border-radius: 20px;
	border: 1px dashed #fff;
	background-image: url(../../slagalica/podloga-plava-bckg.png);
	background-repeat: no-repeat;
	background-position: center 30px;
	background-size: 90% auto;
}

.swirl-in-fwd {
	-webkit-animation: swirl-in-fwd 0.6s ease-out both;
	animation: swirl-in-fwd 0.6s ease-out both;	
}

@-webkit-keyframes swirl-in-fwd {
	0% {
		-webkit-transform: rotate(-540deg) scale(0);
		transform: rotate(-540deg) scale(0);
		opacity: 0;
		visibility: visible;
	}

	100% {
		-webkit-transform: rotate(0) scale(1);
		transform: rotate(0) scale(1);
		opacity: 1;
		visibility: visible;
	}

}

@keyframes swirl-in-fwd {
	0% {
		-webkit-transform: rotate(-540deg) scale(0);
		transform: rotate(-540deg) scale(0);
		opacity: 0;
		visibility: visible;
	}

	100% {
		-webkit-transform: rotate(0) scale(1);
		transform: rotate(0) scale(1);
		opacity: 1;
		visibility: visible;
	}

}

body::-webkit-scrollbar {
	display: none;
}

.bounce-in-fwd {
	-webkit-animation: bounce-in-fwd 1.1s both;
	animation: bounce-in-fwd 1.1s both;
}

@-webkit-keyframes bounce-in-fwd {
	0% {
		-webkit-transform: scale(0);
		transform: scale(0);
		-webkit-animation-timing-function: ease-in;
		animation-timing-function: ease-in;
		opacity: 0;
	}

	38% {
		-webkit-transform: scale(1);
		transform: scale(1);
		-webkit-animation-timing-function: ease-out;
		animation-timing-function: ease-out;
		opacity: 1;
	}

	55% {
		-webkit-transform: scale(0.7);
		transform: scale(0.7);
		-webkit-animation-timing-function: ease-in;
		animation-timing-function: ease-in;
	}

	72% {
		-webkit-transform: scale(1);
		transform: scale(1);
		-webkit-animation-timing-function: ease-out;
		animation-timing-function: ease-out;
	}

	81% {
		-webkit-transform: scale(0.84);
		transform: scale(0.84);
		-webkit-animation-timing-function: ease-in;
		animation-timing-function: ease-in;
	}

	89% {
		-webkit-transform: scale(1);
		transform: scale(1);
		-webkit-animation-timing-function: ease-out;
		animation-timing-function: ease-out;
	}

	95% {
		-webkit-transform: scale(0.95);
		transform: scale(0.95);
		-webkit-animation-timing-function: ease-in;
		animation-timing-function: ease-in;
	}

	100% {
		-webkit-transform: scale(1);
		transform: scale(1);
		-webkit-animation-timing-function: ease-out;
		animation-timing-function: ease-out;
	}

}

@keyframes bounce-in-fwd {
	0% {
		-webkit-transform: scale(0);
		transform: scale(0);
		-webkit-animation-timing-function: ease-in;
		animation-timing-function: ease-in;
		opacity: 0;
	}

	38% {
		-webkit-transform: scale(1);
		transform: scale(1);
		-webkit-animation-timing-function: ease-out;
		animation-timing-function: ease-out;
		opacity: 1;
	}

	55% {
		-webkit-transform: scale(0.7);
		transform: scale(0.7);
		-webkit-animation-timing-function: ease-in;
		animation-timing-function: ease-in;
	}

	72% {
		-webkit-transform: scale(1);
		transform: scale(1);
		-webkit-animation-timing-function: ease-out;
		animation-timing-function: ease-out;
	}

	81% {
		-webkit-transform: scale(0.84);
		transform: scale(0.84);
		-webkit-animation-timing-function: ease-in;
		animation-timing-function: ease-in;
	}

	89% {
		-webkit-transform: scale(1);
		transform: scale(1);
		-webkit-animation-timing-function: ease-out;
		animation-timing-function: ease-out;
	}

	95% {
		-webkit-transform: scale(0.95);
		transform: scale(0.95);
		-webkit-animation-timing-function: ease-in;
		animation-timing-function: ease-in;
	}

	100% {
		-webkit-transform: scale(1);
		transform: scale(1);
		-webkit-animation-timing-function: ease-out;
		animation-timing-function: ease-out;
	}

}

@media (max-width:575px) {
	#greska {
		width: 370px !important;
		padding-top: 40px !important;		
	}

	#greska p {
		font-size: 13px !important;
	}

	#greska_slusl {
		width: 370px !important;
		padding-top: 40px !important;
	}

	#greska_slusl p {
		font-size: 13px !important;
	}

	#cestitka {
		width: 370px !important;
		padding-top: 40px !important;		
	}

	#cestitka p {
		font-size: 13px !important;
	}

	.platz img {
		width: 68px !important;
		height: 46px !important;
	}

	.help-div-do-dont {
		position: absolute;
		bottom: 15px !important;
		right: 0;
		margin-right: -5px !important;		
		width: 100px !important;
		height: 100px !important;
		display: none;
	}

	#rimg {
		position: absolute;
		top: 0;
		margin-left: auto;
		margin-right: auto;
		left: 0;
		right: 0;
		margin-top: -62% !important;
		width: 45%;
		height: auto;
		display: none;
	}	

	#kraj-nigee {
		transform: scale(0.9);
		top: -28px;
	}

	#kraj-nigee img {
		top: -46px;
	}

	.izbor h1 {
		font-size: 16px;
		font-family: 'Nunito Sans', sans-serif;
		font-weight: 500;
	}

	.izbor {

		/*display: flex;*/
		position: absolute;
		bottom: 0;		/*width: 100%;*/
		width: 12px;
		margin-bottom: 3px;
		left: 0;
		right: 0;
		margin-left: auto;
		margin-right: auto;		/*align-items: center;
		justify-content: center;*/
	}

	.button {
		position: relative;
		padding: 10px 20px;
		font-size: 0.8rem;
		color: var(--color);
		border: 2px solid rgba(0, 0, 0, 0.5);
		border-radius: 4px;
		text-shadow: 0 0 15px var(--color);
		text-decoration: none;
		text-transform: uppercase;
		letter-spacing: 0.1rem;
		transition: 0.5s;
		z-index: 1;
		transform: scale(0.5);
	}

	.container {
		width: 80%;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-wrap: wrap;
		gap: 120px;
		background: none;
		top: 0;
		margin-top: -8%;
	}

	#help-me {
		position: relative;
		background: #444;
		color: #fff;
		text-decoration: none;
		text-transform: uppercase;
		border: none;
		letter-spacing: 0.1rem;
		font-size: 1rem;
		padding: 0.5rem 1rem;
		transition: 0.2s;
		right: 0;
		left: 0;
		top: 0;
		margin-right: auto;
		margin-left: auto;
		border-radius: 0;
		width: 100%;
	}

	#help-me:hover {
		letter-spacing: 0.15rem;
		padding: 0.6rem 1.2rem;
		background: var(--clr);
		color: var(--clr);  /* box-shadow: 0 0 35px var(--clr); */
		animation: box 3s infinite;
	}

	#uputstvo-6 {
		display: none;
	}

}

@media (min-width:576px) and (max-width:767px) {
	.help-div-do-dont {
		position: absolute;
		bottom: 15px !important;
		right: 0;
		margin-right: -5px !important;		
		width: 110px !important;
		height: 110px !important;
		display: none;
	}

	#rimg {
		position: absolute;
		top: 0;
		margin-left: auto;
		margin-right: auto;
		left: 0;
		right: 0;
		margin-top: -25% !important;
		width: 35%;
		height: auto;
		display: none;
	}	

	.izbor h1 {
		font-size: 18px;
		font-family: 'Nunito Sans', sans-serif;
		font-weight: 500;
	}

	.izbor {

		/*display: flex;*/
		position: absolute;
		bottom: 0;		/*width: 100%;*/
		width: 12px;
		margin-bottom: 3px;
		left: 0;
		right: 0;
		margin-left: auto;
		margin-right: auto;		/*align-items: center;
		justify-content: center;*/
	}

	.button {
		position: relative;
		padding: 10px 20px;
		font-size: 0.9rem;
		color: var(--color);
		border: 2px solid rgba(0, 0, 0, 0.5);
		border-radius: 4px;
		text-shadow: 0 0 15px var(--color);
		text-decoration: none;
		text-transform: uppercase;
		letter-spacing: 0.1rem;
		transition: 0.5s;
		z-index: 1;
		transform: scale(0.6);
	}

	.container {
		width: 80%;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-wrap: wrap;
		gap: 120px;
		background: none;
		top: 0;
		margin-top: -8%;
	}

	#help-me {
		position: relative;
		background: #444;
		color: #fff;
		text-decoration: none;
		text-transform: uppercase;
		border: none;
		letter-spacing: 0.1rem;
		font-size: 1rem;
		padding: 1rem 2rem;
		transition: 0.2s;
		right: 0;
		left: 0;
		top: 0;
		margin-right: auto;
		margin-left: auto;
		border-radius: 0;
		width: 100%;
	}

	#help-me:hover {
		letter-spacing: 0.2rem;
		padding: 1rem 2.2rem;
		background: var(--clr);
		color: var(--clr);  /* box-shadow: 0 0 35px var(--clr); */
		animation: box 3s infinite;
	}

	#uputstvo-6 {
		display: none;
	}

}

@media (min-width:768px) and (max-width:991px) {
	#rimg {
		position: absolute;
		top: 0;
		margin-left: auto;
		margin-right: auto;
		left: 0;
		right: 0;
		margin-top: -27% !important;
		width: 30%;
		height: auto;
		display: none;
	}	

	.izbor h1 {
		font-size: 20px;
		font-family: 'Nunito Sans', sans-serif;
		font-weight: 600;
	}

	.izbor {
		display: flex;
		bottom: 30px;
		width: 100%;
		margin-bottom: 0;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
	}

	.flex-item {
		padding: 5px;
		width: 15px;
		height: 20px;
		margin: -46px 10px 10px 10px;
		line-height: 15px;
		text-align: center;
	}

	.button {
		position: relative;
		padding: 12px 24px;
		font-size: 1.1rem;
		color: var(--color);
		border: 2px solid rgba(0, 0, 0, 0.5);
		border-radius: 4px;
		text-shadow: 0 0 15px var(--color);
		text-decoration: none;
		text-transform: uppercase;
		letter-spacing: 0.1rem;
		transition: 0.5s;
		z-index: 1;
		transform: scale(0.85);
	}

	.container {
		width: 100%;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-wrap: wrap;
		gap: 120px;
		background: none;
		top: 0;
		margin-top: -8%;
	}

	#help-me {
		position: relative;
		background: #444;
		color: #fff;
		text-decoration: none;
		text-transform: uppercase;
		border: none;
		letter-spacing: 0.1rem;
		font-size: 1rem;
		padding: 1rem 2rem;
		transition: 0.2s;
		right: 0;
		left: 0;
		top: 0;
		margin-right: auto;
		margin-left: auto;
		border-radius: 0;
		width: 90%;
	}

	#help-me:hover {
		letter-spacing: 0.2rem;
		padding: 1rem 2.3rem;
		background: var(--clr);
		color: var(--clr);  /* box-shadow: 0 0 35px var(--clr); */
		animation: box 3s infinite;
	}

	#uputstvo-6 {
		display: none;
	}

}

@media (min-width:992px) and (max-width:1199px) {
	.izbor h1 {
		font-size: 22px;
		font-family: 'Nunito Sans', sans-serif;
		font-weight: 500;
	}

	.izbor {
		display: flex;
		bottom: 30px;
		width: 100%;
		margin-bottom: 14px;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
	}

	.flex-item {
		padding: 5px;
		width: 20px;
		height: 20px;
		margin: -46px 10px 10px 10px;
		line-height: 20px;
		text-align: center;
	}

	.button {
		position: relative;
		padding: 12px 24px;
		font-size: 1.1rem;
		color: var(--color);
		border: 2px solid rgba(0, 0, 0, 0.5);
		border-radius: 4px;
		text-shadow: 0 0 15px var(--color);
		text-decoration: none;
		text-transform: uppercase;
		letter-spacing: 0.1rem;
		transition: 0.5s;
		z-index: 1;
	}

	.container {
		width: 100%;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-wrap: wrap;
		gap: 120px;
		background: none;
		top: 0;
		margin-top: -8%;
	}

	#help-me {
		position: relative;
		background: #444;
		color: #fff;
		text-decoration: none;
		text-transform: uppercase;
		border: none;
		letter-spacing: 0.1rem;
		font-size: 1rem;
		padding: 1rem 2rem;
		transition: 0.2s;
		right: 0;
		left: 0;
		top: 0;
		margin-right: auto;
		margin-left: auto;
		border-radius: 0;
		width: 50%;
	}

	#help-me:hover {
		letter-spacing: 0.2rem;
		padding: 1rem 2.5rem;
		background: var(--clr);
		color: var(--clr);  /* box-shadow: 0 0 35px var(--clr); */
		animation: box 3s infinite;
	}

	#uputstvo-6 {
		display: none;
	}

}

@media (min-width:1200px) {
	.izbor h1 {
		font-size: 24px;
		font-family: 'Nunito Sans', sans-serif;
		font-weight: 500;
	}

	.izbor {
		display: flex;
		bottom: 30px;
		width: 100%;
		margin-bottom: 14px;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
	}

	.flex-item {
		padding: 5px;
		width: 20px;
		height: 20px;
		margin: -46px 10px 10px 10px;
		line-height: 20px;
		text-align: center;
	}

	.button {
		position: relative;
		padding: 12px 24px;
		font-size: 1.1rem;
		color: var(--color);
		border: 2px solid rgba(0, 0, 0, 0.5);
		border-radius: 4px;
		text-shadow: 0 0 15px var(--color);
		text-decoration: none;
		text-transform: uppercase;
		letter-spacing: 0.1rem;
		transition: 0.5s;
		z-index: 1;
	}

	.container {
		width: 100%;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-wrap: wrap;
		gap: 120px;
		background: none;
		top: 0;
		margin-top: -8%;
	}

	#help-me {
		position: relative;
		background: #444;
		color: #fff;
		text-decoration: none;
		text-transform: uppercase;
		border: none;
		letter-spacing: 0.1rem;
		font-size: 1rem;
		padding: 1rem 2rem;
		transition: 0.2s;
		right: 0;
		left: 0;
		top: 0;
		margin-right: auto;
		margin-left: auto;
		border-radius: 0;
		width: 50%;
	}

	#help-me:hover {
		letter-spacing: 0.2rem;
		padding: 1rem 3rem;
		background: var(--clr);
		color: var(--clr);  /* box-shadow: 0 0 35px var(--clr); */
		animation: box 3s infinite;
	}

	.upinit {
		display: block;
		visibility: hidden;
		opacity: 0;
		animation: uputstvo 2s ease both;
	}

	@keyframes uputstvo {
		from {
			visibility: hidden;
			opacity: 0;
		}

		to {
			visibility: visible;
			opacity: 1;
		}

	}

}

#rimg {
	position: absolute;
	top: 0;
	margin-left: auto;
	margin-right: auto;
	left: 0;
	right: 0;
	margin-top: -30%;
	display: none;
}

#p1 {
	color: #314dd9;
}

#p2 {
	color: #26bf42;
}

#p3 {
	color: #daf00e;
}

#p4 {
	color: #ff7100;
}

#p5 {
	color: #cb0000;
}

#p6 {
	color: #a3049c;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
}

.button:hover {
	color: #fff;
	border: 2px solid rgba(0, 0, 0, 0);
	box-shadow: 0 0 0px var(--color);
}

.button::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color);
	z-index: -1;
	transform: scale(0);
	transition: 0.5s;
}

.button:hover::before {
	transform: scale(1);
	transition-delay: 0.5s;
	box-shadow: 0 0 10px var(--color), 0 0 30px var(--color), 0 0 60px var(--color);
}

.button span {
	position: absolute;
	background: var(--color);
	pointer-events: none;
	border-radius: 2px;
	box-shadow: 0 0 10px var(--color), 0 0 20px var(--color), 0 0 30px var(--color), 0 0 50px var(--color), 0 0 100px var(--color);
	transition: 0.5s ease-in-out;
	transition-delay: 0.25s;
}

.button:hover span {
	opacity: 0;
	transition-delay: 0s;
}

.button span:nth-child(1), .button span:nth-child(3) {
	width: 40px;
	height: 4px;
}

.button:hover span:nth-child(1), .button:hover span:nth-child(3) {
	transform: translateX(0);
}

.button span:nth-child(2), .button span:nth-child(4) {
	width: 4px;
	height: 40px;
}

.button:hover span:nth-child(1), .button:hover span:nth-child(3) {
	transform: translateY(0);
}

.button span:nth-child(1) {
	top: calc(50% - 2px);
	left: -50px;
	transform-origin: left;
}

.button:hover span:nth-child(1) {
	left: 50%;
}

.button span:nth-child(3) {
	top: calc(50% - 2px);
	right: -50px;
	transform-origin: right;
}

.button:hover span:nth-child(3) {
	right: 50%;
}

.button span:nth-child(2) {
	left: calc(50% - 2px);
	top: -50px;
	transform-origin: top;
}

.button:hover span:nth-child(2) {
	top: 50%;
}

.button span:nth-child(4) {
	left: calc(50% - 2px);
	bottom: -50px;
	transform-origin: bottom;
}

.button:hover span:nth-child(4) {
	bottom: 50%;
}

.button:hover {
	text-decoration: none;
}

.help-div {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;
	justify-content: center;
}

#help-me::before {
	content: "";
	position: absolute;
	inset: 2px;
	background: #272822;
}

#help-me span {
	position: relative;
	z-index: 1;
	left: 0;
	right: 0;
}

#help-me i {
	position: absolute;
	inset: 0;
	display: block;
}

#help-me i::before {
	content: "";
	position: absolute;
	width: 10px;
	height: 2px;
	left: 80%;
	top: -2px;
	border: 2px solid var(--clr);
	background: #272822;
	transition: 0.2s;
}

#help-me:hover i::before {
	width: 15px;
	left: 20%;
	animation: move 3s infinite;
}

#help-me i::after {
	content: "";
	position: absolute;
	width: 10px;
	height: 2px;
	left: 20%;
	bottom: -2px;
	border: 2px solid var(--clr);
	background: #272822;
	transition: 0.2s;
}

#help-me:hover i::after {
	width: 15px;
	left: 80%;
	animation: move 3s infinite;
}

@keyframes move {
	0% {
		transform: translateX(0);
	}

	50% {
		transform: translateX(5px);
	}

	100% {
		transform: translateX(0);
	}

}

@keyframes box {
	0% {
		box-shadow: 0 0 #27272c;
	}

	50% {
		box-shadow: 0 0 25px var(--clr);
	}

	100% {
		box-shadow: 0 0 #27272c;
	}

}

.help-div-do-dont {
	position: absolute;
	bottom: 20px;
	right: 0;
	margin-right: 10px;
	width: 120px;
	height: 120px;
	display: none;
}

.help-div-do-dont img {
	width: 100% !important;
	height: auto !important;
}

#do {
	display: none;
}

#dont {
	display: none;
}

#slagalica1 {
	background-image: url(../../slagalica/uputstvo-bckg-transp.png);
	background-repeat: no-repeat;
	background-position: 0 center;
	background-size: cover;
}

.slide-in-left-posveta {
	-webkit-animation: slide-in-left 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
	animation: slide-in-left 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

@keyframes slide-in-left {
	0% {
		-webkit-transform: translateX(-360px);
		transform: translateX(-360px);
		opacity: 0;
	}

	90% {
		opacity: 0.9;
	}

	100% {
		-webkit-transform: translateX(0);
		transform: translateX(0);
		opacity: 1;
	}

}

.fade-out-bck {
	-webkit-animation: fade-out-bck 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	animation: fade-out-bck 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes fade-out-bck {
	0% {
		-webkit-transform: translateZ(0);
		transform: translateZ(0);
		opacity: 1;
	}

	100% {
		-webkit-transform: translateZ(-80px);
		transform: translateZ(-80px);
		opacity: 0;
	}

}

@keyframes fade-out-bck {
	0% {
		-webkit-transform: translateZ(0);
		transform: translateZ(0);
		opacity: 1;
	}

	100% {
		-webkit-transform: translateZ(-80px);
		transform: translateZ(-80px);
		opacity: 0;
	}

}

@media (min-width:1200px) {
	.posveta {
		display: block;
	}

}

@media (max-width:1199px) {
	.puzzle-cell {
		border: 2px dashed rgba(255, 255, 255, 0.6) !important;
	}
	
	.posveta {
		display: none;
	}

	/*.scene {
		display: none !important;
	}*/

	html, body {
		overflow-x: hidden;
		max-height: 100%;
	}

	.radio-group {
		display: none !important;
	}

}

@media (max-width:1350px) {
	/* #red-2 {
		height: 75vh !important;
	} */

	.target {
		width: 56px !important;
		height: 51px !important;
	}
}

/* Mobile touch optimizations */
@media (max-width: 767px) {
	.puzzle-cell {
		min-height: 60px;
		margin: 1px;
		border-width: 1px;
	}
	
	#red-1 img {
		width: 60%;
		height: auto;
	}
	
	#red-2 img {
		width: 80%;
		height: auto;
	}
	
	/* Improve touch targets */
	.puzzle-cell {
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
		-webkit-touch-callout: none;
		-webkit-user-select: none;
		user-select: none;
	}
	
	/* Smooth transitions for mobile */
	* {
		-webkit-tap-highlight-color: transparent;
	}
	
	/* Optimize puzzle piece positioning for mobile */
	#r1 img, #r4 img, #r3 img, #r6 img {
		position: relative !important;
		margin: 0 !important;
		right: auto !important;
		left: auto !important;
		bottom: auto !important;
		top: auto !important;
	}
	
	#r2 img, #r5 img {
		position: relative !important;
		margin: 0 !important;
		left: auto !important;
		right: auto !important;
		top: auto !important;
		bottom: auto !important;
	}
}

/* Smooth rotation for all draggable pieces */
#red-1 img, #red-2 img {
	transition: transform 0.3s ease-in-out;
	-webkit-transition: transform 0.3s ease-in-out;
	-moz-transition: transform 0.3s ease-in-out;
	-o-transition: transform 0.3s ease-in-out;
	cursor: pointer;
}

/* Hover effect for puzzle pieces */
#red-1 img:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.scene {
	width: 125px;
	height: 125px;
	margin: 0 14px 38px 0;
	perspective: 250px;
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 6;
	display: none;
}

.roll-cube {
	-webkit-animation: roll-in-blurred-right 0.8s cubic-bezier(0.175, 0.885, 0.320, 1.275) both;
	animation: roll-in-blurred-right 0.8s cubic-bezier(0.175, 0.885, 0.320, 1.275) both;
}

.cube {
	width: 125px;
	height: 125px;
	position: relative;
	transform-style: preserve-3d;
	transform: translateZ(-62.5px) rotate3d(30, 40, 50, 45deg);
	transition: transform 1s;
}

.cube.show-front {
	transform: translateZ(-62.5px) rotateY(0deg) rotate3d(30, 40, 50, 45deg);
}

.cube.show-right {
	transform: translateZ(-62.5px) rotateY(-90deg) rotate3d(30, 40, 50, 45deg);
}

.cube.show-back {
	transform: translateZ(-62.5px) rotateY(-180deg) rotate3d(30, 40, 50, 45deg);
}

.cube.show-left {
	transform: translateZ(-62.5px) rotateY(90deg) rotate3d(30, 40, 50, 45deg);
}

.cube.show-top {
	transform: translateZ(-62.5px) rotateX(-90deg) rotate3d(30, 40, 50, 45deg);
}

.cube.show-bottom {
	transform: translateZ(-62.5px) rotateX(90deg) rotate3d(30, 40, 50, 45deg);
}

.cube__face {
	position: absolute;
	width: 125px;
	height: 125px;
	border: 2px solid white;
	line-height: 12.5px;
	text-align: center;
}

.cube__face--front {
	background: hsla(230, 67.5%, 47.1%, 0.8);
}

.cube__face--right {
	background: hsla(230, 67.5%, 47.1%, 0.8);
}

.cube__face--back {
	background: hsla(230, 67.5%, 47.1%, 0.8);
}

.cube__face--left {
	background: hsla(230, 67.5%, 47.1%, 0.8);
}

.cube__face--top {
	background: hsla(230, 67.5%, 47.1%, 0.8);
}

.cube__face--bottom {
	background: hsla(230, 67.5%, 47.1%, 0.8);
}

.cube__face--front {
	transform: rotateY(0deg) translateZ(62.5px);
}

.cube__face--right {
	transform: rotateY(90deg) translateZ(62.5px);
}

.cube__face--back {
	transform: rotateY(180deg) translateZ(62.5px);
}

.cube__face--left {
	transform: rotateY(-90deg) translateZ(62.5px);
}

.cube__face--top {
	transform: rotateX(90deg) translateZ(62.5px);
}

.cube__face--bottom {
	transform: rotateX(-90deg) translateZ(62.5px);
}

.radio-group {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 30px;
}

label {
	margin-left: 10px;
	margin-right: 10px;
	font-family: 'Victor Mono', monospace;
	color: white;
	font-size: 13px;
}

@-webkit-keyframes roll-in-blurred-right {
	0% {
		-webkit-transform: translateX(1000px) rotate(720deg);
		transform: translateX(1000px) rotate(720deg);
		-webkit-filter: blur(50px);
		filter: blur(50px);
		opacity: 0;
	}

	100% {
		-webkit-transform: translateX(0) rotate(0deg);
		transform: translateX(0) rotate(0deg);
		-webkit-filter: blur(0);
		filter: blur(0);
		opacity: 1;
	}

}

@keyframes roll-in-blurred-right {
	0% {
		-webkit-transform: translateX(1000px) rotate(720deg);
		transform: translateX(1000px) rotate(720deg);
		-webkit-filter: blur(50px);
		filter: blur(50px);
		opacity: 0;
	}

	100% {
		-webkit-transform: translateX(0) rotate(0deg);
		transform: translateX(0) rotate(0deg);
		-webkit-filter: blur(0);
		filter: blur(0);
		opacity: 1;
	}

}

.puzzle-cell {
	touch-action: none;
    -ms-touch-action: none; /* for IE */
}

.izbor a h1, .button {
	font-family: "PT Mono", monospace !important;
}

.platz {	
	width: 44%;		
	position: absolute;
	z-index: 333;
	left: 0;	
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-top: -20px;
}

.platz p {
	font-family: "PT Mono", monospace !important;
	font-size: 1rem;
	color: white;	
	font-variant: small-caps;
	bottom: 0;
	margin-bottom: 0;
}

.platz img {
	width: 77px !important; 
	height: 53px !important; 
	padding: 6px;
	right: 0;
	pointer-events: none;
	touch-action: none;
}

.slide-in-left {
	-webkit-animation: slide-in-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1s both;
	        animation: slide-in-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1s both;
}

 @-webkit-keyframes slide-in-left {
	0% {
	  -webkit-transform: translateX(-1000px);
			  transform: translateX(-1000px);
	  opacity: 0;
	}
	100% {
	  -webkit-transform: translateX(0);
			  transform: translateX(0);
	  opacity: 1;
	}
  }
  @keyframes slide-in-left {
	0% {
	  -webkit-transform: translateX(-1000px);
			  transform: translateX(-1000px);
	  opacity: 0;
	}
	100% {
	  -webkit-transform: translateX(0);
			  transform: translateX(0);
	  opacity: 1;
	}
  }

  .slide-in-top {
	-webkit-animation: slide-in-top 0.5s cubic-bezier(0.075, 0.820, 0.165, 1.000) both;
	        animation: slide-in-top 0.5s cubic-bezier(0.075, 0.820, 0.165, 1.000) both;
}

@-webkit-keyframes slide-in-top {
    0% {
      -webkit-transform: translateY(-1000px);
              transform: translateY(-1000px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateY(0);
              transform: translateY(0);
      opacity: 1;
    }
  }
  @keyframes slide-in-top {
    0% {
      -webkit-transform: translateY(-1000px);
              transform: translateY(-1000px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateY(0);
              transform: translateY(0);
      opacity: 1;
    }
  }

.slide-out-top {
	-webkit-animation: slide-out-top 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
	        animation: slide-out-top 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

 @-webkit-keyframes slide-out-top {
	0% {
	  -webkit-transform: translateY(0);
			  transform: translateY(0);
	  opacity: 1;
	}
	100% {
	  -webkit-transform: translateY(-1000px);
			  transform: translateY(-1000px);
	  opacity: 0;
	}
  }
  @keyframes slide-out-top {
	0% {
	  -webkit-transform: translateY(0);
			  transform: translateY(0);
	  opacity: 1;
	}
	100% {
	  -webkit-transform: translateY(-1000px);
			  transform: translateY(-1000px);
	  opacity: 0;
	}
  }

  #greska {
	background-color: #44444E; 
	color: #fffeff; 
	width: 490px; 
	height: 64px; 
	display: none; 
	position: absolute; 
	top: 0; 
	margin-left: auto; 
	margin-right: auto; 
	left: 0; 
	right: 0; 
	z-index: 30; 
	text-align: center; 
	padding-top: 36px;                
  }

  #greska_slusl {
	background-color: #44444E; 
	color: #fffeff; 
	width: 490px; 
	height: 64px; 
	display: none; 
	position: absolute; 
	top: 0; 
	margin-left: auto; 
	margin-right: auto; 
	left: 0; 
	right: 0; 
	z-index: 30; 
	text-align: center; 
	padding-top: 36px;                
  }

  #cestitka {
	background-color: #000000; 
	color: #ffffff; 
	width: 490px; 
	height: 64px; 
	display: none; 
	position: absolute; 
	top: 0; 
	margin-left: auto; 
	margin-right: auto; 
	left: 0; 
	right: 0; 
	z-index: 30; 
	text-align: center; 
	padding-top: 36px;                
  }

    /* Tablet landscape orientation */
	@media (min-width: 768px) and (max-width: 1459px) and (orientation: landscape) {
		#uputstvo-6 {
			display: none;
		}
	
		.puzzle-cell {
			border: 2px dashed rgba(255, 255, 255, 0.6) !important;
			cursor: pointer;
			-webkit-tap-highlight-color: transparent;
			-webkit-touch-callout: none;
			-webkit-user-select: none;
			user-select: none;
			touch-action: none;  /* disables browser gestures to allow drag */
		}
	  }
	
	  @media (max-width: 1459px) {
		.container .button {
			display: none !important;
		}
	  }



#red-2 .col-p {
	background-image: url(../../slagalica/podloga-plava-bckg1.png), url(../../slagalica/podloga-plava-bckg2.png), url(../../slagalica/podloga-plava-bckg3.png), url(../../slagalica/podloga-plava-bckg4.png), url(../../slagalica/podloga-plava-bckg5.png), url(../../slagalica/podloga-plava-bckg6.png);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 70% auto;
}

#red-2 .col-z {
	background-image: url(../../slagalica/podloga-zelena-bckg1.png), url(../../slagalica/podloga-zelena-bckg2.png), url(../../slagalica/podloga-zelena-bckg3.png), url(../../slagalica/podloga-zelena-bckg4.png), url(../../slagalica/podloga-zelena-bckg5.png), url(../../slagalica/podloga-zelena-bckg6.png);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 70% auto;
}

#red-2 .col-zu {
	background-image: url(../../slagalica/podloga-zuta-bckg1.png), url(../../slagalica/podloga-zuta-bckg2.png), url(../../slagalica/podloga-zuta-bckg3.png), url(../../slagalica/podloga-zuta-bckg4.png), url(../../slagalica/podloga-zuta-bckg5.png), url(../../slagalica/podloga-zuta-bckg6.png);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 70% auto;
}

#red-2 .col-n {
	background-image: url(../../slagalica/podloga-narandzasta-bckg1.png), url(../../slagalica/podloga-narandzasta-bckg2.png), url(../../slagalica/podloga-narandzasta-bckg3.png), url(../../slagalica/podloga-narandzasta-bckg4.png), url(../../slagalica/podloga-narandzasta-bckg5.png), url(../../slagalica/podloga-narandzasta-bckg6.png);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 70% auto;
}

#red-2 .col-c {
	background-image: url(../../slagalica/podloga-crvena-bckg1.png), url(../../slagalica/podloga-crvena-bckg2.png), url(../../slagalica/podloga-crvena-bckg3.png), url(../../slagalica/podloga-crvena-bckg4.png), url(../../slagalica/podloga-crvena-bckg5.png), url(../../slagalica/podloga-crvena-bckg6.png);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 70% auto;
}

#red-2 .col-lj {
	background-image: url(../../slagalica/podloga-ljubicasta-bckg1.png), url(../../slagalica/podloga-ljubicasta-bckg2.png), url(../../slagalica/podloga-ljubicasta-bckg3.png), url(../../slagalica/podloga-ljubicasta-bckg4.png), url(../../slagalica/podloga-ljubicasta-bckg5.png), url(../../slagalica/podloga-ljubicasta-bckg6.png);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 70% auto;
}

h1 {
	font-size: 29px;
	font-family: 'Nunito Sans', sans-serif;
	font-weight: 500;
}

.translated-up {
	transform: translateY(-6px);
	transition: transform 0.3s ease-in-out;
  }
  
  .translated-down {
	transform: translateY(6px);
	transition: transform 0.3s ease-in-out;
  }

  .scale-up {
	transform: scale(1.6);
	transition: transform 0.3s ease-in-out;
  }


  #red-2 div {
	opacity: 0;
	animation: lagano 0.6s ease-out both;	
  }

  @keyframes lagano {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
  }

  .line {
    width: 100%;
	height: 1px;
    flex-grow: 1; /* Key to equal vertical separation */
}

.line:nth-child(1) { background-color: #a3049c; transform: scaleX(16%); }
.line:nth-child(2) { background-color: #cb0000; transform: scaleX(32%); } 
.line:nth-child(3) { background-color: #ff7100; transform: scaleX(48%); } 
.line:nth-child(4) { background-color: #daf00e; transform: scaleX(64%); } 
.line:nth-child(5) { background-color: #26bf42; transform: scaleX(80%); } 
.line:nth-child(6) { background-color: #314dd9; } 
  

#kraj-nigee {
	background-image: url(../../slagalica/urban-street.png);
	background-size: 60% 105px;
	background-repeat: no-repeat;
	background-position: center;
}

.target {
	display: none;
}

@keyframes lagano-target {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
  }

.target-lagano {
	animation: lagano-target 0.3s ease-out both;	
  }

  .bounce-in-top {
	-webkit-animation: bounce-in-top 1.1s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
	        animation: bounce-in-top 1.1s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
}

 @-webkit-keyframes bounce-in-top {
	0% {
	  -webkit-transform: translateY(-500px);
			  transform: translateY(-500px);
	  -webkit-animation-timing-function: ease-in;
			  animation-timing-function: ease-in;
	  opacity: 0;
	}
	38% {
	  -webkit-transform: translateY(0);
			  transform: translateY(0);
	  -webkit-animation-timing-function: ease-out;
			  animation-timing-function: ease-out;
	  opacity: 1;
	}
	55% {
	  -webkit-transform: translateY(-65px);
			  transform: translateY(-65px);
	  -webkit-animation-timing-function: ease-in;
			  animation-timing-function: ease-in;
	}
	72% {
	  -webkit-transform: translateY(0);
			  transform: translateY(0);
	  -webkit-animation-timing-function: ease-out;
			  animation-timing-function: ease-out;
	}
	81% {
	  -webkit-transform: translateY(-28px);
			  transform: translateY(-28px);
	  -webkit-animation-timing-function: ease-in;
			  animation-timing-function: ease-in;
	}
	90% {
	  -webkit-transform: translateY(0);
			  transform: translateY(0);
	  -webkit-animation-timing-function: ease-out;
			  animation-timing-function: ease-out;
	}
	95% {
	  -webkit-transform: translateY(-8px);
			  transform: translateY(-8px);
	  -webkit-animation-timing-function: ease-in;
			  animation-timing-function: ease-in;
	}
	100% {
	  -webkit-transform: translateY(0);
			  transform: translateY(0);
	  -webkit-animation-timing-function: ease-out;
			  animation-timing-function: ease-out;
	}
  }
  @keyframes bounce-in-top {
	0% {
	  -webkit-transform: translateY(-500px);
			  transform: translateY(-500px);
	  -webkit-animation-timing-function: ease-in;
			  animation-timing-function: ease-in;
	  opacity: 0;
	}
	38% {
	  -webkit-transform: translateY(0);
			  transform: translateY(0);
	  -webkit-animation-timing-function: ease-out;
			  animation-timing-function: ease-out;
	  opacity: 1;
	}
	55% {
	  -webkit-transform: translateY(-65px);
			  transform: translateY(-65px);
	  -webkit-animation-timing-function: ease-in;
			  animation-timing-function: ease-in;
	}
	72% {
	  -webkit-transform: translateY(0);
			  transform: translateY(0);
	  -webkit-animation-timing-function: ease-out;
			  animation-timing-function: ease-out;
	}
	81% {
	  -webkit-transform: translateY(-28px);
			  transform: translateY(-28px);
	  -webkit-animation-timing-function: ease-in;
			  animation-timing-function: ease-in;
	}
	90% {
	  -webkit-transform: translateY(0);
			  transform: translateY(0);
	  -webkit-animation-timing-function: ease-out;
			  animation-timing-function: ease-out;
	}
	95% {
	  -webkit-transform: translateY(-8px);
			  transform: translateY(-8px);
	  -webkit-animation-timing-function: ease-in;
			  animation-timing-function: ease-in;
	}
	100% {
	  -webkit-transform: translateY(0);
			  transform: translateY(0);
	  -webkit-animation-timing-function: ease-out;
			  animation-timing-function: ease-out;
	}
  }

  .target:hover {
	cursor: default !important;
	transform: scale(1) !important;
  }

#red-2 {
	background-image: url(../../slagalica/htech-lines.png);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
}
