* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ustawienia ogólne */
body {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    background: #121212;
    color: #ccc;
    line-height: 1.4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Kontener całego czatu */
.chat-container {
    width: 1000px;
    max-width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Pasek z wiadomościami */
#messages {
    flex: 1;
    overflow-y: auto;
    background: #0f0f0f;
    padding: 10px;
}

#chat-form {
    position: sticky;
    bottom: 0;
    display: flex;
    padding: 10px;
    background: #1a1a1a;
    border-top: 1px solid #333;
    flex-direction: column;
    right: 0;
}
footer{
    display: flex;
    justify-content: space-around;
    background-color: #0f0f0f;
}
footer a{
    color: yellow;
    text-decoration: none;
}
/* Pojedyncza wiadomość */
.message {
    margin-bottom: 10px;
    padding: 10px;
    background: #262626;
    border-radius: 5px;
    color: #e0e0e0;
}

.message:hover {
    outline: 1px solid #3ef57d;
}

/* Formularz do wysyłania */
#message-input {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    background: #222;
    border: 1px solid #444;
    border-radius: 5px;
    color: #fff;

}
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    color: white;
    padding: 15px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    display: flex;
    height: 100%;
}

.cookie-popup a {
    color: #ffd700;
    text-decoration: underline;
}

.cookie-popup button {
    margin-left: 10px;
    padding: 10px 20px;
    background: #ffd700;
    border: none;
    color: #0056b3;
    font-weight: bold;
    cursor: pointer;
    margin: 0 auto;
}

.cookie-popup button:hover {
    background: #ffc700;
}
#nickname-input{
    width: 20%;
}
#message-input:focus {
    outline: none;
    border-color: #3ef57d;
}

#chat-form button {
    padding: 12px 20px;
    background: #3ef57d;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
    position: absolute;
    z-index: -3;
}

#chat-form button:hover {
    background: #35d26a;
}

/* Licznik znaków */
#char-counter {
    font-size: 0.9em;
    color: #888;
    margin-top: 5px;
}

#char-counter.exceeded {
    color: red;
}

/* Styl dla czasu wiadomości */
.message small {
    display: block;
    font-size: 0.8em;
    color: #888;
    margin-top: 5px;
}

/* Responsywność (dla urządzeń mobilnych) */
@media (max-width: 480px) {
    .chat-container {
        width: 100%;
        height: 100vh;
        margin: 0;
        padding: 0;
        border-radius: 0;
        padding-bottom: 45px;
    }

    #messages {
        font-size: 14px;
        word-break: break-word;
    }

    #chat-form {
        flex-direction: row;
        gap: 5px;
    }

    #chat-form button {
        flex-shrink: 0;
    }
}
/* Responsywność (dla urządzeń mobilnych) */
@media (min-width: 1350px) {
    .chat-container {
        height: 95vh;
    }

}