* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4e73df, #1cc88a);
    transition: background 0.4s ease;
}

.container {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.color-display {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.color-values p {
    font-size: 14px;
    margin: 5px 0;
    font-weight: 600;
}

.controls {
    margin-top: 10px;
}

.control {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.control label {
    font-weight: 600;
}

.control input {
    width: 100%;
}

.control span {
    align-self: flex-end;
    font-size: 14px;
    margin-top: 5px;
}

.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 20px;
}

button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

#randomBtn {
    background: #4e73df;
    color: white;
}

#copyBtn {
    background: #1cc88a;
    color: white;
}

button:hover {
    opacity: 0.9;
}

@media (max-width:480px) {
    h1 {
        font-size: 20px;
    }

    .buttons {
        flex-direction: column;
    }
}