* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --destaque: hsl(61, 70%, 36%);
    --fundo-principal: hsl(0, 0%, 84%);
    --fundo-card: hsl(0, 0%, 69%);
    --fundo: hsl(0, 0%, 21%);
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--fundo-principal);
    padding: 20px;
}

.card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.card-creator {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "h1 h1 h1"
        "inputTittle inputTittle inputFile01"
        "textArea01  textArea01 button01";
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 500px;
    margin-bottom: 40px;
    background-color: var(--fundo);
    padding: 30px;
    border-radius: 15px;
    color: var(--fundo-principal);
}

.card-creator input,
.card-creator textarea,
.card-creator button {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

#input-image {
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#input-image::file-selector-button {
    background-color: #007BFF;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s;
    width: 100%;
    font-size: 0.80em;
}

#input-image::file-selector-button:hover {
    opacity: 0.9;
}

.card-creator textarea {
    min-height: 100px;
    resize: vertical;
}


.card-storage {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}


.card {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    background-color: var(--fundo-card);
    border-radius: 30px;
    width: 300px;
    min-height: 550px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 250px;
    border-radius: 30px 30px 0 0;
    background-color: var(--destaque);
}

.image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
}

.card-text {
    padding: 20px;
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-all;
    width: 100%;
}



@media (max-width: 940px) {
    .card-storage {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .card {
        width: 80vw;
        max-width: 400px;
        min-height: auto;
    }
}


@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .card {
        width: 90vw;
    }

    .card-text h3 {
        font-size: 1.2rem;
    }

    .card-text p {
        font-size: 0.9rem;
    }
}