.output img,
.modal-contents img{
  width:100%;
  margin: 20px ;
  border-radius:25px;
  max-width:90%;
  height: auto !important
}

.modal-contents p{
  display:none;
}

#logo img{
  display: block;
  margin: 20px auto;
  width: 175px;
}

.wrap header {
  height: 80px;
}


.wrap {
  margin: 0 auto;
  max-width: 1920px;
  position: relative;
  width: 90%;
}
#generator {
  background-color: #363a41;
  border: 1px solid var(--component-dim);
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  padding: 30px;
  color:#fff;
  margin: 0 auto;
  max-width: 1920px;
  position: relative;

}

#generator h1,
#generator p{

  color:#fff;
  font-family: sans-serif;
}

body {
  font-size: 1.2rem;
  background:black;
}

:root {
  --text-color: #404040;
}


.close-history {
  position: absolute;
  top: .5em;
  right: .7em;
  color: grey;
  cursor: pointer;
  font-size:45px;
}

.container {

  margin: 0 auto;
  grid-column-gap: 10px;
  grid-column-gap: 2em;
}
.main-content {
  margin-top: 2rem;
  grid-column: 2;
  overflow: scroll;
}

.history-sidebar {
  top: 0;
}


.settings {
  margin-top: 1em;
  color: rgb(255, 255, 255);
  accent-color: currentColor;
  overflow:auto;
}

#aspect-type {
  width: 100px;
    float: left;
    background: #707070;
    border-radius: 25px;
    padding: 5px;
    margin: 0 5px;
}

.output {
  margin-top: 2em;
}

.output > img{
  border-radius:25px;
}

.output > img, .history-modal img {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.gallery-box img{
  border-radius:10px;
}

blockquote {
  color: grey;
  display: none;
}

dialog {
  width: 100%;
  height: 100%;
  outline: none;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  background-color: rgba(0, 0, 0, 0.65);
}

a, a:visited {
  color: #666;
}

.confirm-buttons {
  display: flex;
  justify-content: center;
  margin-top: 1em;
}

.confirm-buttons input {
  font-size: 1.2rem;
  margin-left: 2em;
  margin-right: 2em;
}

#api-key-confirm {
  font-size: 1.2rem;
  float: right;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.gallery-box:hover .trash {
  display: initial;
}

.trash {
  display: none;
  position: absolute;
  top: .4em;
  right: .4em;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  padding: .2em;
  border: 1px dashed grey;
  cursor: pointer;
}

.spinner {
  display: none;
  margin-top: 2em;
  justify-content: center;
  clear:both;
}

.footer {
  position: fixed;
  left: .2em;
  bottom: .1em;
  color: #ccc;
}

.footer a, .footer a:visited {
  color: #ccc;
}


.input-container {
  position: relative;
}
/* we need the wrapper because using padding on the textarea messes up the resizing */
.input-wrapper {
  border-radius: 5px;
  padding: 0.8rem;
  border: 1px solid #aaa;
  box-shadow: 0px 0px 10px #aaa ;
  background:#fff;
}
.input:focus {
  outline: none;
}
.send-button-container {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0.3rem;
  align-items: center;
}
.send-button {
  background: inherit;
  padding: 0.3rem;
  border: none;
  font-size: 1.6rem;
  border-radius: 5px;
  display: flex;
  align-items: center;
}
.send-button:hover {
  background: #ddd;
}
.send-button:active {
  margin-top: 2px;
}
.grow-wrap {
  display: grid;
}
.grow-wrap::after {
  content: attr(data-replicated-value) " ";
  white-space: pre-wrap;
  visibility: hidden;
}
.grow-wrap > textarea {
  resize: none;
  overflow: hidden;
}
.grow-wrap > textarea,
.grow-wrap::after {
  padding: 0.5rem;
  border-radius: 5px;
  border: none;
  font: inherit;
  font-size: 1.2rem;
  grid-area: 1 / 1 / 2 / 2;
}