/*
Path of Light Yoga Studio
Author: Abdulmuhsim Ibrahim
Date: 11/11/25
*/

/* Universal Reset */
/* Includes padding and border in width */
* {
    box-sizing: border-box;
}

/* Base Styles */
/* Default page background, text, font */
body {
    margin: 0;
    background-color: #40407A;
    color: #40407A;
    font-family: "Arial", sans-serif;
}

/* Layout */
/* Main container with light background */
#wrapper {
    background-color: #F5F5F5;
    padding: 2em;
}

/* Header */
/* Header with background image, white text */
header {
    margin-top: 50px;
    min-height: 200px;
    background-color: #40407A;
    background-image: url(sunrise.jpg);
    background-size: 100% 100%;
    color: #FFFFFF;
    font-size: 90%;
}

/* Removes underline from header links */
header a {
    text-decoration: none;
}

/* Unvisited links are white */
header a:link {
    color: #FFFFFF;
}

/* Visited links remain white */
header a:visited {
    color: #FFFFFF;
}

/* Header links lighter on hover */
header a:hover {
    color: #EDF5f5;
}

/* Navigation */
/* Fixed navigation bar at top */
nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: auto;
    margin: 0;
    padding-top: 0.5em;
    padding-bottom: 1em;
    padding-right: 0;
    background-color: #FFFFFF;
    text-align: right;
    font-weight: bold;
}

/* Removes underline from nav links */
nav a {
    text-decoration: none;
}

/* Unvisited nav links are purple */
nav a:link {
    color: #3f2860;
}

/* Visited nav links are teal */
nav a:visited {
    color: #497777;
}

/* Nav links orange on hover */
nav a:hover {
    color: #A26100;
}

/* Removes nav list bullets */
nav ul {
    list-style-type: none;
    margin: 0;
    padding-right: 2em;
    font-size: 1.2em;
}

/* Nav items inline with spacing */
nav li {
    display: inline;
    padding-left: 4em;
}

/* Main Content */
/* Horizontal padding for sections */
section {
    padding-left: 0.5em;
    padding-right: 0.5em;
}

/* Removes h2 default margin */
h2 {
    margin: 0;
}

/* Footer */
/* Footer: small italic centered text */
footer {
    clear: right;
    font-size: small;
    font-style: italic;
    text-align: center;
}

/* Classes */
/* Home section height and padding */
.home {
    height: 50vh;
    padding-top: 6em;
    padding-left: 8em;
}

/* Content sections height and padding */
.content {
    height: 20vh;
    padding-top: 2em;
    padding-left: 10%;
    padding-bottom: 2em;
}

/* IDs */
/* Mat hero image, hidden on mobile */
#mathero {
    display: none;
    height: 300px;
    background-image: url(yogamat.jpg);
    background-size: 100% 100%;
}

/* Lounge hero image, hidden on mobile */
#loungehero {
    display: none;
    height: 300px;
    background-image: url(yogalounge.jpg);
    background-size: 100% 100%;
}

/* Main content flow, block display */
#flow {
    display: block;
}

/* Lists and Description Lists */
/* Smaller font size for list items */
li, dd {
    font-size: 90%;
}

/* Tables */
/* Table border, collapsed cells */
table {
    border: 1px solid #40407A;
    border-collapse: collapse;
    margin-bottom: 1em;
}

/* Table caption: larger bold text */
table caption {
    margin: 1em;
    font-size: 120%;
    font-weight: bold;
}

/* Table cells: padding and border */
td, th {
    padding: 0.5em;
    border: 1px solid #40407A;
}

/* Alternating row background colors */
tr:nth-of-type(even) {
    background-color: #d7e8e9;
}
/*Form 1 Column*/
/* Form elements in single column */
form {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
}

/* Spacing below form inputs */
input, datalist, textarea {
margin-bottom: 0.5em;
}

/* Media Queries */
/* Tablets and larger screens (600px+) */
@media (min-width: 600px) {
    /* Nav items in flex row, right-aligned */
    nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    /* Sections flexible, increased padding */
    section {
        flex: 1;
        padding-left: 2em;
        padding-right: 2em;
    }

    /* Shows mat hero on larger screens */
    #mathero {
        display: block;
        margin-bottom: 1em;
    }

    /* Shows lounge hero on larger screens */
    #loungehero {
        display: block;
        margin-bottom: 1em;
    }

    /* Content flow: flex layout side-by-side */
    #flow {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
        /* Form: 2-column grid layout */
        form {
                display: grid;
                width: 60%;
                max-width: 40em;
                grid-template-columns: 9em 1fr;
                gap: 1em;
        }
        /* Submit button in second column */
        input[type="submit"] {
                grid-column: 2 / 3;
                width: 9em;
                margin-bottom: 0.5em;
        }
        /* Spacing for form elements */
        input, datalist, textarea {
                margin-bottom: 0.5em;
        }
}

/* Desktop screens >1024pixels */
@media (min-width: 1024px) {
    /* Larger header font on desktop */
    header {
        font-size: 120%;
    }

    /* Home section padding for desktop */
    .home {
        height: 50vh;
        padding-top: 5em;
        padding-left: 8em;
    }

    /* Content section height for desktop */
    .content {
        height: 30vh;
        padding-top: 2em;
        padding-left: 8em;
    }

    /* Wrapper centered, 80% width */
    #wrapper {
        width: 80%;
        margin: auto;
    }
}
