 
    input[type="range"] {
      height: 4px;
      
    }

    input[type="range"]::-webkit-slider-runnable-track {
      height: 4px;
      
    }

    input[type="range"]::-webkit-slider-thumb {
      background: #1e88e5;
      width: 12px;
      
      height: 12px;
      margin-top: -4px;
      
    }

    input[type="range"]::-moz-range-track {
      height: 4px;
      
    }

    input[type="range"]::-moz-range-progress {
      height: 4px;
      
    }

    input[type="range"]::-moz-range-thumb {
      background: #1e88e5;
      width: 12px;
      
      height: 12px;
    }







    body {
      background-color: var(--color-light);
    }


    .container {

      margin: 0 auto;
      border: 0;

      flex-direction: row;
      flex: 1;
      position: relative;
      display: none;
      justify-content: flex-start;
      align-items: center;
      background-color: #fff;
      width: 1080px;
      border-radius: 8px;
      flex-direction: row;

      margin: 4px auto;
    }

    .rightPanel fieldset legend {
      padding: 0 8px;
      font-weight: bold;
    }



    header.title {
      background-color: #fff;
      width: 1064px;
      margin: 0 auto;
      padding: 8px;
      border-bottom-left-radius: 8px;
      border-bottom-right-radius: 8px;

    }

    #headerUserBack {
      margin-right: 0;
    }

    #headerUserBack img {
      background: var(--header-bgcolor);
      padding: 8px;
      border-radius: 8px;
    }


    .canvasDiv {
      flex-direction: column;
      width: 700px;
      height: 96%;
      display: flex;
      margin: 1%;
      align-items: center;
      justify-content: center;
      border: 1px solid #aaa;
    }




    .rightPanel {
      gap: 16px;
      background-color: #fff;
      border-radius: 3px;

      padding: 8px;
      display: flex;
      flex-direction: column;
      width: 350px;
      height: 96%;

    }


    #canvas {
      background: #fff;
      max-width: 100%;
      max-height: 600px;
    }


    
    @media (max-height: 720px) {
      #canvas {
        background: #fff;
        max-width: 100%;
        max-height: 480px;
      }
    }


    .controls {
      display: none;
      margin: 10px 0;
    }

    .controls label {
      margin-right: 10px;
    }

    .controls input[type="range"] {
      width: 300px;
    }

    .footer {
      display: none;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;

      align-items: center;
      justify-content: space-between;
      border-radius: 3px;

      margin: 0 auto;

      width: 332px;
    }


    #outputDiv {
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.6s ease, visibility 0.6s ease;
    }

    #outputDiv.show {
      opacity: 1;
      visibility: visible;
    }



    ul.footer li {
      opacity: 1;
      transition: opacity 0.6s ease;
    }

    ul.footer li.hidden {
      opacity: .3;
      pointer-events: none
    }


    #flip-horizontal-btn,
    #flip-vertical-btn,
    #crop-btn {
      border: 1px solid var(--color-black);
      color: var(--color-black);
      padding: 8px 4px;
      display: flex;
      justify-content: center;
      align-content: center;
    }

    #flip-horizontal-btn svg.myIcon,
    #flip-vertical-btn svg.myIcon,
    #crop-btn svg.myIcon {
      color: var(--color-black);
      margin-right: 3px;

    }


    .crop-tips {
      text-align: center;
      color: var(--color-orange);
      margin-top: 8px;
      background-color: #fff;
      display: inline-block;
      padding: 3px;
      opacity: 0.8;
    }

    .footer button {
      padding: 6px 12px;
      font-size: 14px;
      cursor: pointer;
    }

    .controls.active {
      display: block;
    }

    #cropOverlay {
      position: absolute;
      border: 2px dashed #f00;
      background: rgba(255, 0, 0, 0.1);
      cursor: move;
      display: none;
      text-align: center;
    }


    .controls_box input[type="range"] {
      -webkit-appearance: none;
      width: 100%;
      height: 8px;
      background: #000;
      
      cursor: pointer;
      border-radius: 4px;
      margin: 0;
      padding: 0;
    }


    

    .collapse {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease;
    }

    .collapse.expand {
      max-height: 500px;
      
    }

    #image-info {
      border-radius: 3px;

      color: #666;
      font-size: 14px;
      height: 20px;
      margin-bottom: 16px;
    }

    .controls {
      font-size: 14px;
      color: #555;
    }

    .controls input {
      margin-left: 8px;
    }

    #cropOverlay span {
      color: #fff;
      font-size: 13px;
      margin-top: 28px;
      line-height: 12px;
    }

    .controls_box {


      align-items: center;
      justify-content: center;
      margin: 8px;
    }



    .controls_box {
      position: absolute;
      background: #fff;
      padding: 10px 20px;
      border-radius: 24px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      opacity: 0;
      transform: translateY(10px);
      transition: all 0.3s ease;
      pointer-events: none;



    }

    .controls_box.show {
      opacity: 1;
      transform: translateY(-10px);
      pointer-events: auto;
      text-align: center;
    }

    .controls_box label {
      display: block;
      margin-bottom: 5px;
    }



    .footer li {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 16px;
      width: 96%;
      padding: 0 2%;
    }


    .footer button.selected {
      background-color: #007bff;
      color: white;

    }


    #reset {

      display: inline-block;
      text-align: center;
      width: 100%;
      background-color: var(--black-90);
      height: 38px;
      color: #fff;
    }

    .controls label {
      display: inline-block;
      width: 48px;
    }

    .footer button {
      background-color: #fff;
      border-radius: 3px;
      padding: 8px;
      font-size: 14px;
      color: var(--color-black);
      text-align: center;
      border: none;
      width: 150px;
      display: flex;
      cursor: pointer;
      transition: all 0.3s ease;

      height: 26px;
      align-items: center;
      justify-content: flex-start;
    }


    .myIcon {
      color: #000;
      margin-right: 8px;
    }


    

    #image-info span {
      margin: 0 8px;
    }

    
    #cropOverlay {
      position: absolute;
      border: 2px dashed #00aaff;
      box-sizing: border-box;
    }

    #cropOverlay .handle {
      width: 10px;
      height: 10px;
      background-color: white;
      border: 1px solid #00aaff;
      position: absolute;
      z-index: 10;
    }

    #cropOverlay .handle.nw {
      top: -5px;
      left: -5px;
      cursor: nwse-resize;
    }

    #cropOverlay .handle.ne {
      top: -5px;
      right: -5px;
      cursor: nesw-resize;
    }

    #cropOverlay .handle.sw {
      bottom: -5px;
      left: -5px;
      cursor: nesw-resize;
    }

    #cropOverlay .handle.se {
      bottom: -5px;
      right: -5px;
      cursor: nwse-resize;
    }

    .rightPanel fieldset {
      border: 1px solid #ccc;
      border-radius: 5px;



      padding: 8px;
      font-size: 14px;
    }

    #upload {
      width: calc(100% - 16px);
      padding: 8px;
      align-items: center;
      justify-content: space-between;
      background-color: #fff;
      border-radius: 3px;
      flex-direction: column;
      outline: 1px solid #aaa;
      border-radius: 3px;
      background-color: #fafafa;
    }

    #donwloadType {
      align-items: center;
      justify-content: space-between;
      display: flex;
      text-align: right;
    }

    #format {
      height: 22px;
      text-align: center;
      font-weight: bold;
    }

    #download {

      border-radius: 3px;
      border: 0;
      background: var(--black-90);
      color: #fff;
      width: 70px;
      height: 30px;
      cursor: pointer;
      font-size: 13px;
      text-align: center;
    }

    
    #guidePage {
      width: 1080px;
      height: 100%;
      background: #fff;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;


      border-radius: 8px;
      margin: 4px auto;


    }

    .upload-label {
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 245px;
      height: 60px;
      background-color: var(--black-90);
      color: white;
      cursor: pointer;
      border-radius: 3px;
    }

    #upload {
      display: none;
    }

    .grid-container {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-gap: 0;
      width: 90%;
    }

    .grid-container .grid-item {
      padding: 3px;
      text-align: center;
      margin-top: 48px;
    }

    .grid-container .grid-item p {
      font-size: 16px;
      line-height: 20px;
      margin-top: 4px;
      color: #333;
    }

    .image_title {
      margin: 8px 0;
      font-size: 36px;
   
      font-weight: 700;
    }

    .image_title div {
      font-size: 16px;
      color: #666;
      margin: 16px;
      line-height: 23px;
      font-weight: normal;
    }

    .grid-item svg {
      width: 54px;
      height: 54px;
      color: #00b578;
    }

    
    @media screen and (orientation: portrait) {
      .container {
        padding: 1%;
        width: 98%;
        min-width: unset;
        height: 100%;
        flex-direction: column;
        overflow: hidden;
      }

      #upload {
        
      }

      #canvas {
        background: #fff;
        max-width: 100%;
        max-height: 300px;
      }

      .rightPanel {
        width: 98%;
        padding: 1%;
        flex: 1;
        overflow-x: hidden;
        overflow-y: auto;
      }

      

      .canvasDiv {
        height: 360px;
        width: 98%;
        margin: 0;
      }

 

      #image-info {
        margin: 8px;
      }


      header.title {
        width: 98%;
        padding: 1%;
      }

      .footer {
        gap: 1px;
        height: auto;
        background: #fff;
      }

      .footer button {
        flex: 1 1 30%;
        font-size: 12px;
        padding: 0;
      }



      .controls label {
        font-size: 14px;
      }

      .footer button {
        height: 24px;
        border-radius:
          3px;
      }

 

      



      
      #image-info> :first-child {
        display: none;
      }

      .controls label {
        width: unset;
        margin: 0;
      }

      #guidePage {
        width: 100%;
        margin: 0 auto;
        margin: 4px 0;
        min-height: calc(100% - 110px)
      }

      .grid-container .grid-item {
        margin-top: 12px;
      }

      .grid-container .grid-item p {
        font-size: 13px;
      }

      .upload-label {
        width: 196px;
        height: 45px;
        min-height: 45px;
      }

      #guidePage svg.icon {
        width: 54px;
        height: 54px;
      }

     #reset {
      margin-top: 8px;
     }


    }
 