@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;600;700&display=swap');

:root {
    --bg: #f3fbff;
    --blue: #1A374D;
    --ff: 'Assistant', sans-serif;
}

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

body {
    min-height: 100vh;
    font-family: var(--ff);
    background-color: var(--bg);
    font-size: 1.2rem;
}

.container {
    width: 90%;
    margin-inline: auto;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.head-txt {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0C356A;
}

.generate-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.color-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.color-box {
    width: 300px;
    background-color: var(--blue);
    display: grid;
    grid-template-columns: 1fr 1fr 3fr;
    border-radius: 10px;
    box-shadow: 0 0 10px #0c356a71;
    flex-grow: 1;
}

.color {
    height: 150px;
    grid-column: 1/4;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
}

.color-round {
    height: 18px;
    width: 40px;
    border-radius: 20px;
    grid-column: 1/2;
    justify-self: center;
    align-self: center;
    cursor: pointer;
}

.color-code {
    padding: 10px;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 800;
    letter-spacing: 1.6px;
    cursor: pointer;
}

.copy {
    padding: 5px;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 800;
    letter-spacing: 1.6px;
    background-color: #80D96D;
    border-radius: 5px;
    padding: 5px 15px;
    width: max-content;
    height: min-content;
    align-self: center;
    justify-self: end;
    margin-right: 10px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.copy.active {
    opacity: 1;
    visibility: visible;
}

.btn {
    font-family: var(--ff);
    background-color: #0C356A;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 30px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.92;
}