* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Menu Bar Styles */
.menu-bar {
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
}

.menu-bar .nav-menu {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.menu-bar .nav-menu li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.menu-bar .nav-menu li a:hover {
    color: #e74c3c;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #2c3e50;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

header {
    text-align: center;
    padding: 50px 0;
}

header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
    font-size: 1.2rem;
}

.main-section {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

input[type="text"] {
    width: 80%;
    max-width: 500px;
    padding: 12px;
    border: 4px solid #e74c3c;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    background: #fff;
    box-shadow: 4px 4px 8px rgba(231, 76, 60, 0.5),
        -2px -2px 6px rgba(255, 255, 255, 0.8);
    transition: box-shadow 0.3s, border-color 0.3s;
}

input[type="text"]:focus {
    border-color: #c0392b;
    box-shadow: 6px 6px 12px rgba(231, 76, 60, 0.6),
        -3px -3px 8px rgba(255, 255, 255, 0.9);
}

button {
    padding: 15px 35px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    outline: none;
    transition: background 0.3s;
}

button:hover {
    background: #2980b9;
}

/* Ad Slot Styles */
.ad-slot {
    margin: 20px auto;
    width: 100%;
    max-width: 728px;
    /* Default max-width for leaderboard size */
    text-align: center;
}

.ad-placeholder {
    background: #f0f0f0;
    border: 1px dashed #ccc;
    padding: 10px;
    border-radius: 5px;
    color: #666;
    font-size: 1rem;
}

#thumbnail-result {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.thumbnail-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.thumbnail-item p {
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.thumbnail-item img {
    border-radius: 5px;
    margin-bottom: 15px;
    transition: transform 0.3s;
    max-width: 100%;
    height: auto;
}

.thumbnail-item img:hover {
    transform: scale(1.02);
}

.thumbnail-item a.download-btn {
    display: block;
    padding: 10px 20px;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    margin: 0 auto;
}

.thumbnail-item a.download-btn:hover {
    background: #c0392b;
}

.article-section {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Menu and Ads */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .menu-bar .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-end;
        gap: 20px;
        position: absolute;
        top: 50px;
        right: 20px;
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        width: 200px;
    }

    .menu-bar .nav-menu.active {
        display: flex;
    }

    .main-section {
        padding: 20px;
    }

    .thumbnail-item {
        padding: 15px;
    }

    .thumbnail-item a.download-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    input[type="text"] {
        width: 100%;
    }

    button {
        padding: 12px 30px;
        font-size: 1.1rem;
    }

    .ad-slot {
        max-width: 100%;
        /* Full width on mobile */
    }
}