/* General styles for GIF gallery */

h1 {
  margin: 20px;
}

/* Custom Popup Styling */
/* Custom Popup Styling */
#notFoundMessagegif {
  display: none;
  position: fixed;
  top: 31%;
  left: 45%;
  transform: translate(-50%, -50%);
  background-color: #007bff;
  color: white;
  padding: 10px;
  border-radius: 4px;
  font-size: 12px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.slide-in {
  transform: translateX(-50%) translateY(0);
}

#search-input {
  width: 250px;
  padding: 8px;
  margin-right: 10px;
  border: transparent;
  border-radius: 8px;
}

/* Custom Popup Styling */
.custom-popup {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.popup-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 300px;
  text-align: center;
  border-radius: 8px;
}

.close-popup {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-popup:hover,
.close-popup:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

#search-button {
  width: 50px;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: Futura; /* Make sure this font is available or use a web font service */
  font-size: 14px; /* Adjust the size as needed */
  font-weight: bold; /* You can also use 'normal' or other values */
  animation: rainbowBlink 1s infinite; /* Add the animation */
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5); /* Add shadow effect */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add text shadow effect */
}

@keyframes rainbowBlink {
  0% {
    color: red;
  }
  20% {
    color: orange;
  }
  40% {
    color: yellow;
  }
  60% {
    color: green;
  }
  80% {
    color: blue;
  }
  100% {
    color: violet;
  }
}

@keyframes textPulsate {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

#search-button span {
  display: inline-block;
  animation: textPulsate 1s infinite; /* Add the text pulsating animation */
}

#search-button:hover {
  background-color: #0056b3;
}

/* Style for the select dropdown */
#category-select {
  width: auto;
  padding: 18px;
  padding-top: 0px;
  padding-bottom: 0px;
  font-size: 14px;
  background: transparent;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: url("dropdown.png") no-repeat right transparent;
  background-size: 20px; /* Adjust the size as needed */
}

/* Adding some margin to the bottom for spacing */
#category-select option {
  background-color: rgb(255, 255, 255); /* Your background color */
  padding: 0px;
  font-size: 16px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.gallery-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-item img {
  max-width: 150px;
  border: 2px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

.button-group {
  margin-top: 10px;
}

.download-button {
  margin: 5px;
  padding: 10px 20px;
  font-size: 14px;
  color: #fff;
  background-color: #28a745; /* Green background */
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.download-button:hover {
  background-color: #218838; /* Darker green background on hover */
}

.share-button {
  margin: 5px;
  padding: 10px 33px;
  font-size: 14px;
  color: #fff;
  background-color: #17a2b8; /* Teal background */
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.share-button:hover {
  background-color: #117a8b; /* Darker teal background on hover */
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 250%;
  max-width: 300px;
  background-color: rgba(183, 215, 152, 0.9);
  padding: 2px;
  box-shadow: 4px 6px rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  justify-content: center;
  align-items: center;
}

.modal-content {
  width: 100%;
  max-height: 80vh;
  border: 2px solid white;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: rgb(255, 0, 0);
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
}
