body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    line-height: 1.6;
}

.main-nav {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    padding: 20px;
}

.container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.upload-section {
    margin-bottom: 20px;
}

#imageInput {
    display: none;
}

.upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #007bff;
    padding: 20px;
    cursor: pointer;
    color: #007bff;
    transition: all 0.3s ease;
}

.upload-label:hover {
    background-color: #f0f8ff;
}

.compress-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.max-size-control {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.max-size-control input, 
.max-size-control select {
    flex-grow: 1;
    max-width: 100px;
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.preview-item {
    position: relative;
    max-width: 150px;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 5px;
}

.preview-item img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.preview-info {
    font-size: 12px;
    margin-top: 5px;
    word-break: break-all;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.compress-btn, .clear-btn {
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-grow: 1;
    max-width: 200px;
}

.compress-btn {
    background-color: #28a745;
}

.compress-btn:hover {
    background-color: #218838;
}

.clear-btn {
    background-color: #dc3545;
}

.clear-btn:hover {
    background-color: #c82333;
}

.main-footer {
    background-color: #f8f9fa;
    color: #333;
    padding: 40px 0 20px;
    border-top: 1px solid #e7e7e7;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column {
    flex: 1;
    margin: 15px;
    min-width: 200px;
}

.nav-links, 
.footer-container, 
.max-size-control, 
.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e7e7e7;
    font-size: 0.9em;
    color: #666;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        margin-top: 10px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        margin: 10px 0;
    }

    .container {
        margin: 20px;
        padding: 20px;
    }

    .max-size-control {
        flex-direction: column;
        align-items: stretch;
    }

    .max-size-control input, 
    .max-size-control select {
        max-width: none;
    }
}