strong img {
	max-width: 100% !important;
	height: auto !important;
	width: auto !important; /* nadpisuje width="100" */
}
content {
	margin: 0 100px;
	font-family: 'Bellota Text', sans-serif;
	font-weight: 500;
	font-style: normal;
}

.title {
	font-size: 24px;

	margin: 50px 0;
}
.article-content {
	max-width: 720px;
	margin: 60px auto 30px auto;
	padding: 30px 25px;
	background: var(--article-bg);
	border-radius: 12px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
	font-size: var(--user-font-size, 1.05rem);
	line-height: 1.8;
	text-align: left;
	color: var(--article-text);
}
.article-content p {
	margin-bottom: 1.4em;
	text-indent: 1.5em;
}

.article-content .title {
	font-size: 1.8rem;
	font-weight: bold;
	margin-bottom: 1.5rem;
	text-align: center;
	color: var(--title-color, #49abaa);
}
.article-content img {
	display: block;
	margin: 30px auto;
	max-width: 100% !important;
	height: auto !important;
	width: auto !important; /* nadpisuje width="100" */
	border-radius: 8px;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}
.article-content * {
	font-size: inherit !important;
}
.test {
	font-size: var(--user-font-size); /* Użycie zmiennej dla klasy test */
}
.progress-bar {
	position: fixed !important;
	width: 100%;
	height: 4px;
	top: 0;
	left: 0;
	border: none;
	background-color: #41229e2d;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	z-index: 100;
}
.progress-bar::-webkit-progress-bar {
	background-color: transparent;
}
.progress-bar::-webkit-progress-value {
	background-color: #00ea2f;
}
.progress-bar::-moz-progress-bar {
	background-color: #0091ea;
}

/*przycisk powrotu*/
#btn-back-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 50px;
	height: 50px;
	background-color: #dc3545; /* Czerwony kolor */
	color: white;
	border: none;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	display: none; /* Ukryty na starcie */
	justify-content: center;
	align-items: center;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	transition: opacity 0.3s, transform 0.3s;
}

#btn-back-to-top:hover {
	background-color: #c82333; /* Ciemniejszy czerwony */
}

#btn-back-to-top:active {
	transform: scale(0.9);
}
/* sekcja tworzenia komentarza */

.create-comment {
	text-align: center;
	margin: 2rem 0;
}

#create-comment button,
.submit-btn,
.cancel-btn {
	background-color: #49abaa;
	color: white;
	padding: 0.5rem 1rem;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 1rem;
	transition: background-color 0.2s ease;
}

#create-comment button:hover,
.submit-btn:hover,
.cancel-btn:hover {
	background-color: #3c9493;
}

/* Modal Styling */
.custom-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	justify-content: center;
	align-items: center;
}

.custom-modal-content {
	background: #fff;
	padding: 24px;
	border-radius: 12px;
	width: 90%;
	max-width: 480px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	animation: fadeIn 0.3s ease-in-out;
	position: relative;
}

.custom-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.custom-modal-header h3 {
	font-size: 1.3rem;
	margin: 0;
}

.custom-modal-header .close-modal {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #555;
}

.modal-subtitle {
	font-size: 1rem;
	margin-bottom: 0.5rem;
	color: #333;
}

.srednia-ocena {
	margin: 0.5rem 0 1.2rem;
	font-weight: bold;
	color: #666;
}

.custom-modal-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.custom-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 1.2rem;
}

.cancel-btn,
.submit-btn {
	padding: 10px 20px;
	border: none;
	border-radius: 30px;
	cursor: pointer;
	font-weight: bold;
	transition: 0.3s;
}

.cancel-btn {
	background-color: #ccc;
	color: #333;
}

.cancel-btn:hover {
	background-color: #b3b3b3;
}

.submit-btn {
	background-color: #49abaa;
	color: white;
}

.submit-btn:hover {
	background-color: #3f8c8a;
}
.rating-widget {
	text-align: center;
	margin-bottom: 0.5rem;
}

.srednia-ocena {
	font-size: 1rem;
	font-weight: 500;
	color: #444;
	text-align: center;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}

.rate-form textarea {
	width: 100%;
	min-height: 100px;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	resize: vertical;
	font-family: inherit;
	font-size: 1rem;
}

.rate-form label {
	display: block;
	margin-top: 1rem;
	margin-bottom: 0.5rem;
	font-weight: bold;
	color: #333;
}
.star-ratings-rating-average,
.star-ratings-rating-count {
	display: none !important;
}
.moja-ocena {
	margin-top: 10px;
	font-weight: bold;
	color: #444;
}
/* komunikat po dodaniu komentarza */

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}
/* sekcja komentarzy */
.comment-btn[disabled] {
	background-color: #49abaa;
	color: white;
	opacity: 0.6;
	cursor: not-allowed;
	border: none;
}

.comment-info {
	font-size: 0.9rem;
	margin-top: 6px;
	color: #555;
	text-align: center;
}

.comment-info a {
	color: #49abaa;
	font-weight: 600;
	text-decoration: none;
}

