body {
    font-family: Arial, sans-serif;
    overflow: hidden;
    margin: 0;
}

.background {
    position: absolute;
    height: 100vh;
    width: 100vw;
    background-image: url(/files/background.jpg);
    background-size: cover;
    background-position: left;
    filter: blur(5px);
    z-index: -1;
}

.main-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    flex-direction: column;
    @media screen and (orientation: landscape) {
        flex-direction: row;
    }
}
.item-side {
    flex: 1;
    align-content: center;
    margin: 5px;
}
.order-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: scroll;
}

.item-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.item-card {
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.09);
    border: 1px solid #0000005a;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s;
}
.item-card:hover {
    transform: scale(1.02);
}
.item-card:active {
    transform: scale(0.9);
    background-color: rgba(150, 150, 150, 0.279);
}
.item-image {
    margin: 5px;
    max-width: 50px;
    border-radius: 10px;
    @media screen and (min-height: 600px) and (min-width: 350px) {
        max-width: 100px;
    }
}

.item-name {
    font-size: 0.8em;
    font-weight: bold;
}
.item-price {
    font-size: 0.8em;
    color: #333;
}

.total {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    margin-top: 5px;
    height: 14vh;
    @media screen and (orientation: landscape) {
        height: 20vh;
    }
}
.total button {
    margin-top: 5px;
}

.order-list {
    margin-top: auto;
}
.order-item {
    display: flex;
    align-items: center;
    padding: 5px;
    border-bottom: 1px solid #ccc;
}
.order-item span.name {
    flex-grow: 1;
    padding-right: 10px;
    text-align: left;
}
.order-item span.price {
    padding-right: 5px;
    text-align: left;
}
.quantity-controls {
    display: flex;
    justify-content: center;
    align-items: center;
}
.quantity-controls button {
    width: auto;
    height: auto;
    font-size: 15px;
    margin: 0 5px;
    text-align: center;
}

/* Basic modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-content: center;
}
.modal-content {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.09);
    border-radius: 10px;
    margin: 1% auto;
    border: 1px solid #888;
    text-align: center;
    width: 85vw;
    height: 60vh;
    @media screen and (orientation: landscape) {
        width: 54vw;
        height: 86vh;
    }
}
.modal-content h2 {
    margin-top: 6px;
    margin-bottom: 4px;
}

.keypad-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}
.keypad button {
    padding: 0;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    font-size: 15px;
    text-align: center;
    margin-left: 5px;
    margin-right: 5px;
    width: 25vw;
    height: 8vh;
    @media screen and (orientation: landscape) {
        width: 18vw;
        height: 12vh;
    }
}

.row-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}
.pair-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 5px;
    padding-right: 5px;
}
.pair-container h3 {
    margin: 0;
    font-size: 18px;
}
.pair-container input {
    padding: 0;
    padding-right: 2px;
    font-size: 18px;
    text-align: right;
    background-color: rgba(255, 255, 255, 0.0);
    border: none;
    outline: none;
    width: 12vw;
    @media screen and (orientation: landscape) {
        width: 8vw;
    }
}

.pay_button {
    font-size: 14px;
    text-align: center;
    padding: 0;
    border-radius: 10px;
    margin-bottom: 10px;
    width: 25vw;
    height: 5vh;
    @media screen and (orientation: landscape) {
        width: 12vw;
        height: 8vh;
    }
}