@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

body {
    margin: 0;
    padding: 0;
    display: flex;
    
    flex-direction: column; 
    align-items: center; 
    
    min-height: 100vh;
    font-family: 'Playfair Display';
}

nav {
    border-radius: 100px;
    border: 1px rgba(220, 220, 220, 0.7) solid;
    z-index: 999;
    position: fixed;
    padding: 1%;
    margin: 2%;
    display: flex;
    flex-wrap: wrap;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    gap: 30px;
    justify-content: center;
    align-items: center;
    width: 900px;
    background-color: rgba(255, 255, 255, 0.5);
}

a {
    padding: 2%;
    text-decoration: none;
    color: black;
    transform: scale(1);
    transition: all 0.3s ease;
}

a:hover {
    transform: scale(1.1);
    color: rgb(94, 94, 94);
    text-shadow: 0 0 10px rgb(209, 209, 209);
}

.main-div {
    margin-top: 200px;
    max-width: 1080px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.fade {
    font-family: 'Playfair Display', sans-serif;
    color: #333;
    font-size: 300%;
    
    opacity: 0;
    transform: translateY(20px);
    
    transition: transform 2.5s ease-in-out, opacity 2.5s ease-in-out;
}

.fade.element-widoczny {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pojawienieTekstu {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.text {
    font-size: 200%;
}

.info-container {
    margin-top: 100px;
    margin-bottom: 100px;
    max-width: 1080px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    
    border-radius: 50px;
    border: 1px rgba(220, 220, 220, 0.7) solid;
    padding: 50px 40px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.info-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    font-family: 'Playfair Display', sans-serif;
    color: #333;
    font-style: italic;
}

.info-section:last-child {
    grid-column: auto; 
}

.info-section h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
}

.info-section p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 25px;
}

.btn-donate {
    margin-top: auto;
    padding: 12px 24px;
    border: 1px solid rgba(220, 220, 220, 0.7);
    border-radius: 100px;
    background-color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-donate:hover {
    transform: scale(1.05);
    background-color: rgb(255, 196, 0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

footer {
    width: 100%;
    max-width: 1080px;
    margin-top: auto;
    padding: 20px 0;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px dashed rgba(220, 220, 220, 0.5);
}

.os-badge {
    background-color: rgba(240, 240, 240, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(200, 200, 200, 0.5);
    color: #444;
    transition: all 0.3s ease;
}

.os-badge:hover {
    background-color: rgb(255, 196, 0);
}

.active {
    font-weight: bold;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
}

img {
    border-radius: 50px;
}

@media (max-width: 768px) {
    body {
        align-items: stretch;
        overflow-x: hidden;
    }

    nav {
        width: calc(100% - 32px);
        margin: 16px;
        padding: 12px 16px;
        gap: 8px 14px;
        border-radius: 28px;
        box-sizing: border-box;
    }

    a {
        padding: 8px 10px;
        font-size: 0.95rem;
    }

    main {
        width: 100%;
        box-sizing: border-box;
    }

    .main-div {
        width: 100%;
        max-width: none;
        margin-top: 150px;
        padding: 0 22px;
        box-sizing: border-box;
    }

    .main-div + .main-div {
        margin-top: 32px;
    }

    .fade {
        font-size: 220%;
    }

    .text {
        font-size: 1.25rem;
        line-height: 1.55;
    }

    .info-container {
        width: calc(100% - 32px);
        margin-top: 56px;
        margin-bottom: 56px;
        padding: 32px 22px;
        border-radius: 28px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .info-section h3 {
        font-size: 1.3rem;
    }

    .info-section p {
        font-size: 0.98rem;
    }

    .btn-donate {
        width: fit-content;
        max-width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box;
    }

    .os-badge {
        display: inline-flex;
        justify-content: center;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    img {
        width: 100%;
        height: auto;
        border-radius: 26px;
    }

    footer {
        width: calc(100% - 32px);
        padding: 18px 16px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    nav {
        width: calc(100% - 24px);
        margin: 12px;
        padding: 10px;
        gap: 6px;
        border-radius: 22px;
    }

    a {
        padding: 7px 8px;
        font-size: 0.86rem;
    }

    .main-div {
        margin-top: 138px;
        padding: 0 16px;
    }

    .fade {
        font-size: 175%;
    }

    .text {
        font-size: 1.05rem;
    }

    .info-container {
        width: calc(100% - 24px);
        margin-top: 40px;
        margin-bottom: 40px;
        padding: 26px 16px;
        border-radius: 22px;
    }

    .info-section h3 {
        font-size: 1.15rem;
    }

    .info-section h2 {
        font-size: 1.2rem;
    }

    .info-section p {
        font-size: 0.94rem;
    }

    .btn-donate {
        padding: 11px 18px;
        font-size: 0.95rem;
    }

    .os-badge {
        width: 100%;
        padding: 9px 12px;
    }

    img {
        border-radius: 20px;
    }

    footer {
        width: calc(100% - 24px);
        font-size: 0.8rem;
    }
}

