@import 'root.css';

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--black);
}

/* Hero */
.hero {
    min-width: 100vw;
    min-height: 100vh;
    padding: 10% 10%;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 {
    color: var(--white);
    font-size: 1.3rem; /* Perfeito para telas grandes, mas pode ser pequeno para telas menores */
    font-weight: 400;
    margin-top: 5%;
    cursor: default;
}

/* Loader */

.loader {
    position: center;
    width: 20px;
    height: 20px;
    scale: 0.5;
    top: 48px;
}

.loader div {
    position: absolute;
    width: 50%;
    height: 150%;
    background: var(--grey);
    transform: rotate(calc(var(--rotation) * 1deg))
        translate(0, calc(var(--translation) * 1%));
    animation: spinner-fzua35 1s calc(var(--delay) * 1s) infinite ease;
}

.loader div:nth-child(1) {
    --delay: 0.1;
    --rotation: 36;
    --translation: 150;
}

.loader div:nth-child(2) {
    --delay: 0.2;
    --rotation: 72;
    --translation: 150;
}

.loader div:nth-child(3) {
    --delay: 0.3;
    --rotation: 108;
    --translation: 150;
}

.loader div:nth-child(4) {
    --delay: 0.4;
    --rotation: 144;
    --translation: 150;
}

.loader div:nth-child(5) {
    --delay: 0.5;
    --rotation: 180;
    --translation: 150;
}

.loader div:nth-child(6) {
    --delay: 0.6;
    --rotation: 216;
    --translation: 150;
}

.loader div:nth-child(7) {
    --delay: 0.7;
    --rotation: 252;
    --translation: 150;
}

.loader div:nth-child(8) {
    --delay: 0.8;
    --rotation: 288;
    --translation: 150;
}

.loader div:nth-child(9) {
    --delay: 0.9;
    --rotation: 324;
    --translation: 150;
}

.loader div:nth-child(10) {
    --delay: 1;
    --rotation: 360;
    --translation: 150;
}

@keyframes spinner-fzua35 {
    0%,
    10%,
    20%,
    30%,
    50%,
    60%,
    70%,
    80%,
    90%,
    100% {
        transform: rotate(calc(var(--rotation) * 1deg))
        translate(0, calc(var(--translation) * 1%));
    }

    50% {
        transform: rotate(calc(var(--rotation) * 1deg))
        translate(0, calc(var(--translation) * 1.5%));
    }
}

/* Responsividade */
@media (max-width: 768px) {
    /* Estilos aplicados em telas com largura de até 768px (tablets e smartphones) */
    .hero {
       padding: 0;
       margin: 0;
    
    }

    
.loader{
    width: 10px;
    height: 20px;
    margin: 5% 0 5% 0;
}

    h1 {
        font-size: 1.3rem;
        margin-top: 10%;
    }
}

@media (max-width: 480px) {
    /* Estilos específicos para telas de smartphones */
   .hero{
       padding: 0;
       margin: 0;
       
   }
    
    .loader{
    width: 20px;
    height: 20px;
}
    
    
    h1 {
        font-size: 1.3rem; 
        margin-top: 10%;
    }
}