@font-face {
	font-family: 'Card Characters';
	src: url('/wp-content/uploads/2024/07/CARDC___.ttf') format("truetype");
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'Amatic SC';
	src: url('/wp-content/uploads/2024/07/AmaticSC-Regular.ttf') format("truetype");
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'Amatic SC';
	src: url('/wp-content/uploads/2024/07/AmaticSC-Bold.ttf') format("truetype");
	font-weight: bold;
	font-style: normal;
}	
	
.product-design {
	width: 100%;
	text-align: center;
	font-family: "afek", Sans-serif;
    padding-top: 40px;
}
.product-design > h1 {
    margin-bottom: 10px;
}
.product-design > .price {
    font-size: 1.5em;
}
	
#stagesNav{
	text-align: center;	
	margin-bottom: 50px;
}

#stagesNav ul {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	margin: 0;
}
	
#stagesNav ul li {
	display: flex;
	align-items: center;
	cursor: default;
}
#stagesNav ul li.stage {
	justify-content: center;
    height: 10vw;
    width: 10vw;
    max-width: 80px;
    max-height: 80px;
    min-width: 55px;
    min-height: 55px;
	border-radius: 50%;
	border: 1px solid rgb(140, 140, 140);
	background-color: rgb(223, 210, 185);
	font-size: 0.9em;
    line-height: 1.3;
	padding: 5px;
	cursor: pointer;
	transition: .3s all;
}
#stagesNav ul li.stage:hover {
	transform: scale(1.05);
}
#stagesNav ul li.stage.selected {
    height: 15vw;
    width: 15vw;
    max-width: 90px;
    max-height: 90px;
    min-width: 65px;
    min-height: 65px;
	font-size: 1em;
    line-height: 1.45;
	background-color: rgba(223, 210, 185, 0.2);
}
#stagesNav ul li.separator {
	height: 1px;
	width: 5vw;
    max-width: 80px;
	background-color: rgb(140, 140, 140);
}

.stage-container:not(.active-stage) {
	display: none;
}
.stage-container .stage-title {
	font-size: 2.1em;
	margin-bottom: 30px;
}
.stage-container .stage-caption {
    font-size: 1.3em;
	white-space: pre-wrap;	
	width: 95%;
    margin: 0 auto 20px auto;
}
	
#stagesNavBtns {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
}
#stagesNavBtns button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    transition: .3s all;
}
#stagesNavBtns button[disabled] {
	background-color: rgb(160, 160, 160) !important;
	color: white !important;
}
#stagesNavBtns button span {
    font-size: 1.2em;
}
#stagesNavBtns button i {
    font-size: 1.5em;
}
#stagesNavBtns #finishBtn {
	display: none;
}
	
.cards {
	display: flex;
	flex-direction: column;
	justify-content: center;
	counter-reset: card;	
}
	
.cards .card {
	margin-bottom: 60px;
}

.cards .card .card-delete-btn {
	display: none;
    background: transparent;
    color: #c23f3f;
    border: 1px solid;
    padding: 7px 12px;
    font-size: 1.1em;
	transition: .3s all;
}
.cards .card.card-optional .card-delete-btn {
	display: inline-block;
}
.cards .card .card-delete-btn:hover {
    color: white;
    background: #c23f3f;		
}
	
.cards .card-index {
    margin-bottom: 20px;
    display: block;
    font-size: 1.8em;
}
.cards .card-index:after {
    display: inline-block;	
    text-indent: 7px;	
	counter-increment: card;
	content: counter(card);
}

.cards .card-edit {
    display: flex;
    flex-direction: column;
    width: 95%;
    max-width: 400px;
    margin: 0 auto 30px auto;
	gap: 8px;
}
.cards .card-edit .category-name-box{
	position: relative;
}
.cards .card-edit input {
    font-family: inherit;
	font-size: .9em;
    border: 1px solid rgb(200, 200, 200);
    border-radius: 10px;
	width: 100%;
}
.cards .card-edit input.category-name {
	position: relative;
	font-size: 1.1em;
	z-index: 3;
}
.cards .card-edit .design-categories {
	display: none;
    position: absolute;
    right: 0;
    width: 100%;
    overflow: auto;
    z-index: 2;
    background-color: white;
    border: 1px solid rgb(200, 200, 200);
    border-top: none;	
    margin-top: -10px;
    padding-top: 10px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;	
}
.cards .card-edit .design-categories p {
	padding: 6px 0;
	margin: 0;
    font-size: 0.9em;
    color: rgb(70, 70, 70);
	font-style: italic;
	border-bottom: 1px solid rgb(200, 200, 200);
}
.cards .card-edit .design-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 200px;
    overflow: auto;
}
.cards .card-edit .design-categories ul li {
	padding: 7px 3px;
	border-top: 1px solid rgb(200, 200, 200);
	transition: .3s all;
}
.cards .card-edit .design-categories ul li:first-child {
	border-top: none;
}
.cards .card-edit .design-categories ul li:hover {
	background-color: rgb(200, 200, 200);
	cursor: pointer;
}
	
