/* Container for the form */
.convert-form-container {
  background-color: #f5f5f5;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin: 20px auto;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-left: 5px solid #1379a7;
  border-right: 5px solid #1379a7;
  border-top: 5px solid #1379a7;
}

/* Form title */
.form-title {
  margin-bottom: 10px;
  color: #1379a7;
  font-size: 24px;
  font-weight: bold;
}

/* Form body */
.form-body {
  margin-bottom: 20px;
}

/* Form container */
.file-converter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Button container */
.button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

/* Upload button */
.upload-button {
  background-color: #1379a7;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.upload-button:hover {
  background-color: #1379a7;
}

/* Submit button */
.submit-button {
  background-color: #28a745;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #1f8530;
}

/* Style for the file upload input */
.js-form-file {
  border: 2px solid #1379a7;
  padding: 8px;
  border-radius: 5px;
  background-color: #f5f5f5;
  color: #555;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

/* Hover effect for the file upload input */
.js-form-file:hover {
  background-color: #e9e9e9;
  border-color: #1379a7;
}

.no-sidebars {
  background-color: #1379a7;
}

/* #header {
  background-color: #1379a7 !important;
} */

.form-title {
  text-align: center;
}

#edit-image-dir-upload {
  padding: 3.5px;
}

input {
  margin-top: 1rem;
}

.site-name {
  color: white !important;
}

@media (min-width: 64rem) {
  #header .block-search .form-submit {
    background-color: white !important;
  }
}

#footer {
  background-color: #1379a7 !important;
}

#edit-image-dir {
  text-align: center;
}

#edit-image-dir-upload {
  width: 75%;
}

.description {
  text-align: center;
}

.download-button {
  background-color: #1379a7;
  padding: 10px;
  border-radius: 7px;
  color: #fff;
  text-decoration: none;
  margin: 15px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  text-align: center;
}

#download-link {
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 75%;
}

.download-button:hover {
  color: white !important;
}

#edit-file-upload--label {
  display: none;
}

.form-description {
  margin-bottom: 10px;
  text-align: center;
}

.view-content row {
  justify-content: center;
 }

.view-content {
  justify-content: center;
}

#block-iamconverter-bootstrap-subtheme-views-block-frequently-ask-questions h2 {
  text-align: center !important;
 }

 .ui-state-active {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)!important;
 }

 #block-iamconverter-bootstrap-subtheme-views-block-frequently-ask-questions {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)!important;
 }

 #block-iamconverter-bootstrap-subtheme-views-block-frequently-ask-questions {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)!important;
  border-radius: 5px !important;
  max-width: 800px !important;
  padding-bottom: 20px !important;
  padding-top: 20px !important;
  background-color: #f5f5f5 !important;
  margin-bottom: 10px !important;
  border-left: 5px solid #1379a7 !important;
  border-right: 5px solid #1379a7 !important;
  border-bottom: 5px solid #1379a7 !important;
}

.region-featured-bottom-first{
  justify-content: center;
  margin-right: 0!important;
  margin-left: 0!important;
}

.block-file-converter-block {
  justify-content: center;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover {
  background: #1379a7;
  border: none;
}

.block-file-converter-related-link {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  max-width: 670px!important;
  flex-direction: column;
  align-items: center;
  background-color: #f5f5f5;
  border-left: 5px solid #1379a7;
  border-right: 5px solid #1379a7;
}

#block-iamconverter-bootstrap-subtheme-views-block-frequently-ask-questions {
  max-width: none !important;
}

.block-file-converter-related-link {
  max-width: 100% !important;
}

.error-message {
  margin-top: 10px;
  color: red;
}

/* Style the select fields with an animated neon light effect */
.form-select {
  width: 85px;
  padding: 10px;
  font-size: 16px;
  margin: 5px;
  border: 2px solid #1379a7;
}

#edit-submit-button {
  padding: 15px;
  width: 200px;
}

.select-conversion-wrapper {
  display: flex;
  justify-content: center;
}

.title_text h3{
  text-align: center;
  margin-top: 10px; 
}

/* Style the image container */
.image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Style individual images */
.first-image,
.arrow-image,
.second-image {
  max-width: 100%;
  height: auto;
}

/* Set specific sizes for individual images */
.first-image {
  width: 100px; /* Adjust the width as needed */
  margin-right: 5px;
}

