* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

header {
    background-color: #1e1e1e;
    padding: 15px 20px;
    display: flex; /* Ustawienie Flexbox */
    flex-direction: column; /* Ustawienie kierunku kolumny */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.logo a {
    text-decoration: none;
    color: #fff;
}
.logo a:hover {
    color: #4CAF50;
}
.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

.nav-links a:hover {
    color: #4CAF50;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.home-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40vh;
    width: 100%;
    background: linear-gradient(135deg, #4CAF50 50%, #2e7d32 100%);
    color: #fff;
    text-align: center;
}

.home-content {
    max-width: 600px;
}

#shorten-form {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#url-input {
    padding: 10px;
    font-size: 16px;
    width: 70%;
    border: none;
    border-radius: 5px 5px 5px 5px;
}

#shorten-form button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px 5px 5px 5px;
    cursor: pointer;
    margin-left: 10px;
}

#shorten-form button:hover {
    background-color: #6a6666;
}

.features-section, .contact-section {
    width: 100%;
    background-color: #fff;
    text-align: center;
    padding: 50px 20px;
    margin: 20px 0;
}

.features-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-item {
    background-color: #e7e7e7;
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact-form input, #contact-form textarea {
    padding: 15px;
    margin: 10px 0;
    width: 100%;
    max-width: 500px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#contact-form button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#contact-form button:hover {
    background-color: #6a6666;
}

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #1e1e1e; /* Kolor tła stopki */
    color: white; /* Kolor tekstu */
    text-align: center; /* Wyśrodkowanie tekstu */
    padding: 10px 0; /* Wewnętrzne odstępy */
}
.shortened-link-box {
    margin-top: 25px;
    padding: 15px;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    background-color: #f9f9f9;
    text-align: center;
    display: flex;
    max-width: 90%;
}

.shortened-link-box p {
    margin-left: 7px;
    font-weight: bold;
    color: #333131;
}

.shortened-link-box a {
    margin-left: 5px;
    color: rgba(49, 125, 181, 1);
    text-decoration: none;
    font-size: 16px;
}

.shortened-link-box a:hover {
    color: #4CAF50;
    text-decoration: none;
}

.message {
    padding: 10px;
    margin: 20px auto; /* Wyśrodkuj wiadomość i dodaj margines górny i dolny */
    border: 1px solid #4CAF50;
    background-color: #f9f9f9;
    color: #4CAF50;
    border-radius: 5px;
    text-align: center;
    max-width: 500px;
}

@media (max-width: 600px) {
    #shorten-form {
        flex-direction: column;
        align-items: center;
    }

    #url-input, #shorten-form button {
        width: 80%;
        border-radius: 5px;
        margin-bottom: 10px;
    }

    #url-input {
        border-radius: 5px;
    }

    #shorten-form button {
        border-radius: 5px;
        margin-left: 0;
    }
    .shortened-link-box {
        display: block; /* Ustawienie display block */
        margin: 15px auto; /* Wyśrodkowanie boxu */
        text-align: center;
    }
}