.cards .card-content {
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 30px;
    flex-flow: wrap;
}

/* Name Card */
#invisbleCards {
	display: none;
	margin: 0 auto;
}
#invisbleCards .invisble-card{
	width: 245px;
}
#invisbleCards .invisble-card .card-content {
	display: flex;
    justify-content: center;
    align-items: center;	
	padding: 20px;
	width: 245px;
    height: 350px;
}
#invisbleCards .invisble-card#nameCard .card-content {
	background-color: #ebd0d0;	
}
#invisbleCards .invisble-card#instructionsCard .card-content {
	padding: 0;
}


#addCardBtn {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    color: black;
    padding: 0;
    margin: 0 auto 50px auto;
	transition: .3s all;
}
#addCardBtn:hover {
	transform: scale(1.1);
}
#addCardBtn:active {
	transform: scale(1);
}
#addCardBtn i {
	color: rgb(115, 129, 136);
	font-size: 3.2em;
	transition: .3s all;
}
#addCardBtn:hover i {
	color: rgb(223, 210, 185);
}
#addCardBtn p {
	margin: 0;
    font-size: 1.8em;
    text-align: right;
}
#addCardBtn p span {
	display: block;
	font-size: .6em;
	margin-top: 4px;
}
	
/* Image Editable Widget */
.image-editable-widget {
    width: 245px;
}
.image-editable-widget.error {
	border: 2px solid red;
}
.image-editable-widget.error:after {
	color: red;
	content: 'שגיאה, נא החלף תמונה';
}
.image-editable-widget.preview {
	pointer-events: none;
}
.image-editable-widget .image-editor {
    text-align: center;
    margin: 0 auto;
/* 	border: 20px solid rgba(223, 210, 185, 0.4);
    background-color: rgba(223, 210, 185, 0.4); */
	padding: 20px;
	background-color: rgb(235, 226, 210);
	width: 245px;
    height: 350px;
	border-radius: 15px;
    overflow: hidden;	
}

.image-editable-widget .image-editor .image-container {
    position: relative;
	display: block;
	width: 100%;
	height: 100%;
	background-color: white;
    margin: 0 auto;
	overflow: hidden;
	cursor: pointer;
	transition: .3s all;
}
/* .image-editable-widget.bottom-text .image-editor {
	display: flex;
	flex-direction: column;
} */
.image-editable-widget.bottom-text .image-editor .image-container {
	height: calc(100% - 40px);
}
.image-editable-widget:not(.playing-card):not(.kwartet).image-selected .image-editor .image-container {
/*     background-color: rgba(223, 210, 185, 0.4); */
    background-color: transparent;	
}
.image-editable-widget:not(.image-selected) .image-container:before {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-weight: bold;
	font-size: 2.5em;
	content: '+';
}
.image-editable-widget.preview:not(.image-selected) {
	user-select: none;
}
.image-editable-widget.preview:not(.image-selected) .image-container:before {
    font-size: 1.1em;
    font-weight: normal;	
	content: 'תצוגה בלבד';
}
.image-editable-widget:not(.image-selected) .image-container:hover {
	background-color: rgba(223, 210, 185, 0.4);
}
.image-editable-widget.image-selected:not(.preview) .image-container {
	cursor: move;
}

.image-editable-widget .image-editor .image-container .editable-image {
    max-width: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
	user-select: none;
	height: 100%; /* when setting the img, fit into the rec */
}
.image-editable-widget:not(.image-selected) .image-editor .image-container .editable-image {
	pointer-events: none;
}
.image-editable-widget .editable-text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;	
    width: 100%;
    height: 50px;	
    line-height: 1.2em;
    font-size: 1em;
    margin: 0;
