:root {
  --dark-bg: #342b3b; /* Dark background for general use */
  --accent-color: #4b0082; /* Main accent color (dark purple) */
  --secondary-color: #2b145d; /* Secondary color (darker purple) */
  --text-light: #ffffff; /* Light text color */
  --button-hover: #6f42c1; /* Button hover color */
}


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  color: var(--text-light);
  background-color: var(--dark-bg);
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #5a1972, #60e0af);
  animation: backgroundAnimation 5s linear infinite;
  background-size: 200% 200%;
}

@media (max-height: 650px) {
  header {
    display: none;
  }
  footer {
    display: none;
  }
}

@keyframes backgroundAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.title-text {
  color: rgb(0, 0, 0);
  text-align: left;
}

header {
  background-color: var(--secondary-color);
  padding: 20px;
  text-align: center;
  color: var(--text-light);
}

h1 {
  text-align: left;
  font-size: 2em;
  color: white;
}

h2 {
  text-align: center;
  font-size: 2em;
  color: white;
}

p {
  text-align: center;
  color: rgb(255, 255, 255);
}

nav menu {
  list-style: none;
  text-align: left;
}

nav menu li {
  display: inline;
  margin-right: 20px;
}

nav a {
  text-decoration: none;
  color: #fff;
}

main {
  display: flex;
  flex-direction: row; /* Change to row for side-by-side forms */
  justify-content: center; /* Distribute forms to left and right */
  align-items: flex-start;
  padding: 10px;
}

form {
  max-width: 300px;
  margin: 20px;
  padding: 200px;
  background-color: #542582; /* Purple form background color */
  border-radius: 20px;
  position: relative; /* Use relative positioning for both forms */
  transform: none; /* Remove transform property to center them in their columns */
}

.container {
  padding: 5px;
  color: #fff;
  text-align: center;
}

/* Add Friend Box */
#addFriendForm {
  max-width: 300px;
  margin: 20px;
  padding: 20px;
  background-color: #542582;
  border-radius: 20px;
  position: relative;
}

/* Pending Requests Box */

#pendingRequestsForm {
  max-width: 300px;
  margin: 20px 20px 20px 0; /* Add right margin to create space */
  padding: 20px;
  background-color: #542582; /* Purple form background color */
  border-radius: 20px;
  position: relative;
}

#pendingRequestsForm ul {
  list-style: none;
  padding: 0;
}

#pendingRequestsForm ul li {
  background-color: #663399; /* A shade of purple for list items */
  color: #fff;
  padding: 10px;
  margin: 5px 0;
  border-radius: 8px;
  position: relative;
}

#pendingRequestsForm ul li::before {
  content: "👋"; /* Add a handwave emoji before each request */
  margin-right: 10px;
}

#pendingRequestsForm ul li:hover {
  background-color: #542582; /* Darker purple on hover */
  transition: background-color 0.3s ease;
}

.accept-button,
.reject-button {
  background-color: blue; /* Change to your desired color */
  color: white;
  border: none;
  padding: 5px 10px;
  margin-right: 5px;
  border-radius: 8px;
  cursor: pointer;
}


#pendingRequestsForm ul li .accept-button,
#pendingRequestsForm ul li .reject-button {
  background-color: #007bff; /* Blue color for buttons */
  color: #fff;
  border: none;
  padding: 5px 10px;
  margin-right: 5px;
  border-radius: 8px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
}

#pendingRequestsForm ul li .accept-button:hover,
#pendingRequestsForm ul li .reject-button:hover {
  background-color: #0056b3; /* Lighter blue on hover */
}

.requests-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  background-color: #542582;
  padding: 10px;
  border-radius: 20px;
}

.requests-list button {
  background-color: #ff69b4; /* Pink button color */
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
}

.requests-list button:hover {
  background-color: #ff4181; /* Lighter pink on hover */
}

#friendsList {
  max-width: 300px;
  margin: 20px 0; /* Add margin for space */
  padding: 20px;
  background-color: #542582; /* Purple form background color, matching other boxes */
  border-radius: 20px;
  position: relative;
}

#friendsList h2 {
  text-align: center;
  font-size: 2em;
  color: white;
}

#friendsList .container {
  padding: 5px;
  color: #fff;
  text-align: center;
}

#friendsList .friends-list {
  list-style: none;
  padding: 0;
}

#friendsList .friends-list li {
  background-color: #542582; /* Purple background for friend list items, matching the box color */
  color: #fff;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#friendsList .friend-box {
  background-color: #66cc66; /* Green background for the names */
  color: #fff;
  padding: 5px 10px;
  border-radius: 10px;
  margin-right: 10px; /* Add margin between friend boxes */
}

#friendsList button {
  background-color: #ff69b4; /* Pink button color for Friends List */
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
}

#friendsList button:hover {
  background-color: #ff4181; /* Lighter pink on hover */
}

label {
  display: block;
  margin-top: 10px;
  color: #ffffff;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border-radius: 40px;
  border-color: #7100f3;
  color: #fff;
}

input[type="text"], textarea {
  background-color: #1c1c1c;
  color: var(--text-light);
  border: 1px solid var(--accent-color);
}

button {
  background-color: var(--accent-color);
  color: var(--text-light);
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background-color: var(--button-hover);
}

footer {
    background-color: #2b145d;
    padding: 20px;
    color: white;
    text-align: center;
    margin-top: auto;
}

.footer-text {
  color: white;
}

a {
  color: #ff69b4; /* Pink link color */
  border-radius: 40px;
  border-width: 30px;
  text-decoration: none;
}

a:hover {
  color: #ff4181; /* Lighter pink on hover */
}

