* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background-color: #1a73e8;
    color: white;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header h1 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.main-content {
    display: flex;
    flex: 1;
    padding: 1rem;
    gap: 1rem;
}

.ad-section {
    width: 200px;
    background-color: #f0f0f0;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ad-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    border: 1px dashed #999;
    border-radius: 5px;
    color: #666;
}

.tool-section {
    flex: 1;
    background-color: white;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.upload-section {
    margin-bottom: 2rem;
    text-align: center;
}

.upload-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-btn:hover {
    background-color: #0d5bba;
}

.image-preview {
    margin-top: 1rem;
    border: 2px dashed #ccc;
    border-radius: 5px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 1rem;
}

#previewImage {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    display: none;
}

#previewText {
    color: #666;
    text-align: center;
}

#originalInfo {
    margin-top: 10px;
    font-weight: 500;
    text-align: center;
}

.requirements-section {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    border-left: 4px solid #1a73e8;
}

.requirements-section h3 {
    margin-bottom: 0.5rem;
    color: #1a73e8;
}

.requirements-section ul {
    list-style-type: none;
}

.requirements-section li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.requirements-section li:before {
    content: "•";
    color: #1a73e8;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.resize-controls {
    margin-bottom: 2rem;
}

.resize-controls h3 {
    margin-bottom: 1rem;
    color: #1a73e8;
}

.control-group {
    margin-bottom: 1rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.control-group input,
.control-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.resize-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 1rem;
}

.resize-btn:hover {
    background-color: #0d5bba;
}

.compression-info {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #666;
}

.download-section {
    margin-bottom: 2rem;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 0.8rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.download-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.comparison-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.comparison-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1a73e8;
}

.image-comparison {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.image-box {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.image-box img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.image-box p {
    margin-top: 0.5rem;
    font-weight: 500;
}

.footer {
    background-color: #333;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.developer-info {
    font-weight: bold;
    margin-bottom: 1rem;
}

.about-tool p {
    margin-bottom: 1rem;
    text-align: justify;
	 font-size: 19px;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .ad-section {
        width: 100%;
        min-height: 100px;
    }
    
    .image-comparison {
        flex-direction: column;
    }
}