.dialog {
  position: fixed;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999999999999;
  overflow-y: scroll;
  padding: 20px;
  justify-content: center;
  box-shadow: 0 0 10px rgb(255, 255, 255, 0.5);
}


.dialog img {
  background-color: white;
  max-width: 60%; /* Ensures the image does not exceed the width of the container */
  height: auto;   /* Maintains the aspect ratio */
  display: block; /* Ensures the image behaves like a block element */
  margin: 0 auto; /* Centers the image horizontally */
  margin-top: 30px;
  margin-bottom: 30px;
  box-shadow: 0 0 10px rgb(255, 255, 255, 0.8);
}

.delete-button {
  background-color: transparent;
  font-size: 16px;
  color: white;
  border: none;
  cursor: pointer;
  left: 10px;
}

.delete-button:hover {
  background-color: #111;
  border: 1px solid #555;
  border-radius: 5px;
}


.dialog-content {
  top: 2%;
  background-color: black;
  color: white;
  margin: 15% auto;
  border: 1px solid #c59655;
  width: 80%;
  z-index: 99999;
  margin-top: 10vh;
  border-radius: 3px;
  justify-content: center;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 10px;
  box-shadow: 0 0 10px rgb(255, 255, 255, 0.8);
}



.close-button {
  position: fixed;
   margin-top: 20px;
  color: #ffffff;
  float: right;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  background-color: black;
  cursor: pointer;
  padding-right: 20px;
  justify-content: center;
  z-index: 999999999999;
}

.close-button:hover,
.close-button:focus {
  color: lime;
  text-decoration: none;
  cursor: pointer;
}

.delete-all-button {
 position: fixed;
  margin-top: 20px;
  top: 1%;
  left: 20px;
  color: #ffffff;
  float: left;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  background-color: black;
  cursor: pointer;
  padding-left: 20px;
  justify-content: center;
  z-index: 999999999999;
}

.delete-all-button:hover,
.delete-all-button:focus {
  color: lime;
  text-decoration: none;
  cursor: pointer;
}

#history-button {
color: white;
}


#history-button2 {
color: yellow;
}

/* Ensure link doesn't override icon color */
a #history-button2 {
color: yellow !important;
}





#scrapeUrlInput {
  margin: 0 auto;
  width: 80vw;
  height: 40px;
  font-size: 16px;
  background-color: #1f1f1f;
  color: lime;
  border: 1px dashed #c59655;
  border-radius: 4px;
  margin-bottom: 10px;
  margin-top: 20px;
  z-index: 9999;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#scrapeQueryInput {
  margin: 0 auto;
  width: 80vw;
  height: 40px;
  font-size: 16px;
  background-color: #1f1f1f;
  color: white;
  border: 1px dashed #c59655;
  border-radius: 4px;
  margin-bottom: 10px;
  z-index: 9999;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}


#scrapeResults {
  white-space: pre-wrap;
  position: fixed;
  top: 65vh;  /* Adjusted for vertical positioning */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  min-height: 100px;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 20px;
  background-color: transparent;
  color: lime;
  margin-top: 16px;
  padding-left: 30px;
  padding-right: 30px;
  text-align: left;
  z-index: 9999999;
  height: 200px;
  overflow-y: scroll;
}

#scrapeResults:hover {
  background-color: black;
  border: 3px dashed #c59655;
  padding-bottom: 20px;
}





#scrapeContainer {
  position: fixed;
  top: 10vh;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

#iconScrapeContainer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Centers the container */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  /* Adjust as needed */
  z-index: 9999;
  overflow-y: auto;
  height: 400px; 

}

#copyScrape,
#clearScrape,
#downloadScrape,
#addScrape {
  width: 25px;
  height: 25px;
  margin: 20px;
  /* Adjust space between icons */
  cursor: pointer;
}

#getHtml {
  position: fixed;
  top: 5%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 40px;
  border: 3px dashed #c59655;
  border-radius: 5px;
  width: auto;
  color: #c59655;
  font-size: 16px;
  font-weight: bold;
  z-index: 9999;
}


#scrapeSubmit
 {
  flex: 1; /* Each button will take an equal amount of space within the parent */
  height: 50px;
   position: fixed;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  z-index: 9999;
  width: 80%;
   left: 0;
   right: 0;
   margin: 0 auto;
  background-color: #1f1f1f;
}




.loading {
  animation: spin 1s infinite linear;
  border: 5px solid lightgray;
  border-top: 5px solid black;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#scrapeResultsPre {
    white-space: pre-wrap;       /* CSS3 */
    white-space: -moz-pre-wrap;  /* Firefox */
    white-space: -pre-wrap;      /* Opera <7 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* IE */
    overflow-wrap: break-word;   /* CSS3 */
}

