/* From Uiverse.io by 0xnihilism */
.button-container {
    display: flex;
    justify-content: center;
    gap: 2px; /* Adjust this value to increase or decrease space between buttons */
    padding: 2px;
}

.brutalist-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff;
    border-radius: 12px;
    padding: 0;
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    position: relative;
    box-shadow: 1px 1px 0 #ffffff;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 40px;
    width: 40px;
    cursor: pointer;
}

.brutalist-button.openai {
    background-color: #356854;
}

.brutalist-button::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -150%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.brutalist-button.openai::before {
    background-color: #316b58;
}

.brutalist-button.claude::before {
    background-color: #e3d19c;
}

.brutalist-button:hover::before {
    transform: translateX(-50%) scale(1);
}

.brutalist-button:hover {
    transform: translate(-4px, -4px);
    box-shadow: 2px 2px 0 #000000;
    height: 120px;
    width: 120px;
}

.brutalist-button:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #000000;
}

.openai-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.openai-logo {
    align-items: center;
    justify-content: center;
    background-color: #0f1715; /* OpenAI's green color */
    border-radius: 50%; /* This creates the circular background */
}

.openai-icon {
    width: 54px;
    height: 54px;
    fill: #ffffff; /* White color for the SVG */
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.brutalist-button:hover .openai-logo {
    animation: spin 5s linear infinite;
    width: 50px;
    height: 50px;
    top: 28%;
}

.brutalist-button:hover .openai-icon {
    transform: scale(0.6);
}

.button-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    z-index: 2;
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
}

.button-text span:first-child {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.button-text span:last-child {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff;
}

.brutalist-button:hover .button-text {
    opacity: 1;
    transform: translateY(0);
}

.brutalist-button.openai:hover .button-text {
    color: #d3d3d3;
}

.brutalist-button.openai:hover .button-text span:last-child {
    color: #d6cbbf;
}

@media (hover: hover) and (pointer: fine) {
    .brutalist-button:hover {
        transform: translate(-4px, -4px);
        box-shadow: 8px 8px 0 #000000;
    }
}
