/* Globals */

[hidden] { display: none !important; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Smythe", system-ui;
}

body {
    max-width: 700px;
    margin: 0 auto
}



/* Page */

header {
    padding: 2rem 2rem 3rem 2rem;
    background-image: url('./images/headerImage.png');
    background-size: cover;
    color: #ffffff;

}



/* Menu */

.menu {
    padding: 2rem 3rem;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 2px solid #D2D2D2;
}

.item-img {
    width: clamp(3rem, 10vw, 5rem);
    height: auto;
}

.item-info {
    margin-left: 1.5rem;
}

.item-name {
    font-size: 1.75rem;
}

.item-ingredients {
    font-weight: 400;
    font-size: 1rem;
    color: #8B8B8B;
}

.item-price {
    font-size: 1.25rem;
    margin-top: 1rem;
}

.add-btn {
    margin-left: auto;
    font-family: "Inter", sans-serif;
    font-size: 2rem;
    font-weight: 100;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid #dedede;
    background-color: #ffffff;
    vertical-align: top;
}



/* Checkout */

.checkout {
    padding: 0 3rem 2rem;
    font-size: 1.75rem;
}

.checkout-content-wraper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.checkout-heading {
    text-align: center;
    padding-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 500;
}

.checkout-lines-container {
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid #393333;
}

.checkout-item-div {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 1rem;
}

.checkout-item-info {
    display: flex;
    gap: 10px;
}

.checkout-remove-btn {
    border: none;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    color: #BBBBBB;
    background-color: #ffffff;
}

.checkout-total-div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 0.5rem;
}

.checkout-complete-btn,
.modal-pay-btn {
    margin-top: 2rem;
    padding: 1rem 0;
    background-color: #16DB99;
    color: #ffffff;
    font-weight: 700;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    line-height: 1.5rem;
    border: none;
    box-shadow: 0px 1px 2px 0px #0000000d;
    border-radius: 3px;
}

.checkout-confirmation-container {
    margin-top: 2rem;
    padding: 1.5rem;
    text-align: center;
    background-color: #D1FAE5;
    color: #0b966e;
    border-radius: 6px;
}

#customer-name {
    font-weight: 700;
}



/* modal */

.modal {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    inset: 0;
    margin: auto;
    background-color: #00000066;
    
}

.modal-inner{
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    width: min(85vw, 500px);
    height: auto;
    border-radius: 5px;
    box-shadow: 0 10px 40px 0 #00000040; 
    background: whitesmoke;
}

.modal-form {
    margin-top: 2rem;
}

.close-modal-btn-container {
    position: absolute;
    top: 0;
    right: 0;
    text-align: right;
    margin: 10px;
    width:25px;
    height: auto;
}

.modal-heading {
    text-align: center;
    margin-top: 2rem;
}

.modal-details-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 3px;
}

.form-error {
    color: red;
}

.modal-input {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 3px;
}

.modal-pay-btn {
    width: 100%;
}

.modal-close-btn {
    width: 100%;
    font-size: 20px;
    font-weight: bold;
    border: none;
}

.modal-heading,
.modal-input,
.form-error,
.modal-pay-btn,
.modal-close-btn  {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.modal-input,
.form-error,
.modal-pay-btn {
    font-size: medium;
    line-height: 1.5rem;
}

/* button states */

.add-btn, 
.checkout-remove-btn,
.checkout-complete-btn,
.modal-pay-btn,
.modal-close-btn {
    cursor: pointer;
    transition: all 0.15s ease;
}

.add-btn:hover {
    border-color: #bdbdbd;
    transform: scale(1.05);
}

.add-btn:active {
    transform: scale(0.96);
}

.add-btn:focus-visible {
    outline: 2px solid #16db99;
    outline-offset: 3px;
}

.checkout-remove-btn:hover,
.modal-close-btn:hover {
    text-decoration: 1px underline #bdbdbd;
    color: #919191; 
}

.checkout-remove-btn:focus-visible,
.modal-close-btn:focus-visible {
    outline: 2px solid #16db99;
    outline-offset: 3px;
    border-radius: 3px;
}

.checkout-complete-btn:hover,
.modal-pay-btn:hover {
    transform: translate(2px, 2px) 
}

.checkout-complete-btn:active,
.modal-pay-btn:active {
    transform: translate(-2px, -2px) scale(0.96);
}

.checkout-complete-btn:focus-visible,
.modal-pay-btn:focus-visible {
    outline: 2px solid #16db99;
    outline-offset: 3px;
}




