/*!
Theme Name: imgconverter
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: imgconverter
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

imgconverter is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/


    /* =============================================================
       IMPORTS & ROOT VARIABLES
       ============================================================= */
    @import url('https://fonts.googleapis.com/css2?family=Special+Gothic+Expanded+One&display=swap');
    @import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
    
    :root {
      --primary: #78b3e2;
      --primary-hover: #357ac5;
      --text-dark: #484848;
      --text-light: #474747;
      --accent: #5a5a5a;
      --white: #ffffff;
      --border-radius: 10px;
      --dropimage-radius: 1.5vh;
      --dropimage-shadow: 1px 1px 40px -9px rgba(68, 75, 133, 0.1);
      --slider-height: 60px;
      --thumb-size: 20px;
    }
    
    /* =============================================================
       BASE STYLES
       ============================================================= */
    body {
      margin: 0;
      overflow-x: hidden;
      font-family: "Special Gothic Expanded One", sans-serif !important;
      font-weight: 400;
      letter-spacing: 0.02em;
      font-size: 0.9em;
      color: #6b6b6b;
      background: #ECECF3;
    }
    
    *, body {
      cursor: auto !important;
    }
    
    button,
    input,
    optgroup,
    select,
    textarea {
      margin: 0;
      font: inherit;
      color: var(--text-dark);
    }
    
    h1, h2, h3, h4 {
      margin: 5px 0 10px !important;
      color: #6b6b6b;
		font-weight: 400 !important;
    }
    
    h1 {
      text-align: center;
      margin-top: 50px;
      font-size: 25px;
    }
    
    h2, h3 {
      font-size: 1.3em;
    }
    
    p, ul {
      margin: 0 0 20px !important;
      font-family: "Open Sans", sans-serif;
    }
    
    /* =============================================================
       LAYOUT & WRAPPERS
       ============================================================= */

	article{
		padding-top: 40px;
	}

	button.menu-toggle {
		display: none;
	}

	li.page_item.page-item-7.current_page_item {
		list-style: none;
		text-transform: uppercase;
	}

	li.page_item.page-item-7.current_page_item a{
		text-decoration: none;
		color: inherit;
	}

	aside#secondary {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		background: #ffffff66;
		padding: 5vh 5vw;
		box-shadow: 1px -1px 102px -50px rgba(0, 0, 0, 0.75);
		-webkit-box-shadow: 1px -1px 102px -50px rgb(0 0 0 / 4%);
		flex-direction: row;
	}

	.site-info {
		display: none;
	}

	p.site-title, ul.nav-menu{
		margin: 0 !important;
	}
	p.site-title a {
		font-family: "Special Gothic Expanded One", sans-serif !important;
		font-size: 1.2em;
		text-decoration: none !important;
		text-transform: none;
		color: inherit;
		letter-spacing: 0.05em;
	}
	nav#site-navigation {
		display: flex;
		align-items: center;
		flex-direction: row;
		flex-wrap: nowrap;
	}

	header#masthead {
		display: flex;
		justify-content: space-between;
		align-items: center;
		background: #ffffff66;
		padding: 20px;
		box-shadow: 1px -1px 102px -50px rgba(0,0,0,0.75);
		-webkit-box-shadow: 1px -1px 102px -50px rgba(0,0,0,0.75);
		-moz-box-shadow: 1px -1px 102px -50px rgba(0,0,0,0.75);
	}


    .main-content {
      width: 100%;
      margin: 0 auto;
      color: var(--white);
      padding-top: 50px;
      display: flex;
      flex-direction: column;
      gap: 3vh;
    }
    
    .fluid {
      padding: 0 4vw;
      width: 100%;
      position: relative;
      display: flex;
      justify-content: center;
      flex-direction: row;
      align-items: stretch;
      gap: 1vw;
      align-content: space-around;
      overflow: visible;
    }
    
    .flexv {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      padding: 13px 0;
      position: relative;
      gap: 8px;
      flex-direction: row;
    }
    
    label.quantity {
      position: absolute;
      margin: 0 auto;
      pointer-events: none;
      width: calc(100% - 185px);
      display: flex;
      justify-content: space-between;
      padding: 0 20px;
      color: #b5b5b5;
      align-items: center;
      bottom: 28px;
      right: 0;
      mix-blend-mode: difference;
      font-weight: normal;
    }
    
    .options-wrapper {
      border-radius: 20px;
      padding: 20px;
    }
    
    /* =============================================================
       DROPZONE AREA
       ============================================================= */
    .addwrapper {
      display: none;
      flex-direction: column;
      gap: 5px;
      margin: 0;
      width: 200px;
      border-radius: 20px;
    }
    
    .addwrapper .sticky-box {
      border: 1px solid #ffffff40;
      box-shadow: -1px -1px 52px -7px rgba(6,7,28,0.04);
      background: #ffffff70 url(https://pmarti.info/wp-content/uploads/2025/07/add.webp);
      overflow: hidden;
      height: 584px;
      width: auto;
      position: sticky;
      z-index: 10;
      border-radius: 20px;
    }
    
    .dropimagewrapper {
      display: flex;
      gap: 5px;
      margin: 30px auto 30px !important;
      width: 920px;
      padding: 25px;
      border-radius: 20px;
      flex-direction: column;
      border: 1px solid #ffffff40;
      box-shadow: -1px -1px 52px -7px rgba(6,7,28,0.04);
      background: #ffffff70;
		margin-bottom: 60px !important;
    }
    
    .dropimage {
      border-radius: var(--dropimage-radius);
      width: auto;
      min-height: 20vh;
      padding: 1rem;
      padding-bottom: 4vh !important;
      height: fit-content;
      display: flex;
      justify-content: flex-start;
      align-items: flex-start;
      text-align: center;
      transition: all 0.3s;
      position: relative;
      overflow: hidden;
      color: white;
      font-size: 1.5rem;
      gap: 0.5rem;
      cursor: pointer !important;
      z-index: 1;
    }
    
    .dropimage::before {
      content: "";
      position: absolute;
      background: linear-gradient(198deg, rgba(60, 72, 137, 0.35) 0%, rgba(99, 106, 145, 0.25) 100%);
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
    }
    
    .dropimage::after {
      content: "";
      position: absolute;
      background: linear-gradient(58deg, rgba(83, 83, 105, 0.85) 0%, rgba(96, 96, 105, 0.65) 100%);
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
      opacity: 0;
      transition: all 0.3s;
      mix-blend-mode: multiply;
    }
    
    .dropimage:hover::after,
    .dropimage.dragover::after {
      opacity: 1;
    }
    
    .dropimage-title {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      z-index: 2;
      color: #fff;
      font-size: 1.1em;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0;
      width: 92%;
      pointer-events: none;
    }
    
    .dropimage-title svg {
      opacity: 0.8;
      max-width: 60px;
      margin-bottom: 5px;
    }
    
    .dropimage-title svg path {
      stroke: #fff;
    }
    
    /* =============================================================
       PREVIEWS
       ============================================================= */
    #previews {
      position: relative;
      z-index: 1;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: flex-start;
      align-items: flex-start;
      padding: 10px;
      width: fit-content;
      height: 100%;
      flex-direction: row;
      align-content: flex-start;
      margin: 0 !important;
      cursor: pointer !important;
    }
    
    .preview-item {
      width: 70px;
      height: 90px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      font-size: 12px;
      color: var(--text-dark);
      position: relative;
    }
    
    .preview-item img {
      max-width: 70px;
      max-height: 70px;
      border-radius: 8px;
      overflow: hidden;
    }
    
    .preview-item .label {
      position: absolute;
      bottom: 2px;
      left: 0;
      right: 0;
      color: white;
      font-size: 12px;
      padding: 2px 4px;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-weight: 400;
      font-family: 'Open Sans';
    }
    
    .preview-item .delete-btn {
      display: none;
      cursor: pointer !important;
      transition: display 0.3s ease !important;
    }
    
    .preview-item:hover .delete-btn {
      display: block;
    }
    
    svg#Layer_1 {
      width: 78px;
      height: 100px;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      z-index: 2;
    }
    
    .dropimage.has-content svg#Layer_1{
      opacity: 1;
      margin: 10px 0;
      visibility: visible;
      background: #ffffff30;
      border-radius: 10px;
      max-width: 70px;
      max-height: 70px;
      padding: 10px 0 0 0;
      cursor: pointer !important;
    }
    
    /* =============================================================
       PROGRESS & DOWNLOAD BUTTON
       ============================================================= */
    #downloadBtn {
		color: #fff;
		padding: 12px 24px;
		border: none;
		border-radius: 1.5vh;
		font-size: 1em;
		cursor: pointer !important;
		height: 62px;
		text-transform: uppercase;
		width: 100%;
		background: linear-gradient(90deg, #b2ff22, #fffb39, #fe8e48, #ff3c3c);
		background-size: 275% 100%;
		background-position: 100% 0;
		transition: all .3s ease-in-out;
		box-shadow: -1px -1px 52px -7px rgba(6, 7, 28, 0.02);
		-webkit-box-shadow: 0px 0px 22px 0px rgb(6 7 117 / 4%);
		-moz-box-shadow: -1px -1px 52px -7px rgba(6,7,28,0.02);
    }
    
    #downloadBtn:hover {
      background-position: 0 0;
		color: #484848;
		box-shadow: -1px -1px 52px -7px rgba(6, 7, 28, 0.06);
		-webkit-box-shadow: 0px 0px 22px 0px rgb(6 7 117 / 12%);
		-moz-box-shadow: -1px -1px 52px -7px rgba(6,7,28,0.06);
		font-size: 1.02em;
		line-height:1em;
    }
    
    #progressContainer {
      width: 100%;
      background: #eee;
      border-radius: 5px;
      overflow: hidden;
      height: 20px;
      margin-top: 20px;
      display: none;
    }
    
    #progressBar {
      width: 0%;
      height: 100%;
      background: var(--primary);
      text-align: center;
      color: #fff;
      font-size: 12px;
      transition: width 0.3s;
    }
    
    #resultCounts {
      position: absolute;
      bottom: 10px;
      width: 100%;
      text-align: center;
      font-weight: normal;
      font-size: 13px;
      color: #fff;
      display: flex;
      gap: 20px;
      justify-content: center;
      font-family: "Open Sans", sans-serif;
      z-index: 2;
    }
    
    canvas#canvas {
      position: absolute;
      width: 100%;
      left: 0px;
      top: 0px;
    }
    
    .buttonfinal {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      justify-content: space-between;
      align-items: center;
      height: 65px !important;
      flex-grow: 1;
    }
    
    .svg-options {
      display: flex;
      gap: 10px;
      justify-content: space-between;
    }
    
    .svg-option {
      padding: 6px 15px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-grow: 1;
      border-radius: 50px;
      justify-content: center;
      letter-spacing: 0.03em;
      font-weight: normal !important;
      overflow: hidden;
      position: relative;
      color: #b7b9c7;
      transition: all 0.3s;
    }
    
    .flexv .svg-option::before {
      content: "";
      position: absolute;
      background: linear-gradient(198deg, rgba(60, 72, 137, 0.35) 0%, rgba(99, 106, 145, 0.25) 100%);
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
      opacity: 0;
      transition: all 0.3s;
      z-index: 0;
    }
    
    .flexv:hover .svg-option::before {
      opacity: 0.2;
    }
    
    .flexv:hover .svg-option {
      color: #8c8e9d;
    }
    
    .svg-option span {
      position: relative;
      z-index: 2;
    }
    
    .flexv:hover .svg-option:hover{
      background: linear-gradient(58deg, rgba(83, 83, 105, 0.55) 0%, rgba(96, 96, 105, 0.45) 100%);
      color: white;
    }
    
    .svg-option.selected {
      background: #fff !important;
      color: #484848;
      text-shadow: none !important;
      box-shadow: -1px -1px 52px -7px rgba(6, 7, 28, 0.02);
      -webkit-box-shadow: 0px 0px 22px 0px rgb(6 7 117 / 4%);
      -moz-box-shadow: -1px -1px 52px -7px rgba(6,7,28,0.02);
      z-index: 2;
      transition: all 0.3s;
    }
    
    .flexv:hover .svg-option.selected {
      background: #fff !important;
      color: #484848;
      text-shadow: none !important;
      box-shadow: -1px -1px 52px -7px rgba(6, 7, 28, 0.02);
      -webkit-box-shadow: 0px 0px 22px 0px rgb(6 7 117 / 4%);
      -moz-box-shadow: -1px -1px 52px -7px rgba(6,7,28,0.02);
    }
    
    .flexv:hover .svg-option.selected::before{
      display: none;
    }
    
    .svg-option, .svg-option *{
      cursor: pointer !important;
      stroke: #b7b9c7;
    }
    
    .svg-option.selected, .svg-option.selected *{
      cursor: pointer !important;
      stroke: #484848;
    }
    
    .svg-option svg {
      max-height: 19px;
      max-width: 19px;
    }
    
    /* =============================================
       RANGE SLIDER: Custom style for qualityInput
       ============================================= */
    #qualityInput {
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 50px;
      background: #78b3e2;
      border-radius: 15px;
      outline: none;
      cursor: pointer !important;
    }
    
    #qualityInput::-webkit-slider-thumb,
    #qualityInput::-moz-range-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: white;
      border: 2px solid #78b3e2;
      box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
      transition: transform 0.3s ease;
      opacity: 0;
    }
    
    #qualityInput::-webkit-slider-thumb:hover,
    #qualityInput::-moz-range-thumb:hover {
      transform: scale(1.2);
    }
    
    .carpetas {
      display: flex;
      justify-content: space-between;
      flex-direction: row-reverse;
      align-items: center;
      gap: 13px;
      color: #484848;
      font-family: "Open Sans", sans-serif;
    }
    
    label{
      font-weight: 400;
    }
    
    .title {
      font-family: "Open Sans", sans-serif;
      font-weight: 400;
      margin-left: 4px;
      color: #484848;
      min-width: 137px;
    }
    
    .first{
      display: flex;
      justify-content: space-between;
      width: 100%;
      align-items: center;
    }
    
    #backgroundContainer {
      position: fixed;
      top: 0;
      left: 0;
      height: 100vh;  
      width: 100vw;
      overflow: hidden;
      z-index: -1;
      opacity: 0.5;
    }
    #background {
      position: absolute;
      top: 50%;
      left: 50%;
      filter: blur(min(12vw, 12vh));
      transform: scale(1.1) translate(-50%, -50%);
      transform-origin: top left;
    }
    
    input[type="checkbox"].switch_1{
      font-size: 20px;
      -webkit-appearance: none;
         -moz-appearance: none;
              appearance: none;
      width: 3em;
      height: 1.5em;
      background: #fff !important;
      border-radius: 3em;
      position: relative;
      cursor: pointer !important;
      outline: none;
      -webkit-transition: all .3s ease-in-out;
      transition: all .3s ease-in-out;
      margin: 0px;
      color: #484848;
      text-shadow: none !important;
      box-shadow: -1px -1px 52px -7px rgba(6, 7, 28, 0.02);
      -webkit-box-shadow: 0px 0px 22px 0px rgb(6 7 117 / 4%);
      -moz-box-shadow: -1px -1px 52px -7px rgba(6,7,28,0.02);
      z-index: 2;
    }
    
    input[type="checkbox"].switch_1:checked{
      background: #b7b9c7;
    }
    
    input[type="checkbox"].switch_1:checked:hover{
      background: #484848;
    }
    
    input[type="checkbox"].switch_1:after{
      position: absolute;
      content: "";
      width: 1.5em;
      height: 1.5em;
      border-radius: 50%;
      background: #e9e9e9;
      -webkit-box-shadow: 0 0 .25em rgba(0,0,0,.3);
              box-shadow: 0 0 .25em rgba(0,0,0,.3);
      -webkit-transform: scale(.7);
              transform: scale(.7);
      left: 0;
      -webkit-transition: all .3s ease-in-out;
      transition: all .3s ease-in-out;
    }
    
    input[type="checkbox"].switch_1:checked:after{
      left: calc(100% - 1.5em);
      background: #484848;
    }
    
    input[type="checkbox"].switch_1:hover:after{
      background: #ed5d5d;
    }
    
    input[type="checkbox"].switch_1:hover:checked:after{
      background: #6ac96a;
    }
      

