@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;
}

/* Title */
h1 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.tagline {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

/* Controls */
.controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
}

/* Inputs */
.control-group label {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.control-group input, .control-group select {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: none;
    background: #ffffff;
    box-shadow: inset 4px 4px 8px #b8babe, inset -4px -4px 8px #ffffff;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

/* Preview Box */
.preview {
    margin: 20px 0;
}

.box {
    width: 150px;
    height: 150px;
    background: linear-gradient(90deg, #ff5733, #33c3ff);
    margin: auto;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ffffff;
    transition: background 0.3s ease-in-out;
}

/* Button Group - FIXED */
.button-group {
    display: flex;
    justify-content: center; /* Center the buttons */
    gap: 12px; /* Add spacing between buttons */
    margin-top: 20px;
    flex-wrap: wrap; /* Make buttons responsive */
}

/* Buttons */
button {
    padding: 10px 15px;
    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;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 12px #b8babe, -6px -6px 12px #ffffff;
}

button:active {
    transform: translateY(1px);
    box-shadow: inset 4px 4px 8px #b8babe, inset -4px -4px 8px #ffffff;
}

/* Responsive Design */
@media (max-width: 600px) {
    .controls {
        grid-template-columns: 1fr;
    }

    .control-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .box {
        width: 120px;
        height: 120px;
    }
}
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 20px;
        margin-top: 50px; /* Top margin increased for better spacing */
    }
}
/* Button Group */
.button-group {
    display: grid;
    gap: 12px;
}

/* Default: 3 buttons in one row (for laptop/desktops) */
@media (min-width: 769px) {
    .button-group {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet & Mobile: 2 buttons in one row + 1 below */
@media (max-width: 768px) {
    .button-group {
        grid-template-columns: repeat(2, 1fr);
    }
    .button-group button:last-child {
        grid-column: span 2; /* Teesra button pura full width hoga */
    }
}

/* Mobile (Extra Small Screens) */
@media (max-width: 480px) {
    .button-group {
        grid-template-columns: 1fr; /* Sare button ek-ek line me */
    }
}
