/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f8f8f8;
    text-align: center;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

.header-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

h1 {
    font-size: 28px;
    color: #55431c;
    margin-bottom: 20px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.gift {
    background: white;
    border-radius: 10px;
    padding: 15px;
    width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
}

.gift:hover {
    transform: scale(1.05);
}

.gift img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.gift h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

.gift p {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.gift p strong {
    color: #d9534f;
    font-size: 16px;
}

.buy-button {
    display: block;
    margin-top: auto;
    padding: 10px 15px;
    background-color: #55431c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    text-align: center;
}

.buy-button:hover {
    background-color: #7b5d2f;
}

footer {
    margin-top: 30px;
    font-size: 14px;
    color: #777;
}

/* Estilos básicos */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    text-align: center;
    padding: 20px 0;
}

header img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* Títulos */
h1, h2, h3 {
    text-align: center;
}

h2 {
    margin-top: 20px;
}

h3 {
    margin-top: 30px;
}

/* Formulário de presença */
form {
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

form label {
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

form input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #0056b3;
}

/* Lista de presentes */
#listaPresenca {
    list-style-type: none;
    padding: 0;
}

#listaPresenca li {
    padding: 10px;
    background-color: #fff;
    margin: 10px 0;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

#listaPresenca button {
    background-color: red;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

#listaPresenca button:hover {
    background-color: darkred;
}

/* Lista de presentes (gifts) */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.gift {
    background-color: #fff;
    margin: 15px;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.gift img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

.gift h3 {
    font-size: 18px;
    margin: 10px 0;
}

.gift p {
    font-size: 14px;
    color: #666;
}

.gift .buy-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
}

.gift .buy-button:hover {
    background-color: #218838;
}

/* Responsividade para dispositivos menores */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .gift {
        max-width: 100%;
    }

    form {
        width: 80%;
    }
}

/* Responsividade para dispositivos muito pequenos */
@media (max-width: 480px) {
    header img {
        max-width: 100%;
    }

   

    .gift h3 {
        font-size: 16px;
    }

    .gift p {
        font-size: 12px;
    }
}
