body {
    font-family: Arial, sans-serif;
    background-color: #141414;
    color: white;
    margin: 0;
    padding: 0;
  }
  
  header {
    background-color: #180607;
    padding: 10px;
    text-align: center;
    color: white;
  }
  
  .search-bar {
    margin-top: 20px;
    padding: 10px;
    width: 100%;
    max-width: 600px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
  }
  
  .anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
  }
  
  .anime-card {
    background-color: #222;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
  }
  
  .anime-card:hover {
    transform: scale(1.05);
  }
  
  .anime-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
  
  h3 {
    color: #e50914;
  }
  
  .toggle-button {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #e50914;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
  }
  
  .toggle-button:hover {
    background-color: #d40813;
  }
  
  .anime-details {
    margin-top: 15px;
  }
  
  .anime-details p {
    text-align: left;
  }
  
  ul {
    list-style: none;
    padding: 0;
  }
  
  ul li {
    margin: 10px 0;
    display: flex;
    align-items: center;
  }
  
  ul li img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
  }
  
  video {
    width: 100%;
    border-radius: 10px;
  }
  
  @media (max-width: 600px) {
    .anime-grid {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 768px) {
    header {
      padding: 10px 0;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    header nav {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    header nav ul {
      width: 100%;
      display: flex;
      justify-content: center;
      padding: 0;
      margin: 10px 0;
    }

    header nav ul li {
      margin: 0 0px;
    }

    h1 {
      text-align: center;
      width: 100%;
      margin: 10px 0;
    }

    .search-container {
      width: 100%;
      display: flex;
      justify-content: center;
      padding: 10px 0;
    }

    .search-bar {
      width: 90%;
      max-width: none;
    }

    .anime-grid {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
    }

    .anime-card {
      width: 95%;
      margin: 10px 0;
    }

    .section-title {
      text-align: center;
      width: 100%;
    }

    .dropdown-content {
      width: 100%;
      left: 0;
      right: 0;
    }

    main {
      width: 100%;
      padding: 0;
    }

    section {
      width: 100%;
      padding: 10px;
      box-sizing: border-box;
    }

    .contact-content,
    .anime-grid,
    .search-container {
      width: 100%;
      max-width: none;
      padding: 10px;
      box-sizing: border-box;
    }

    .anime-card {
      width: 100%;
      margin: 10px 0;
    }

    .centered-gif {
      width: 100%;
      height: auto;
    }

    .legal-info,
    .contact-email {
      width: 100%;
      padding: 0 10px;
      box-sizing: border-box;
    }
  }

  /* Dodaj te style na końcu pliku */
  body, html {
    width: 100%;
    overflow-x: hidden;
  }

  #all-anime, #new, #contact {
    width: 100%;
  }

  .contact-content {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }

  @media (min-width: 769px) {
    .contact-content {
      max-width: 800px;
      margin: 0 auto;
    }
  }

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* Dodaj te style na końcu pliku styles.css */

.chat-container {
  background-color: #222;
  border-radius: 10px;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #333;
  border-radius: 5px;
}

.chat-message {
  margin-bottom: 10px;
  padding: 5px 10px;
  background-color: #444;
  border-radius: 5px;
}

.chat-form {
  display: flex;
}

.chat-form input {
  flex-grow: 1;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px 0 0 5px;
}

.chat-form button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #e50914;
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

.chat-form button:hover {
  background-color: #d40813;
}

.hidden {
  display: none;
}
