/*
 * CS20 HW3: Joe's Hotdog Stand - styles.css
 * By John Puka
 * 09/30/24
 */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@font-face {
    font-family: 'Lato';
    src: url('E:/VSCode/CS20/HW3/assets/lato.regular.ttf') format('truetype');
}

/* Global Styles */
:root {
    /* Theme Colors */
    --ketchup-red: #D32F2F;
    --mustard-yellow: #FBC02D;
    --grilled-brown: #795548;
    --off-white: #F5F5F5;
    --background-color: #FFF3E0;

    /* Fonts */
    --header-font: 'Bebas Neue', sans-serif;
    --body-font: 'Lato', sans-serif;

    /* Font Sizes (Desktop) */
    --font-size-small: 0.875rem;
    --font-size-smedium: 1.125rem;
    --font-size-medium: 1.5rem;
    --font-size-large: 2rem;
    --font-size-xlarge: 2.5rem;
    --font-size-logo: 3rem;

    /* Font Sizes (Phone) */
    --font-sizeMB-small: 0.75rem;
    --font-sizeMB-smedium: 1rem;
    --font-sizeMB-medium: 1.25rem;
    --font-sizeMB-large: 1.5rem;
    --font-sizeMB-xlarge: 1.75rem;
    --font-sizeMB-logo: 2.25rem;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    background-color: var(--background-color);
    flex: 1;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1 {
    font-family: var(--header-font);
    font-size: var(--font-size-xlarge);
    color: var(--ketchup-red);
    padding: 20px;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

h2 {
    font-family: var(--header-font);
    font-size: var(--font-size-large);
    color: var(--ketchup-red);
}

h3 {
    font-family: var(--body-font);
    font-size: var(--font-size-medium);
    color: var(--grilled-brown);
}

p {
    font-family: var(--body-font);
    font-size: var(--font-size-small);
    color: var(--background-color);
}

label {
    font-family: var(--body-font);
    font-size: var(--font-size-medium);
    color: var(--grilled-brown);
    display: block;
    margin-bottom: 10px;
}

form {
    text-align: center;
}

button {
    background-color: var(--ketchup-red);
    color: var(--background-color);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: var(--font-size-medium);
    font-family: var(--body-font);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--mustard-yellow);
    color: var(--grilled-brown);
}

footer {
    background-color: var(--grilled-brown);
    text-align: center;
    padding: 20px;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    margin-top: auto;
    position: relative;
    left: 0;
}

footer p {
    margin: 0;
}

#order-summary {
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    padding: 20px;
    margin: 20px auto;
    margin-top: 40px;
    margin-bottom: 50px;
    opacity: 0;
    max-width: 600px;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

#order-summary p, #order-summary h2 {
    font-family: var(--body-font);
    font-size: var(--font-size-smedium);
    color: var(--grilled-brown);
}

#order-summary.show {
    opacity: 1; 
    max-height: 1000px;
}

@media (max-width: 1200px) {
    #order-summary {
        margin: 20px 5%;
    }
}

@media (max-width: 768px) {
    #order-summary {
        margin: 20px 8%;
    }
}

@media (max-width: 480px) {
    #order-summary {
        margin: 20px 10%;
    }
}
