html,
body {
  font-family: "Rubik", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #131a27;
  color: #dce1eb;
  user-select: none;
}

.container {
  display: flex;
  flex-direction: column;
  max-width: 320px;
  margin: 30px auto;
}

#title-img {
  width: 100px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  font-weight: bold;
  font-size: 2em;
}

textarea {
  height: 200px;
  width: 100%;
  color: #ffffff;
  background-color: #1e2d4b;
  border: 0;
  border-radius: 8px;
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
  padding: 15px;
  font-size: 15px;
  font-family: "Rubik", sans-serif;
  margin: 0px 0;
  resize: none;
  box-sizing: border-box;
}

textarea:focus {
  outline: none;
}

button {
  background-color: #3cff5d;
  color: #000000;
  border: 0;
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 15px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  font-family: "Rubik", sans-serif;
  margin: 20px 0;
}

button:hover {
  background-color: #239bfd;
  color: #ffffff;
}

button:focus {
  outline: none;
}

/* <--- Pin ---> */
ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

ul li {
  width: 100%;
  margin-top: 0px;
  font-size: 15px;
  color: #000000;
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
  flex-grow: 1;
  text-align: left;
  white-space: pre-wrap;
}

#pin-img {
  width: 50px;
  height: auto;
  margin-top: 0px;
  margin-bottom: 0px;
}

ul#pin-list li {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pin-text {
  max-width: 300px;
  font-size: 16px;
  margin-bottom: 5px;
  word-wrap: break-word;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.pin-author {
  font-size: 12px;
  color: #666;
  margin-top: 0px;
}

/* <--- Modal window ---> */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fefefe;
  padding: 10px;
  border: 1px solid #888;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  text-align: center;
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
}

#name-modal h2 {
  color: #000000;
}

#name-input {
  width: auto;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#submit-name-btn {
  width: 100%;
  padding: 10px;
  background-color: #3cff5d;
  color: #000000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#submit-name-btn:hover {
  background-color: #239bfd;
  color: #ffffff;
}

#delete-pin-modal h2 {
  color: #000000;
}
#delete-pin-btn {
  background-color: rgb(255, 34, 34);
  color: #ffffff;
  padding: 10px;
}

#delete-pin-btn:hover {
  background-color: rgb(255, 255, 255);
  color: rgb(255, 34, 34);
  outline: 1px solid rgb(255, 34, 34);
}
