/* Popup opisy */


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.6);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s 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;
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
	z-index: 4100;
}

#popupHeader {
	background: white;
	padding: 15px;
	height: 30px;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

#popupHeader button {
	background: none;
	border: none;
	width: 30px;
	height: 30px;
	cursor: pointer;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

#popupContent {
	flex-grow: 1;
}

iframe {
	width: 100%;
	height: 100%;
	border: none;
}

@media (max-width: 768px) {
	
	#popupContainer {
	width: 95%;
	height: 80%;
	}
	
}


/* 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;
}

#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;
}

.tutorial-s360 {
    font-size: 0.8em;
	margin-bottom: 5px;
}

.popup-logo {
    max-width: 180px;
    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;
}

#tutorial-welcome-popup button,
#tutorial-step-popup button {
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 1.4em;
	font-weight: bold;
    transition: background-color 0.3s ease;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

#tutorial-start-button,
#tutorial-next-button {
    background-color: #850039;
    color: white;
    outline: none;
	-webkit-tap-highlight-color: transparent;
}

#tutorial-start-button:hover,
#tutorial-next-button:hover {
    background-color: #600029;
	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;
    }
}