* {
    margin: 0;
    padding: 0;
    font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
    box-sizing: border-box; /* Garante que padding e border sejam inclusos no tamanho do elemento */
}

/* Container principal com background */
.container {
    position: relative;
    background-image: url('../image/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh; /* 100% da altura da viewport */
    background-color: #000;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.card {
    background-color: white;
    width: 90%; 
    max-width: 400px; 
    height: auto;
    padding: 20px;
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px; 
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); 
} 

.card p {
    display: flex;
    justify-content: center;
    font-size: 1.5rem;
    color: #e981a4;
}

.acoes {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.acoes button {
    width: 120px; /* Aumenta um pouco a largura para telas maiores */
    height: 40px;
    margin-right: 20px;
    margin-left: 20px;
    color: white;
    border-radius: 5px; /* Cantos arredondados */
    cursor: pointer;
    font-size: 1rem;
}

.acoes .cancelar {
    background-color: red;
}

.acoes .confirmar {
    background-color: green;
}

/* Estilo dos inputs */
.card input {
    width: 80%; /* Ajuste para caber melhor em telas menores */
    display: block;
    margin: 25px auto;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

/* Nome do input */
.card .nome {
    margin-top: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Estilo para a mensagem de erro */
.error-message {
    color: #f44336; /* Vermelho suave */
    background-color: #ffecec; /* Fundo suave */
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #f5c6c6; /* Borda suave */
    border-radius: 5px;
    font-size: 14px;
    display: none; /* Inicialmente oculto */
    animation: fadeIn 0.5s ease-in-out;
    text-align: center;
}

/* Animação de fade-in */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Para melhorar a aparência dos botões */
button.cancelar, button.confirmar {
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

button.cancelar {
    background-color: #f0f0f0;
    color: #333;
}

button.confirmar {
    background-color: #4CAF50; /* Verde suave */
    color: white;
    transition: background-color 0.3s;
}

button.confirmar:hover {
    background-color: #45a049;
}


/* Ajuste para telas menores */
@media (max-width: 768px) {
    .card {
        width: 90%;
        padding: 15px;
    }

    .card p {
        font-size: 1.5rem;
    }

    .acoes button {
        width: 100px;
        height: 35px;
        font-size: 0.9rem;
    }

    .card input {
        width: 85%;
        padding: 8px;
    }
}

/* Ajuste para telas muito pequenas */
@media (max-width: 480px) {
    .card p {
        font-size: 1.2rem;
    }

    .acoes button {
        width: 80px;
        height: 30px;
        font-size: 0.8rem;
    }

    .card input {
        width: 90%;
    }
}
