.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: #2c2a2ade;
}

.modal-content {
  background-color: #e1e1e1;
  box-sizing: border-box;
  margin: 8% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.scrollable-content {
  overflow-y: auto;
}

#privacy-text h3, 
#privacy-text h2 {
  color: #4c4930;
}

#privacy-text p {
    color: #000000;
    font-size: 22px;
}

#privacy-text li {
    color: #565656;
    font-size: 17px;
}

.actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-top-style: groove;
}

.flex-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.switch {
    margin-right: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 13px;
  left: 0;
  right: 0;
  bottom: -15px;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4CAF50;
}

input:focus + .slider {
  box-shadow: 0 0 1px #4CAF50;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

input:disabled + .slider {
  background-color: #ccc;
  border: 2px solid #ff000047;
}

input:disabled + .slider:before {
  background-color: grey;
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

#save-settings {
    background-color: #4CAF50;
    color: white;
    padding: 20px 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin: auto;
    display: block;
}

#save-settings:hover {
    background-color: #45a049;
}

@media (max-width: 480px) {
  .modal-content {
    width: 100%;
    height: 100%;
  }

  #privacy-text p {
    font-size: 18px;
  }

  .actions {
    flex-direction: column;
    align-items: center;
  }

  .flex-container {
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px; /* zmniejszamy margines */
  }

  .switch {
    width: 40px; /* zmniejszamy szerokość przełącznika */
    height: 22px; /* zmniejszamy wysokość przełącznika */
  }

  .slider {
    height: 22px; /* zmniejszamy wysokość suwaka */
  }

  .slider:before {
    height: 18px; /* zmniejszamy wysokość tła suwaka */
    width: 18px; /* zmniejszamy szerokość tła suwaka */
  }

  input:checked + .slider:before {
    transform: translateX(18px); /* zmniejszamy przesunięcie tła suwaka */
  }

  #save-settings {
    padding: 10px 20px; /* zmniejszamy padding przycisku "Zapisz ustawienia" */
    font-size: 14px; /* zmniejszamy rozmiar czcionki przycisku "Zapisz ustawienia" */
  }
}
