#imd-form {
    display: flex;
    justify-content: center;
}
.form-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    border-radius: 5px;
    border: 2px solid #8d8d8d;
    background-color: transparent;
    padding: 0 0 0 12px;
    width: 100%;
    max-width: 850px;
}

.input-field {
    width: 100%;
    outline: none;
    border: none;
    background-color: transparent !important;
    border: 0 !important;
    padding: 0 10px 0 0 !important;
}

.paste-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 15px;
    border: 1px solid #8d8d8d;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    cursor: pointer;
    background: #ffffff;
    color: #000;
    text-wrap-mode: nowrap;
    margin-right: 7px;
}

.submit-button {
    margin-left: 8px;
    outline: none;
    padding: 10px 16px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
    background: linear-gradient(135deg, #f00074, #ff6a00, #fcb045);
    border: none;
    cursor: pointer;
    font-weight: 700;
    text-wrap-mode: nowrap;
}
.imd-media-grid {
    margin-top: 30px;
}
.imd-media-item img {
    height: 400px;
}
.imd-media-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.imd-download-btn {
    display: block;
    margin-top: 5px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f00074, #ff6a00, #fcb045);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    width: 100%;
    text-align: center;
}
.imd-download-btn:hover, .imd-download-btn:focus {
    color: #fff !important;
}
.imd-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(173px, 330px));
    gap: 10px;
    justify-content: center;
}

#imd-caption {
    margin-top: 30px;
    font-weight: 500;
    color: #000;
    padding: 9px;
    background: white;
    border: 1px solid #000;
    border-radius: 6px;
}

.loader {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  border: 3px solid;
  border-color: #000 #000 transparent transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
	display: flex;
    margin: auto;
margin-top: 15px;
}
.loader::after,
.loader::before {
  content: '';  
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 3px solid;
  border-color: transparent transparent #000 #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-sizing: border-box;
  animation: rotationBack 0.5s linear infinite;
  transform-origin: center center;
}
.loader::before {
  width: 53px;
  height: 53px;
  border-color: #000 #000 transparent transparent;
  animation: rotation 1.5s linear infinite;
}
    
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 
@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}
@media (max-width: 700px) {
    #imd-form {
        flex-direction: column;
    }
    .submit-button {
        margin-top: 12px;
        margin-left: 0px;
    }
}