@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: 40px;
    border-radius: 20px;
    box-shadow: 8px 8px 16px #b8babe, -8px -8px 16px #ffffff;
    text-align: center;
    width: 90%;
    max-width: 800px;
    margin-top: 20px;
}

h1 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
}

.tagline {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

input {
    width: 100%;
    padding: 10px 1px;
    font-size: 24px;
    text-align: center;
    border-radius: 10px;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 8px #b8babe, inset -4px -4px 8px #ffffff;
    color: #2c3e50;
    border: none;
    outline: none;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease-in-out;
}

input:focus {
    box-shadow: 6px 6px 12px #b8babe, -6px -6px 12px #ffffff;
}

.options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.options label {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

select {
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 8px #b8babe, inset -4px -4px 8px #ffffff;
    color: #2c3e50;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

select:hover, select:focus {
    background: #d6d9de;
}

canvas {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 10px;
    box-shadow: inset 4px 4px 8px #b8babe, inset -4px -4px 8px #ffffff;
    margin-bottom: 15px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

button {
    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;
}

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;
    background: #d1d9e6;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#clearBtn {
    background: #e0e5ec; /* Same background color as the other buttons */
    color: #2c3e50;      /* Same text color as the other buttons */
}

#clearBtn:hover {
    background: #d6d9de; /* Same hover background as the other buttons */
}

.preview-box {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

canvas {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 10px;
    box-shadow: inset 4px 4px 8px #b8babe, inset -4px -4px 8px #ffffff;
}

@media (max-width: 480px) { 
    h1 { font-size: 18px; }
    .container { margin-top: 20px; padding: 20px; width: 95%; }
    input { font-size: 20px; }
    button { padding: 10px 15px; font-size: 12px; }
    canvas { width: 120px; height: 120px; }
}

@media (min-width: 481px) and (max-width: 1024px) { 
    .container { margin-top: 40px; }
}

@media (min-width: 1025px) { 
    .container { margin-top: 60px; }
}

::-webkit-scrollbar {
    width: 6px;  
    height: 6px; 
}

::-webkit-scrollbar-track {
    background: #e0e5ec; 
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #b8babe;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a5ac;
}

a {
    text-decoration: none;
    color: #1a73e8;
}