/* RESET I PODSTAWOWE USTAWIENIA */
* {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    box-sizing: border-box; /* Ułatwia zarządzanie rozmiarami */
}

/* STYL DLA BODY */
body {
    min-height: 100vh;
    width: 100vw;
    /* Subtelny gradient w tle (możesz usunąć, jeśli wolisz jednolity kolor) */
    background: linear-gradient(120deg, #1e2228 0%, #2f3e46 100%);
    color: #c3e88d; /* Jasnozielony tekst */
    overflow-x: hidden; /* Zapobiega pojawianiu się paska przewijania w poziomie */
    background-color: #273138;
}

/* ELEMENT TŁA – "fly_orb" */
#fly_orb {
    position: absolute;
    z-index: -1;
    width: 300px;
    height: 300px;
    border-radius: 500px;
    background-size: cover;
    pointer-events: none;
}

/* GŁÓWNY KONTENER */
#main_expander {
    width: calc(100vw - 100px);
    margin: 50px auto; /* Skrócona forma margin-left: auto; margin-right: auto; */
}

/* NAGŁÓWEK */
header {
    width: 80%;
    margin: 0 auto;
    text-align: center;
    background-color: #2f3e46; /* Ciemnozielone tło */
    color: #c3e88d;           /* Jasnozielony tekst */
    padding: 2em 0;          /* Dodajemy wewnętrzny odstęp, zamiast sztywnej wysokości */
    border-bottom: 2px solid #9b7b1a; /* Subtelna linia na dole nagłówka */
}

/* NAGŁÓWEK h1 W HEADER */
header h1 {
    font-size: 4vw;          /* Poprawiono z 4..3vw -> 4vw */
    margin-bottom: 0.5em;    /* Mniejszy odstęp na dole */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Delikatny cień pod tekstem */
}

/* GLOBALNE h1 – USUNIĘTE/ODKOMENTOWANE, JEŚLI POTRZEBNE
   Jeśli chcesz inne h1 w pozostałych miejscach, nadaj mu klasę (np. .main-title) */
h1 {
    font-size: 35px;
    margin: 10px 0;
}
/* STYL DLA AKAPITÓW */
p {
    background-color: #2f3e46; /* Ciemnozielone tło */
    margin: 10px;
    padding: 10px;
    border: 2px solid #9b7b1a;
    border-radius: 5px;       /* Zaokrąglone rogi */
    color: #c3e88d;           /* Jasnozielony tekst */
    line-height: 1.5;         /* Poprawia czytelność */
}



@keyframes fallLinear {
    0% {
        transform: translateY(0);
        opacity: 0.24;
    }
    100% {
        transform: translateY(100vh);
        opacity: 1;
    }
}
/* Styl dla przycisku */
#homeButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff5f57; /* Kolor tła przycisku */
    color: white;
    font-size: 24px; /* Wielkość emotki */
    padding: 15px;
    border-radius: 50%; /* Zaokrąglony przycisk */
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Cień wokół przycisku */
    cursor: pointer;
    transition: all 0.3s ease; /* Płynna animacja */
    font-family: 'Arial', sans-serif; /* Czcionka */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Efekty dla przycisku podczas najechania */
#homeButton:hover {
    background-color: #ff7766; /* Jaśniejszy kolor tła przy najechaniu */
    transform: scale(1.1); /* Powiększenie przycisku przy najechaniu */
}

/* Stylowanie przycisku, aby był wyraźniejszy */
#homeButton:focus {
    outline: none; /* Usunięcie konturu, gdy przycisk jest wybrany */
}

/* Animacja */
@keyframes bounceButton {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

/* Dodanie animacji przycisku */
#homeButton {
    animation: bounceButton 1s ease-out forwards;
}

.first_floaty_div {
    background-color: #2f3e46;
    width: 100px;
    height: 50px;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11;
    animation: fallLinear 10s linear infinite;
    font-size: 2em;
    color: white;
    border-radius: 5%;
}



/* GŁÓWNA SEKCJA */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* KONTENER TREŚCI */
.content {
    margin: 25px 0;
    width: 100%;
    display: flex;
    height: auto; /* Zmieniono z 80% na auto, żeby nie ścinało zawartości */
    justify-content: center; /* Ustawia elementy w poziomie po środku */
    flex-wrap: wrap;         /* Pozwala zawijać się elementom w mniejszych oknach */
}

/* Akapity wewnątrz .content */
.content > p {
    padding: 10px;
}

/* SKRZYNKA Z TREŚCIĄ */
.content_box {
    width: 80%;
    border: 3px dotted #9b7b1a; /* Delikatniejsza linia */
    border-radius: 8px;        /* Zaokrąglone rogi */
    padding: 30px 3%;
    background-color: #2f3e46;  /* Ciemnozielone tło */
    margin-top: 50px;          /* Mniejszy górny margines */
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Subtelny cień wokół */
}

/* Paragrafy wewnątrz dowolnego div */
div > p {
    margin-left: 5px;
    user-select: none;
}

/* FLEXBOX */
.flex {
    display: flex;
    max-width: 100%;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    header {
        width: 95%;
        padding: 1em 0;
        margin-bottom: 1em;
    }
    
    header h1 {
        font-size: 6vw;
        margin-bottom: 0.5em;
    }
    
    #main_expander {
        width: calc(100vw - 40px);
    }
    
    #fly_orb {
        width: 200px;
        height: 200px;
    }
    
    .content {
        flex-direction: column;
        padding: 0 10px;
        height: auto;
    }
    
    .content_box {
        width: 95%;
        margin-top: 20px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    header h1 {
        font-size: 8vw;
    }

    #suwak_box {
        width: 100%;
        height: 250px;
    }

    #suwak_desc {
        width: 90%;
    }

    #signup,
    #login {
        width: 100%;
    }

    .content {
        align-items: center;
    }

    .content_box {
        width: 100%;
        padding: 30px;
    }
}