﻿html, body {
    height: 100%;
}

    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        background-size: cover;
        background-position: center center;
        opacity: 0.7;
    }

#map {
    height: 100%;
    width: 100%;
    z-index: 0;
}

.top-controls {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.side-panel {
    position: fixed;
    top: 30%;
    right: -220px;
    width: 220px;
    background-color: #f8f9fa;
    border-left: 1px solid #ddd;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: right 0.3s ease;
    border-radius: 8px 0 0 8px;
}

    .side-panel.open {
        right: 0;
    }

.panel-toggle {
    position: absolute;
    top: 10px;
    left: -40px;
    width: 40px;
    height: 40px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .panel-toggle i {
        font-size: 1.125rem;
    }

.select2-results__option--highlighted {
    background-color: #198754 !important;
    color: white !important;
}

.select2-container--default .select2-selection--multiple {
    background-color: #f2f5f7;
    border: 2px solid #198754;
    border-radius: 6px;
    padding: 8px;
    min-height: 50px;
    font-size: 1rem;
}

    .select2-container--default .select2-selection--multiple .select2-selection__choice {
        background-color: #198754 !important;
        border: none;
        border-radius: 20px;
        color: white !important;
        padding: 2px 14px;
        margin: 5px 6px 5px 0;
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.3;
        border: 1px solid white;
    }

    .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
        color: white !important;
        margin-right: 8px;
        font-size: 1.1875rem;
        background-color: #198754 !important;
        border-right: 1px solid white;
        margin-top: -2px;
    }

    .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
        cursor: default;
        padding-left: 12px;
        padding-right: 5px;
    }

.custom-alert-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #ffe5e5;
    border-left: 6px solid #dc3545;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #6c0d0d;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

    .custom-alert-error::before {
        content: "❗";
        font-size: 1.2rem;
    }

.corner-image {
    position: absolute;
    right: 0;
    bottom: -24px;
    padding-right: 20px;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
}

    .corner-image img {
        max-width: 200px;
        height: auto;
        opacity: 0.9;
        pointer-events: none;
    }

.corner-image-left {
    left: 0;
    bottom: 0;
    padding-left: 20px;
    display: flex;
    justify-content: flex-start;
    pointer-events: none;
}

    .corner-image-left img {
        max-width: 100px;
        height: auto;
        opacity: 0.9;
        transform: translateY(35px);
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: auto;
        z-index: 10000;
    }

        .corner-image-left img:hover {
            transform: translateY(0);
            opacity: 1;
        }

.footer {
    position: static;
    width: 100%;
    z-index: 100000;
}

    .footer a {
        text-decoration: none;
    }

.footer-links {
    overflow-x: hidden;
    padding: 10px 0;
}

.content {
    position: relative;
}

.brand-text {
    position: relative;
    z-index: 1;
    margin-left: 40px;
}

.seedling-grass {
    position: absolute;
    bottom: 7px;
    right: 35px;
    height: 25px;
    z-index: 1;
}

.hover-grow {
    transition: transform 0.3s ease-in-out;
}

    .hover-grow:hover {
        transform: scale(1.1);
    }

.hover-grow {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

    .hover-grow::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
    }

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 0px;
    z-index: 999999;
    background-color: black;
    color: white;
    border: none;
    outline: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    font-size: 1.25rem;
    transition: opacity 0.3s ease-in-out;
}

.modal-dialog-bottom-end {
    position: fixed;
    bottom: 60px;
    right: 20px;
    margin: 0;
    max-width: 400px;
}

.ad-img {
    object-fit: contain;
    height: 200px;
}

/*body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

    body.dark-mode .side-panel {
        background-color: #1e1e1e;
        color: #ffffff;
    }

    body.dark-mode .form-check-label {
        color: #ffffff;
    }*/

/*ROZMIARY CZCIONEK z PANELU*/

html.font-size-small {
    font-size: 87.5%;
}

html.font-size-normal {
    font-size: 100%;
}

html.font-size-large {
    font-size: 112.5%;
}

@media (min-width: 768px) {
    html {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .modal-dialog-bottom-end {
        bottom: 100px;
    }

    .navbar-brand {
        font-size: 1.75rem;
    }

    .brand-text {
        margin-left: 30px;
    }

    .seedling-grass {
        right: 9px;
        height: 20px;
    }

    .corner-image {
        height: 130px;
    }

    footer.footer .footer-links {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem;
        padding: 0 1rem !important;
    }

        footer.footer .footer-links > div {
            width: 100%;
            text-align: center;
            margin-bottom: 0.3rem;
        }

            footer.footer .footer-links > div:first-child {
                margin-bottom: 0.6rem;
            }

    footer.footer a.text-dark {
        font-size: 0.85rem;
        margin-right: 0.5rem;
    }

    footer.footer i.fab {
        font-size: 1.2rem !important;
        vertical-align: middle;
    }

    footer.footer b {
        font-weight: 600;
        font-size: 0.9rem;
    }

    footer.footer .d-flex.align-items-center a {
        margin-right: 0.5rem;
        font-size: 0.85rem;
    }

    footer.footer a[style*="height: 40px"] {
        height: auto !important;
    }

    .navbar-collapse {
        justify-content: center !important;
        padding: 0.5rem 0;
    }

        .navbar-collapse .navbar-nav {
            flex-direction: row !important;
            justify-content: center;
            gap: 1rem;
            padding: 0;
            margin: 0;
        }

        .navbar-collapse .nav-item {
            margin: 0 !important;
        }

        .navbar-collapse .nav-link {
            padding: 0.3rem 0.5rem;
            font-size: 0.85rem;
            white-space: nowrap;
        }
}

@media (max-width: 767px) and (min-width: 523px) {
    .seedling-grass {
        right: 29px;
    }
}

@media (max-width: 576px) {
    .ad-img {
        height: 130px;
    }

    .card-body h6 {
        font-size: 1rem;
    }

    .card-body p,
    .card-body .card-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 522px) {
    .footer {
        line-height: 30px !important;
    }

    .corner-image {
        height: 100px;
    }

    .navbar-brand {
        font-size: 1.5625rem;
    }

    .seedling-grass {
        right: 29px;
    }
}

@media (max-width: 450px) {
    .navbar-toggler {
        font-size: .75rem;
    }
}

@media (max-width: 403px) {
    .modal-dialog-bottom-end {
        transform: translateX(-50%);
        right: auto;
    }

    .corner-image {
        height: 80px;
    }

    .seedling-grass {
        right: 22px;
    }
}

@media (max-width: 374px) {
    .navbar-brand {
        font-size: 1.375rem;
    }

    .seedling-grass {
        right: 20px;
        height: 16px;
    }
}
