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