/* Brand Hero */

#playAudioButton {
    position: absolute;
    bottom: 0px;
    right: 90px;
    z-index: 4000 !important;
    width: 217px;
    height: 319px;
    background: url('../images/pause.gif') no-repeat center center;
    background-size: contain;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, background-image 0.6s ease-in-out;
    visibility: hidden;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

#playAudioButton.show {
    opacity: 1;
    visibility: visible;
}

#playAudioButton:focus {
    outline: none;
}

@media (max-width: 768px) {

#playAudioButton {
    right: 55px;
    width: 122px;
    height: 180px;
}
}




/* Wirtualna pocztowka */

#postcard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    pointer-events: none;
}

#capture-btn {
	position: fixed;
	bottom: 4vh;
	left: 50%;
	transform: translateX(-50%);
	background: none;
	border: none;
	cursor: pointer;
	pointer-events: all;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

#capture-btn img {
    width: 100px;
	height: auto;
}

#close-btn {
    position: absolute;
    top: 13px;
    right: 13px;
    background: none;
    border: none;
    cursor: pointer;
    pointer-events: all;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

#close-btn img {
    width: 64px;
    height: 64px;
}

#close-preview {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	cursor: pointer;
	padding: initial;
	-webkit-tap-highlight-color: transparent;
}

#close-preview img {
	width: 44px;
	height: 44px;
}
#preview-popup {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: white;
	padding: 20px;
	border-radius: 20px;
	opacity: 0;
	transition: opacity 0.6s ease-in-out;
	display: none;
	z-index: 999;
	max-width: 90%;
	width: 60%;
	text-align: center;
}

#preview-popup.show {
    opacity: 1;
}

#preview-popup img {
    max-width: 100%;
    max-height: 100%;
}

#preview-img {
	max-width: 100%;
	border-radius: 10px;
}

#capture-btn, #close-btn {
	opacity: 0;
	transition: opacity 0.6s ease-in-out;
}

#capture-btn.show, #close-btn.show {
	opacity: 1;
}

#capture-btn.hide, #close-btn.hide {
	opacity: 0;
}

#preview-popup.show {
	opacity: 1;
	display: block;
}

#overlay-dark {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.6s ease-in-out;
	display: none;
	z-index: 998;
}

#overlay-dark.show {
	opacity: 1;
	display: block;
}

#preview-popup.show {
	opacity: 1;
	display: block;
}

#overlay-dark.hide {
	opacity: 0;
}

#preview-popup.hide {
	opacity: 0;
}

.share-container {
	margin-top: 15px;
}

.share-container p {
	font-family: "Montserrat";
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 12px;
	color: black;
}

.share-buttons {
	display: flex;
	justify-content: center;
	gap: 13px;
	-webkit-tap-highlight-color: transparent;
}

.share-buttons img {
	width: 44px;
	height: 44px;
	cursor: pointer;
}

#watermark {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 20%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

#watermark.show {
	opacity: 1 !important;
	pointer-events: auto;
}

#watermark.hide {
	opacity: 0 !important;
	pointer-events: none;
}

@media (max-width: 768px) {

#capture-btn {
    bottom: 2vh;
}

#capture-btn img {
    width: 64px;
}

#close-btn img {
    width: 44px;
    height: 44px;
}

#close-btn {
    top: 10px;
    right: 10px;
}

#watermark {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 33%;
}
}


/* Samouczek */


#tutorial-overlay,
#tutorial-welcome-popup,
#tutorial-step-popup {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0s linear 0.6s;
    position: fixed;
    z-index: 10000;
}

#tutorial-overlay.visible,
#tutorial-welcome-popup.visible,
#tutorial-step-popup.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease-in-out, visibility 0s linear 0s;
}

#tutorial-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0s linear 0.6s;
    position: fixed;
    z-index: 10000;
}

#tutorial-overlay.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease-in-out, visibility 0s linear 0s;
}

.tutorial-popup {
    background-color: #fff;
    padding: 25px;
    text-align: center;
    min-width: 300px;
    max-width: 500px;
    box-sizing: border-box;
	border-radius: 20px;
}

#tutorial-welcome-popup {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.popup-footer {
    margin-top: 25px; 
    text-align: center;
}

.popup-footer a {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
}

.tutorial-welcome-maker {
    font-size: 1.8em;
	font-weight: bold;
	margin-top: 10px;
	color: #2b2b2b;
}

.tutorial-s360 {
    font-size: 0.8em;
	margin-bottom: 5px;
	color: #2b2b2b;
}

.popup-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-10px);
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

#tutorial-welcome-popup .tutorial-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.tutorial-step-popup-layout {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    padding-top: 20px;
}

#tutorial-step-popup p {
	font-size: 1.2rem;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
	color: #2b2b2b;
}

#tutorial-welcome-popup button,
#tutorial-step-popup button {
    padding: 10px 15px;
    border: none;
    cursor: pointer;
	font-family: "Roboto";
    font-size: 1.4em;
	font-weight: bold;
    transition: background-color 0.3s ease;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	border-radius: 12px;
}

#tutorial-start-button,
#tutorial-next-button {
    background-color: #b48c5e;
    color: white;
    outline: none;
	-webkit-tap-highlight-color: transparent;
}

