/* Edit these styles */

/* Reset */
html {
  box-sizing: border-box;
  font-size: 16pt;
  background-color: white;
}

* {
  box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

/* App */
.wrapper {
  padding: 1rem;
}

div.add {
  padding-top: 4rem;
}

label {
  font-size: 1rem;
  display: block;
}

.category {
  margin: 0;
  padding: 1rem;
  font-size: 1rem;
}

pre {
  white-space: pre-wrap;
}

button {
  border: none;
  border-radius: 1rem;
  color: white;
  text-align: center;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  background-color: rgba(0, 140, 186, 1); /* Blue */
}

.response {
  text-align: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  width: 100%;
}

.error {
  color: rgba(255, 0, 50, 0.8);
  font-weight: bold;
}

button.add {
  font-size: 0.75rem;
  width: 100%;
  margin-top: 1em;
}

button.debug {
  font-size: 0.75rem;
  width: 100%;
}

button.config {
  font-size: 0.75rem;
  width: 100%;
}

button.upload {
  font-size: 0.75rem;
  width: 100%;
  margin-top: 0.5em;
}

button.reload{
  font-size: 0.75rem;
  width: 100%;
  margin-top: 0.5em;
}

button.save {
  font-size: 0.75rem;
  width: 100%;
  margin-top: 0.5em;
}

button.download {
  font-size: 0.75rem;
  width: 100%;
  margin-top: 0.5em;
}

.controls {
  text-align: right;
}

input.new-category {
  width: 100%;
  font-size: 1rem;
  border-radius: 1rem;
}

input.new-event {
  font-size: 1rem;
  border-radius: 1rem;
}

.config input {
  width: 100%;
  font-size: 1rem;
  border-radius: 1rem;
}

ul {
  list-style-type: none;
}

ul li {
  padding: 0.25rem;
}

ul.events {
  font-size: 1rem;
}

button:focus {
  outline: thin dotted;
}

button:hover {
  background-color: rgba(0, 140, 186, 0.8);
}

.details {
  padding: 0.25rem;
  border-radius: 1rem;
  font-size: 2rem;
  margin-left: 1rem;
  background-color: rgba(0, 140, 186, 0.1);
}

.details button {
  font-size: 1rem;
  padding: 0 0.5rem;
}

.details .time-since {
  font-size: 1rem;
  text-align: right;
}

button.delete {
  background-color: rgba(255, 0, 50, 0.8);
}

#debug {
  margin-top: 2em;
  display: block;
  font-family: monospace;
  font-size: 75%;
  width: 100%;
  border-radius: 1rem;
  background-color: lightgrey;
  border: solid 1px grey;
}

#debug pre {
  -webkit-user-select: all;
  user-select: all;
}

#config {
  display: block;
  font-size: 75%;
  margin-top: 1em;
  width: 100%;
  border-radius: 1rem;
  background-color: white;
  border: solid 1px grey;
}

.config-form {
  margin: 1em;
}

.config-form .row {
  padding: 0.5em;
  margin: 0.5em;
}

.title-bar {
  background-color: rgba(0, 140, 186, 1);
  width: 100%;
  padding: 0;
  text-align: left;
}

.title-bar h1 {
  color: white;
  font-size: 0.8rem;
  padding-left: 1rem;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Ensure it's on top */
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 80%;
  text-align: center;
}