@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

:root {
    --main-color: #0d6efd;
    --transition: .4s;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 5%;
}

a {
    text-decoration: none;
}

input, button, select, textarea {
    border-radius: 12px !important;
}

button {
    height: 43px !important;
}

input:focus, 
button:focus,
select:focus,
textarea:focus {
    box-shadow: none !important;
}

#loading {
    text-align: center;
    margin: 4rem 0;
}

.button-wrap {
  display: flex;
  justify-content: space-between;
  margin-left: 50px;
  margin-right: 50px;
}

.submitButton, .registerButton {
  height: auto;
  text-align: center;
  width: 200px;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 7px;
  cursor: pointer;
}

.submitButton:hover, .registerButton:hover {
  opacity: 0.8;
}

.form-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-check label {
    margin-left: 10px;
}

.form-check input {
    border-radius: 5px !important;
}

.mainTitle {
    text-align: center;
    margin-bottom: 1.5rem;
}

.mainSearch {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem;
}

.dropdown-item:focus {
    color: #000;
    background-color: #f1f1f1;
}

.main-header {
    margin: 15px 0 3rem 0;
}

.main-header .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo .text {
    color: #1e1e1e;
    font-weight: 700;
    font-size: 26px;
    transition: var(--transition)
}

.main-header .logo .text:hover {
    color: var(--main-color);
}

.main-header .dropdown {
    background: #fff;
    color: #000;
    border: 1px solid #c5c5c5 !important;
    border-radius: 10px !important;
    box-shadow: none;
}

.main-header .dropdown .dropdown-toggle.show,
.main-header .dropdown .dropdown-toggle:focus {
    border-color: #ffffff00 !important;
}

#signOut {
    color: #ff0000b3;
    font-weight: 500;
}

#upload {
    text-align: center;
    margin-top: 2rem;
}

#upload .title,
#upload .desc,
#upload .formats {
    margin-bottom: 7px;
}

#upload .title {
    font-size: 20px;
    font-weight: 600;
}

#upload .desc {
    font-size: 18px;
}

#upload .formats {
    opacity: .7;
}

#upload #image {
    margin-top: 2rem;
}

#uploadForm button[type="submit"] {
    margin-top: 1.5rem;
}

#uploadForm #image:hover {
    opacity: .5;
}

#uploadForm .message div {
    margin: 35px 0 0 0;
}

.results {
    cursor: pointer;
    background: #f0f0f0;
    padding: 25px;
    border-radius: 10px;
    max-width: min-content;
    margin: 1rem auto 0 auto;
    text-align: left;
}

.results .result {
    margin: 5px;
    cursor: pointer;
    word-wrap: break-word
}

.results #CopyAllResult:hover,
.results .result:hover {
    opacity: .5;
}

.results .result.active {
    color: #43b356 !important;
}

.results #CopyAllResult {
    background: #ffc6c6;
    padding: 4px 10px;
    display: block;
    max-width: max-content;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.results #CopyAllResult.active {
    background-color: #c6ffe2;
}

#imagesPreview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#imagesPreview .image_preview {
    display: inline-block;
    max-width: min-content;
    margin: 10px 25px;
}

#imagesPreview .image_preview img {
    width: 100px;
    display: block;
    margin: 0 auto 1rem auto;
}

#imagesPreview .image_preview .removeImage {
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    position: absolute;
    margin-left: 30px;
    margin-top: -14px;
}

#imagesPreview .image_preview .removeImage .icon {
    width: 22px;
}

#userImages .info {
    margin-bottom: 1.5rem;
    text-align: center;
}

#userImages .info div  {
    display: inline-block;
    border: 1px solid #c5c5c5 !important;
    border-radius: 10px !important;
    padding: 10px;
    max-width: fit-content;
    margin: 5px 0;
}

#userImages .inner .items {
    margin: 0 auto;
    column-count: 4;
    font-family: arial;
}

#userImages .inner .items .item {
    break-inside: avoid;
    margin-bottom: 16px;
    cursor: pointer;
}

#userImages .inner .items .item figure {
    margin: 0;
    position: relative;
}

#userImages .inner .items .item img {
    width: 100%;
    border-radius: 14px;
}

#userImages .filter {
    text-align: center;
    margin-bottom: 2rem;
}

@media (max-width: 991px) {
    #userImages .inner .items {
        column-count: 3;
    }
}

@media (max-width: 685px) {
    #userImages .inner .items {
        column-count: 2;
    }
}

@media (max-width: 300px) {
    #userImages .inner .items {
        column-count: 1;
    }
}

#users .user {
    border: 1px solid #e7e7e7 !important;
    border-radius: 10px !important;
    padding: 15px;
}

#users .user .info {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

#users .user .actions {
    text-align: center;
    margin-top: 1.5rem;
}

#imageView .image {
    width: auto;
    max-width: 640px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

#imageView .content .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

#imageView .content .meta .username {
    border: 1px solid #c5c5c5 !important;
    border-radius: 10px !important;
    padding: 10px;
    max-width: fit-content;
    cursor: pointer;
    transition: var(--transition);
}

#imageView .content .meta .username:hover {
    opacity: .5;
}

#imageView .info button {
    margin-top: 1rem;
    height: 45px !important;
}

#imageView .info {
    text-align: center;
    border: 1px solid #f5f5f5 !important;
    border-radius: 10px !important;
    padding: 10px;
    margin-top: 3rem;
}

#imageView .info .date {
    margin-bottom: 12px;
}

@media (max-width: 767px) {
    #imageView .image {
        width: 100%;
    }
}

#image {
    cursor: pointer;
    width: 100%;
    color: #fff;
    display: block;
    overflow: hidden;
    background: none !important;
}
  
#image::before {
    content: '';
    background: url('../../uploads/other/img/image-pick.png') no-repeat scroll 50% 50% / 100%;
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto;
}
  
#image::-webkit-file-upload-button {
    visibility: hidden;
}

.image_zoom {
    cursor:zoom-in;
}

.image_zoom_popup {
    position: absolute;
    height:100%;
    width:100%;
    top:0;
    left:0;
    display:none;
    text-align:center;
}

.image_zoom_popup_bg {
    position:fixed;
    z-index:1;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: auto;
    height: auto;
}

.image_zoom_popup_img {
    position: fixed;
    z-index:2;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 15rem;
    pointer-events: none;
    border-radius: 10px;
}

.centerForm {
    max-width: 50%;
    display: block;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .centerForm {
        max-width: 100%;
    }
}

.message {
    text-align: center;
}

.message div {
    margin: 25px 0;
}

.message .status__error {
    color: #ff7171;
}

.message .status__success {
    color: #53af51;
}

.select2-container {
    display: block !important;
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #dee2e6 !important;
    padding: 11px 0 0 7px !important;
    min-height: 57px !important;
    border-radius: 12px !important;
}

.select2-container--default .select2-search--inline .select2-search__field::placeholder {
    color: #000000d3;
}

#error {
    text-align: center;
}

#error .title {
    font-size: 65px;
    font-weight: 700;
    margin-bottom: 3rem;
}

.banner img {
  width: 100%;
  height: auto;
  max-width: 1650px;
  max-height: 250px;
}

.banner {
  display: flex;
  justify-content: center;
}

.btn-outline-primary {
  color: #007bff;
  border-color: #007bff;
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.progress {
  transition: all 0.2s ease;
}

.upload-btn {
  overflow: hidden;
  transition: all 0.3s ease;
}

.upload-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, #28a745, #17a2b8);
  transition: width 0.3s ease;
}

.upload-btn .button-text,
.upload-btn .progress-text {
  position: relative;
  z-index: 1;
}