html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
main,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
  display: block;
}

*[hidden] {
  display: none;
}
body {
  line-height: 1;
}
menu,
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

a {
  
  color: #007aff;
  background: none;
  border: none;
  outline: none;
}


::-webkit-scrollbar {
  width: 10px; 
  height: 10px; 
}


::-webkit-scrollbar-track {
  background: #f0f0f0; 
  border-radius: 5px;
}


::-webkit-scrollbar-thumb {
  background-color: #c0c0c0; 
  border-radius: 5px; 
  border: 2px solid #f0f0f0; 
}

html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  
  flex-direction: column;
  scroll-behavior: smooth;
}

body {
  overflow-y: auto;
  overflow-x: hidden;
  font-family: "Rubik", "Open Sans", sans-serif;
}

select {
  height: 40px;
}

html {
  
  touch-action: manipulation;
}

body {
  
  -webkit-text-size-adjust: 100% !important;
}

b {
  font-weight: 700;
}


:root {
  
  --header-bgcolor: #ff1744;

  
  --button-color: #e91e63;
  --color-warning: #ffc107;
  --color-icon: #00b578;
  --color-light: #f8f9fa;
  --color-dark: #343a40;
  --color-white: #ffffff;
  --color-black: #000000;
  
  --black-90: #121212;
  --black-70: #4d4d4d;
  --black-50: #808080;
  --black-30: #b3b3b3;
  --black-10: #e6e6e6;

  
  --color-red: #e53935;
  --color-orange: #fb8c00;
  --color-yellow: #fdd835;
  --color-green: #43a047;
  --color-blue: #1e88e5;
  --color-indigo: #3949ab;
  --color-purple: #8e24aa;
  --color-blue2: #36baf1;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #000;
  border-radius: 999px;
  cursor: pointer;
  margin: 0;
  padding: 0;
}


input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: #000;
  border-radius: 999px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff; 
  border: 2px solid #000; 
  margin-top: -6px;
  cursor: pointer;
}


input[type="range"]::-moz-range-track {
  height: 8px;
  background: #000;
  border-radius: 999px;
}

input[type="range"]::-moz-range-progress {
  height: 8px;
  background: #000;
  border-radius: 999px;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff; 
  border: 2px solid #000;
  cursor: pointer;
}

input[type="file"] {
  font-size: 13px;

  border-radius: 5px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="file"]::-webkit-file-upload-button {
  background-color: #000000; 
  color: white; 
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 5px;
}

input[type="file"]::-webkit-file-upload-button:hover {
  background-color: #666;
}



header.header .logo-only {
  color: #e91e63;
}

header.header {
  padding: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  color: black;
  
  position: sticky;
  top: 0;
  z-index: 9;
}


header.header .logo img {
  background-color: #fff;
  width: 210px;
  height: 26px;
}

.header-left {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}
html[lang] .header-left {
  gap: 0;
}

.header a.selectable {
  text-decoration: none;
  padding: 5px 16px 5px 5px;

  display: inline-block;
  color: #fff;
  
  border-radius: 3px;
  transition: all 0.3s ease;
  font-size: 16px;
  color: #333;
}


nav.body_nav {
  column-gap: 6px;
}

nav.body_nav a {
  width: auto;
  text-align: center;
}


nav.body_nav a.active {
  color: #fff;
  background: #007aff !important;
  cursor: default;
  
}

nav.body_nav a:hover {
  color: #fff;
  background: #7eb8f6 !important;
}

#headerUserBack img {
  background: var(--color-blue2);
  padding: 5px;
  border-radius: 5px;
}

header.title {
  width: 100%;
  font-family: Georgia, "Times New Roman", Times, serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--header-bgcolor);
  min-height: 50px;
  font-size: 16px;
  color: #fff;
}

html[lang] header.title {
  min-height: 38px;
  background-color: #fff;
}

.title a {
  color: #fff;
  text-decoration: none;

  font-size: 14px;

  display: flex;
  align-items: center;
}

#site_title {
  margin-left: 3px;
}

#headerUserBack {
  margin-right: 8px;
}

#app_title {
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 6px;
  display: none;
}

.title span {
  font-size: 18px;
}

#site_title img {
  width: 210px;
  height: 26px;
  margin-left: -7px;
}


.common-output-info {
  min-height: 16px;
}


.page-compress #nav-compress > span {
  color: #fff;
  background-color: #000;
  border-radius: 5px;
}

.page-convert #nav-convert > span {
  color: #fff;
  background-color: #000;
  border-radius: 5px;
}

.page-resize #nav-resize > span {
  color: #fff;
  background-color: #000;
  border-radius: 5px;
}


.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}


.header-nav .nav-item {
  position: relative;
}

.header-nav .nav-item > span {
  display: block;
  padding: 8px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  font-weight: 600;
  color: #333;
}


.header-nav .nav-item > span::after {
  content: "▼";
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  transition: transform 0.3s ease;
}


.header-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 180px;

  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

  opacity: 0;
  visibility: hidden;

  transform: translateY(-10px);

  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;

  z-index: 999;
}


