/* Global Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

h2 {
    color: #34495e;
    margin-bottom: 10px;
}

/* Recipe List */
.recipe-list ul {
    list-style-type: none;
    padding: 0;
}

.recipe-list li {
    margin: 10px 0;
}

.recipe-list a {
    color: #3498db;
    text-decoration: none;
    font-size: 18px;
}

.recipe-list a:hover {
    text-decoration: underline;
}

/* Recipe Card */
.recipe-card {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.recipe-card h3 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.recipe-card ul, .recipe-card ol {
    margin-left: 20px;
}

.recipe-card ul li, .recipe-card ol li {
    margin-bottom: 10px;
}

/* Return Home Button */
.return-home-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.return-home-btn:hover {
    background-color: #34495e;
}

/* QR Scanner Styles */
.qr-scanner {
    display: none;
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#qrInput {
    margin-top: 20px;
    padding: 10px;
    font-size: 16px;
}

#qrCloseBtn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#qrCloseBtn:hover {
    background-color: #c0392b;
}

#qrScanBtn {
    font-size: 18px;
    color: #3498db;
    text-decoration: none;
}

#qrScanBtn:hover {
    text-decoration: underline;
}

/* Recipe Details Page Styles */
ul#ingredients, ol {
    margin-left: 20px;
    padding-left: 10px;
}

ul#ingredients li {
    list-style-type: none;
    padding: 5px 0;
}

ul#ingredients li span.amount {
    font-weight: bold;
    color: #e74c3c;
}

.note {
    font-style: italic;
    color: #7f8c8d;
    margin-top: 20px;
}

/* Adjustments for the select dropdown */
select {
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    display: block;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

/* Styling for home button */
.home-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.home-button:hover {
    background-color: #34495e;
}

/* Specific Styles for Recipe Pages (Espresso, Mocha, Macchiato) */

/* Espresso Page */
.espresso-page {
    background-color: #fefbd8; /* Light Espresso color */
    padding: 30px;
}

.espresso-page h1 {
    color: #6c4f3d; /* Espresso brown */
}

.espresso-page ul#ingredients li {
    color: #6c4f3d;
}

/* Mocha Page */
.mocha-page {
    background-color: #f2e9e4; /* Mocha cream color */
    padding: 30px;
}

.mocha-page h1 {
    color: #4b3f3a; /* Dark mocha brown */
}

.mocha-page ul#ingredients li {
    color: #4b3f3a;
}

.mocha-page .note {
    font-size: 16px;
    color: #9b8c7c;
}

/* Macchiato Page */
.macchiato-page {
    background-color: #fce4b3; /* Soft caramel color */
    padding: 30px;
}

.macchiato-page h1 {
    color: #c07d3d; /* Caramel brown */
}

.macchiato-page ul#ingredients li {
    color: #c07d3d;
}

.macchiato-page .note {
    font-size: 16px;
    color: #9e6a3f;
}

/* Recipe List Links */
.recipe-list a {
    display: block;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.recipe-list a:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

/* Recipe List Container */
.recipe-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 30px;
}

/* Recipe List Link Titles */
.recipe-list a h3 {
    margin: 0;
    font-size: 20px;
    color: white;
    text-transform: capitalize;
}

/* For large screens, align recipe links side by side */
@media (min-width: 768px) {
    .recipe-list {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .recipe-list a {
        width: 30%;
        margin-bottom: 20px;
    }
}







/* General Body Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Container Styles */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
h1 {
    text-align: center;
    color: #2c3e50;
}

/* Styling for the 'Choose an option below' text */
p {
    text-align: center;
    font-size: 18px;
    color: #2c3e50;
    margin-top: 10px;
}


/* Styling for the QR Code Button */
#qrScanBtn {
    font-size: 18px;
    color: #3498db;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#qrScanBtn:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

/* QR Camera Modal Styles */
#qr-camera {
    display: none;
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#qr-video {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
}

/* Return Home Button */
.home-button {
    padding: 12px 24px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.home-button:hover {
    background-color: #34495e;
}

/* Note Text Style */
.note {
    font-style: italic;
    text-align: center;
    color: #7f8c8d;
    margin-top: 20px;
}



/* Button Styles for Homepage */
.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    align-items: center;
}

.options button {
    padding: 12px 24px;
    font-size: 18px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%; /* Ensure both buttons take up the same width */
    max-width: 300px; /* Maximum width to prevent buttons from getting too wide */
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover Effect for Buttons */
.options button:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}


/* Style for the Stop Scanning Button */
#stopScanningBtn {
    padding: 12px 24px;
    font-size: 18px;
    background-color: #e74c3c; /* Red color */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%; /* Same width as other buttons */
    max-width: 300px;
    text-align: center;
    margin-top: 10px;
}

#stopScanningBtn:hover {
    background-color: #c0392b; /* Darker red on hover */
}
