/*configurações container de pedidos*/
hr{ 
    background-color: white;
    color: white;
    width: 250px;
}

main {
    background:url(../imagens/backgroundmain.jpg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    width: 95vw;
    margin: 0 auto;
    margin-bottom: -40px;
    box-shadow: 2px 2px 10px var(--cor-greentext);
    position:relative;
    padding: 30px 0px 20px 0px;
    
    z-index: 2;
}

/*selects botoes e inputs*/

.porcoes {
    display: flex;
    flex-direction: row;
    min-width: 250px;
    margin: 12px;
    color: white;
    opacity: 0.8;
    font-size: var(--font-size-default2);

    justify-content: space-between;


}

.porcoes input[type="button"] {
    width: 30px;
    border-radius: 5px;
    border:2px solid;
    height: 30px;
    margin-right: 5px;
    font-weight: bolder;
    font-size: var(--font-size-default);
    text-align: center;
}
.porcoes input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.botoes-principais {
    max-width: 250px;
    width: 220px;
    height: 50px;
    border: 2px solid;
    border-color: var(--cor-yellow);
    background-color: transparent;
    border-radius: 20px;
    color: white;
    font-size: var(--font-size-default);
    text-transform: uppercase;
    font-weight: 700;
    margin: 25px;
}

#btEnviar{
    margin-top: 30px;
}

/* cursor pointer para todos os inputs*/
input[type='button'] {
    cursor: pointer;
}


.botoes-principais:active {
    background-color: var(--cor-yellow);
}

.porcoes input[name="qtd"] {
    min-width: 40px;
    width: 60px;
    max-width: 90px;
    border: none;
    border-bottom: 2px solid white;
    background: transparent;
    color: white;
    padding: 1px;
    text-align: center;
    font-size: 20px;
}

.textoIn {
    display: flex;
    flex-direction: row;
    user-select: none;
}

.porcoes input {
    background-color: transparent;
    border: 1px solid white;
    color: white;
    
}



/*container {
    display: flex;
    align-items: center;
    flex-direction: column;
    background: url(/imagens/fundocontainer.webp) repeat;
    background-size: 25%;
}*/
input::placeholder{
    color:white;
    opacity: 0.6;
}


.select {
    font-size: var(--font-size-default);
    opacity: 0.8;
    border-radius: 5px;
    margin: 12px;
    max-width: 250px;
    min-width: 250px;
    height: 35px;
    border: 1px solid white;
    background-color: transparent;
    color: white;
    text-align: center;

}

.select option {
    background-color: rgb(255, 255, 255);
    color: var(--cor-texthover);
    border: none;
}
.select:hover{
    background-color: white;
    opacity: 1;
    color: var(--cor-texthover);
    cursor: pointer;
}
.select:focus{
    background-color: white;
    opacity: 1;
    color: var(--cor-texthover);
}



fieldset{
    display: flex;
    width: 250px;
    flex-direction: column;
}
.preco{
    font-size: 15px;
}


/*modificando o estilo do checkbox e animações*/
input[type="checkbox"] {
    /*remover o estilo padrao em diferentes navegadores*/
    appearance: none;
    -webkit-appearance: none; /*remove a aparencia original dos checkboxes*/
    -moz-appearance: none;

    width: 22px;
    height: 22px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.text-legumes{
    text-align: center;
    margin: 12px;
    color: white;
    opacity: 0.8;
    font-size: var(--font-size-default2);
}
.checkboxes {
    margin: 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.checkboxes label {
    margin-left: 5px;
    user-select: none;
}

input[type="checkbox"]::after {
    content: "✓";
    font-size: 22px;
    color: white;
    position: absolute;
    left: 1px;
    top: -7px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked::after {
    opacity: 1;
    transform: scale(1);
}


input[type="checkbox"]:disabled {
    opacity: 0.6;
}

.lixeira{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    align-items: center;
    height: 70px;
}
.lixeira img{
    width: 70px;
    height: 70px;
    background: cover;
    animation: none;
    animation: pulse 1.5s infinite ease-in-out;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); } 
}
fieldset {
    border: none;
    color: white;
    width: 250px;
    opacity: 0.8;
    font-size: var(--font-size-default2);

}

/*configuração das ações quando clicadas*/
.select:focus {
    background-color: white;
    opacity: 1;
    color: var(--cor-texthover);
}

.porcoes input[type="button"]:focus {
    background-color: white;
    opacity: 1;
    color: var(--cor-texthover);
    border: none;
}


/*div do carrinho e afins*/

.item-carrinho hr {
    margin-top: 20px;
    color: white;
}

.item-carrinho {
    position: relative;
    border: 3px solid rgb(255, 255, 255);
    margin: 20px;
    border-radius: 20px;
    color: white;
    opacity: 0.8;
    max-width: 400px;
    width: 250px;
    font-size: var(--font-size-default2);
    margin: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    padding: 12px;

    transition: 0.2s;
}
.item-carrinho:hover {
    transform: scale(1.02);
    transition: 0.2s;
    background-color: rgba(0,0,0,0.6);
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}
.item-carrinho.remover-item:hover {
    background-color: transparent;
 
}

.item-carrinho:active {
    transform: scale(0.98);
    transition: 0.1s;
}
.item-carrinho li {
    margin-left: 5dvh;
}

.item-carrinho button {
    width: 70px;
    margin-left: 10px;
    background-color: white;
    border: none;
    height: 25px;
    color: var(--cor-texthover);
    border-radius: 20px;
    max-width: 110px;
    min-width: 70px;
    cursor: pointer;
}




/* Divs do alerta */
.escurecer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.alerta {
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: 280px;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 1000;

    display: flex;
    flex-direction: column;
}

  input[type="checkbox"]:hover{
    transform: scale(1.2);
    transition: 0.2s;
  } 
  .porcoes input[type="button"]:hover{
    background-color: white;
    color: var(--cor-texthover);
    border: none;
  }
  .botoes-principais:hover{
    background-color: #FFC23D;
    transition: 0.3s;
    scale: 1.2;

  }