#debug:target * {
  outline: 1px solid red;
}

h1 {
  text-align: left;
  text-align: center;
}

body {
  font-family: Arial, sans-serif;
  max-width: 500px;
  margin: auto;
  position: fixed;
  top: 0px;
  /* bottom: 0px; removing to test 100dvh height */
  height:100dvh;
  left: 0px;
  right: 0px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

button {
  padding: 10px;
  background-color: #3cc41f;
  color: white;
  border: none;
  cursor: pointer;
  height: 3em;
  width: 100%;
  display: block;
  text-transform: uppercase;
  width:max-content;
  border-radius: 1.5em;
  margin:auto;
}

/* SETTINGS, DISCLAIMER OVERLAYS */

.overlay {
  position: fixed;
  background-color: #dedede;
  max-width: 500px;
  top: 0px;
  bottom: 0px;
  z-index: 1;
  padding: 45px;
  left: 0px;
  right: 0px;
  overflow-y: scroll;
  margin: auto;
}


#settings-panel {
  display: none;
}

/* OUTPUT AREA */

.entry {
  visibility: show;
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1px solid black;
}
.text {
  transform:scaleY(1);
  transition:.25s ease;
}

.toolbar button {
  width: calc((100% - 75px) / 2);
  margin-top:5px;
  margin-bottom:5px;
}

.toolbar {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  background: gray;
  height:0px;
  overflow:hidden;
  transition:ease 500ms;
  /* gap: 25px; */
}

.entry:focus .toolbar {
  height:50px;
}

#output-container {
  overflow-y: scroll;
  padding: 0px 5px;
  display: block;
  visibility:visible;
}

.timestamp {
  color: #999;
  font-size: 12px;
  display: block;
}

button.floating {
  position: absolute;
  width: min-content;
  border-radius: 1.5em;
  box-shadow: 5px 5px 10px black;
  width:45px;
  height: 45px;
  z-index: 1000;
}
button.floating img {
  width:100%;
}
#open-settings {
  top:15px;
  right:15px;
}
#showHideBtn {
  top:75px;
  right:15px;
}


/* INPUT AREA */


#input-holder {
  display: flex;
  align-items: stretch;
  gap: 5px;
  padding: 5px;
}
input[type="text"] {
  flex-grow: 100;
  box-sizing: border-box;
  margin-left: 5px;
  font-size: 18px;
}
#submit-btn {
  height: 3em;
  margin-top: 3px;
  }

/* removing to test 100dvh body height response to input targeting
@supports (-webkit-touch-callout: none) {
  #input-holder input {
    margin-bottom: 35px;
  }

  #input-holder input:focus {
    margin-bottom: 0px;
  }
}
*/
@media (prefers-color-scheme: dark) {
  body {
    background-color: black;
    color: white;
  }

  input[type="text"] {
    background-color: black;
    color: white;
  }

  .entry {
    border-top: 1px solid white;
  }

  #settings-panel,
  #disclaimer {
    background-color: black;
    color: white;
  }

}
/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 9999; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* Black with opacity */
}

/* Modal content styles */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
}
