html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
}

#menu {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

#menu .dropdown-toggle {
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(20px);
    border: none;
    padding: 12px 32px;
}

#menu .dropdown-toggle::after {
    margin-left: .7em;
    vertical-align: middle;
}

#menu .dropdown-menu {
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    border: 0;
}

#menu .dropdown-menu .dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
}

#menu .dropdown-menu .dropdown-item:hover {
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0));
    transition: all 0.3s ease;
}

#brandColors {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.box-color {
    color: white;
    /* Padrão: 2 colunas (50%) */
    flex: 1 0 50%; 
    display: flex;
    flex-direction: column; /* Organiza melhor o conteúdo interno */
    justify-content: flex-end; /* Alinha o texto na base */
    padding: 20px;
    font-size: 18px;
    box-sizing: border-box; /* Garante que o padding não quebre a largura */
    transition: all 0.3s ease;
}

/* Mágica da Quantidade: Se houver 7 ou mais itens */
/* Seleciona o primeiro item e todos os seus irmãos quando o total >= 7 */
.box-color:first-child:nth-last-child(n+7),
.box-color:first-child:nth-last-child(n+7) ~ .box-color {
    /* Muda para 3 colunas (aprox. 33.33%) */
    flex: 1 0 33.33%;
}

.box-color .color-list {
    display: flex;
    flex-direction: column;
    width: max-content;
}

.box-color:hover {
    box-shadow: 0 0 200px rgba(0,0,0,.75) inset;
}

.box-color-light {
    color: black;
}

.box-color .color-info.copy-color {
    transition: all 0.3s ease;
}

.box-color .color-info.copy-color:hover {
    cursor: pointer;
}

.box-color .color-info.copy-color span::after {
    content: '\f0c5';
    font-family: "Font Awesome 6 Free", sans-serif;
    margin-left: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.box-color .color-info.copy-color:hover span::after {
    opacity: 1;
}

.color-info.color-desc {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1em;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
}

.color-info.color-nome {
    font-size: 1.5em;
    font-weight: 500;
    line-height: 1em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, .35);
}

[v-cloak] {
    display: none;
}

.copy-color {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.copy-color:hover {
    opacity: 1;
    transform: scale(1.05);
}

.copy-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    white-space: nowrap;
    pointer-events: none;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    animation: tooltipFadeIn 0.3s ease;
    z-index: 1000;
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.swal2-popup.swal2-toast {
    padding: 12px;
}

.swal2-popup.swal2-toast .swal2-icon {
    margin: 0;
}

.swal2-popup.swal2-toast .swal2-title {
    margin-top: 0;
    margin-bottom: 0;
}

.swal2-popup.swal2-toast .swal2-html-container {
    margin-top: 0;
    margin-bottom: 0;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}