@charset "utf-8";

/*
   New Perspectives on HTML5 and CSS3, 8th Edition
   Tutorial 3
   Case Problem 1
   
   Layout styles for Slate and Pencil Tutoring
   Author: Kyle Snyder
   Date:   10/6/24
   
   Filename: sp_layout.css

*/

/* Window and Body Styles */
html {
   height: 100%;

}

body {
   width: 95%;
   height: 100%;
   min-width: 640px;
   max-width: 960px;
   margin: 0px auto;      
   padding: 0;              /*For whatever reason, the margin styles located */
   border: 0;               /* in sp_base.css was taking priority over the margin */
   font-size: 100%;         /* styles here. so i removed body from sp_base and put */
   vertical-align: baseline;/* the styles in that grouping here. (other than the margin styles)*/
   background: transparent; 
}

img {
   display: block;
}


/* CSS Grid Styles */
body {
   display: grid;
   grid-template-columns: 1fr 1fr 1fr 1fr;
}

img#logo {
   grid-column: 1/span 3;
   width: 100%;
}

nav.horizontal, footer {
   grid-column: 1/span 4;
}

aside {
   grid-column: span 2;
}


/* Horizontal Navigation List Styles */
nav.horizontal li {
   display: block;
   width: 12.5%;
   float: left;
}


/* Section Styles */
section img {
   width: 50%;
   margin: 0px auto;
}

section > p {
   width: 70%;
   margin: 0px auto;
}



/* Customer Comment Styles */
aside {
   width: 75%;
   padding-bottom: 30px;
}

aside:nth-of-type(odd) {
   justify-self: end;
}

aside > img {
   float: left;
   width: 20%;
}

aside p {
   width: 75%;
   margin-left: 5%;
}