html {
    scroll-behavior: smooth;
}

body
{
    color: rgb(33, 3, 31);
    font-size: 1.2rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
span {
    display: block;
    margin: 20px;
    padding: 20px;
    text-align: center;
    background-color: whitesmoke;
    opacity: 0.6;
    border-radius: 7px;
}
span:hover {
    opacity: 1;
}
#social 
{
    float: left;
    width: auto;
    height: 50px;
    font-size: 2rem;
    margin-top: 30px;
    margin-left: 100px;
    padding-right: 20px;
    padding-left: 20px;
}
#social a {
    color: #054d3d;
}
#social a:hover {
    padding: 5px;
    color: rgb(170, 170, 170);
    opacity: 1;
    border-radius: 2px;
    transition: all 0.5s;
}
#social .fa-facebook-square:hover,
#social .fa-linkedin:hover 
{ color: #1877f2; }
#social .fa-phone:hover {
    color: #008000;
}

#social a:visited {
    color: rgb(115, 115, 115);
}
#fb-link, #phone-link {
    padding-right: 30px;
}
#container header
{
    margin: 0 auto 0 auto;
    position: relative;
}
.navbar {
    margin-top: 20px;
    position: sticky;
}
.navbar ul {
    margin: auto;
    width: 55%;
    justify-content: space-evenly;
    list-style: none;
}
.navbar ul li a {
    margin-left: 3px;
    color: rgb(41, 0, 42);
    opacity: 0.8;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-decoration: none;
    font-weight: bold;
}
.navbar-nav {
    display: flex;
    flex-direction: row;
    margin-top: 15px;
    margin-bottom: 15px;
}

.nav-link {
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color:lightgray;
    border-radius: 7px;
}

.navbar-toggler {
    display: block;
    border: 1px solid rgba(0,0,0,.1);
    background-color: transparent;
    padding: .25rem .75rem;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

@media (min-width: 768px) {
    .navbar-toggler {
        display: none;
    }
}
@media (min-width: 1540px) {
    .navbar {
        margin-top: 20px !important;
    }
    #social 
    {
        margin-right: 450px;
    }
}

@media (min-width: 1100) and (max-width: 1599.9px) {
    .navbar {
        margin-top: 50px;
    }
}
@media (max-width: 1099.9px) {
    .navbar {
        margin-top: 25px;
}

@media (max-width: 850px) {
    .container-fluid {
        font-size: 1.3rem;
    }
    .navbar-nav {
        flex-direction: column;
}
}
}
.dropdown-item.active, .dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #9809a5;
}
.dropdown-item:hover{ 
    color: white;
    background-color: rgb(170, 170, 170)
}
.child { margin-left: 30px;}
.error {
    text-align: center;
    font-size: 1.3rem;
}
.error button {
    margin-top: 10px;
    padding: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 5px;
    color: #fff;
    background-color: #ff00ee;
}
.error button {
    cursor: pointer;
}
#notFound {
    display: block;
    width: 300px;
    margin: 50px auto;
}

#contact-section {
    background-color:whitesmoke;
    opacity: 0.8;
    color: rgb(100, 70, 100);
    font-size: 1.3rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: center;
    margin-bottom: 10px;
    margin-top: 20px;
}
#contact-section:hover {
    opacity: 1;
}
h2, h3 {
    margin-top: 20px;
}
p {
    margin-bottom: 0;
}
#contact-section a {
    margin-right: 10px;
    color: rgb(100, 70, 100);
    text-decoration: none;
}
#contact-section p {
    font-size: 1.4rem;
    padding-right: 20px;
    margin-top: 10px;
    margin-left: 20px;
}
#contact-section a:hover {
    padding: 5px;
    color: rgb(50, 50, 50);
    opacity: 1;
    border-radius: 2px;
    transition: all 0.5s;
}
#contact-section .fa-facebook-square:hover,
#contact-section .fa-linkedin:hover 
{ color: #1877f2; }
#contact-section .fa-phone:hover {
    color: #008000;
}

#contact-section a:visited {
    color: rgb(115, 115, 115);
}
#contact-section .policy:hover { 
    color: rgb(0, 115, 255);
    font-style: italic;
    text-decoration: underline;
}
#alinowka {
    font-size: 1rem;
}
.scrollTopButton {
    color: #054d3d;
    position: fixed;
    right: 20px;
    bottom: 20px;
    opacity: 0.5;
    border-radius: 50%;
    cursor: pointer;
    height: 50px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
	transition: background-color 0.3s;
}
.scrollTopButton:hover {
    opacity: 1;
}
.scrollTopButton img {
    width: 60px;
    height: 60px;
    z-index: 1000;
}
#policy {
    position: absolute;
    justify-content: center !important;
    text-align: center !important;
    margin-top: 100px;
}
#policy p {
    margin-top: 20px;
}
.hide {
	display: none;
}

.cookie-box {
    position:fixed;
    bottom: 20px;
    margin: 5px 10px;
    width: 400px;
    z-index: 1000;
    background-color: #cecece;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    opacity: 0.7;
}
.cookie-box:hover {
    opacity: 1;
}
.cookie-box a { 
    text-decoration: none;
    color: rgb(0, 169, 189);
}
.cookie-box a:hover {
    color: rgb(150, 150, 150);
    font-style: italic;
    text-decoration: underline;
}

.hide {
    display: none;
}

.cookie-btn {
    margin: 20px;
    padding: 5px 10px;
    cursor: pointer;
    border: none;
    border-radius: 3px;
}

