/* Importing Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body{
   /*background-color: #020203;*/
   background: url("giphy.gif");
   background-size: cover;
   background-position: center;
   
    color: #fff;
    

}
h1 {
  visibility: hidden;
  padding-right: 250px;
}

h1 span {
  animation: appear 0.5s linear forwards;
  visibility: hidden;
  
  opacity: 0; 
  transition: opacity 0.5s; 
}

@keyframes appear {
  to {
    visibility: visible;
    opacity: 1; 
  }
}
.image-generator {
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: url("giphy.gif");
  background-size: cover;
  background-position: center;
}

.image-generator::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  background: #121212;
}

.image-generator .content {
  position: relative;
  color: #fff;
  padding: 0 15px;
  
  text-align: center;
}

.image-generator h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.image-generator p {
  margin-top: 10px;
  font-size: 1.35rem;
}

.image-generator .generate-form {
  height: 56px;
  padding: 6px;
  display: flex;
  margin-bottom: 15px;
  background: #fff;
  align-items: center;
  border-radius: 30px;
  margin-top: 45px;
  justify-content: space-between;
}

.generate-form .prompt-input {
  width: 100%;
  height: 100%;
  outline: none;
  padding: 0 17px;
  border: none;
  background: none;
  font-size: 1rem;
  border-radius: 30px;
}

.generate-form .controls {
  display: flex;
  height: 100%;
  gap: 15px;
}

.generate-form .img-quantity {
  outline: none;
  border: none;
  height: 44px;
  background: none;
  font-size: 1rem;
}

.generate-form .generate-btn {
  font-size: 1rem;
  outline: none;
  border: none;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  height: 100%;
  padding: 0 25px;
  border-radius: 30px;
  background: #4949E7;
}

.generate-form .generate-btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.generate-form button:hover {
  background: #1d1de2;
}

.image-gallery {
  display: flex;
  
  padding: 0  10px;
  flex-wrap: wrap;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.image-gallery .img-card {
  margin-top: 20px;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  
  width: 285px;
}

.image-gallery .img-card img {
  
  height: 100%;
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.image-gallery .img-card.loading img {

  width: 80px;
  height: 80px;
}

.image-gallery .img-card .download-btn {
  bottom: 15px;
  right: 15px;
  height: 36px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.image-gallery .img-card .download-btn img {
  width: 20px;
  height: 20px;
}

.image-gallery .img-card:not(.loading):hover .download-btn {
  opacity: 1;
  pointer-events: auto;
}

@media screen and (max-width: 760px) {
  .image-generator {
    height: 45vh;
    padding-top: 30px;
    align-items: flex-start;
  }
  .image-gallery .img-card {
    width: 100%;
    margin-top: 0;
    margin-left: 0.5vh;
    margin-right: 0.5vh;
  }
  .image-generator h1 {
    font-size: 2.8rem;
    padding-right: 3.3vh;
  }

  .image-generator p {
    font-size: 1rem;
  }

  .image-generator .generate-form {
    margin-top: 30px;
    height: 52px;
    display: block;
  }

  .generate-form .controls {
    height: 40px;
    margin-top: 15px;
    justify-content: end;
    align-items: center;
  }

  .generate-form .generate-btn[disabled] {
    opacity: 1;
  }

  .generate-form .img-quantity {
    color: #fff;
  }

  .generate-form .img-quantity option {
    color: #000;
  }

  .image-gallery {
    margin-top: 20px;
  }

  .image-gallery .img-card:not(.loading) .download-btn {
    opacity: 1;
    pointer-events: auto;
    
  }
}

@media screen and (max-width: 500px) {
  .image-gallery .img-card {
    width: 100%;
    margin-top: 0;
    margin-left: 0.5vh;
    margin-right: 0.5vh;
  }
}
@import url('https://fonts.googleapis.com/css?family=Nuto:400,700');

* {
    margin: 0px;
    padding: 0px;
}

body {
    font-family: Brush Script MT;
}

.context {
    width: 100%;
    position: absolute;
    top: 50vh;
}

.context h1 {
    text-align: center;
    color: #fff;
    font-size: 80px;
    backdrop-filter: blur(5px);
}

label {
  display: block;
  font-size: 1.2em;
  margin-top: 20px;
  margin-left: 45%;
}

input[type="range"] {
  width: 10%;
  height: 25px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  margin-left: 45%;
  transition: opacity .2s;
}

input[type="range"]:hover {
  opacity: 1;
}
.slider-control{
  background-size: cover;
  background-position: center;
  
}
.loading-text {
  display: none;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}
#loader {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: #0e111f ;
  background-size: cover;
}

main {
  display: none;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.img-card #image {
  display: none;
}

.img-card .loading-text {
  display: block;
}

.img-card #image {
  display: block;
}

.img-card .loading-text {
  display: none;
}
#imageContainer {
  position: relative; /* Make sure the loader is positioned relative to the container */
}

#loadingText {
  position: absolute; /* Position the loader absolutely within the container */
  top: 0;
  left: 0;
  width: 100%; /* Make the loader the same width as the container */
  height: 100%; /* Make the loader the same height as the container */
  display: flex; /* Center the loading image */
  justify-content: center;
  align-items: center;
}

#loadingText img {
  max-width: 100%; /* Make sure the loading image doesn't overflow the loader */
  max-height: 100%;
}


#filter-control {
  display: flex;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 20px;
}

#filter-control label {
  margin-right: 10px;
  font-size: 20px;
  color: #f8f1f1;
  font-family: 'Poppins', sans-serif;
}

.filter-select {
  padding: 8px 12px;
  border-radius: 20px; /* Rounded corners */
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  font-size: 16px;
  color: #555;
  outline: none; /* Remove outline */
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

.filter-select:hover,
.filter-select:focus {
  background-color: #e0e0e0;
  border-color: #999;
}

.filter-select option {
  padding: 8px 12px;
}

#brightness-control,
#filter-control {
  margin-bottom: 20px;
}
.image-generator,
.generate-form,
.image-gallery .img-card,
.context {
  border: 0.2vh solid #000;
}