.header-nav .dropdown a {
  display: flex;
  border: none;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
  margin: 0px 3px;
  background-color: #fff;
  border-radius: 0;
  font-size: 14px;
}

.header-nav .dropdown a:hover {
  background: #eee;
}

.header-nav .nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-nav .nav-item:hover > span::after {
  transform: rotate(180deg);
}



 
  .dropdown {
    display: flex;
    gap: 40px;
    padding: 16px;
  }

  .dropdown-group {
    display: flex;
    flex-direction: column;
    min-width: 90px;
    padding: 16px;
  }

  .dropdown-group-title {
    text-align: center;
    font-weight: 600;
    margin-bottom: 8px;
  }

  .dropdown-group a {
    display: block;
    padding-left: 12px;
  }


  

  #nav-compress,
  #nav-convert,
  #nav-resize {
    position: relative;
  }


  
  #nav-compress::after,
  #nav-convert::after,
  #nav-resize::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 100%;
    height: 24px;
    transform: translateX(-50%);
  }


  
  #nav-compress .dropdown,
  #nav-convert .dropdown,
  #nav-resize .dropdown {
    position: absolute;
    top: calc(100% + 24px);
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    gap: 40px;
  }


  
  #nav-compress .dropdown::before,
  #nav-convert .dropdown::before,
  #nav-resize .dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);

    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #333;
  }
 
@media (max-width: 768px) {

  

  .header-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header-nav .nav-item {
    position: relative;
    width: 100%;
  }

  .header-nav .nav-item > span {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }


  

     #nav-compress .dropdown, #nav-convert .dropdown, #nav-resize .dropdown {
      display: none;
      transform: unset;
      gap: 8px;
     }

  .header-nav .dropdown {
    position: static !important;

    width: 100%;
    min-width: 0;

    flex-direction: column;
    align-items: stretch;
    gap: 0;

    padding: 0;

    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;

    opacity: 1;
    visibility: visible;
    transform: none;

    transition: none;
  }


  

  .header-nav .dropdown-group {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    padding: 0;
  }


  
  .header-nav .dropdown-group-title {
    width: 100%;
    box-sizing: border-box;

    text-align: left;

    padding: 10px 16px 6px 8px;
    margin: 0;

    font-size: 14px;
    font-weight: 600;
  }


  
  .header-nav .dropdown-group a {
    display: block;

    width: 100%;
    box-sizing: border-box;

    margin-left: 16px;

    padding: 9px 16px 9px 40px;

    border-radius: 0;
  }


  

  #nav-compress::after,
  #nav-convert::after,
  #nav-resize::after {
    display: none;
  }


  
  #nav-compress .dropdown::before,
  #nav-convert .dropdown::before,
  #nav-resize .dropdown::before {
    display: none;
  }


  
  .header-nav .nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

}



.container {
  flex: 1;
  width: 1080px;

  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;

  border: 1px solid #e91e63;

  margin: 1% auto;
}

.image-preview-container {
  padding: 0 28px !important;
}

.nav-btn {
  z-index: 1 !important;
}

nav a {
  padding: 5px !important;
}

 
.use-sys-browser {
  display: none;
}

.user-drag-tips {
  display: block;
  font-size: 14px;
}

@media (max-width: 768px) {
  .use-sys-browser {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-align: center;
    line-height: 20px;
  }

  .user-drag-tips {
    display: none;
  }

  .container {
    width: 96%;
    padding: 1%;
    justify-content: space-between;
    font-size: 14px;
  }

  
  nav.body_nav {
    grid-template-columns: repeat(6, 1fr);
    display: grid;
    grid-template-rows: repeat(2, auto);
    gap: 5px;
  }

  nav.body_nav a {
    font-size: 14px;
  }

  
  div.header-right {
    justify-content: flex-start !important ;
    gap: 0 !important;
  }
}



.footer-tools {
  width: min(1200px, 80%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;

  margin: 0 auto;
}

.footer-divider {
  width: 55%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 8px 0;
}

.footer-tool-group {
  width: 180px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-tool-group h3 {
  margin: 0 0 8px;
  font-size: 24px;
  text-align: left;
  font-weight: 600;
}

.footer-tool-group a {
  text-decoration: none;
}

.website-info {
  width: min(1200px, 80%);

  margin: 8px auto;

 
}

#page_footer {
  font-family: Source Sans Pro, sans-serif;
  padding: 8px 0;
  width: 100%;
  background-color: #1a1a1a;
  color: #ddd;
  text-align: center;
  z-index: 1000;
  
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-top: 1px solid #ddd;
  flex-direction: column;
}

.website-info a {
  margin: 0 5px;
}

#page_footer a {
  font-size: 16px;
  text-decoration: none;

  color: #ddd;
  cursor: pointer;
  text-align: left;
}

#page_footer a:hover {
  color: #fff;
  text-decoration: underline;
}

#page_footer a.select-langage {
  padding: 0 3px;
  border-radius: 3px;
  border: 1px solid #aaa;
  gap: 5px;
  display: inline;
  align-items: center;
}


