/* 
azul: #047FD9 
azul escuro: #000930
azul claro: aliceblue

roxo: #3D1E6D
dourado: #e6a72b
lilás claro: #DCC8F7 #EDE1FF
vinho: #4B0F24
*/

* {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

html, body {
    font-family: "Noto Sans", sans-serif;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #1b0008;
    color: #EDE1FF;
}

form {
    background-color: #340746;
    color: #EDE1FF;
    max-width: 40%;
    min-height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 8px;
    padding: 16px;
    border: #e6a72b 2px solid;
    border-radius: 4px;
}

.message-container {
    background-color: #340746;
    color: #DCC8F7;
    max-width: 40%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 16px;
    border: #e6a72b 2px solid;
    border-radius: 4px;
    overflow: auto;
}

.message-text-container * {
    text-align: justify;
    padding-bottom: 12px;
}

.message-container #btn-gift-toggle {
    background-color: #aa8ecf;
    color: #340746;
    padding: 8px 24px;
    outline: none;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    transition: .12s ease;
}

.message-container #btn-gift-toggle:hover {
    cursor: pointer;
    background-color: transparent;
    color: #e6a72b;
    border: #e6a72b 2px solid;
}

h1, h2, h3, h6 {
    color: #e6a72b;
}

/* h3 {
    color: #340746;
} */

.input-container, .form-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input {
    border: #631005 1px solid;
    border-radius: 4px;
    outline: none;
    padding: 8px;
}

input[type="text"] {
    background-color: #DCC8F7;
    box-shadow: #34074685 1px 1px 2px inset;
    border: #340746 1px solid;
    border-radius: 4px;
    padding: 8px;
}

input[type="text"]::placeholder {
    color: #aa8ecf;
}

input[type="submit"] {
    background-color: #aa8ecf;
    color: #340746;
    border: none;
    border-radius: 4px;
    padding: 8px;
    font-weight: bold;
}

input[type="submit"]:hover {
    cursor: pointer;
    background-color: transparent;
    color: #e6a72b;
    border: #e6a72b 2px solid;
}

/* gift cards */

.hide-content div.message-text-container {
    visibility: hidden;
    height: 0;
}

.hide-content.card-container {
    visibility: hidden;
    height: 0;
}

.card-container {
    display: flex;
    /* flex-wrap: wrap; */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
}

.card {
    background-color: white;
    color: #340746;
    max-width: 30%;
    display: flex;
    flex-direction: column;
    margin: 8px;
    min-width: 300px;
    padding-bottom: 8px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.card h6, .card p {
    text-align: justify;
    margin: 16px;
}

.card * {
    margin: 8px;
}

.card img {
    background-color: #4B0F24;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 16px;
    border: #e6a72b 1px solid;
    border-radius: 12px;
}

.download-btn {
    right: 4px;
}

.info-btn {
    left: 4px;
}

.card-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 4px;
    background: rgba(0, 0, 0, 0.3); /* Transparente */
    color: white;
    border: none;
    padding: 4px 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
    opacity: 0; /* Esconde por padrão */
}

.card:hover .card-btn {
    opacity: 1; /* Mostra ao passar o mouse */
    background: rgba(0, 0, 0, 0.7);
}

/* scroll bar */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Para Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.5) transparent; 
}

/* Para mobile */

@media (max-width: 768px) {
    form {
        max-width: 80%;
        min-height: 40%;
    }

    .message-container {
        max-width: 80%;
        max-height: 80%;
    }

    .card-btn {
        opacity: .5;
    }
}
