/*
    Path of Light Yoga Studio
    Author: Killian Brown
    Date: 10/20/25
*/
body { /* sets the background and text color default for the page */
    color: #40407a;
    background: #40407a; 
    font-family: verdana, arial, sans-serif;
    margin: 0;
}
header { /* sets the color and background image for the header */
    background-color: #40407a;
    color: #FFFFFF;
    background-image: url(sunrise.jpg);
    background-size: 100% 100%;
    font-size: 90%;
    min-height: 200px;

}
header h1:link {  /* sets link color for the header */
    color: #FFFFFF;
}
header h1:visited { /* sets visited color for the header */
    color: #FFFFFF;
}
header h1:hover { /* sets hover color for the header */
    color: #edf5f5;
}
footer { /* sets the color for the footer */
    text-align: center;
    font-style: italic;
    font-size: small;
    clear: right;
}
nav {  /* main nav section that controls a lot of the style */
    text-align: right;
    font-weight: bold;
    background: white;
    margin: 0;
    padding-top: .5em;
    padding-bottom: 1em;
    padding-right: 0;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: auto;
} 
nav a { 
    text-decoration: none;
    box-sizing: border-box;
}
nav ul {
    margin: 0;
    list-style: none;
    padding-right: 2em;
    word-spacing: 1em;
}
nav li {
    display: inline;
    padding-left: 4em;
}
li {
    font-size: 90%;
}
dd {
    font-size: 90%;
}
#wrapper { /* sets up the wrapper ID */
    background-color: #f5f5f5;
    padding: 2em;
    overflow: hidden;
}
.home {  /* sets the titlecard for the index page */
    height: 50vh;
    padding-top: 2em;
    padding-left: 10%;
    height: 20vh;
}
.content { /* sets the titlecard for all except the index page */
    height: 20vh;
    padding-top: 2em;
    padding-left: 10%;
    min-height: 300px;
}
#mathero { /* jpg shortcut */
    height: 300px;
    background-image: url(yogamat.jpg);
    background-size: 100% 100%;
        background-repeat: no-repeat;
    display: none;
}
#loungehero { /* jpg shortcut */
    height: 300px;
    background-image: url(yogalounge.jpg);
    background-size: 100% 100%;
        background-repeat: no-repeat;
    display: none;
}
h2 { 
    margin: 0;
}
section {
    padding-left: .5em;
    padding-right: .5em;
}
#flow {
    display: block;
}
table {
    border: 1px #40407a;
    margin-bottom: 1em;
    border-collapse: collapse;
}
tbody td, th {
    padding: .5em;
    border: 1px solid #40407a;
}
caption {
    margin: 1em;
    font-size: 120%;
    font-weight: bold;
}
table tr:nth-of-type(even) {
    background-color: #D7E8E9;
}
form {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}
input, datalist, textarea {
    margin-bottom: .5em;
}
#comments {
    height: 5em;
}

* {box-sizing: border-box;} /* universal selector, helps configure floats */
@media (min-width: 600px) { /* media query for mid sized html config */
    nav ul {
        flex: none;
        justify-content: flex-end;
    }
    section {
        padding-left: 2em;
        padding-right: 2em;
        flex: 1;
    }
    #mathero { /* jpg shortcut */
        display: block;
        margin-bottom: 1em;
    }
    #loungehero { /* jpg shortcut */
        display: block;
        margin-bottom: 1em;
    }
    #flow {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
  form {
    width: 60%;
    max-width: 40em;
    display: grid;
    grid-gap: 1em;
    grid-template-columns: 9em 1fr;
  }
  submit[grid-column] {
    grid-column: 2;
    width: 9em;
    margin-bottom: .5em;
  }
}
@media (min-width: 1024px) { /* media query for large sized html config */
    header {
        font-size: 120%;
    }
    .home {
        height: 50vh;
        padding-top: 5em;
        padding-left: 8em;
    }
    .content {
        height: 30vh;
        padding-top: 2em;
        padding-left: 8em;
    }
    #wrapper {
        margin: auto;
        width: 80%;
    }
}





/* this section of code for chapter 7 took me
way too long so it gets to stay here as a comment.
not because it was hard, but because it took me to long
to realize i was on the wrong .css sheet. 

.onethird {  
    float: left;
    width: 33%;
    padding-left: 2em;
    padding-right: 2em;
}
.onehalf { 
    float: left;
    width: 50%;
    padding-left: 2em;
    padding-right: 2em;
}
*/