
body {
  font-family: sans-serif;
  background-color: #f0f4f8;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 1em;
  box-sizing: border-box;
}

.container {
  text-align: center;
  background: white;
  padding: 2em;
  border-radius: 1em;
  box-shadow: 0 0 1em rgba(0,0,0,0.1);
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
}

.result {
  margin: 1em 0;
  font-size: 1.5em;
  min-height: 3em;
  transition: opacity 0.3s ease;
}

button {
  background-color: #007acc;
  color: white;
  border: none;
  padding: 0.5em 1em;
  font-size: 1em;
  border-radius: 0.5em;
  cursor: pointer;
  margin-left: 0.5em;
}

button:hover {
  background-color: #005fa3;
}

select, input[type="text"] {
  background-color: #007acc;
  color: white;
  border: none;
  padding: 0.5em;
  font-size: 1em;
  border-radius: 0.5em;
  margin: 0.5em 0;
}
textarea,
#pageTitleInput {
  width: 100%;
  box-sizing: border-box;
}


ul {
  font-size: 18pt;
  padding: 0;
}
ul li {
  list-style-type: none;
  margin: 0.3em 0;
}

#list li {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

#list li .entry {
  flex-grow: 1;
}

#list li .actions {
  display: flex;
  gap: 0.5em;
}


#resultList li {
  display: flex;
  align-items: baseline;
  gap: 1em;
  padding: 0.3em 0;
  border-bottom: 1px solid #ddd;
}
#resultList li:last-child {
  border-bottom: none;
}
#resultList .index {
  font-weight: bold;
  min-width: 2em;
  text-align: right;
}
#resultList .entry {
  flex-grow: 1;
}

@media (max-width: 600px) {
  .container {
    padding: 1em;
  }
  button,
  select,
  input[type="text"],
  input[type="file"] {
    width: auto;
    margin: 0.25em;
  }
  textarea {
    width: 100%;
  }
  #list li {
    flex-direction: column;
    align-items: flex-start;
  }
}
