/* Base body styles: sets font, background, and text color */


/* Base body styles: sets font, background, and text color */

body {
    margin: 0;
    /* Remove default margin */
    padding: 0;
    /* Remove default padding */
    font-family: Arial, sans-serif;
    /* Clean, modern font */
    background-color: #ffffff;
    /* Light background color */
    color: #000;
    /* Default text color */
    /* line-height: 1.6; Improved readability */
    box-sizing: border-box;
    /* Include padding and border in element's total width and height */
}


/* Header styles: background, text color, padding, and layout */

.header {
    background-color: #901f1f;
    /* Dark red background */
    color: #fff;
    /* White text */
    padding: 25px 10px;
    /* Padding around header */
    display: flex;
    justify-content: center;
    /* border: #000000 4px solid; /* Black border around header */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth 
  text-align: center;  */
}


/* Container for header content: aligns logo and text */

.header-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    text-align: center;
}


/* Logo image size */

.header-logo img {
    height: 80px;
    width: auto;
    border-radius: 38px;
    /* Slightly rounded corners */
    box-shadow: 12px 12px 12px rgba(0, 0, 0, 0.2);
    /* Subtle shadow */
    image-resolution: from-image;
    /* Ensure high-res images look sharp */
    transition: transform 0.3s ease;
    /* Smooth hover effect */
    border: #ffffff 2px solid;
    /* Black border around logo */
}


/* Main header text size */

.header-text h1 {
    margin: 0;
    font-size: 2.5em;
}


/* Header tagline style */

.header-text p {
    margin: 5px 0 0;
    font-size: 1.1em;
}


/* Navigation bar styles: background, layout, and shadow */

.navbar {
    background-color: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1000;
}


/* Wrapper for menu and nav links */

.menu-wrapper {
    position: relative;
}


/* Navigation links layout */

.nav-links {
    display: flex;
}


/* Navigation link styles */

.navbar a {
    padding: 14px 15px;
    color: white;
    text-decoration: none;
}


/* Navigation link hover effect */

.navbar a:hover {
    background-color: #1fbdec;
}


/* Hamburger menu button for mobile */

.hamburger {
    display: none;
    background: none;
    border: 0;
    font-size: 26px;
    color: white;
    cursor: pointer;
}


/* Search bar container */

.search-container {
    position: relative;
}


/* Search input styling */

#searchInput {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    outline: none;
}


/* Suggestions dropdown styling */

#suggestions {
    position: absolute;
    top: 35px;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    width: 200px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 10;
}


/* Individual suggestion style */

#suggestions div {
    padding: 8px;
    cursor: pointer;
}


/* Suggestion hover effect */

#suggestions div:hover {
    background: #f1f1f1;
}


/* Responsive navigation for mobile screens */

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #333;
        width: 130px;
        flex-direction: column;
        padding: 8px 0;
        border-radius: 8px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    }
    .nav-links a {
        display: block;
        padding: 10px 14px;
        text-align: left;
    }
    /* Show nav links on hover or focus */
    .menu-wrapper:hover .nav-links,
    .menu-wrapper:focus-within .nav-links {
        display: flex;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    /* margin-bottom: 40px; */
    /* padding: 20px; */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

h1 {
    /* color: #2c3e50; */
    /* margin-bottom: 10px; */
}

.description {
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.upload-section {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.preview-section {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.upload-area {
    border: 2px dashed #3498db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.upload-area:hover {
    background-color: #f0f8ff;
}

.upload-area i {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 15px;
}

.upload-area p {
    color: #7f8c8d;
}

#file-input {
    display: none;
}

.resize-options {
    margin-top: 20px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

input[type="range"] {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
}

input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.divider {
    text-align: center;
    margin: 15px 0;
    color: #7f8c8d;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #eee;
    z-index: 1;
}

.divider span {
    background-color: #fff;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.custom-size {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.custom-size input {
    flex: 1;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.resize-btn {
    background-color: #3498db;
    color: white;
}

.resize-btn:hover {
    background-color: #2980b9;
}

.download-btn {
    background-color: #2ecc71;
    color: white;
}

.download-btn:hover {
    background-color: #27ae60;
}

.preview-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    min-height: 300px;
    background-color: #f9f9f9;
}

#image-preview {
    max-width: 100%;
    max-height: 100%;
    display: none;
}

.image-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.image-info p {
    margin-bottom: 5px;
}

footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
}