@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: #e0e5ec;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    padding: 10px;
}

.container {
    background: #e0e5ec;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 8px 8px 16px #b8babe, -8px -8px 16px #ffffff;
    text-align: center;
    width: 90%;
    max-width: 800px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.tagline {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

textarea {
    width: calc(100% - 20px);
    min-height: 120px;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 8px #b8babe, inset -4px -4px 8px #ffffff;
    color: #2c3e50;
    outline: none;
    resize: vertical;
    margin-bottom: 15px;
    font-family: monospace;
}

.result-box {
    width: calc(100% - 20px);
    min-height: 50px;
    padding: 10px;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    display: none;
}

.success {
    background: #d4edda;
    color: #155724;
    box-shadow: inset 4px 4px 8px #b8babe, inset -4px -4px 8px #ffffff;
}

.error {
    background: #f8d7da;
    color: #721c24;
    box-shadow: inset 4px 4px 8px #b8babe, inset -4px -4px 8px #ffffff;
}

/* 📌 BUTTON RESPONSIVE DESIGN */
.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

button {
    flex: 1 1 calc(33.33% - 12px); /* Desktop: 3 buttons ek line me */
    max-width: 200px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    background: #e0e5ec;
    box-shadow: 4px 4px 8px #b8babe, -4px -4px 8px #ffffff;
    cursor: pointer;
    color: #2c3e50;
    transition: all 0.3s ease-in-out;
    text-align: center;
}

/* 📌 MOBILE & TABLET RESPONSIVENESS */
@media (max-width: 768px) {
    .buttons {
        gap: 10px;
    }

    button {
        flex: 1 1 calc(50% - 10px); /* 2 button ek line me */
        max-width: none;
    }

    button:last-child {
        flex: 1 1 100%; /* Last button full width */
    }
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 12px #b8babe, -6px -6px 12px #ffffff;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

a {
    text-decoration: none;
    color: #1a73e8;
}