/*     background-color: rgba(223, 210, 185, 0.4);	 */
}
.image-editable-widget .controls {
    display: none;
    flex-direction: row;
    justify-content: center;
	gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}
.image-editable-widget.image-selected .controls {
	display: flex;
}

.image-editable-widget .controls button {
	color: black;
	font-size: 1.2em;
	background: transparent;
	padding: 0;
	border: none;
	outline: none;
	transition: .3s all;
}
.image-editable-widget .controls button:hover {
	transform: scale(1.2);
	color: rgb(184 158 108);
}
.image-editable-widget .controls button svg {
	width: 20px;
	height: 20px;
}

/* Kwartet */
.image-editable-widget.kwartet h4 {
	position: relative;
    font-size: 1.9em;
    line-height: 1.1em;
    z-index: 1;
    font-family: 'Amatic SC', serif;
    font-weight: bold;
    padding: 10px 0;	
}
.image-editable-widget.kwartet .image-editor {
	position: relative;
	background-color: rgb(241, 237, 231);
	border: 1px solid rgb(220, 220, 220);	
	padding: 20px;
	z-index: 1;
	overflow: hidden;	
}
.card.kwartet.minimalist .image-editable-widget.kwartet .image-editor {
	padding: 20px 25px;		
}	
.image-editable-widget.kwartet .image-editor:before {
	position: absolute;
	top: 0;
	left: 0;
	width: 70%;
	height: 100%;
	z-index: -1;
	content: '';
}
.image-editable-widget.kwartet .image-editor:after {
    position: absolute;
    top: 26%;
    left: 0;
    width: 80%;
    height: 41%;
    background-color: rgb(190, 190, 190);
    z-index: 0;
    content: '';
}
.card.kwartet.minimalist .image-editable-widget.kwartet .image-editor:after {
	background-color: rgba(255, 255, 255, 0.5);
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
}
.image-editable-widget.kwartet .image-editor .image-container {
	height: 50%;
    width: 95%;	
	z-index: 2;
}
.image-editable-widget.kwartet.image-selected .image-editor .image-container {
	background-color: transparent;
}
.image-editable-widget.kwartet .options {
    position: relative;	
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 12px 0 0 0;
    list-style: none;
    z-index: 2;	
}
.image-editable-widget.kwartet .options li {
    width: 100%;
    padding: 0 5px;
    font-size: 0.9em;
    line-height: 1.5;
}
.card-content .image-editable-widget.kwartet:nth-child(1) .options li:nth-child(1),
.card-content .image-editable-widget.kwartet:nth-child(2) .options li:nth-child(2),
.card-content .image-editable-widget.kwartet:nth-child(3) .options li:nth-child(3),
.card-content .image-editable-widget.kwartet:nth-child(4) .options li:nth-child(4) {
    background-color: rgba(255, 255, 255, 0.5);
}
	
#cardBottomText {
    width: 100%;
    max-width: 350px;
    border: 1px solid rgb(180, 180, 180);
    border-radius: 8px;
    margin-top: 20px;
}

/* Playing Cards */
.image-editable-widget.playing-card {
	position: relative;
}
.image-editable-widget.playing-card .card-sign {
	position: absolute;
	display: flex;
	gap: 5px;
	background: white;
	border-radius: 100px;
	padding: 8px 5px 10px 5px;
	flex-direction: column;
	pointer-events: none;
	z-index: 2;
}
.image-editable-widget.playing-card.joker-card .card-sign {
	padding: 3px;
    border-radius: 4px;
    width: 20px;
    word-break: break-all;
    line-height: 1.2;
}
.image-editable-widget.playing-card .card-sign.top-sign {
	top: 20px;
	left: 20px;
}
.image-editable-widget.playing-card .card-sign.bottom-sign {
	bottom: 20px;
	right: 20px;
	transform: rotate(180deg);
}
.image-editable-widget.playing-card .card-sign .sign {
    font-family: 'Card Characters', 'Times New Roman', serif;
	font-size: 1.8em;
    line-height: 1;
}
.image-editable-widget.playing-card .card-sign svg {
	width: 22px;
	height: 22px;
}
.image-editable-widget.playing-card .image-editor {
	border: none;
	padding: 0;
}
.image-editable-widget.playing-card .image-editor .image-container {
	background-color: transparent;
}
#duplicateCardImgContainer {
	display: none;
    margin: 15px auto 0 auto;
	text-align: center;
}
.image-editable-widget.playing-card.image-selected #duplicateCardImgContainer {
	display: block;
}	
#duplicateCardImgContainer #duplicateCardImgBtn {
	color: white;
	background-color: #6c97a0;
	padding: 9px 16px;
	border-radius: 5px;
	font-size: 1em;
	font-weight: bold;
	letter-spacing: .2px;
	font-family: inherit;
	margin-bottom: 5px;
	cursor: pointer;
	transition: .3s all;
}
#duplicateCardImgContainer #duplicateCardImgBtn:hover {
	background-color: black;
}
#duplicateCardImgContainer p {
	line-height: 1.3;
	margin: 0;
	font-size: .9em;
}
	