.accept-btn {
    width: 100px;
    background-color: #4CAF50;
    color: white;
}
.cancel-btn {
    width: 100px;
    background-color: #f44336;
    color: white;
}

.circle {
	position: absolute;
	width: 80px;
	height: 80px;
	background-color: #fff;
	border-radius: 50%;
	transform: translate(-50%, -50%) scale(0);
	animation: zoom .3s;
}
@keyframes zoom {
	to {
		transform: translate(-50%, -50%) scale(2);
		opacity: 0;
	}
}
@media (min-width: 768px) {
.navbar-expand-md .navbar-nav {
    flex-direction: row;
    align-items: center;
    }
}

.navbar-nav ul li {
    text-decoration: none;
}

#login-form {
	position: fixed;
	left: 20px;
	bottom: 70px;
	z-index: 1000;
	float: right;
	margin-top: 10px;
	margin-left: 20px;
}

#show-login-btn {
	background-color: #054d3d;
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	font-size: 0.9rem;
	cursor: pointer;
	transition: background-color 0.3s;
}

#show-login-btn:hover {
	background-color: #5f5f5f;
}

#password-section {
	display: flex;
	gap: 5px;
	margin-top: 5px;
}

#password-section input {
	padding: 5px 8px;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 1rem;
}

#password-section button {
	padding: 5px 20px;
	border: none;
	border-radius: 3px;
	font-size: 0.8rem;
	cursor: pointer;
	transition: background-color 0.3s;
}

#password-section button[type="submit"] {
	background-color: #28a745;
	color: white;
}

#password-section button[type="submit"]:hover {
	background-color: #218838;
}

#cancel-login-btn {
	background-color: #dc3545;
	color: white;
}

#cancel-login-btn:hover {
	background-color: #c82333;
}

#content-top {
    background: linear-gradient(135deg, #e3f2fd, #f1f8e9);
    border-radius: 8px;
    padding: 20px;
    border-left: 5px solid #2196f3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: none;
}

#content-sidebar {
    background: linear-gradient(135deg, #fff3e0, #fce4ec);
    border-radius: 8px;
    padding: 20px;
    border-left: 5px solid #ff9800;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    margin: 20px 0;
    display: none;
}

#content-sidebar::before {
    content: "📌";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
}

#content-bottom {
    background: linear-gradient(135deg, #f3e5f5, #e8f5e8);
    border-radius: 8px;
    padding: 20px;
    border-left: 5px solid #054d3d;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 20px;
    display: none;
}

#content {
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
}

#section-select {
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9rem;
    cursor: pointer;
}

#section-select:focus {
    outline: none;
    border-color: #054d3d;
    box-shadow: 0 0 5px rgba(5, 77, 61, 0.3);
}

button[onclick*="editBtn"], 
button[onclick*="resizeBtn"], 
button[onclick*="deleteBtn"] {
    margin: 5px 5px 0 0;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

button:contains("✏️"), button:contains("🔄") {
    background-color: #17a2b8;
    color: white;
}

button:contains("📏") {
    background-color: #28a745;
    color: white;
}

button:contains("🗑") {
    background-color: #dc3545;
    color: white;
}

button:contains("✏️"):hover, button:contains("🔄"):hover {
    background-color: #138496;
}

button:contains("📏"):hover {
    background-color: #218838;
}

button:contains("🗑"):hover {
    background-color: #c82333;
}

.text-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
}

.text-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: none;
    border-radius: 12px;
    width: 70%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.text-modal h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 20px;
}

.text-modal textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.text-modal textarea:focus {
    outline: none;
    border-color: #054d3d;
    box-shadow: 0 0 10px rgba(5, 77, 61, 0.2);
}

.text-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.text-modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.text-modal-save {
    background-color: #054d3d;
    color: white;
}

.text-modal-save:hover {
    background-color: #043a2f;
    transform: translateY(-1px);
}

.text-modal-cancel {
    background-color: #6c757d;
    color: white;
}

.text-modal-cancel:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.text-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.text-modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.text-modal-tip {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    text-align: center;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #054d3d;
}

.bg-light {
    background-color: #f8f9fa !important;
    opacity: 0.8;
}
.bg-light:hover {
    opacity: 1;
}
.header-title {
    width: 100%;
}
.header-content {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .header-text {
        min-width: auto;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.caption {
    color: white;
    text-align: center;
    padding: 10px;
}

.content-item {
    margin-bottom: 15px;
    position: relative;
}

.content-item.content-text {
    line-height: 1.6;
    font-size: 1.1rem;
    padding: 10px 0;
    text-align: center;
}

@media (min-width: 769px) {
    .content-item.content-text {
        margin-left: 20px;
    }
}

.edit-buttons {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.edit-buttons button {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.edit-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Kolory przycisków edycji */
.edit-buttons button:nth-child(1) {
    background-color: #17a2b8;
    color: white;
}

.edit-buttons button:nth-child(1):hover {
    background-color: #138496;
}

.edit-buttons button:nth-child(2) {
    background-color: #28a745;
    color: white;
}

.edit-buttons button:nth-child(2):hover {
    background-color: #218838;
}

.edit-buttons button:nth-child(3),
.edit-buttons button:last-child {
    background-color: #dc3545;
    color: white;
}

.edit-buttons button:nth-child(3):hover,
.edit-buttons button:last-child:hover {
    background-color: #c82333;
}