*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container{
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main{
    max-width: 300px;
    position: relative;
    padding: 10px 10px;
    text-align: center;
    background-color: #fff;
}

#color{
    font-size: 2rem;
    padding: 10px 20px;
}

span{
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1.5rem;
    color: #00f;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

span:hover{
    transform: scale(1.1);
}

.copied-message {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: fadeInOut 1s ease forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

button{
    margin-top: 10px;
    border: none;
    outline: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: rgb(0, 255, 0);
    cursor: pointer;
}