/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #05050a;
    background: #141422;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(26, 26, 31, 1); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

header .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3498db;
    cursor: pointer;
}

header nav a {
    margin: 0 1rem;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

header nav a:hover {
    color: #3498db;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    color: #e0e0e0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
}

.tools {
    padding: 3rem 2rem;
    background: #1a1a1f;
    border-top: 2px solid #3498db;
    flex-grow: 1;
}

.image-converter-tool {
    text-align: center;
    color: #e0e0e0;
}

.menu {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.menu input[type="file"],
.menu button,
.menu select {
    padding: 0.8rem 1rem;
    background: #3498db;
    border: 2px solid #3498db;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.menu input[type="file"] {
    display: none; /* Hide default file input */
}

.menu button,
.menu select {
    font-size: 1.1rem;
}

.menu button:disabled,
.menu select:disabled {
    background: #a0a0a0;
}

.menu button:hover:not(:disabled),
.menu select:hover:not(:disabled) {
    background: #2980b9;
}

/* Custom file upload button */
.menu .custom-upload-btn {
    display: inline-block;
    padding: 1rem 1.5rem;
    background: #3498db;
    color: #fff;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.menu .custom-upload-btn:hover {
    background: #2980b9;
}

/* Editor container */
.editor {
    background: #141422;
    border: 2px solid #3498db;
    padding: 2rem;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;  /* Increased height */
    position: relative;
    overflow: hidden;  /* Hide image overflow */
}

#editorContainer {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#uploadedImage {
    max-width: 90%;  /* Scale image width to 90% of container */
    max-height: 90%; /* Scale image height to 90% of container */
    object-fit: contain; /* Ensure image scales within the editor */
}

footer {
    background: #141422;
    padding: 1.5rem;
    text-align: center;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.footer-content .social-links a {
    color: #3498db;
    margin: 0 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-content .social-links a:hover {
    text-decoration: underline;
}