body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #b1d3e3; /* Light blue */
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
    padding-bottom: 2%;
    color: #2e6da4; /* Dark blue */
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.container {
    max-width: 600px;
    margin: 2% auto;
    background-color: #ffffff; /* White */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 10px rgba(3, 3, 3, 0.1);
  }

#preview {
    max-width: 40%;
    height: auto;
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;  
  }

.input-container,
.option-container {
    margin-bottom: 15px;
}
  
.file-label,
 .checkbox-label {
    font-size: 18px;
    font-weight: 550;
    color: #2e6da4; /* Dark blue */
  }

input[type="file"],
input[type="checkbox"],
select {
    border: 1px solid #e2e8f0; /* Light gray */
    padding: 5px;
}

.compression-options {
    display: none;
    margin-top: 5px;
  }

/* CSS for button */
button {
    display: block;
    width: 90%;
    padding: 14px 15px;
    margin: 0 auto 10px;
    background-color: #2e6da4; /* Dark blue */
    color: #fff; /* White */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);  /* Subtle shadow */
}

button:hover {
    background-color: #00569a; /* Darker blue */
}

/* CSS for <a> element styled like a button */
a.button {
    display: block;
    width: 90%;
    padding: 14px 20px;
    margin: 0 auto 10px;
    background-color: #2e6da4; /* Dark blue */
    color: #fff; /* White */
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

a.button:hover {
    background-color: #00569a;  /* Darker blue */
}

/* Container for buttons */
  .button-container {
    text-align: center;
    margin-top: 5px;
  }

/* Buttons animation  */
  button,
  a.button {
    animation: buttonPulse 0.5s ease-in-out;
    background-color: #dd859b;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 10px 20px;
    color: #000000;
    transition: background-color 0.3s;
    font-weight: 500;
  }
  
  button:hover,
  a.button:hover {
    background-color: #a3545f;
  }
  

/* Checkboxes */
input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    margin-right: 5px;
}

input[type="checkbox"]:checked {
    border-color: #356335;
    background-color: #66b266;
    animation: checkmarkAppear 0.3s ease-in-out;
}

.checkbox-label {
    color: #222;
}

/* Dropdowns */
  .dropdown {
    position: relative;
    display: inline-block;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: #000000;
  }

/* Slider of custom compression*/
  #customCompression {
    width: 200px; 
    margin: 0 10px; 
    display: inline-block;
  }
  
  #customCompression::-webkit-slider-runnable-track {
    background: #ddd;
    height: 10px; 
    border: 1px solid #ccc;
    border-radius: 2px;
    margin-top: 7px;
  }
  
  #customCompression::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #333;
    width: 16px; 
    height: 16px; 
    border: 1px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
  }
  
  #customCompression::-webkit-slider-thumb:before {
    content: "";
    position: absolute;
    left: -10px; /* Adjust left position as needed */
    top: -5px; /* Adjust top position as needed */
    width: 20px; /* Adjust width as needed */
    height: 20px; /* Adjust height as needed */
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 0.8em;
    line-height: 1em;
    text-align: center;
    background-color: #ddd;
    color: #333;
  }
  
  #customCompression::-webkit-slider-thumb:after {
    content: attr(value) "%";
    position: absolute;
    left: -50%;
    transform: translateX(-50%);
    top: -10px; /* Adjust top position as needed */
    width: 100%;
    font-size: 0.8em;
    line-height: 1em;
    text-align: center;
    color: #fff;
  }

/* Animations */
  @keyframes buttonPulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
    }
  }
  
  @keyframes checkmarkAppear {
    from {
      stroke-dashoffset: 100%;
    }
    to {
      stroke-dashoffset: 0;
    }
  }
  
  @keyframes dropdownOpen {
    from {
      height: 0;
    }
    to {
      height: auto;
    }
  }
