* {
    margin:0;
    padding: 0;
    font-size: 14px;
}

html {
    width: 100vw;
    height: 100vh;
}

body {
    font-family: sans-serif;
    width: 100vw;
    height: 100vh;
    /* overflow: hidden; */
}

#pizzaSelectionOverlay {
    position:absolute;
    top:0%;
    left:0%;
    height: 100vh;
    width: 100vw;
    display:flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(50, 50, 50, 0.6);
    z-index: 2000;
}

#pizzaSelection  {
    width: 80%;
    height: auto;
    background: white;
    border-radius: 10px;
    display: grid;
    /* Grille : 3 lignes (1 pour le titre, 2 pour les images) */
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
}

#pizzaSelection h1 {
    grid-column: 1 / -1; /* Le titre s'étend sur toutes les colonnes */
    text-align: center;
}

#pizzaSelection button {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid lightgray;
    border-radius: 10px;
    padding: 50px 0px;
    cursor: pointer;
}

#pizzaSelection button:hover {
    background: lightgray;
    transform:translateY(-4px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#pizzaSelection button:active {
    border:3px solid red;
    transform:translateY(-4px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#pizzaSelection button img {
    width: 90%;
    height: 100%;
    object-fit: contain;
}

#navIndicator {
    width: 100vw;
    position:fixed;
    top:0;
    left:0;
    right:0;
    padding:5px 0;
    display:flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 6000;
    gap: 2rem;  
}

#navIndicator span {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background: grey;
    color: white;
    transition: all 0.3s ease;
}

#navIndicator span.completed {
    background-color: #4CAF50;
    color: white;
}

#composition {
    padding: 25px 0px;
    position:fixed;
    bottom:0;
    left:0;
    width:100vw;
    right:0;
    height: 50vh;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: scroll;
}

#composition ul {
    overflow: scroll;
    padding-bottom: 120px;
}

#composition ul li div {
    position: relative;
    padding-top: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 10px;
}

#composition ul li p {
    font-style: italic;
    color: grey;
    text-align: right;
    margin-right: 1rem;
    font-size: 12px;
}

#composition ul li div span {
    width: 40%;
    text-align: center;
}

#composition ul li div .info {
    font-style: italic;
    font-size: 12px;
    position: absolute;
    bottom: 0;
}

#composition ul li div button {
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    font-size: 2rem;
    border: none;
    cursor: pointer;
    background: black;
    color:white;
    margin: 0 10px;
}

#composition ul li div button:active {
    background: gray;
    transform:translateY(-4px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#composition ul li div input[type="number"]{
    width: 50px;
    text-align: center;
    height: 30px;
    border:none;
}

#order_button {
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    padding:5px 0;
    display:flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    gap: 2rem;  
}

#order_button button {
    padding: 1rem 2rem;
    border:none;
    cursor: pointer;
}

/* Ingredient animation styles */
.ingredient-drop {
    position: absolute;
    top: -100px;
    opacity: 0;
    transform: translateY(-100px) scale(0.5);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ingredient-placed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Counter styles improvements */
.counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.counter button {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
}

.counter button:hover:not(:disabled) {
    background: #e9e9e9;
}

.counter button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
}

.counter input {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    background: white;
}

/* Cart Styles */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #ffffff;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart:hover {
    background: #e9ecef;
}

.cart-content {
    flex: 1;
    padding: 5px 5px 20vh 5px;
    overflow-y: auto;
    width: 78vw;
}

.empty-cart {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 50px 0;
}

.cart-pizza {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
}

.cart-pizza-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cart-pizza-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.delete-pizza {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.delete-pizza:hover {
    background: #c82333;
}

.cart-pizza-base {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    color: #495057;
}

.base-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.base-arrow-left, .base-arrow-right {
    background: #6c757d;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.base-arrow-left:hover, .base-arrow-right:hover {
    background: #5a6268;
}

.base-arrow-left:active, .base-arrow-right:active {
    transform: scale(0.95);
}

.cart-ingredients {
    margin-bottom: 15px;
}

.cart-ingredient {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.cart-ingredient:last-child {
    border-bottom: none;
}

.cart-ingredient-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-minus, .cart-plus {
    width: 25px;
    height: 25px;
    border: 1px solid #ccc;
    background: #f8f9fa;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-minus:hover, .cart-plus:hover {
    background: #e9ecef;
}

.cart-minus:disabled, .cart-plus:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8f9fa;
}

.cart-minus:disabled:hover, .cart-plus:disabled:hover {
    background: #f8f9fa;
}

.cart-quantity {
    min-width: 20px;
    text-align: center;
    font-weight: bold;
}

.cart-ingredient-price {
    font-weight: bold;
    color: #28a745;
}

.no-ingredients {
    color: #666;
    font-style: italic;
    margin: 10px 0;
}

.cart-forgot-something {
    text-align: center;
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #f1f3f4;
}

.forgot-something-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.forgot-something-btn:hover {
    background: #138496;
}

.cart-pizza-total {
    text-align: right;
    padding-top: 10px;
    border-top: 1px solid #eee;
    color: #495057;
}

.cart-actions {
    padding: 20px 0;
    text-align: center;
}


.pay-button:hover {
    background: #218838;
}

.pay-button:active {
    transform: translateY(1px);
}

.pay-button-text {
    font-size: 1.1rem;
    font-weight: bold;
}

.pay-button-total {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: normal;
}

/* Forgot Something Modal Styles */
.forgot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.forgot-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.forgot-modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3rem;
}

.forgot-ingredients-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.forgot-ingredient-btn {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.forgot-ingredient-btn:hover {
    background: #e9ecef;
    border-color: #17a2b8;
    transform: translateY(-2px);
}

.forgot-ingredient-btn:active {
    transform: translateY(0);
}

.ingredient-info {
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
}

.forgot-cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.forgot-cancel-btn:hover {
    background: #5a6268;
}

#panier {
    position: absolute;
    right: 10px;
    height: 40px;
    border-radius: 10px;
    border: none;
    padding:5px 0;
    display:flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    background:lightcoral
}

#base {
    position: absolute;
    width: 70%;
    top: 27%;
    left: 16%;
    z-index: 1;
}

.ingredient {
    position: absolute;
    width: 70%;
    top: 27%;
    left: 16%;
}

#currentCart {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 90vw;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 4000;
    transition: 200ms;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.openCart {
    transform: translateX(-100%) !important;
    transition: 200ms;

}

.openCart #payButton {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90%;
    padding: 20px 0 40px 0;
    background: rgb(90, 203, 75);
    color: rgb(255, 255, 255);
    cursor: pointer;
    font-size: 1.5rem;
    border:none
}

#background {
    width: 100%;
    transform: translateY(-10%);
}

#addButton {
   background: rgb(29, 154, 165); 
   color:white;
   border:none;
   cursor: pointer;
}

#orderButton {
    background: rgb(27, 120, 13);
    color:white;

}
