* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Rubik", sans-serif;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #888 transparent;
}

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


:root {
    --bg-color: #FBFBFB;
    --purple: #a729f5;
    --primary-text-color: #675C9A;
    --secundary-text-color: #626c7f;
    --button-bg: #fff;
    --shadow: 0px 16px 40px 0px rgba(54, 62, 70, 0.14);
    --bg-html: #595278;
    --bg-css: #F0EEF8;
    --bg-javascript: #C1D2EA;
    --bg-acessibilidade: #3B4D66;
    --white: #fff;
    --bg-mobile: url(./assets/images/Background\ Mobile\ light.svg);
    --bg-desktop: url(./assets/images/Background\ desktop\ light.svg);
}

body.escuro {
    --bg-color: #37334B;
    --bg-mobile: url(./assets/images/Background\ mobile\ Dark.svg);
    --bg-desktop: url(./assets/images/Background\ Desktop\ Dark.svg);
    --primary-text-color: #fff;
    --secundary-text-color: #abc1e1;
    --button-bg: #2E2A43;
    --shadow: 0px 16px 40px 0px rgba(49, 62, 81, 0.14);
}

body {
    height: 100svh;
    background: var(--bg-mobile) var(--bg-color);
    background-repeat: no-repeat;
    background-size: cover;
}

header {
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    max-width: 1160px;
    margin-inline: auto;
}

.tema {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tema img {
    width: 16px;
}

.tema button {
    height: 20px;
    width: 32px;
    background: var(--purple);
    border: 0;
    border-radius: 999px;
    padding: 4px;
    display: flex;
    cursor: pointer;
}

.tema button div {
    background: var(--white);
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

main {
    padding: 32px 24px;
}

.boas_vindas {
    margin-bottom: 40px;
}

.boas_vindas  h1 {
    font-size: 40px;
    font-weight: 300;
    color: var(--primary-text-color);
    margin-bottom: 16px;
}

.boas_vindas h1 strong {
    font-weight: 500;
}

.boas_vindas p {
    color: #9084C6;
    font-size: 14px;
    line-height: 150%;
    font-style: italic;
}

.assuntos {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.assuntos button {
    border: none;
    background: var(--button-bg);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-text-color);
    cursor: pointer;
}

.assuntos button div {
    width: 40px;
    height: 40px;
    padding: 5px;
    border-radius: 5px;
}

.assuntos button img {
    width: 100%;
}

.botao_html div {
    background: var(--bg-html);
}

.botao_css div {
    background: var(--bg-css);
}

.botao_javascript div {
    background: var(--bg-javascript);
}

.botao_acessibilidade div {
    background: var(--bg-acessibilidade);
}

@media(min-width: 1100px) {
    body {
        background: var(--bg-desktop) var(--bg-color);
        background-size: cover;
        background-repeat: no-repeat;
    }

    header {
        margin-block: 81px;
    }

    .tema {
        gap: 16px;
    }

    .tema img {
        width: 24px;
    }

    .tema button {
        width: 48px;
        height: 28px;
    }

    .tema button div {
        width: 20px;
        height: 20px;
    }

    main {
        display: flex;
        max-width: 1160px;
        margin-inline: auto;
    }

    section {
        width: 100%;
    }

    .boas_vindas h1 {
        font-size: 64px;
        margin-bottom: 48px;
    }

    .boas_vindas p {
        font-size: 20px;
    }

    .assuntos {
        gap: 24px;
    }

    .assuntos button {
        font-size: 28px;
        padding: 20px;
        gap: 32px;
    }

    .assuntos button div {
        width: 56px;
        height: 56px;
        padding: 8px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.loader {
    animation: fadeIn 0.5s ease-out forwards; 
}

.hidden {
    animation: fadeOut 0.5s ease-out forwards;
}

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

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

@keyframes zoomIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

@keyframes zoomOut {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1);
    }
}

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

.assuntos button {
    animation: fadeInUp 0.7s ease-out;
}

.fechar-button {
    position: absolute;
    top: 5rem; 
    left: 8rem; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.fechar-button img {
    width: 3.600rem; 
    height: 3.600rem; 
    cursor: pointer;
}

      .ranking-button {
    background: linear-gradient(135deg, #5D3FD3, #6A5ACD);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 0;
    width: fit-content;
}

.ranking-button:hover {
    background: linear-gradient(135deg, #6A5ACD, #5D3FD3);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(106, 90, 205, 0.4);
}

.ranking-button i {
    margin-right: 10px;
}

@media (max-width: 768px) {
    .ranking-button {
        font-size: 16px;
        padding: 12px 24px;
        margin-top: 20px;
    }
}

@media (max-width: 1024px) {
    .fechar-button {
        top: 15px;
        left: 15px;
    }

    .fechar-button img {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 768px) {
    .fechar-button {
        top: 10px;
        left: 10px;
    }

    .fechar-button img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .fechar-button {
        top: 8px;
        left: 8px;
        padding: 8px;
    }

    .fechar-button img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 320px) {
    .fechar-button {
        top: 5px;
        left: 5px;
        padding: 6px;
    }

    .fechar-button img {
        width: 18px;
        height: 18px;
    }
}

        
