@charset "utf-8";

/*
   New Perspectives on HTML5 and CSS3, 8th Edition
   Tutorial 3
   Case Problem 1
   
   Layout styles for Slate and Pencil Tutoring
   Author: Matt Johnson
   Date:   10/7/24
   
   Filename: sp_layout.css

*/

/* Window and Body Styles */
html {
   height: 100%;
}

body {
   width: 95%;
   min-width: 640px;
   max-width: 960px;
   margin: auto;
   min-height: 100%;
}

img {
   display: inline-block;
}

/* CSS Grid Styles */

body {
   display: grid;
   grid-template-columns: 1fr 1fr 1fr 1fr;
}

img#logo {
   width: 100%;
   grid-column: span 3;

}



/* Horizontal Navigation List Styles */
nav.horizontal {
   grid-column: span 4;
}

nav.horizontal li {
   display: block;
   width: 12.5%;
   float: left;
}

footer {
   grid-column: span 4;
}

aside {
   grid-column: span 2;
}

/* Section Styles */

section img {
   display: inline;
   width: 50%;
   margin-top: 0px;
   margin-bottom: 0px;
   margin-left: auto;
   margin-right: auto;
}

section p {
   width: 70%;
   margin-top: 0px;
   margin-bottom: 0px;
   margin-left: auto;
   margin-right: auto;
   margin-left: 5%;

}

/* Customer Comment Styles */

aside {
   width: 75%;
   padding-bottom: 30px;
   grid-column: span 2;
}

aside:nth-of-type(odd) {
   justify-self: right;
}

aside img {
   float: left;
   width: 20%;
}

aside p {
   float: left;
   width: 75%;
}