body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f9f9f9;
    position: relative;
    overflow-x: hidden;
}

header {
    background: #5195d2;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

nav ul li a:hover {
    color: #ffcc00;
}

section {
    padding: 20px;
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin: 10px 0 5px;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

form input:focus, form textarea:focus {
    border-color: #5195d2;
    box-shadow: 0 0 5px rgba(81, 149, 210, 0.5);
}

.submit-button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: #5195d2;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
    margin-top: 20px;
    text-align: center;
}

.submit-button:hover {
    background: #4178a3;
    transform: scale(1.05);
}

/* Nowe style dla nagłówka "Kontakt" */
.centered-header {
    text-align: center;
    font-size: 2.5rem;
    color: #5195d2;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.centered-header::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #5195d2;
    margin: 10px auto 0;
    opacity: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.centered-header:hover {
    color: #ffcc00;
}

.centered-header:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

/* Inne style... */

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.about-image img {
    width: 400px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-left: 40px;
    transition: opacity 0.5s ease-in-out;
}

.about-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.about-text {
    max-width: 600px;
    margin-left: 20px;
    opacity: 0;
    animation: fadeInSection 1s ease-in-out forwards;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-text h2 {
    font-size: 2.5rem;
    margin-top: 0;
    color: #333;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.6s ease-in-out forwards;
}

.about-text h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s ease-in-out forwards;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 1s ease-in-out forwards;
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delikatne podkreślenie tytułów */
.about-text h2::after, .about-text h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #5195d2;
    margin-top: 10px;
    opacity: 0;
    transform: scaleX(0);
    animation: scaleIn 0.6s ease-in-out forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin-bottom: 20px;
    }

    .about-text {
        margin-left: 0;
    }
}

/* Stylowanie canvas do rysowania */
#whiteboard {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: none;
    cursor: url('flamaster.png'), auto;
}

.drawer {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 20;
}

.drawer img {
    width: 40px; /* Adjust size as needed */
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 5px;
}

.drawer img:active {
    transform: scale(0.95);
}

.drawer img:focus {
    outline: none;
}

/* Ripple effect on click */
.drawer img:active::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: inherit;
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Ukrycie przycisku rysowania na urządzeniach mobilnych */
@media (max-width: 768px) {
    .drawer {
        display: none !important; /* Użycie !important, aby upewnić się, że styl zostanie zastosowany */
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    header, section {
        text-align: center;
    }

    form input, form textarea, .submit-button {
        width: 100%;
    }

    .about-image img {
        width: 300px;
    }

    .about-container {
        padding: 10px;
    }

    section {
        margin: 10px 0;
    }

    header {
        padding: 10px 0;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-text h3 {
        font-size: 1.3rem;
    }
}
