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

body {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    background: linear-gradient(180deg, rgba(254,209,18,1) 40%, rgba(255,255,255,1) 70%);
}

.app-header {
    display: flex;
    flex-direction: column;
    background-color: #FED112;
}

.title-market {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.title-market h1 {
    display: flex;
    color: rgb(78, 10, 10);
}

.title-market img {
    width: 120px;
    transition: 0.8s;
    animation: go-back 1s;
}

.title-market img:hover {
    scale: 1.2;
    transition: 0.8s;
}

.input-form {
    display: flex;
    width: 345px;
    height: 40px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    margin: 10px auto 20px;
    align-items: center;
    justify-content: space-evenly;
    background-color: #f4f4f4;
}

#shopping-form {
    display: flex;
    align-items: center;
    font-size: 16px;
    background-color: #f4f4f4;
}

#shopping-form input {
    width: 160px;
    height: 30px;
    margin-right: 6px;
    padding: 5px 12px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    background-color: #f4f4f4;
}

#shopping-form #addi-item {
    display: inline-flex;
    padding: 5px 12px;
    border: none;
    border-radius: 12px 0 0 12px;
    font-size: 16px;
    color: #f4f4f4;
    background-color: rgb(124, 215, 124);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

#shopping-form #clear-list {
    display: inline-flex;
    padding: 5px 12px;
    border: none;
    font-size: 16px;
    color: #f4f4f4;
    background-color: rgb(250, 117, 117);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.currency-selector {
  display: inline-flex;
  border: none;
  border-radius: 0 12px 12px 0;
  background: #d9d9d9;
}

.currency-selector #br {
  text-decoration: none;
  padding: 5px 10px;
  color: #f4f4f4;
}

.currency-selector #eur {
  text-decoration: none;
  padding: 5px 14px;
  color: #f4f4f4;
  border-radius: 0 12px 12px 0;
}

.currency-selector a.active {
  background-color: #FED112;
  color: #f4f4f4;
  font-weight: bold;
}

#upload-list {
    display: none;
}

#upload-list-label {
    cursor: pointer;
}

.table-container {
    border: none;
    border-radius: 20px 20px 0 0;
    background-color: #fff;
    background-image: url(./assets/moco-lab-cart2.png);
    background-size: 30%;
}

.shopping-table {
    display: grid;
    margin: 20px auto;
    width: 100%;
    font-size: 14px;
}

.shopping-table .input-value {
    width: 15%;
    border: 1px solid #ddd;
}

.shopping-table .unit-value {
    width: 20%;
    border: 1px solid #ddd;
}

.shopping-table .quantity-value {
    width: 20%;
    border: 1px solid #ddd;
}

.shopping-table .total-value {
    width: 20%;
    border: 1px solid #ddd;
}

.shopping-table .action-value {
    width: 15%;
    border: 1px solid #ddd;
}

#shopping-list {
    width: 100%;
    height: 550px;
    margin: 0 auto;
    overflow-y: scroll;
}

#shopping-list td {
    word-wrap: break-word;
    border-radius: 4px;
    font-size: 16px;
    text-transform: capitalize;
}

#shopping-list .item-checkbox {
    width: 15px;
    margin: 0 4px 0 4px;
    background-color: #d9d9d9;
    cursor: pointer;
}

#shopping-list .unit-price {
    width: 80%;
    height: 30px;
    margin-left: 30px;
    padding-left: 3px;
    padding-right: 3px;
    font-size: 14px;
    background-color: #d9d9d9;
    border: none;
    border-radius: 4px;
    letter-spacing: 1.3px;
}

#shopping-list .quantity {
    width: 50%;
    height: 30px;
    margin-left: 25px;
    padding-left: 3px;
    font-size: 14px;
    background-color: #d9d9d9;
    border: none;
    border-radius: 4px;
}

#shopping-list .subtotal {
    width: 20%;
    padding-left: 3px;
    font-size: 14px;
    background-color: #d9d9d9;
    border: none;
    letter-spacing: 1.3px;
}

#shopping-list .delete-btn {
    margin-left: 10px;
}

.delete-btn {
    background-color: rgb(250, 117, 117);
    color: white;
    border: none;
    margin-right: 5px;
    padding: 3px 6px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 800;
}

.total {
    display: flex;
    position: sticky;
    bottom: 0;
    text-transform: uppercase;
    border-radius: 20px 20px 0 0;
    background-color: #FF7312;
}

.total h2 {
    display: flex;
    margin: 30px auto;
    letter-spacing: 1.3px;
    color: #1F2D27;
}

.space {
    margin-left: 5px;
}

#total {
    letter-spacing: 1.3px;
}

/*footer {
    text-align: center;
    color: rgb(167, 156, 156);
    position: relative;
    margin-top: 95%;
}

footer span {
    font-size: 14px;
}*/

@media (max-width: 410px) {
    body {
        width: auto;
        margin: auto;
    }
}

@media (min-width: 600px) {
    body {
        display: flex;
        align-items: center;
    }

    .app-header {
        display: flex;
        align-items: center;
    }

    .title-market {
        width: 600px;
        display: flex;
    }

    .table-container {
        display: flex;
        width: 700px;
    }

    .total {
        width: 700px;
    }
}

@keyframes go-back {
    0% {
        transform: translateX(-200%);
    }
    100% {
        transform: translateX(0%);
    }
}