/* 
    University of Southern Queensland
    CSC5740 Client-Side Web Technology
    Trimester 1, 2026

    Assignment 4: Project
 
    Student: Brett Jenaway
    Student No: W0104215

    Garden Indian Restaurant Website Design
*/

/* Declare fonts and colors as variables */
* {
    font-family: 'Lato', Calibri, sans-serif, Serif;
    --logo-font: 'Lato';
    --menu-font: 'Inter';
    --script-font: 'Kristi';
    --heading-font: 'Inter';
    --background-color: #F2F0EF;
    --text-accent-color: rgb(165, 127, 77);
    --text-accent-color-dark: rgb(116, 88, 52);
}

body {
    margin: 0;
    background-color: var(--background-color);
}


/******* Hero Image & Text *******/
#hero-image {
    width: 100%;
    opacity: 70%;
    max-height: 100vh;
    object-fit: cover;

}

/* 50% transparent black background  */
.transparent-bg {
    background-color: rgba(0, 0, 0, 0.5);

}

#hero-image-section {
    position: relative;
    text-align: center;
    color: white;
    top: 0;
    z-index: -1;
}

/* Hero image logo text */
#logo-name {
    text-transform: uppercase;
    font-family: var(--logo-font), sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#logo-name h1 {
    font-size: 4em;
    line-height: 0.5em;
    font-weight: 900;
}

#logo-name h2 {
    font-size: 3em;
    line-height: 0.5em;
    font-weight: 900;
}

#logo-name p {
    font-size: 1.2em;
    font-weight: 900;
}



/****** Top Menu Bar ******/
nav {
    position: absolute;
    background: linear-gradient(to bottom, black, transparent);
    padding: 0;
    margin: 0;
    width: 100%;
    z-index: 10;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
}

nav a {
    font-family: var(--menu-font), sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 800;
    color: #fff;
    display: block;
    padding: 1em;
}

nav a:hover {
    color: #AAAAAA;
    border-color: #AAAAAA;
    transition: 0.2s;
}

.menu-button {
    border: 3px solid #fff;
    border-radius: 5px;
}

/* Hamburger button */

#hamburger {
    text-align: center;
    display: none;
}

/* Sub-menu */
nav li {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(38, 38, 38, 0.8);
    border-radius: 2px;
    padding: 0;
    color: white;
    width: 9em;
}


.dropdown:hover .submenu {
    display: block;
}

/****** Footer ******/

#footer-nav {
    background-color: #262626;
    display: flex;
    justify-content: space-evenly;
    color: white;
}

#footer-copyright {
    background-color: #1B1B1B;
    border-top: solid 1px #444444;
    color: #999999;
    width: 100%;
}

#footer-copyright p {
    margin: 0 auto;

    padding: 0.8em 0;
    text-align: center;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin: 0.4em 0;
    color: #AAAAAA;
}

footer a {
    text-decoration: none;
    color: white;
    margin: 0.2em 0;
}

footer a:hover {
    color: #AAAAAA;
    transition: 0.2s;
}

footer h4 {
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0;
}


/******* Main Body  *******/
/* Home Page */


/* Homepage Card */
.card {
    display: flex;
    justify-content: center;
    max-width: 1000px;
    margin: 2em auto;
    align-items: center;
}

.card img {
    height: 500px;
    width: 400px;
    object-fit: cover;
    border-radius: 1em;
    border: 1px solid var(--line-color);
    box-shadow: 0 25px 50px -12px #cccccc;
}

.card p {
    width: 75%;
    margin: 2em auto;
    font-size: 1.2em;
}

.card-text {
    border: 1px solid var(--line-color);
    border-radius: 1em;
    box-shadow: 0 25px 50px -12px #cccccc;
    text-align: center;
    max-height: 300px;
    max-width: 500px;
    background-color: #fff;
    padding: 2em 0 3em 0;
    z-index: 2;
}

.card-left {
    margin-left: -30px;
}

.card-right {
    margin-right: -30px;
}

.card-heading-italic {
    font-family: var(--script-font), sans-serif;
    font-size: 4em;
    margin: 0 0 -10px 0;

    color: var(--text-accent-color);
    font-weight: 400;
    max-width: 90%;
    margin: 0 auto;
}

.card-heading-regular {
    font-family: var(--heading-font), sans-serif;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -2px;
    font-size: 3em;
    max-width: 90%;
    margin: 0 auto;

}

