@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

body {
    background-color: #0d1117;
    color: #00ff00;
    font-family: 'VT323', monospace;
    text-align: center;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 10px; /* Evita cortes em telas menores */
}

/* Ajusta a posição do efeito Matrix no fundo */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Mantém o efeito no fundo */
    pointer-events: none; /* Garante que não bloqueia cliques */
}

/* Centraliza o conteúdo sobre o efeito */
.container {
    position: relative;
    z-index: 2; /* Mantém o conteúdo na frente do canvas */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 600px; /* Para evitar que fique muito grande no desktop */
}

/* Estiliza o título principal */
.title {
    font-size: 24px;
    text-shadow: 0 0 15px #00ff00;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
}

/* Animação do texto */
#dynamic-text {
    font-size: 18px;
    margin: 10px 0;
    height: auto;
    text-align: center;
}

/* Barra de progresso */
.loading-bar {
    width: 80%;
    max-width: 400px;
    height: 8px;
    border: 1px solid #00ff00;
    margin: 15px auto;
    position: relative;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background-color: #00ff00;
    animation: progressAnim 3s infinite;
}

@keyframes progressAnim {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

/* Estilização do botão */
.back-btn {
    background: transparent;
    border: 2px solid #00ff00;
    color: #00ff00;
    font-size: 16px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    box-shadow: 0 0 10px #00ff00;
    margin-top: 15px;
}

.back-btn:hover {
    background: #00ff00;
    color: #0d1117;
    box-shadow: 0 0 20px #00ff00;
}

/* 🌍 Ajustes para Mobile */
@media (max-width: 768px) {
    .title {
        font-size: 20px;
        text-align: center;
    }

    #dynamic-text {
        font-size: 16px;
        max-width: 90%;
    }

    .loading-bar {
        width: 90%;
    }

    .back-btn {
        font-size: 14px;
        padding: 10px 15px;
    }
}

/* 🌍 Ajustes para Telas Muito Pequenas (ex: 320px) */
@media (max-width: 480px) {
    .title {
        font-size: 18px;
    }

    #dynamic-text {
        font-size: 14px;
    }

    .back-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
}
