/* Global Reset and Styling */
body,
h1,
h2,
p,
ul,
li,
form,
input,
textarea,
a {
  margin: 0;
  padding: 0;
  border: none;
  font-family: "Arial", sans-serif;
  box-sizing: border-box;
}

/* Remove bullets from the list */
ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Page Background Animation */
body {
  background-color: #f0f4f8;
  color: #333;
  line-height: 1.6;
  padding: 20px;
  animation: backgroundAnimation 10s infinite alternate;
  transition: background-color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Background animation */
@keyframes backgroundAnimation {
  0% {
    background-color: #f0f4f8;
  }
  100% {
    background-color: #007bff;
  }
}

/* The main container that holds everything */
.main-container {
  width: 100%;
  max-width: 800px;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.heade h1 {
  position: relative;
  font-size: 3rem;
  font-weight: bold;
  color: #003366; /* Dark blue color */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Heading underline animation */
.heade h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0;
  height: 4px;
  background-color: #003366; /* Dark blue color */
  transition: width 0.6s ease;
  transform: translateX(-50%); /* Center the underline */
}

.heade h1::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 100%;
  height: 4px;
  background-color: #003366; /* Dark blue color */
  transition: width 0.6s ease;
  transform: translateX(-50%);
  animation: underlineAnimation 2s infinite alternate; /* Continuous animation */
}

/* Continuous animation for heading underline */
@keyframes underlineAnimation {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

.heade h1:hover::after {
  width: 100%;
}

/* New Post Button */
#newPostBtn {
  margin: 20px auto;
  background-color: #28a745;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  color: #ffffff;
  display: inline-flex; /* Align icon and text */
  align-items: center; /* Center vertically */
  text-decoration: none; /* Remove underline */
}

#newPostBtn i {
  margin-right: 8px; /* Space between icon and text */
}

#newPostBtn:hover {
  background-color: #218838;
}
/*just for fun  */

/* Container for each blog post */
.post-container {
  background: #f9f9f9;
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #003366; /* Dark blue color */
}

small {
  display: block;
  margin-bottom: 10px;
  color: #555;
}
.bold{
  font-weight:bold
}
p {
  margin-bottom: 20px;
  color: #444;
}

/* Uniform button styling */
.post-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

a.edit,
button.delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  text-decoration: none;
  width: 120px;
  height: 40px;
}

a.edit {
  background-color: #2ecc71;
  color: #ffffff;
}

a.edit:hover {
  background-color: #27ae60;
}

button.delete {
  background-color: #e74c3c;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

button.delete:hover {
  background-color: #c0392b;
}

button.delete i,
a.edit i {
  margin-right: 5px;
}



/* Media Query for smaller screens */
@media (max-width: 768px) {
  .main-container {
    padding: 20px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 0.9rem;
  }

  a,
  button {
    font-size: 0.9rem;
  }
}
