/* Base styles */
body {
  height: 100vh;
  margin: 0 auto;
  background-image: url(summer-background.png);
  background-size: 100%;
}

* {
  border-radius: 5px;
}

main {
  display: flex;
  flex-direction: column;
}

h1 {
  font-family: "Pacifico", cursive;
  font-size: 3rem;
  color: rgb(239, 160, 13);
}

header {
  text-align: center;
}

input,
textarea {
  border: solid 0.2px;
  background-color: rgba(240, 240, 240, 1);
}

button {
  cursor: pointer;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 10px;
  text-align: center;
  width: 100%;
  background-color: antiquewhite;
}

/* Form Block */
.section-input-form {
  display: inline-block;
  margin: 20px;
  background-color: rgba(250, 235, 215, 0.47);
  border-radius: 20px;
}

.section-input-form label {
  display: block;
  margin-bottom: 5px;
  font-family: "Pacifico", cursive;
  color: rgb(239, 160, 13);
}

.section-input-form input,
.section-input-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
}

label {
  display: block;
}

form {
  margin: 1em;
  display: inline-block;
}

/* Posts Block */
.section-posts {
  margin: 1em;
  max-width: 600px;
}

.the-post-div {
  margin-bottom: 15px;
  margin-left: 20px;
  margin-right: 20px;
  justify-items: center;
}

ul {
  list-style-type: none;
  padding: 0;
  padding-bottom: 100px;
}

li {
  border: solid 0.2px;
  background-color: antiquewhite;
  display: flex;
  justify-content: space-between;
}

span {
  padding: 5px 10px;
  border: solid 0.2px;
  font-weight: bold;
  background-color: antiquewhite;
}

p {
  padding-left: 10px;
  padding-right: 10px;
  word-wrap: break-word;
  max-width: 50vw;
  text-wrap: wrap;
}

@media (min-width: 600px) {
  .section-posts p {
    max-width: 450px;
  }
  main {
    max-width: 600px;
    margin: auto;
  }
}

/* Buttons Block */
.delete-selected-button {
  padding: 5px 10px;
  border: solid 0.2px;
  background-color: antiquewhite;
}

.input_form__post-button,
.show-posts-only-button,
.make-new-posts-button {
  padding: 5px 10px;
  border: solid 0.2px;
  background-color: rgba(240, 240, 240, 1);
  margin: 1em;
  border-radius: 5px;
}