/* Side Text Widget */
.side-text-widget {
	width: 245px;
}
.side-text-widget .text-container {
	position: relative;
	background-color: rgb(235 226 210);
	height: 350px;
	width: 100%;
	border-radius: 15px;
}
.side-text-widget .text-container .text {
    position: absolute;
    top: 50%;
    left: 20px;
    width: calc(100% - 40px);
    color: black;
	line-height: 1.3;
    font-size: 1.2em;	
    text-align: center;
    transform: translateY(-50%);
    white-space: pre-wrap;
    overflow: auto;	
}
.side-text-widget .text-editor {
	border-radius: 5px;
	resize: none;
	width: 100%;
	margin-top: 10px;
}

/* Greeting Card Editor */
.second-stage {
	display: flex;
	flex-direction: column;
	align-items: center;
}
#greetingCardContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}
#greetingCardContainer .text-editor h4 {
	margin-bottom: 5px;
}
#greetingCardContainer .text-editor textarea {
	border-radius: 5px;
    resize: none;
}
#greetingCardContainer .greeting-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
	align-items: center;
    background-color: rgba(223, 210, 185, 0.4);
    border: 1px solid rgb(180, 180, 180);
    width: 245px;
    height: 350px;
    border-radius: 15px;
    overflow: auto;	
}
#greetingCardContainer .greeting-card .text {
    font-size: 0.9em;
    line-height: 1.3;
    white-space: pre-wrap;
	margin-bottom: 8px;
	cursor: default;
	width: calc(100% - 40px);
}
#greetingCardContainer .greeting-card img	{
    width: 25px;
}

/* Card Back Designs */
#cardBackDesignsContainer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
#cardBackDesignsContainer .card-back-design {
	width: calc(20% - 20px);
	border-radius: 15px;
	cursor: pointer;
	transition: .3s all;
}
#cardBackDesignsContainer .card-back-design.selected {
	border: 1px solid rgb(180, 180, 180);
	box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.4);
}
#cardBackDesignsContainer .card-back-design:hover {
    transform: scale(1.05);	
}
	
#customcardBackDesignContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 70px 0;
}
	
#customcardBackDesignContainer > h4 {
	font-size: 1.7em;
}
#customcardBackDesignContainer > p {
	font-size: 1.2em;
}
#customcardBackDesignContainer .image-editable-widget .image-editor {
	border: none;
	padding: 0;
}
#customcardBackDesignContainer .image-editable-widget .image-container {
    background-color: rgba(223, 210, 185, 0.4);
/*     border-radius: 15px; */
    height: 100%;
    width: 100%;
}
#customcardBackDesignContainer .image-editable-widget:not(.image-selected) .image-container:hover {
	background-color: rgb(255, 245, 225);
}

.popup {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 999999;	
}
.popup .inner {
	position: absolute;
    top: 50%;
    left: 50%;
    max-width: 400px;
    max-height: 95vh;
    background-color: white;
    padding: 35px;
    width: 90%;
    transform: translate(-50%, -50%);
    border-radius: 15px;
}
.popup .popup-title {
	margin-bottom: 20px;
    font-size: 1.3em;
    border-bottom: 1px solid;
    display: inline-block;
}
#noIphoneSupportPopup a {
    display: inline-block;
	background-color: rgba(226, 210, 179, 1);
    padding: 5px 20px;
    margin-top: 10px;
    border-radius: 5px;
	text-decoration: none;
}
#preRegisterPopup .inner {
    max-width: 500px;
}
#preRegisterPopup p {
	font-size: 1.1em;	
}
#preRegisterPopup form {
    display: flex;
    flex-direction: row;
    align-items: center;
	margin: 20px 0;
}
#preRegisterPopup input[type="name"] {
    border: 1px solid rgb(200, 200, 200);
	border-left: none;
    border-radius: 8px;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;	
    padding: 10px 13px;
    font-size: 0.9em;
    width: 100%;
	outline: none;
}
#preRegisterPopup input[type="submit"] {
    transition: .3s all;
    border-radius: 10px;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
    padding: 12px 20px;	
}
	
