@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap');

html, body {
    margin: 0;
    padding: 0;
    font-family: Ubuntu, ui-sans-serif, system-ui,  sans-serif;
    font-size: 21px;
}

h1 {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    font-size: 150%;
    border-bottom: 1px solid pink;
}

p {
    color: #606060;
    font-size: 80%;
    line-height: 150%;
}

input {
    font-family: inherit;
}

button {
    font-family: inherit;
}

#input-form {
    position: relative;
    width: 67%;
    margin: 0 auto;
}

#buttons {
    margin-top: 2rem;
    margin-bottom: 2rem;
    overflow: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;  /* Space between buttons */
}

.product-button {
    position: relative;
    flex: 1 1 calc(33.333% - 10px);
    min-height: 6.5rem;
    padding: 1rem;
    background-color: #f4f4f4; /* Add some background for visibility */
    border: 1px solid #ccc; /* Optional: border for better visual separation */
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute space evenly */
}

.product-button:hover {
    background-color: #e0e0ff; /* Add some background for visibility */
    cursor: pointer;
}

.product-button > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: start;
    width: 100%;
    margin-bottom: 0.5rem
}

.product-name {
    margin: 0;
    text-align: left;
}

.product-price {
    margin: 0;
    text-align: right;
    font-size: 0.7rem;
    font-weight: bold;
    color: #aaa;
    rotate: 5deg;
    border: 1px solid #aaa;
    padding: 0.1rem 0.4rem;
    background-color: white;
}

.product-description {
    font-size: 14px;
    color: #666;  /* Lighter color for description */
    line-height: 1.4; /* Better line spacing */
    word-wrap: break-word; /* Wrap text properly if it exceeds container width */
    text-align: left;
}


#response-container {
    float: right;
    font-size: 0.8rem;
}

#response-message {
    font-weight: bold;
    color: #aaa;
}

#footnote {
    font-size: 14px;
    padding-bottom: 2rem;
}

#deliver-container {
    display: block;
    margin: 4rem auto;
    width: 67%;
}


/* Media Query for Mobile Phones in Portrait Mode */
@media (max-width: 874px) {

    #deliver-container {
        margin: 2rem auto;
        width: 90%;
    }

    #input-form {
        position: relative;
        margin: 2rem auto;
        width: 90%;
        left: 0;
        top: 0;
        transform: none;
    }

    #buttons {
        gap: 0.5rem;  /* Reduce space between buttons on small screens */
        flex-direction: column;
    }

    .product-button {
        width: 100%;  /* Make buttons full width on small screens */
        min-height: 5.5rem;
        height: auto;  /* Allow height to adjust based on content */
        padding: 0.75rem;  /* Slightly reduce padding to save space */
    }
}