.page-button {
    color: var(--text-accent-color);
    border-radius: 5px;
    border: 2px solid var(--text-accent-color);
    text-decoration: none;
    padding: 0.8em;
    font-weight: 600;
}

.page-button:hover {
    color: var(--text-accent-color-dark);
    border-color: var(--text-accent-color-dark);
    transition: 0.2s;
}


/******** Menu Pages ********/
.food-menu {
    border: 1px solid var(--line-color);
    border-radius: 1em;
    box-shadow: 0 25px 50px -12px #cccccc;
    text-align: center;
    width: 80%;
    max-width: 800px;
    background-color: #fff;
    padding: 2em 0 3em 0;
    z-index: 2;
    justify-content: center;
    max-width: 1000px;
    margin: 2em auto;
    align-items: center;
}

.food-menu h3 {
    font-family: var(--script-font);
    font-size: 3em;
    font-weight: 400;
    color: var(--text-accent-color)
}


takeaway-form {
    border: none;
}

.dish {
    display: grid;
    grid-template-columns: auto minmax(0, 50px);
    width: 70%;
    margin: auto;
    padding-bottom: 1em;
}

.takeaway {
    display: grid;
    grid-template-columns: auto minmax(0, 50px) 50px;
    width: 70%;
    margin: auto;
    padding-bottom: 1em;
}

.dish-name {
    text-align: left;
    font-size: 1.5em;
    display: flex;
    gap: 0.5em;
    margin: 0;
    white-space: nowrap;
    align-items: end;
}

/* Add a dynamic line of dots between the dish name and the price */
.dish-name::after {
    content: "";
    flex: 1;
    border-bottom: 2px dotted #999;
}

.lunch::after {
    border-bottom: none;
}



.dish-description {
    display: flex;
    align-items: flex-end;
    text-align: left;
    padding-top: 0.5em;
    margin: 0;
    max-width: 80%;
}


.dish-price {
    font-size: 1.5em;
    margin: auto 0;
    text-align: right;
}

.spice-mild {
    color: #1b8a5a;
}

.spice-medium {
    color: #f8b90b;
}

.spice-hot {
    color: #ee3e32;
}

#spice-level {
    margin: 0 auto;
    width: 40%;
    margin-top: 0.5em;
    background-color: #fafafa;
    padding: 0.8em 0;
    border-radius: 8px;
    border: 1px solid var(--line-color);
    border-radius: 1em;
}

.hidden {
    display: none !important;
}

#menu-nav {
    width: 80%;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
}

#menu-nav li {
    text-decoration: none;
    padding: 1em;
    margin: 0;
}

.food-menu-button {
    font-size: 1.2em;
    border: none;
    background: none;
}

.food-menu-button:hover {
    color: var(--text-accent-color-dark);
    cursor: pointer;
}

.food-menu-button.active {
    color: var(--text-accent-color);
    text-decoration: underline;
    font-weight: 600;
}

.lunch {
    text-align: center;
    display: block;
    margin: 0 auto;
}

.menu-section h3 {
    margin: 0.5em 0;
}

.menu-section {
    padding-bottom: 1em;
}

.card-description {
    width: 60%;
    margin: 1em auto;
}

.menu-notes {
    color: #999999;
    font-size: small;
    max-width: 80%;
    margin: 0 auto;
}

/****** Takeaway Form ******/
/* Customer details */

#customer-details {
    max-width: 100%;
    margin: 0 auto;
    font-family: var(--menu-font), sans-serif;
    border: none;
    grid-column: 1 / -1;
    text-align: center;
}

#customer-details label {
    font-size: 1.2em;
    margin: 0 0.5em;
    color: var(--text-accent-color-dark);
}

.text-input {
    margin: 1em 0;
    font-size: 1em;
    padding: 0.3em;
    max-width: 8em;
    border: 2px solid lightgrey;
    border-radius: 8px;
}

input:focus {
    outline: none;
    border-color: var(--text-accent-color);
    box-shadow: 0 0 5px var(--text-accent-color);
}

.form-button {
    border: 2px solid lightgrey;
    font-size: 1.2em;
    padding: 0.5em;
    color: var(--text-accent-color-dark);
    min-width: 1em;
    border-radius: 8px;
    font-weight: 600;
}

.form-button:active {
    background-color: #DDD;
    outline: none;
    border-color: var(--text-accent-color);
    box-shadow: 0 0 5px var(--text-accent-color);
}


