/* Podstawowe ustawienia */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ff5722, #ff9800);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: white;
    overflow: hidden;
    position: relative;
}

/* Kontener na zawartość */
.container {
    text-align: center;
    z-index: 2;
    animation: fadeIn 1s ease-in-out;
}

/* Napis główny */
.main-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

/* Przycisk */
.animated-button {
    font-size: 1.5rem;
    color: white;
    background: #0288d1;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Animacja zoom i zmiana koloru przy najechaniu */
.animated-button:hover {
    transform: scale(1.1);
    background: #02669c;
}

/* Animacja kliknięcia */
.animated-button:active {
    transform: scale(1);
    background: #024e74;
}

/* Nakładka przejściowa */
#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0288d1, #ff5722);
    z-index: 1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s ease-in-out;
}

/* Aktywacja animacji */
body.transitioning #transition-overlay {
    transform: scaleX(1);
}

/* Kluczowe klatki dla fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
