@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: "Open Sans", sans-serif;
}

body {
    background-color: #e3f2fd;
}

.container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    justify-content: center;
}

.container .color {
    list-style: none;
    background-color: #fff;
    padding: 8px;
    margin: 14px;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(52, 87, 220, 0.08);
    transition: transform 0.3s ease;
}

.container .color:active {
    transform: scale(0.95);
}

.color:hover .rect-box {
    filter: brightness(107%);
}
.color .rect-box {
    width: 185px;
    height: 185px;
    background-color: #8a6cff;
    border-radius: 6px;
}

.color .hex-value {
    font-weight: 500;
    font-size: 1.1rem;
    color: #444;
    margin: 12px 0 8px;
}

.refresh-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2%;
}

.btn {
    position: fixed;
    bottom: 40px;
    outline: 0;
    cursor: pointer;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 12px 20px;
    color: #fff;
    background-color: #8a6cff;
    border: 2px solid #fff;
    box-shadow: 0 10px 20px rgba(52, 87, 220, 0.02);
}
