/* ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.5s ease;
}

/* コンテナのスタイル */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

/* 色ボックスのスタイル */
.color-box {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    border: 2px solid #ddd;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

#colorCode {
    font-size: 3em;
    font-weight: bold;
}

/* ボタンのスタイル */
.controls {
    display: flex;
    gap: 1em;
}

button {
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #4caf50;
    color: white;
    transition: background-color 0.3s, transform 0.1s;
}

button:hover {
    background-color: #45a049;
}

button:active {
    transform: scale(0.95);
}

/* コピー完了メッセージのスタイル */
#copyMessage {
    position: absolute;
    bottom: 2em;
    font-size: 14px;
    color: #4caf50;
    opacity: 0;
    transition: all 0.5s;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background-color: #fff;
}

.hidden {
    opacity: 0;
    bottom: 0;
    user-select: none;
}