* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
    text-align: center;
    background-color: #f2f8fa;
    background-image:
        radial-gradient(circle at 85% 30%, rgba(255,255,255,0.7) 0%, transparent 25%),
        radial-gradient(circle at 80% 10%, #a2c4d2 0%, transparent 45%),
        radial-gradient(circle at 15% 25%, #bcecf9 0%, transparent 40%),
        radial-gradient(circle at 50% 85%, rgba(143, 188, 201, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 95% 90%, #aeddf2 0%, transparent 25%);
    background-attachment: fixed;
    color: #122630;
}

#pogodaBox {
    position: fixed;
    top: 25px;
    left: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

#pogodaIkona {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

#pogodaTemp {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    color: #122630;
}

#pogodaSeparator {
    width: 1.5px;
    height: 20px;
    background: rgba(18, 38, 48, 0.2);
    margin: 0 5px;
}

#pogodaMiasto {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    color: #122630;
    opacity: 0.5;
}

.wszystko {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px 40px;
    box-sizing: border-box;
}

#panelOpcji {
    position: fixed;
    width: 260px;
    flex-shrink: 0;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    gap: 10px;
    color: #4a6b75;
    margin-bottom: 20px;
}

.wybor {
    width: 100%;
    max-width: 300px;
}

#selectRasa {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    margin-bottom: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(143, 188, 201, 0.4);
    color: #122630;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.wybor label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.7;
}

#inputSzukaj {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 12px;
    font-family: inherit;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.4); 
    border: 1px solid rgba(143, 188, 201, 0.5);
    color: #122630;
}

#inputSzukaj:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.6);
    border-color: #4a6b75;
    box-shadow: 0 0 15px rgba(143, 188, 201, 0.2);
}

#inputSzukaj::placeholder {
    color: rgba(18, 38, 48, 0.5);
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 480px;
    padding: 40px 25px;
    margin: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 30px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #122630 0%, #4a6b75 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#wsparcieBox,
#panelOpcji,
.container {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(143, 188, 201, 0.6);
    border-radius: 25px;
    box-shadow: 0 8px 32px 0 rgba(3, 57, 108, 0.08);
}

#wsparcieBox {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.6s ease, box-shadow 0.3s ease;
}

#wsparcieBox:hover {
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.wsparcieContent {
    display: contents; 
}

.wsparcieTytul {
    order: 1;
    font-weight: bold;
    font-size: 25px;
    margin: 0 0 15px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.wsparcieImg {
    order: 2;
    width: 100%;
    margin-bottom: 20px;
    object-fit: cover;
}

.wsparcieBtn {
    order: 3;
    display: block;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #ff7e5f, #feb47b) !important;
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.3) !important;
    border-radius: 15px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.wsparcieBtn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    transform: rotate(45deg) scale(0);
    transition: transform 0.5s ease;
    border-radius: 50%;
}

.wsparcieBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 105, 135, 0.5);
}

.wsparcieBtn:hover::before {
    transform: rotate(45deg) scale(1);
}

.wsparcieDziekuje {
    order: 4;
    font-size: 16px;
    margin: 15px 0 0 0;
    font-style: italic;
    opacity: 0.9;
}

button {
    margin: 12px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 15px;
    background: linear-gradient(135deg, #5d8b99, #2c4c58);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 76, 88, 0.3),
                0 0 10px rgba(143, 188, 201, 0.2);
    border: 1px solid rgba(143, 188, 201, 0.3);
    letter-spacing: 0.8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 76, 88, 0.4),
                0 0 20px rgba(143, 188, 201, 0.4);
    background: linear-gradient(135deg, #6a99a8, #2c4c58);
}

button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.3);
}

button.disabled {
    pointer-events: none;
    opacity: 0.5;
}

#obrazek {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    border: none;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 15px 5px rgba(0, 229, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.stopkaSrodek {
    font-weight: bold;
}

.menuDodatki {
    position: absolute;
    right: 20px;
}

.listaProjektow {
    display: none; 
    position: absolute;
    bottom: 110%;
    right: 0;
    background: #fff;
    min-width: 190px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow: hidden;
}

.listaProjektow a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.listaProjektow a:hover {
    background: #f0f0f0;
}

.aktywneMenu {
    display: block;
}

.przyciskMenu {
    background: #4a6775;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
}

.darkMode {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
    position: fixed;
    isolation: isolate;
    top: 15px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(143, 188, 201, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
}

/* --- RESPONSIVE DESIGN --- */

@media (min-width: 1400px) {
    #panelOpcji {
        width: 300px;
        transition: all 0.6s ease;
    }
}

