* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}
body {
  background-color: white;
}
h1 {
  margin-bottom: 8%;
  text-align: center;
}
h2 {
  color: rgb(73, 73, 73);
  text-align: Left;
}
hr {
  width: 500px;
}
a {
  color: rgb(73, 73, 73);
  text-decoration: none;
}
p {
  color: rgb(73, 73, 73);
  margin-bottom: 1%;
  width: 500px;
  text-align: Left;
  font-size: 12px;
}
p span {
  color: rgb(73, 73, 73);
  padding: 0 10px;
}
input {
  margin-bottom: 3%;
}
input:last-of-type {
  margin-bottom: 0;
}
input, button {
  padding: 3%;
  width: 100%;
}
li {
  list-style-type: none;
}
.login-container {
  background-color: white;
  margin: 15vh auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
#main, #main2, #main3, #main4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#make-post, #modal, #edit-post {
  display: none;
  margin: 15vh auto;
  justify-content: center;
  align-items: center;
}
#newsfeed {
  display: none;
  justify-content: left;
  align-items: left;
}
#news-feed li {
  padding: 20px;
  width: 530px;
  margin: 10px 0;
}
#create-acct {
  display: none;
  margin: 15vh auto;
  justify-content: center;
  align-items: center;
}
button:hover {
  cursor: pointer;
  opacity: 0.5;
  transition: 0.3s;
}
li:hover {
  cursor: pointer;
  opacity: 0.8;
  transition: 0.3s;
}
input::placeholder {
  color: darkgray;
  vertical-align: top;
}
textarea::placeholder {
  color: lightgray;
  vertical-align: top;
}
input:focus {
  border-color: lightgray;
  outline: lightgray;
}
#email, #password, #email-signup, #confirm-email-signup, #password-signup,
#confirm-password-signup, #title, #website-url, #title2, #website-url2 {
  border: none;
  padding: 10px 20px;
  width: 300px;
  cursor: pointer;
  margin-top: 2%;
}
#post-content, #post-content2 {
  border: none;
  padding: 10px 20px;
  width: 300px;
  min-height: 150px;
  overflow-y: auto;
  cursor: pointer;
  margin-top: 2%;
  resize: vertical;
  display: block;
  word-wrap: break-word;
  vertical-align: top;
  outline: lightgray;
}
#submit, #create-acct-btn, #submit-post, #cancel, #edit-btn, #delete-btn, #cancel-btn,
#approve-btn, #submit-edit-post, #cancel2 {
  background-color: #a0c802;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  width: 150px;
  cursor: pointer;
  margin-top: 2%;
}
#sign-up, #return-btn {
  background-color: #a0c802;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  width: 150px;
  cursor: pointer;
  margin-top: 2%;
}
.custom-file-input {
  display: inline-block;
  background-color: #a0c802;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  width: 150px;
  cursor: pointer;
  border: none;
  transition: opacity 0.3s;
  text-align: center;
  font-size: 14px;
}
.custom-file-input:hover {
  opacity: 0.8;
}
.custom-file-input input[type="file"] {
  display: none;
}
.custom-file-input2 {
  display: inline-block;
  background-color: #a0c802;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  width: 150px;
  cursor: pointer;
  border: none;
  transition: opacity 0.3s;
  text-align: center;
  font-size: 14px;
}
.custom-file-input2:hover {
  opacity: 0.8;
}
.custom-file-input2 input[type="file"] {
  display: none;
}
#attach-file-wrapper, #attach-file-wrapper2 {
  margin-top: 2%;
}
#attach-file-label {
  display: inline-block;
  background-color: #a0c802;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  width: 150px;
  cursor: pointer;
  border: none;
  transition: opacity 0.3s;
  text-align: center;
  font-size: 14px;
}
#attach-file-label:hover {
  opacity: 0.8;
}
#attach-file[type="file"] {
  display: none;
}
#attach-file2[type="file"] {
  display: none;
}
#image-preview-container, #image-preview-container2 {
  max-width: 300px;
  margin: 0 auto;
}
#add-image-preview, #add-image-preview2 {
  display: none;
  max-width: 100%;
  height: auto;
}
.floating-button {
  position: fixed;
  bottom: 50px;
  right: 50px;
  z-index: 999;
}
.floating-button img {
  width: 80px;
  height: 80px;
  display: block;
  transform: rotate(45deg);
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}
.modal-content {
  padding: 20px;
  width: 60%;
  max-width: 400px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 999;
}
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body::-webkit-scrollbar {
  display: none;
}
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#loading-image {
  width: 340px;
  height: 200px;
}
#table-container {
  display: none;
  margin-top: 2%;
  width: 100%;
}
#userTable {
  width: 100%;
  border-collapse: collapse;
}
#userTable th, #userTable td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
#userTable th {
  background-color: #f2f2f2;
}
#userTable tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}
#userTable tbody tr:hover {
  background-color: #ddd;
}
@media screen and (max-width: 600px) {
  #userTable {
      font-size: 14px;
  }
}
#userTable th input[type="text"] {
  background-color: #f2f2f2;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
}
#userTable th input[type="text"]:focus {
  outline: none;
}
#userTable th input[type="text"]::-webkit-search-cancel-button,
#userTable th input[type="text"]::-webkit-search-decoration,
#userTable th input[type="text"]::-webkit-search-results-button,
#userTable th input[type="text"]::-webkit-search-results-decoration {
  display: none;
}

/* Style for delete button */
.delete-button {
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  cursor: pointer;
  transition: opacity 0.3s;
}
.delete-button:hover {
  opacity: 0.8;
}
