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

body {
    background: #000;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
    overflow: hidden;
    font-family: 'Get Schwifty', sans-serif;
}

/* animação e estilo das estrelas */
@keyframes animStar {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 -10000px;
    }
}

/* base para a aparencia das estrelas */
#stars1, #stars2, #stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1; 
}


/* estrelas pequenas e rápidas */
#stars1 {
    background: transparent url('https://www.transparenttextures.com/patterns/stardust.png');
    animation: animStar 100s linear infinite; 
}

/* estrelas médias e mais lentas */
#stars2 {
    background: transparent url('https://www.transparenttextures.com/patterns/stardust.png');
    background-size: 150%; 
    animation: animStar 200s linear infinite; 
    opacity: 0.8;
}

/* estrelas grandes e muito lentas */
#stars3 {
    background: transparent url('https://www.transparenttextures.com/patterns/stardust.png');
    background-size: 200%; 
    animation: animStar 300s linear infinite; 
    opacity: 0.7; 
}

h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.portal {
    margin-bottom: 20px; 
    z-index: 1;
}

#portal-img {
    width: 350px; 
    height: 350px;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.3s ease;
}


#portal-img:hover {
    transform: scale(1.1); 
}

.personagem-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    z-index: 1;
}

.botoes-acao {
    display: flex;
    gap: 15px; 
}

#voltar-btn {
    background-color: #00b6b0;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    z-index: 1;
}

#voltar-btn:hover {
    background-color: #00a6a9;
}


#voltar-pesquisa-btn {
    background-color: #f39c12; 
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    text-decoration: none; 
}

#voltar-pesquisa-btn:hover {
    background-color: #e67e22;
}

/* esconder o botão */
.hidden {
    display: none;
}

footer {
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    padding: 15px;
    background-color: #000000;
    color: #bbb;
    margin-top: auto;
    position: relative; 
    z-index: 1;
}

/* --- Responsividade --- */

/* Tablets */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    #portal-img {
        width: 280px;
        height: 280px;
        margin-top: 100px;
    }
}

/* Celulares */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    #portal-img {
        width: 200px;
        height: 200px;
    }

    .botoes-acao {
        flex-direction: column;
    }
}