/* Design Confirmation Popup */
#designConfirmationPopup .inner{
    max-width: 700px;	
}	
#designConfirmationPopup .popup-content {
	margin-bottom: 20px;
	font-size: 1.2em;
}
#designConfirmationPopup .popup-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;	
}
#designConfirmationPopup .popup-btns button {
	transition: .3s all;
	font-family: inherit;
}
#designConfirmationPopup .popup-btns .cancelBtn {
    background-color: rgb(100, 100, 100);	
}
#designConfirmationPopup .popup-btns .cancelBtn:hover {
	background-color: black;
	color: white;
}
#designConfirmationPopup .popup-btns .confirmBtn {

}	
	
/* Generate PDF Loading Screen */
#generatePDFLoading .progress {
    margin: 0;
    font-size: 1.4em;
    letter-spacing: .2px;		
}
	
/* Preview */
/* .preview .cards .card-optional:not(.card-valid), */
.preview .cards .card-delete-btn {
	display: none !important;	
}
.preview .cards .card-edit {
	display: none !important;	
}
.preview .image-editable-widget {
    pointer-events: none;
}
.preview .image-editable-widget.image-selected .controls {
	display: none !important;	
}
.preview .first-stage {
	display: block !important;
}
.preview .first-stage .stage-caption,
.preview .first-stage .image-editable-widget .controls,
.preview .first-stage .image-editable-widget #duplicateCardImgContainer,
.preview .first-stage #cardBottomText,
.preview .first-stage .side-text-widget .text-editor,
.preview .first-stage #addCardBtn {
	display: none !important;		
}
.preview .second-stage {
	display: flex !important;
}
.preview .second-stage:not(.card-selected),
.preview .second-stage #greetingCardContainer .text-editor {
	display: none !important;
}
.preview .third-stage {
	display: block !important;	
}
.preview .third-stage .stage-caption,
.preview .third-stage #customcardBackDesignContainer > h4,
.preview .third-stage #customcardBackDesignContainer > p,
.preview .third-stage .image-editable-widget:not(.image-selected),
.preview .third-stage .card-back-design:not(.selected) {
	display: none !important;
}
.preview .third-stage #customcardBackDesignContainer {
	margin-top: 0;
}
.preview #cardBackDesignsContainer .card-back-design.selected {
    width: 245px;
    height: 350px;
    object-fit: cover;
	box-shadow: none !important;
	pointer-events: none;
}

@media only screen and (max-width: 600px) {
	#stagesNav ul li.stage {
    	font-size: 0.8em;
		line-height: 1.2;
	}
	#stagesNav ul li.separator {
		width: 4vw;
	}
	
	.stage-container .stage-title {
		font-size: 1.9em;
		margin-bottom: 20px;
	}
	.stage-container .stage-caption {
		font-size: 1.1em;
	}	
	
	.cards .card-content {
		gap: 15px;
	}
	
	#addCardBtn {
		font-size: .9em;
	}
	
	#stagesNavBtns {
		gap: 10px;
	}
	#stagesNavBtns button {
        gap: 8px;
        min-width: 0;
        font-size: .9em;
        padding: 12px 22px;
	}
	
	.image-editable-widget .controls button {
		font-size: 1.3em;
	}
	
	#greetingCardContainer {
    	flex-direction: column;
	}
	#greetingCardContainer .text-editor h4 {
	    font-size: 1.2em;
	}
	
	#cardBackDesignsContainer {
		gap: 15px;
	}
	#cardBackDesignsContainer .card-back-design {
		width: calc(33.333% - 15px);
	}		
}
	
@media only screen and (max-width: 480px) {
	#cardBackDesignsContainer .card-back-design {
		width: calc(50% - 15px);
	}
}