@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
body {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  font-family: "Playfair Display", serif;
  background-color: #fff7e6;
  color: #2b2b2b;
}
p,
h1,
h2,
h3,
a,
ul {
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: #222;
}
nav {
  display: flex;
  justify-content: space-between;
}
nav ul {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

nav li {
  list-style-type: none;
  margin-left: 20px;
  position: relative;
}
nav h1 {
  font-size: 3em;
}

nav p,
nav a {
  color: #777;
  font-weight: 300;
}
nav ul li a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #777; /* Adjust the underline color as needed */
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

nav ul li a:hover::before {
  visibility: visible;
  width: 100%;
}

footer {
  color: #777;
  text-align: center;
  margin: 80px auto 20px;
}

h3 {
  text-transform: capitalize;
  margin-bottom: 8px;
  margin-top: 10px;
}

.content {
  margin-left: 20px;
}

.story a {
  display: block;
  margin: 40px 0;
  padding-left: 30px;
  border: 2px solid #777;
}

.story .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.story a.new {
  margin:  0;
  border: 0;
  display: block;
  padding: 8px;
  border-radius: 8px;
  color: white;
  background-color: green;
}

.story a:hover h3 {
  color: green;
}

.details {
  position: relative;
}

.delete {
  position: absolute;
  background-color: crimson;
  color: white;
  top: 0;
  right: 0;
  border-radius: 8px;
  padding: 8px;
}

.delete:hover {
  cursor: pointer;
  box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.2);
}
.content p {
  margin: 10px 0;
  text-align: justify;
}

.content h2 {
  margin: 25px 0;
  font-size: 2em;
}
.content h3 {
  font-size: 1.5em;
}

.create form {
  max-width: 400px;
  margin: 40px auto;
  padding: 10px;
  border: 2px solid #777;
  border-radius: 8px;
  background-color: #e3e3e3;
}
.create input,
.create textarea {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 8px;
}

.create label {
  display: block;
  margin-top: 24px;
}
textarea {
  height: 120px;
}

.create button {
  margin-top: 20px;
  background-color: green;
  color: white;
  padding: 6px;
  border: 0;
  font-size: 1.2em;
  cursor: pointer;
  border-radius: 8px;
  margin: auto 160px;
}

.site-title p {
  color: #6d6d6d;
}

footer {
  background-color: #2e4057;
  padding: 20px;
  color: white;
  position: relative;
  bottom: 0px;

}