/* Style the arrow image */
.arrow-image {
  width: 75px; /* Adjust the width as needed */
  animation: bounceArrow 1s ease-in-out infinite; /* Apply the custom animation */
}

/* Define the bounceArrow animation */
@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.second-image {
  width: 100px; /* Adjust the width as needed */
  margin-left: 5px;
}

/* Custom styling for the checkbox and label */
.form-item-send-email-checkbox {
  margin-top: 20px;
}

#main-wrapper {
  height: auto !important;
}

/* Media query for larger screen sizes */
@media screen and (min-width: 300px) {
  .js-form-item-file-upload {
    max-width: 300px;
  }
  
  .file--image {
    width: 300px;
  }
}

/* Media query for larger screen sizes */
@media screen and (min-width: 768px) {
  .js-form-item-file-upload {
    max-width: 400px; /* Adjust as needed */
  }

  .file--image {
    width: 400px; /* Adjust as needed */
  }
}

/* Media query for even larger screen sizes */
@media screen and (min-width: 1024px) {
  .js-form-item-file-upload {
    max-width: 500px; /* Adjust as needed */
  }

  .file--image {
    width: 500px; /* Adjust as needed */
  }
}

.file--image a {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  text-align: center;
}

/* Dark Mode Styles */

/* Form container */
body.darkmode--activated .convert-form-container {
  background-color: #2c2c2c; /* Darker background for the form container */
  border: 1px solid #444444; /* Darker border color */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4), 0 6px 20px 0 rgba(0, 0, 0, 0.35); /* Stronger shadow */
  border-left: 5px solid #0056b3;
  border-right: 5px solid #0056b3;
  border-top: 5px solid #0056b3;
}

/* Form title */
body.darkmode--activated .form-title {
  color: #e0e0e0; /* Light text color */
}

/* Upload and Submit buttons */
body.darkmode--activated .upload-button,
body.darkmode--activated .submit-button {
  background-color: #0056b3; /* Darker background for buttons */
  color: #ffffff; /* Light text color */
}

body.darkmode--activated .submit-button:hover {
  background-color: #004a29; /* Darker green on hover */
}

/* File upload input */
body.darkmode--activated .js-form-file {
  border: 2px solid #0056b3; /* Darker border color */
  color: #cccccc; /* Light text color */
}

body.darkmode--activated .js-form-file:hover {
  background-color: #444444; /* Darker hover effect */
}

/* Site name */
body.darkmode--activated .site-name {
  color: #ffffff !important; /* Ensure the site name text is white */
}

/* Footer */
body.darkmode--activated #footer {
  background-color: #0056b3 !important; /* Darker background for the footer */
}

/* Download button */
body.darkmode--activated .download-button {
  background-color: #0056b3; /* Darker background for download button */
  color: #ffffff; /* Light text color */
}

body.darkmode--activated .download-button:hover {
  color: #e0e0e0 !important; /* Ensure text remains light on hover */
}

/* Block styling */
body.darkmode--activated #block-iamconverter-bootstrap-subtheme-views-block-frequently-ask-questions,
body.darkmode--activated .block-file-converter-related-link {
  background-color: #333333 !important; /* Darker background for blocks */
  border-left: 5px solid #0056b3;
  border-right: 5px solid #0056b3;
  border-bottom: 5px solid #0056b3;
}

/* Checkbox label */
body.darkmode--activated .form-item-send-email-checkbox {
  color: #e0e0e0; /* Light text color */
}

/* Custom table styling */
body.darkmode--activated .file--image {
  background-color: #333333; /* Darker background for images */
  color: #cccccc; /* Light text color */
}

/* Arrow animation */
body.darkmode--activated .arrow-image {
  animation: bounceArrowDark 1s ease-in-out infinite; /* Apply the custom animation */
}

/* Define the bounceArrow animation for dark mode */
@keyframes bounceArrowDark {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* Media Queries */
@media screen and (min-width: 768px) {
  body.darkmode--activated .js-form-item-file-upload {
    background-color: #2c2c2c; /* Darker background for file upload container */
  }
}

@media screen and (min-width: 1024px) {
  body.darkmode--activated .js-form-item-file-upload {
    background-color: #2c2c2c; /* Darker background for larger screens */
  }
}