@media (max-width: 1150px) {
    .wszystko {
        flex-direction: column;
        padding: 20px 0;
        width: 100%;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }

    /* Wyrywamy z pozycjonowania fixed, żeby bloki się nie nakładały */
    #panelOpcji, 
    #wsparcieBox, 
    .container {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        transform: none !important;
        width: 90% !important;
        max-width: 480px;
        margin: 20px auto !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
        transition: all 0.6s ease;
    }

    #panelOpcji:hover, #wsparcieBox:hover {
        transform: scale(1.02);
    }

    /* Kolejność: Najpierw opcje, potem piesek, na końcu wsparcie */
    #panelOpcji { order: 1; }
    .container { order: 2; }
    #wsparcieBox { order: 3; }

    /* Stylizacja wsparcia na mobile (w poziomie, jak w dużym projekcie) */
    #wsparcieBox {
        flex-direction: row;
        padding: 15px;
        text-align: left;
    }

    .wsparcieImg {
        order: 1;
        width: 100px;
        height: auto;
        margin-left: 20px;
        margin-bottom: 0;
    }

    .wsparcieContent {
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 2;
        flex: 1;
    }

    .wsparcieTytul {
        order: unset;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .wsparcieBtn {
        width: auto;
        min-width: 140px;
        padding: 10px 20px;
        margin: 5px 0;
        order: unset;
    }

    .wsparcieDziekuje {
        order: unset;
        font-size: 14px;
        margin-top: 10px;
    }

    footer {
        position: relative;
        margin-top: auto;
        width: 100%;
    }
}

/* Ekstremalnie małe ekrany */
@media (max-width: 480px) {
    #pogodaBox {
        top: 15px;
        left: 15px;
        scale: 0.8;
    }

    .darkMode {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    #obrazek {
        height: 250px;
    }

    #wsparcieBox {
        flex-direction: column; /* Na bardzo małych jednak pionowo, by się zmieściło */
        text-align: center;
    }

    .wsparcieImg {
        margin: 0 0 15px 0;
    }
}

/* --- DARK MODE --- */
.darkMode:hover {
    transform: scale(1.15) rotate(15deg);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(143, 188, 201, 0.4);
}

.dark-mode .darkMode {
    background: rgba(15, 25, 35, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(0, 229, 255, 0.1);
}

.dark-mode .darkMode:hover {
    background: rgba(15, 25, 35, 0.9);
    border: 1px solid rgba(0, 229, 255, 0.6);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 229, 255, 0.4);
}

.dark-mode {
    background-color: #010407;
    background-image:
        radial-gradient(circle at 85% 30%, rgba(0, 229, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 10%, rgba(13, 50, 65, 0.4) 0%, transparent 45%),
        radial-gradient(circle at 15% 25%, rgba(0, 150, 199, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 85%, rgba(10, 25, 41, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 95% 90%, rgba(0, 119, 182, 0.2) 0%, transparent 25%);
    background-attachment: fixed;
    color: #e0e6ed;
}

.dark-mode #pogodaBox {
    background: transparent;
    border: none;
    box-shadow: none;
}

.dark-mode #pogodaTemp {
    color: #00e5ff;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
}

.dark-mode #pogodaMiasto {
    color: #e0e6ed;
    opacity: 0.8;
}

.dark-mode #pogodaSeparator {
    background: rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

.dark-mode #pogodaIkona {
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.4));
}

.dark-mode #wsparcieBox,
.dark-mode .container {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0px rgba(255, 255, 255, 0.1);
}

.dark-mode #inputSzukaj {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(5px);
}

.dark-mode #inputSzukaj:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.dark-mode #inputSzukaj::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.dark-mode #selectRasa {
    background: rgba(15, 25, 35, 0.7);
    color: #e0e6ed;
    border-color: rgba(0, 229, 255, 0.3);
}

.dark-mode button {
    background: linear-gradient(135deg, #00e5ff, #025757);
    border: 1px solid rgba(0, 229, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3),
                0 0 30px rgba(0, 229, 255, 0.1);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.dark-mode button:hover {
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6),
                0 0 50px rgba(0, 229, 255, 0.2);
    transform: translateY(-2px);
}

.dark-mode #obrazek {
    box-shadow:
        0 0 15px 5px rgba(0, 229, 255, 0.65),
        0 15px 40px rgba(0, 0, 0, 0.8);
}

.dark-mode .panel-tytul,
.dark-mode .wybor label,
.dark-mode .wsparcieTytul,
.dark-mode .wsparcieDziekuje {
    color: #bcecf9 !important;
    text-shadow: none;
}

.dark-mode .container h1 {
    background: linear-gradient(135deg, #ffffff 0%, #00e5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-mode footer {
    background: rgba(10, 15, 20, 0.6);
    border-top: 1px solid rgba(0, 200, 200, 0.2);
    color: #8f9ba8;
}