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

body {
    font-family: 'Roboto', sans-serif;
    background-image: url('https://i.imgur.com/GHb2Tcj.jpg'); /* Your background image */
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for contrast */
    border-radius: 20px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.7);
    animation: fadeIn 1s ease-in-out;
    position: relative; /* Add this for positioning the color picker */
}

.color-picker-wrapper {
    text-align: center;
    max-width: 400px;
    width: 100%;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
}

.color-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.color-display {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    margin-bottom: 20px;
    background-color: #FFFFFF; /* Default white */
    transition: background-color 0.3s ease;
}

.select-color-btn {
    background-color: #00bcd4;
    border: none;
    padding: 10px 20px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.select-color-btn:hover {
    background-color: #009bb5;
}

.select-color-btn:active {
    background-color: #008c94;
}

.color-info {
    font-size: 1.4rem;
    margin: 20px 0;
    color: #fff;
}

.color-info p {
    margin: 5px 0;
}

.color-info strong {
    font-size: 2rem; /* Same size as the values */
    font-weight: bold;
}

.color-value {
    font-size: 2rem; /* Same size as strong */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-value:hover {
    color: #00bcd4;
    transform: scale(1.1);
}

/* Hide the color input initially */
.color-input {
    position: absolute;
    visibility: hidden; /* Hidden from view initially */
    z-index: 999; /* Ensure it's on top */
}

/* This is to prevent any issues with the color picker appearing in unexpected places */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
