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

body {
    color: #fff;
    background-color: #302C42;
    height: 100vh;
    display: flex;
    font-size: 16px; 
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    animation: slideDown 0.8s ease-out;
}


.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; 
    }
}


.container {
    display: flex;
    width: 100%;
}

.sidebar {
    background-color: #302C42;
    width: 18rem; 
    height: 100%;
    padding: 1.25rem; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.sidebar {
    animation: slideIn 0.6s ease-out;
}


.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3.875rem; 
}

.logo img {
    width: 3.5rem; 
    margin-bottom: 1.625rem; 
    filter: brightness(110%);
    margin-left: -5rem;
    margin-top: 2rem;
}

span {
    font-size: 0.65rem;
    font-weight: bold;
    color: #808191;
    margin-left: -8.2rem; 
    text-transform: uppercase;
    margin-top: 1.7rem; 
}

.menu a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.2rem 0;
    text-decoration: none;
    color: #9C92AC;
    gap: 0.375rem;
}

.menu i {
    margin-right: 1rem;
    font-size: 1.3rem;
}

.baixo {
    margin-top: 10rem; 
}

.main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #2c2649f6;
    padding: 0; 
}

.header {
    background: url('/assets assuntos/31.svg') no-repeat center center;
    background-size: cover;
    flex: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; 
}

.overlay {
    background-color: rgba(0, 0, 0, 0.39); 
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem 2.5rem 1.25rem 2.5rem;
    gap: 15rem;
    margin-bottom: 0rem;
}

.card-deck {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap; 
}

.card {
    flex: 1;
    width: 15.938rem;
    height: 20.813rem;
    margin: 0.625rem;
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.342); 
    text-align: center;
    padding-block: 0.4rem;
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    text-decoration: none;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.card {
    animation: zoomIn 0.5s ease-out;
}


.card:nth-child(1) {
    background-image: url('/assets assuntos/13.svg');
}

.card:nth-child(2) {
    background-image: url('/assets assuntos/14.svg');
}

.card:nth-child(3) {
    background-image: url('/assets assuntos/15.svg');
}

.card:nth-child(4) {
    background-image: url('/assets assuntos/16.svg');
}

.card-body {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.562); 
    filter: blur(150%);
}

.card-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    padding: 5px;
    border-radius: 10px;
}

.header ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 1.4rem;
}

.header ul li {
    margin-right: 1.25rem; 
}

.header ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 300;
}

.header h1 {
    font-size: 4rem; 
    font-weight: 600;
    margin: 0;
}

.assuntos-section {
    height: 50%; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.25rem; 
}

.assuntos-section h2 {
    font-size: 1.5rem; 
    font-weight: bold;
    margin-bottom: 0.625rem; 
}

@media (max-width: 48rem) { 
    .card {
        width: 48%; 
        height: 250px;
    }

    .assunto {
        width: 45%;
    }
}

@media (max-width: 30rem) {
    .card {
        width: 100%; 
        height: 200px;
    }

    .assunto {
        width: 100%;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .header ul li a {
        font-size: 1rem;
    }
}