@media (max-width: 768px) {


  .website-info {
    text-align: center;
  }

  .copyright {
    display: none;
  }

  .footer-tools {
    width: auto;
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .footer-tool-group h3 {
    text-align: center;
  }

  #page_footer a {
    text-align: center;
  }
}


.dataSafeTips {
  text-align: center;
  margin-top: 24px;
  color: var(--button-color);
  line-height: 20px;
}

.dataSafeTips span {
  font-weight: 500;
}



.ada300-600 {
  width: 300px;
  height: 600px;
  margin: 0 auto;
  margin-top: auto;
}

.ada300-250 {
  width: 300px;
  height: 250px;
  margin: 0 auto;
  margin-top: auto;
}

.ada320-100 {
  width: 320px;
  height: 100px;
  margin: 0 auto;
  margin-top: auto;
}

.ada-auto-bottom {
  
  margin-top: auto;
}




#language-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: none;
}
#language-modal-overlay.show {
  opacity: 1;
}


#language-modal {
  width: 92%;
  max-width: 420px;
  background: #fff;
  color: #000;
  border-radius: 10px;
  padding: 20px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#language-modal.show {
  opacity: 1;
  transform: scale(1);
  width: 85%;
}


#language-modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  background: transparent;
  border: none;
  color: #666;
  font-size: 26px;
  cursor: pointer;
}
#language-modal-close:hover {
  color: #000;
}


#language-modal-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}


#language-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  text-align: left;
  font-size: 16px;
}
#page_footer .language-item {
  color: #666;
  padding: 10px 12px;
  background: #f7f7f7;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
#page_footer .language-item:hover {
  background: #eaeaea;
  transform: translateY(-2px);
  text-decoration: none;
  color: #666;
}

#page_footer .language-item.selected {
  border: 1px solid #ccc;
  font-weight: 600;
  background-color: beige;
  color: #666;
}




header.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  background-color: #fff;

  position: relative;
  
  z-index: 1000;
}

.domain {
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
}


.menu-toggle {
  display: none;
}


.nav-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-grow: 1;
}


.header-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: auto;
  overflow-y: visible;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-item {
  width: auto;
  position: relative;
}

.nav-item > span {
  padding: 10px 15px;
  font-size: 16px;
  border-bottom: none;
  cursor: pointer;
  display: block;
}


.dropdown {
  display: none;
  
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 5px 0;
}


.nav-item:hover .dropdown {
  display: flex;
}

.dropdown a {
  text-decoration: none;
  color: #333;
  padding: 10px 15px;
  font-size: 14px;
  border-bottom: none;
  text-align: center;
}

.dropdown a:hover {
  background-color: #f5f5f5;
  color: #007bff;
}


.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0;
  color: #333;
}

@media (max-width: 768px) {
  .page-compress #nav-compress > span {
    color: #333;
    background-color: #fff;
  }

  .page-convert #nav-convert > span {
    color: #333;
    background-color: #fff;
  }

  
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 30px;
    color: #333;
    position: relative;
    z-index: 1002;
  }

  
  .menu-toggle.active {
    font-size: 0;
  }

  .menu-toggle.active::before {
    content: "✕";
    font-size: 30px;
    color: #333;
    display: block;
  }

  
  .nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-color: #ffffff;
    z-index: 1001;
    padding: 54px 20px 30px 30px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;

    
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  
  .nav-container.active {
    transform: translateX(0);
  }

  
  .header-nav {
    position: static;
    transform: none;
    flex-direction: column;
    width: 100%;
    overflow-y: auto;
    
    flex-grow: 1;
    gap: 15px;
    
  }

  .nav-item {
    width: 100%;
  }

  
  .nav-item > span {
    padding: 5px 0;
    font-size: 16px;
    font-weight: bold;
    color: #999;
  }

  .nav-item .dropdown {
    
    position: static;
    
    transform: none;
    box-shadow: none;
    background-color: transparent;
    
    padding-left: 0;
    flex-direction: column;
    
  }

  
  .dropdown a {
    padding: 12px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    
    text-align: left;
  }

  
  .header-right {
    margin-left: 0;
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid #eee;
    font-weight: bold;
  }

  .header-nav .dropdown {
    opacity: 1;
    visibility: visible;
    border: 0;
    padding-left: 12px;
  }
}




.more-tools {
  margin-top: 36px;
  margin-bottom: 72px;
}

.more-tools .feature-title {
  margin-bottom: 20px;
}

.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;

  border-radius: 8px;

  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  border: 1px solid #cbd5e1;

  color: #007aff;
}

.tool-links a:hover {
  background: #eef6ff;
  border-color: #3b82f6;
  color: #2563eb;
}

.more-tools {
  width: min(1200px, 80%);

  margin: 0 auto;
  padding: 40px 20px;
  text-align: left;

  margin-top: 36px;
  margin-bottom: 72px;
}

@media (max-width: 768px) {
  .tool-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
  }

  .tool-links a {
    justify-content: center;
  }

  nav.body_nav a {
    white-space: nowrap;
  }
}

