/* ─────────────────────────────────────────────────────────────────────────────
   1. CSS Reset and Base
───────────────────────────────────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Advent Pro';
    src: url("../fonts/AdventPro.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: 'Krungthep';
    src: url("../fonts/Krungthep.ttf") format("truetype");
    font-display: swap;
}

body {
    font-family: 'Advent Pro';
    color: black;
    background: linear-gradient(90deg, rgba(243, 230, 223, 0.90), rgba(250, 155, 88, 0.90), rgba(253, 194, 163, 0.90), rgba(216, 192, 188, 0.90));
    padding-bottom: 50px;
    font: size 1.8rem; ;
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. Typography
───────────────────────────────────────────────────────────────────────────── */
h1 {
    font-family: 'Krungthep';
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 10px;
}

h2 {
    font-family: 'Krungthep';  
    font-size: 1.4rem;
    color: black;
}

.subtitle {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. Links and Buttons
───────────────────────────────────────────────────────────────────────────── */
a {
    text-decoration: none;
    color: black;
    margin-top: -40px;
}

.back-button {
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 10px;
    background:linear-gradient(to right, #f68d2e, #ff6f00);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: smaller;
}

.back-button:hover {
    background: linear-gradient(to right, #c55f00, #c36501);
}

button {
    background: linear-gradient(to right, #f68d2e, #ff6f00);
    border: none;
    color: white;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    width: 100%;
    font-family: 'Advent Pro';
}

button:hover {
    background: linear-gradient(to right, #c55f00, #c36501);
}

/* ─────────────────────────────────────────────────────────────────────────────
   4. Hero Section
───────────────────────────────────────────────────────────────────────────── */
.hero {
    padding: 4%;
    padding-left: 10%;
    margin-bottom: 40px;
    background: #ABA095;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    width: 90%;
    height: auto;
    justify-content: left;
    border-bottom-right-radius: 80px;
}

.loading-bar {
    width: 100%;
    padding: 10px;
    background-color: rgba(171, 160, 149, 0.7);
    color: white;
    text-align: center;
    font-family: 'Advent Pro';
    position: fixed;
    top: 70%;
    z-index: 10000;
}

.loading-bar.hidden {
    display: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   5. Table
───────────────────────────────────────────────────────────────────────────── */
table {
    width: 80%;
    border-collapse: separate;
    border-spacing: 5px 10px;
    border-radius: 20px;
    margin: 0 auto;
    border: 4px solid #fff;
    padding: 5px;

}

thead {
    border: 20px solid #fff;
}

th {
    color: white;
    font-size: 1.2rem;
    padding: 1px 10px 10px 10px;
    text-align: center;
    border-bottom: 4px solid #fff;
    border-radius: 5px;
}

td {
    text-align: center;
    background: #f6f6f6;
    border-radius: 10px;
    font-size: 1.1rem;
}

td:last-child {
    background: linear-gradient(to right, #f68d2e, #ff6f00);
    font-weight: bold;
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. Modal
───────────────────────────────────────────────────────────────────────────── */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background-color: #c4c6b4;
    padding: 50px;
    border-radius: 20px;
    width: 90%;
    color: #222;
    position: relative;
    max-height: 90%;
    overflow-y: auto;
}

.modal-header {
    margin-bottom: 40px;
    background: #48502C;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    height: auto;
    justify-content: left;
    border-radius: 20px;
    padding: 30px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.hidden {
    display: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   7. Modal Content Details
───────────────────────────────────────────────────────────────────────────── */
#modalBody h2 {
    font-size: 3rem;
    color: white;
    font-family: 'Krungthep';
}

#modalBody h3 {
    font-family: 'Krungthep';
    background: white;
    padding: 5px 10px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.modal-body-row {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 20px;
    align-items: stretch;
}

.ingredients-block {
    flex: 1 1;
    height: 100%;
    padding-left: 20px;
}

.ingredients-block ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.ingredients-block li {
    border-bottom: 1px solid #ddd;
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
}

.image-block {
    flex: 1 1;
    margin-top: 50px;
    height: 100%;
}

.image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.modal-instructions {
    margin-top: 20px;
    font-size: 1.1rem;
    padding-left: 20px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   8. Responsive Design
───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 1rem;
        max-width: 90%;
    }

    .hero {
        padding: 4%;
        padding-top: 10%;
        padding-left: 10%;
        margin-bottom: 40px;
        background: #ABA095;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
        width: 100%;
        height: auto;
        justify-content: left;
        border-bottom: 20px;
    }

    .back-button {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    table {
        font-size: 1.1rem;
        border-width: 2px;
    }

    th {
        font-size: 1rem;
        padding: 5px;
        border-bottom: 2px solid #fff;
    }

    td {
        font-size: 1rem;
        padding: 5px;
    }

    button {
        font-size: 1rem;
    }

    .modal-content {
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header {
        padding: 20px;
        border-radius: 12px;
    }

    #modalBody h2 {
        font-size: 1.8rem;
    }

    #modalBody h3 {
        font-size: 1.1rem;
    }

    .modal-body-row {
        flex-direction: column;
        gap: 20px;
    }

    .image-block,
    .ingredients-block {
        flex: 1 1 100%;
        margin-top: 0;
    }

    .image-block {
        order: -1; 
    }

    .ingredients-block {
        order: 0;
    }

    .image-block img {
        max-height: 300px;
    }


    .arrival-col,
    .callsign-col {
      display: none;
    }
    
}


  


