* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background-color: #2b1f3d;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
}

.logo {
    position: absolute;
    top: 15px; 
    left: 35px; 
    width: 300px; 
    height: auto;
    z-index: 1000; 
}

@media (max-width: 767px) {
    .logo {
        position: fixed; 
        top: 15%; 
        left: 50%; 
        transform: translate(-50%, -50%); 
        width: 250px; 
    }
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.hidden {
    display: none;
}

.three-body {
    --uib-size: 35px;
    --uib-speed: 0.8s;
    --uib-color: #5D3FD3;
    position: relative;
    display: inline-block;
    height: var(--uib-size);
    width: var(--uib-size);
    animation: spin78236 calc(var(--uib-speed) * 2.5) infinite linear;
}

.three-body__dot {
    position: absolute;
    height: 100%;
    width: 30%;
}

.three-body__dot:after {
    content: '';
    position: absolute;
    height: 0%;
    width: 100%;
    padding-bottom: 100%;
    background-color: var(--uib-color);
    border-radius: 50%;
}

.three-body__dot:nth-child(1) {
    bottom: 5%;
    left: 0;
    transform: rotate(60deg);
    transform-origin: 50% 85%;
}

.three-body__dot:nth-child(1)::after {
    bottom: 0;
    left: 0;
    animation: wobble1 var(--uib-speed) infinite ease-in-out;
    animation-delay: calc(var(--uib-speed) * -0.3);
}

.three-body__dot:nth-child(2) {
    bottom: 5%;
    right: 0;
    transform: rotate(-60deg);
    transform-origin: 50% 85%;
}

.three-body__dot:nth-child(2)::after {
    bottom: 0;
    left: 0;
    animation: wobble1 var(--uib-speed) infinite
        calc(var(--uib-speed) * -0.15) ease-in-out;
}

.three-body__dot:nth-child(3) {
    bottom: -5%;
    left: 0;
    transform: translateX(116.666%);
}

.three-body__dot:nth-child(3)::after {
    top: 0;
    left: 0;
    animation: wobble2 var(--uib-speed) infinite ease-in-out;
}

@keyframes spin78236 {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes wobble1 {
    0%, 100% {
        transform: translateY(0%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-66%) scale(0.65);
        opacity: 0.8;
    }
}

@keyframes wobble2 {
    0%, 100% {
        transform: translateY(0%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(66%) scale(0.65);
        opacity: 0.8;
    }
}

@media (max-width: 48rem) {
    .loader {
        padding: 10px; 
    }

    .three-body {
        --uib-size: 25px; 
    }
}

.card-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px; 
}

.card {
    background-color: #2d253d;
    width: 280px; 
    padding: 24px; 
    text-align: center;
    border-radius: 12px;
    animation: levitar 3s ease-in-out infinite;
}

@keyframes levitar {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px); 
    }
    100% {
        transform: translateY(0); 
    }
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
    border-radius: 50%;
    width: 90px; 
    height: 90px;
    margin-bottom: 16px;
    object-fit: cover;
    cursor: pointer;
}

.card h1, .card p, .card a {
    color: #fff;
}

.card h1 {
    font-size: 18px; 
    line-height: 28px; 
    font-weight: 600;
    margin-bottom: 4px; 
}

.card strong {
    color: #a65bd8;
    font-size: 12px; 
    line-height: 18px; 
}

.card p {
    margin-block: 16px; 
    font-size: 12px; 
    line-height: 18px; 
}

.card a {
    display: block;
    text-decoration: none;
    background-color: #593785;
    padding: 10px; 
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px; 
    line-height: 18px; 
    margin-top: 8px; 
}

.card a:hover {
    background-color: #8378b4;
    color: #141414;
    transition: 0.8s;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.modal-content {
    max-width: 90%; 
    max-height: 80%; 
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 1700px) {
    .card-container {
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 120px; /* Espaço para o logo */
    }
    
    .card {
        width: calc(25% - 16px);
        margin-bottom: 16px;
    }

    .logo {
        position: fixed;
        width: 250px;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
    }

    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        padding: 20px;
    }
}

@media (max-width: 1300px) {
    .card {
        width: calc(33.33% - 16px);
    }

    .logo {
        width: 200px;
    }
}

@media (max-width: 1024px) {
    .card {
        width: calc(50% - 16px);
    }
}

@media (max-width: 844px) {
    .card-container {
        padding-top: 80px;
    }

    .card {
        width: 100%;
        max-width: 280px;
        margin-bottom: 20px;
    }

    .logo {
        width: 150px;
        top: 10px;
    }
}

@media (max-width: 600px) {
    .logo {
        width: 120px;
    }

    .card h1 {
        font-size: 16px;
    }

    .card p, .card a {
        font-size: 11px;
    }
}

/* Ajuste para o modal em telas menores */
@media (max-width: 600px) {
    .modal-content {
        max-width: 95%;
        max-height: 90%;
    }

    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* Ajuste adicional para telas muito pequenas */
@media (max-height: 600px) {
    .card-container {
        padding-top: 60px;
    }

    .logo {
        width: 100px;
        top: 5px;
    }
}



