* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Helvetica Neue', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
}
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 5px;
}
h1 {
    text-align: center;
    color: #333;
}
header {
  text-align: center;
  margin-bottom: 20px;
}
form {
    margin-top: 20px;
}
.form-group {
    margin-bottom: 15px;
}
.dimensions-group {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.dimensions-input {
    flex: 1;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
input[type="file"],
input[type="number"],
input[type="submit"],
select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}
input[type="checkbox"] {
    margin-right: 5px;
}
input[type="submit"] {
    background-color: #FF9090;
    color: black;
    border: none;
    cursor: pointer;
    padding: 20px;
    margin-top: 10px;
	font-size: 18px;
}
input[type="submit"]:hover {
    background-color: #FFAAAA;
}
.message {
    padding: 10px;
    margin: 20px 0;
    border-radius: 4px;
}
.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}
.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}
.result {
    margin-top: 20px;
    text-align: center;
}
.result img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}
.download-link {
    display: inline-block;
    margin-top: 10px;
    background-color: #91EAF7;
    color: black;
    padding: 20px 25px;
    text-decoration: none;
    border-radius: 4px;
	font-size: 18px;
}
.download-link:hover {
    background-color: #7FDBE9;
}
.slider-container {
    width: 100%;
}
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #fcc;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}
.slider:hover {
    opacity: 1;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #BD4C4C;
    cursor: pointer;
}
.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #BD4C4C;
    cursor: pointer;
}
.slider-value {
    display: inline-block;
    width: 40px;
    text-align: center;
    margin-left: 10px;
}
.preview-container {
    margin-top: 20px;
    text-align: center;
}
.preview-img {
    max-width: 100%;
   /* max-height: 300px; */
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}
.hidden {
    display: none;
}
.dimensions-info {
    margin-top: 10px;
    font-style: italic;
    color: #933030;
}
.drag-area {
    border: 2px dashed #fcc;
	background: #fff6f4;
    height: 150px;
    width: 100%;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 15px;
}
.drag-area.active {
    border-color: #337ab7;
    background-color: rgba(51, 122, 183, 0.1);
}
.drag-area p {
    margin: 0;
    font-size: 16px;
    color: #666;
}
.drag-area .or {
    margin: 10px 0;
    color: #999;
    font-size: 14px;
}
.select-file-btn {
    cursor: pointer;
    color: #337ab7;
    text-decoration: underline;
}
.presets {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.preset-btn {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 5px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}
.preset-btn:hover {
    background-color: #e9ecef;
    border-color: #ccc;
}
.preset-btn.active {
    background-color: #337ab7;
    color: white;
    border-color: #2e6da4;
}
.format-info {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}
.progress-container {
    margin: 20px 0;
    text-align: center;
}
.progress-info {
    margin-bottom: 10px;
    font-weight: bold;
}
.progress-bar-container {
    width: 100%;
    height: 20px;
    background-color: #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background-color: #4CAF50;
    transition: width 0.3s;
}
.progress-percentage {
    margin-top: 5px;
    font-size: 12px;
}
.quality-presets {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.image-stats {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.comparison {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}
.comparison-item {
    flex: 1;
    text-align: center;
    padding: 10px;
}
.comparison-divider {
    width: 1px;
    background-color: #ddd;
    margin: 0 15px;
}
.stat-value {
    font-weight: bold;
    color: #337ab7;
}
.reduction {
    color: #5cb85c;
    font-weight: bold;
}
.x-symbol {
    font-weight: bold;
    margin: 0 5px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
}

.close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

.result {
    position: relative;
    margin-top: 20px;
    text-align: center;
}


.ratio-checkbox {
    display: flex;
    align-items: center;
    margin-left: 15px;
    white-space: nowrap;
}

.ratio-checkbox input[type="checkbox"] {
    margin-right: 5px;
}

.ratio-checkbox label {
    display: inline;
    margin-bottom: 0;
    font-weight: normal;
}



.faq-section {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 15px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f1f1f1;
}

.faq-toggle {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 18px;
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-answer p, .faq-answer ul {
    margin-top: 0;
    margin-bottom: 15px;
}

.faq-answer ul {
    padding-left: 20px;
}

.faq-item.active .faq-answer {
    padding: 15px;
    max-height: 500px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}



/* tabs */
        .page-wrapper {
            max-width: 1000px;
            margin: 0 auto;
        }
        
        .tabs-container {
            display: flex;
            border-radius: 8px 8px 0 0;
            overflow: hidden;
            width: 100%;
        }
        
.tab-link {
  padding: 12px 20px;
  text-decoration: none;
  color: #495057;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  flex: 1;
  background-color: #ffeaea;
  border-right: 1px solid #fcc;
}

.tab-link:last-child {
  border-right: none;
}

.tab-link:hover {
  background-color: #fff6f4;
}

.tab-link.active {
  color: #2c3e50;
  background-color: white;
  font-weight: 600;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}
        
        /* Override container styles to match tabs width */
        .container {
            max-width: 100%;
            border-radius: 0 0 8px 8px;
            margin-top: 0;
            width: 100%;
            box-sizing: border-box;
        }
        
        .about-content {
            padding: 20px 0;
        }
        
        .about-content p {
            margin-bottom: 20px;
            line-height: 1.6;
        }
        
        .about-content a {
            color: #3498db;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .about-content a:hover {
            color: #2980b9;
            text-decoration: underline;
        }
        

        /* Responsive tabs */
        @media (max-width: 576px) {
            .tabs-container {
                flex-direction: column;
            }
            
            .tab-link {
                border-right: none;
                border-bottom: 1px solid #ccc;
            }
        }
