* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --violeta: #5300C8;
    --azul: #03318C;
    --branco: #E5E5E5;
    --letra: 'Press Start 2P', sans-serif;
}

/* HEADER */

header {
    display: flex;
    background-color: var(--violeta);
    font-family: 'Press Start 2P', sans-serif;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-bottom: 4px solid grey;
}

.titulo {
    color: var(--branco);
    font-family: 'Press Start 2P', sans-serif;
    align-items: center;
    font-size: 24px;
    padding: 8px;
}

h1 {
    font-family: var(--letra);
    font-size: 24px;
    text-align: center;
    padding-bottom: 40px;
    text-transform: uppercase;
}

main {
    display: flex;
}

/* SEÇÃO PRODUTOS */

.secao__produtos {
    width: 70%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    height: 50vh;
    width: 100%; 
    justify-content: center;
    overflow-y: auto;
}

ul::-webkit-scrollbar {
    width: 15px; 
}

/* Cor do fundo da barra de rolagem */
ul::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 10px; 
}

/* Cor e estilo da "polegar" da barra de rolagem */
ul::-webkit-scrollbar-thumb {
    background-color: #888; 
    border-radius: 10px; 
    border: 2px solid #f1f1f1; 
}

/* Efeito ao passar o mouse na barra de rolagem */
ul::-webkit-scrollbar-thumb:hover {
    background-color: #555; 
}

.card {
    width: 190px;
    height: 260px;
    background-color: var(--violeta);
    margin-bottom: 10px;
    border-radius: 10px;
    border: 2px solid black;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    padding-bottom: 5px;
}

.card:hover {
    transform: scale(1.02);
}

.card > img{
    width: 180px;
    height: 180px;
    border: 2px solid black;
    margin-top: 5px;
    border-radius: 5px;
    object-fit: cover;
}


.nome, .card-container--value > p{
    font-family: "IBM Plex Mono";
    color: white;
    text-align: left;
}

.nome {
    font-size: 1rem;
    padding-left: 6px;
}

.card-container--value > p {
    font-size: 16px;
    font-weight: bold;
}

.card-container--value {
    display: flex;
    justify-content: space-between;
    padding: 6px;
}

.card-container--value img {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* SEÇÃO FORMULÁRIO */

.secao__formulario {
    
    width: 40%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    width: 100%;
    
}

input {
    border: 2px solid var(--azul);
    color: var(--azul);
    font-size: 16px;
    font-family: "IBM Plex Mono";
    padding: 10px;
    border-radius: 20px;
    margin-bottom: 30px;
    width: 80%;
    height: 100%;
}

::placeholder {
    color: var(--azul)
}

.formulario__botao {
    display: flex;
    justify-content: center;
    width: 100%;

}

button {
    width: 35%;
    font-size: 20px;
    font-family: "IBM Plex Mono";
    border-radius: 10px;
    padding: 5px;
    margin-left: 10px;
}

.formulario__botao--guardar {
    border: 2px solid var(--azul);
    background-color: var(--azul);
    color: white;
}

.formulario__botao--limpar {
    border: 2px solid var(--azul);
    background-color: white;
    color: var(--azul);
}

/* FOOTER */

footer {
    background-color: var(--violeta);
    text-align: center;
    padding: 20px;
}

.secao__footer {
    display: flex;
    justify-content: center;
}

footer > p {
    color: white;
    font-size: 16px;
    font-family: "IBM Plex Mono";
    text-transform: uppercase;
}

/* Telas para Tablet */

@media  screen and (max-width: 769px) {
    main {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

     /* SEÇÃO PRODUTOS */

     .secao__produtos > h1 {
        padding-top: 50px;
    }

     .secao__produtos {
        height: auto;
        width: 100%;
    }

    ul {
        flex-wrap: nowrap;
        max-height: 100vh;
        width: 100%;
        justify-content: flex-start;
        overflow-x: scroll;
        overflow-y: hidden;
        padding: 20px;
    }

    /* SEÇÃO FORMULÁRIO */

    .secao__formulario {
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        height: 50%;
        padding-top: 50px;
    }

}

/* Tela para Celulares */

@media  screen and (max-width: 414px) {
    /* SEÇÃO PRODUTOS */

    ul {
        height: auto;
        width: 100%; 
        flex-direction: column;
        align-items: center;
        overflow-y: scroll; /
    }

}
