/* Importação da fonte */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

/* Logo no topo */
.logo {
    width: 180px;
    display: block;
    margin-bottom: 15px;
}

/* Corpo centralizado em 100% da altura da tela */
body {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh; /* ocupa a tela inteira */
    overflow: hidden; /* impede rolagem */
    padding: 20px; /* leve respiro nas bordas */
}

/* Título principal */
h2 {
    font-weight: 400;
    font-size: 32px;
    color: #052A75;
    text-align: center;
    margin-bottom: 20px;
}

/* Container dos dois inputs (mínimo e máximo) */
div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

/* Campos de entrada */
input {
    background: #ffffff;
    border-radius: 14px;
    border: 2px solid #6864f7;
    height: 60px;
    width: 260px;
    padding-left: 20px;
    font-weight: 500;
    font-size: 28px;
    color: #444;
}

/* Botão principal */
button {
    background: #0ff2f8;
    box-shadow: 0px 8px 20px #35dbe1;
    border-radius: 10px;
    width: 560px;
    height: 62px;
    color: #052A75;
    font-weight: 700;
    font-size: 32px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: 0.3s ease;
}

/* Efeito pulsante */
button::before, button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0ff2f8;
    z-index: -1;
    border-radius: 10px;
    opacity: 0.7;
}

@keyframes pulsar {
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

button:hover::before {
    animation: pulsar 2s ease-in-out infinite;
}

button:hover {
    opacity: 0.9;
}

button:active {
    opacity: 0.8;
}

/* Caixa de exibição do número sorteado */
.result-box {
    background-color: #f3f4ff;
    border: 2px solid #6864f7;
    border-radius: 14px;
    padding: 20px;
    width: 560px;
    text-align: center;
    margin-top: 25px;
    font-size: 26px;
    color: #052A75;
    font-weight: 600;
    animation: fadeIn 0.5s ease;
}

/* Animação de entrada suave */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 🔹 Responsividade — telas menores que 768px */
@media (max-width: 768px) {
    body {
        overflow-y: auto; /* libera rolagem no celular */
    }

    div {
        flex-direction: column;
        gap: 20px;
    }

    input {
        width: 90%;
        font-size: 24px;
    }

    button {
        width: 90%;
        font-size: 26px;
    }

    .result-box {
        width: 90%;
        font-size: 22px;
    }
}