/* Quantity buttons */
.quantity-input {
    border: none;
    max-width: 25px;
    font-size: 1em;
    text-align: center;
    border: 2px solid lightgrey;
    border-left: none;
    border-right: none;
    font-family: var(--menu-font), sans-serif;
    color: var(--text-accent-color-dark);
}

.quantity {
    display: flex;
    margin-left: 1em;
}


.quantity-button {
    border: 2px solid lightgrey;
    font-size: 2em;
    color: var(--text-accent-color-dark);
    min-width: 1em;
    text-align: center;
}

.quantity-button:active {
    background-color: #DDD;
    outline: none;
    border-color: var(--text-accent-color);
    box-shadow: 0 0 5px var(--text-accent-color);
}

.minus {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.plus {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}





/* Hide spinner buttons from input number text boxes
   Source: W3 Schools
   https://www.w3schools.com/howto/howto_css_hide_arrow_number.asp
   Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


#order-total {
    display: grid;
    grid-template-columns: auto 7em 5em;
    width: 70%;
    margin: 0 auto;
    text-align: left;
}

.orderTotalHeading {
    font-size: 1.5em;
}

.orderTotalItem {
    font-size: 1.1em;
}

.orderTotalItemNumber {
    text-align: center;
}


.totalItems {
    color: var(--text-accent-color-dark);
    background-color: #EEE;
    padding: 1em 0;
}


.orderTotalItemName {
    padding-left: 0.5em;
}

#success h3 {
    margin: 0.5em 0 0 0;
}

#success button {
    margin: 1em;
}

#review-order-button,
#submit-order {
    margin-top: 1em;
}

.errorLabel {
    color: #b61307
}

/* Reservation Page */
#reservation-input {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 60%;
    margin: 0 auto;
    text-align: left;
    border: none;
}

.reservation-input {
    margin: 0.5em 0;
    font-size: 1em;
    padding: 0.5em;
    border: 2px solid lightgrey;
    border-radius: 8px;
}

.reservation-label {
    margin: 0.5em 0;
    font-size: 1em;
    padding: 0.5em;

}

.invalid {
    border: 2px solid red;
    background-color: #ffe6e6;
}

.invalidtext {
    color: red;
    text-align: center;
    margin-top: 1em;
}

#reservationTime {
    display: flex;
    align-items: center;
}

#reservationTime label,
#reservationTime input,
#barService {
    margin-right: 1em;
}


.card-text-about {
    border: 1px solid var(--line-color);
    border-radius: 1em;
    box-shadow: 0 25px 50px -12px #cccccc;
    text-align: center;
    max-width: 500px;
    background-color: #fff;
    padding: 2em 0 1em 0;
    z-index: 2;
}

.about-third {
    padding-bottom: 3em;
}

#location {
    background-color: #fff;
    margin: 3em 0;
    box-shadow: 0 25px 50px -12px #cccccc;
}

#location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 80%;
    margin: 0 auto;
    padding: 1em 0;
    gap: 2em;
    align-items: center;
}

iframe {
    border: 1px solid black;
}

#location-grid img {
    max-width: 600px;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
}

#opening-hours {
    text-align: center;
    padding-bottom: 2em;
}

#opening-hours a {
    font-family: var(--menu-font), sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-accent-color);
    display: block;
    padding: 1em;
    width: 8em;
    margin: 0 auto;
    border: 3px solid var(--text-accent-color);
    border-radius: 5px;
}

#opening-hours a:hover {
    color: var(--text-accent-color-dark);
    border-color: var(--text-accent-color-dark);
    transition: 0.2s;
}


/* Menus Page */
#menus {
    background-color: #fff;
    margin: 3em 0;
    box-shadow: 0 25px 50px -12px #cccccc;
}

#menus h2 {
    text-align: center;
}

#menus-images {

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 0 auto;
    padding: 1em 0;
    gap: 2em;
    align-items: center;
    max-width: 80%;
}

.menu-image-section {
    position: relative;
    text-align: center;
    color: white;
    top: 0;
}

.menu-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    opacity: 75%;
    border-radius: 10px;
}

/* Hero image logo text */
.menu-name {
    text-transform: uppercase;
    font-family: var(--logo-font), sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.menu-name h1 {
    color: #fff;
    font-size: 2.5em;
    margin: 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

#design-report {
    width: 60%;
    margin: 0 auto;
    padding-bottom: 2em;
}

#design-report h2 {
    text-align: center;
}