.comment-info a:hover {
	text-decoration: underline;
}

.comments-container {
	max-width: 800px;
	margin: 2rem auto;
	padding: 1rem;
}

.comments-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.comments-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.toggle-label {
	color: #007bff;
	font-size: 0.9rem;
}

/* Custom switch */
.switch {
	position: relative;
	display: inline-block;
	width: 36px;
	height: 20px;
}
.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}
.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	border-radius: 34px;
	transition: 0.4s;
}
.slider:before {
	position: absolute;
	content: '';
	height: 14px;
	width: 14px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	border-radius: 50%;
	transition: 0.4s;
}
.switch input:checked + .slider {
	background-color: #49abaa;
}
.switch input:checked + .slider:before {
	transform: translateX(16px);
}
/* przycisk otwierania komentarza */
.comment-btn {
	display: inline-block;
	padding: 10px 16px;
	margin-top: 10px;
	font-size: 1rem;
	font-weight: bold;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease;
	color: white;
	background-color: var(--dominant-color);
}

.comment-btn:hover {
	background-color: var(--dominant-color-hover);
}

/* Comment card */
.comment-card {
	background: #f9f9f9;
	border-radius: 8px;
	padding: 1rem;
	margin-bottom: 1rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.user-info {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
}

.user-text {
	display: flex;
	flex-direction: column;
}

.username {
	color: #007bff;
	font-weight: bold;
}

.review {
	font-weight: normal;
	color: #333;
}

.time {
	color: #888;
	font-size: 0.85rem;
}

.comment-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 0.75rem;
}

.action-links small {
	color: #666;
	cursor: pointer;
	font-size: 0.85rem;
}

.dot {
	margin: 0 6px;
	color: #aaa;
}

.comment-icons {
	font-size: 1.2rem;
	color: #f0ad4e;
}

.comment-icons .check {
	color: #28a745;
	margin-left: 10px;
}

.author-line {
	margin-top: 2rem;
	font-size: 0.95rem;
	font-style: italic;
	text-align: right;
	color: #666;
	padding: 8px 0;
	border-top: 1px solid #ddd;
}

.author-label {
	font-weight: bold;
	color: var(--dominant-color);
}

.author-name {
	margin-left: 4px;
}
/* nowe komentarze */
.comments-container {
	margin-top: 40px;
	padding: 20px;
	background: #f8fafc;
	border-radius: 12px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
}

.comments-header h5 {
	margin-bottom: 20px;
	font-size: 1.3rem;
	color: var(--dominant-color);
	border-bottom: 2px solid #e0e0e0;
	padding-bottom: 8px;
}

.comment-card {
	background: #fff;
	border-radius: 8px;
	padding: 15px 20px;
	margin-bottom: 15px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.comment-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.user-info {
	display: flex;
	flex-direction: column;
}

.username {
	font-weight: bold;
	color: #333;
	font-size: 0.95rem;
}

.time {
	font-size: 0.75rem;
	color: #999;
}

.comment-rating {
	font-size: 1rem;
	color: #f5a623;
	font-weight: bold;
}

.comment-body p {
	font-size: 0.95rem;
	margin: 0;
	color: #444;
	line-height: 1.5;
}
.comment-rating {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
}

.stars {
	font-size: 0.9rem;
	color: #f5a623;
	font-weight: bold;
}

.stars-display {
	font-size: 1.1rem;
	color: #f5a623;
	line-height: 1;
	letter-spacing: 1px;
}
.buy-coffee-button {
	display: inline-block;
	margin-left: 10px;
	padding: 10px 14px;
	background-color: #ffdd57; /* żółty */
	color: #333; /* ciemny tekst dla kontrastu */
	text-decoration: none;
	border-radius: 5px;
	font-weight: bold;
	transition: background-color 0.2s;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.buy-coffee-button:hover {
	background-color: #f4c542;
}

/* sekcja proponowanych */
.proponowane-bajki {
	max-width: 720px;
	margin: 60px auto 30px auto;
	padding: 30px 25px;
	background: var(--article-bg);
	border-radius: 12px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
	font-size: var(--user-font-size, 1rem);
	line-height: 1.8;
	color: var(--article-text);
}

.proponowane-bajki h2 {
	font-size: 1.4rem;
	font-weight: 600;
	margin: 0 0 1.2rem 0;
	line-height: 1.4;
	color: var(--article-text);
	text-align: left; /* jak w .article-content */
}

.bajki-lista {
	display: flex;
	justify-content: center; /* wyśrodkowanie w poziomie */
	gap: 2rem;
	flex-wrap: wrap;
	padding-top: 1rem;
}

.bajka-polecana {
	display: block;
	width: 150px;
	text-align: center;
	text-decoration: none;
	color: inherit;
}

.bajka-polecana img {
	width: 100%;
	border-radius: 0.5rem;
	aspect-ratio: 4/3;
	object-fit: cover;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bajka-polecana h3 {
	font-size: 1rem;
	margin-top: 0.5rem;
}

@media (max-width: 768px) {
	.progress-bar {
		z-index: 100;
	}
}