#tutorial-start-button:hover,
#tutorial-next-button:hover {
    background-color: #a57640;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

#tutorial-skip-button {
    background-color: #6c757d;
    color: white;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

#tutorial-skip-button:hover {
    background-color: #545b62;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.tutorial-close-button {
    position: absolute;
    top: 0px; 
    right: 0px; 
    background: transparent;
    border: none;
    padding: 10px 10px !important;
    cursor: pointer;
    line-height: 1;
    font-size: 0;
    z-index: 10;
    outline: none;
	-webkit-tap-highlight-color: transparent;
}

.tutorial-close-button img {
    width: 26px;
    height: 26px;
    display: block;
}

.tutorial-close-button:hover {
    opacity: 0.8;
}


@media (max-width: 768px) {
    .tutorial-popup {
        width: 90%; 
        max-width: 90%;
        max-height: 90vh; 
        overflow-y: auto;
        padding: 20px;
        padding-top: 20px;
    }

    #tutorial-welcome-popup {
        width: 90%;
    }

    #tutorial-welcome-popup .tutorial-buttons {
        gap: 10px;
    }

    .tutorial-close-button {
        top: 0px;
        right: 0px;
    }

    .tutorial-close-button img {
        width: 28px;
        height: 28px;
		outline: none;
		-webkit-tap-highlight-color: transparent;
    }
	
	#tutorial-step-popup p {
	font-size: 1rem;
}
}


/*  Popup website */

body {
	margin: 0;
	font-family: Roboto, sans-serif;
}

#overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease-in-out;
	z-index: 4099;
}

#popupContainer {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.8);
	width: 60%;
	height: 70%;
	background: white;
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
	z-index: 4100;
}

#popupHeader {
	background: #efefef;
	padding: 10px;
	height: 30px;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
}

#popupHeader button {
	background: none;
	border: none;
	width: 30px;
	height: 30px;
	cursor: pointer;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	margin-right: 5px;
}

#popupContent {
	flex-grow: 1;
}

iframe {
	width: 100%;
	height: 100%;
	border: none;
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
}

@media (max-width: 768px) {
            
	#popupContainer {
	width: 95%;
	height: 80%;
	}
}
	
	
/* Popup zdjecie */

#imagePopupOverlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 4099;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease;
}

#imagePopupContainer {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.8);
	background: white;
	border-radius: 20px;
	z-index: 4100;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, transform 0.4s ease;
	max-width: 95vw;
	max-height: 90vh;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
	overflow: hidden;
}

#closeImagePopup {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	background: url('../images/close.png') no-repeat center center;
	background-size: 100% 100%;
	background-color: transparent;
	border: none;
	cursor: pointer;
	z-index: 4102;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

#imagePopupContent {
	display: flex;
	justify-content: center;
	align-items: center;
	max-width: 100%;
	max-height: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

#popupImage {
	max-width: 100%;
	max-height: calc(90vh - 120px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 10px;
	display: block;
	transition: opacity 0.2s ease;
}

#imageCounter {
	position: absolute;
	top: 30px;
	left: 50%;
	transform: translateX(-50%);
	background: white;
	color: #2d2d2d;
	padding: 8px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: bold;
	display: none;
	z-index: 4101;
	user-select: none;
}

#imageCaption {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	max-width: 80%;
	text-align: center;
	padding: 10px 15px;
	background: white; 
	color: #2d2d2d;
	border-radius: 10px;
	font-size: 16px;
	font-weight: bold;
	z-index: 4101;
	display: block;
	user-select: none;
	box-sizing: border-box;
}

#prevImageBtn, #nextImageBtn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: transparent; 
	border: none;
	width: 54px;
	height: 54px;
	cursor: pointer;
	border-radius: 50%; 
	display: block;
	z-index: 4101;
	transition: transform 0.2s ease; 
	outline: none;
	-webkit-tap-highlight-color: transparent;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;
}

#prevImageBtn {
	left: 30px;
	background-image: url('../images/gallery_prev.png');
}

#nextImageBtn {
	right: 30px;
	background-image: url('../images/gallery_next.png');
}

#prevImageBtn:hover, #nextImageBtn:hover {
	transform: translateY(-50%) scale(1.1);
}

#prevImageBtn:active, #nextImageBtn:active {
	transform: translateY(-50%) scale(0.95);
}

@media (max-width: 768px) {
	#imageCounter {
		top: 15px; 
		bottom: auto;
		font-size: 12px;
		padding: 6px 12px;
	}
	
	#imageCaption {
		bottom: 15px;
		font-size: 13px;
		max-width: 90%;
		padding: 6px 10px;
	}
	
	#prevImageBtn {
		left: 15px;
	}
	
	#nextImageBtn {
		right: 15px;
	}
	
	#prevImageBtn, #nextImageBtn {
		width: 44px;
		height: 44px;
	}
	
	#imagePopupContainer {
		width: 95vw !important;
		max-height: 90vh;
		padding: 10px;
	}
	
	#closeImagePopup {
		top: 5px;
		right: 5px;
		width: 34px;
		height: 34px;
	}
	
	#popupImage {
		max-height: calc(90vh - 90px);
	}
}