@charset "utf-8";

/*
   New Perspectives on HTML5 and CSS3, 7th Edition
   Tutorial 3
   Case Problem 1
   
   Layout styles for Slate and Pencil Tutoring
   Author: (your name)
   Date:   2026-03-01
   
   Filename: sp_layout.css

*/

/* Window and Body Styles */

body {
   width: 95%;
   max-width: 960px;
   min-width: 640px;
   margin: 0 auto;
}

body > ul {
   list-style: none;
}


/* Row Styles */

.row::after {
   content: "";
   display: table;
   clear: both;
}

.row {
   width: 100%;
}


/* Page Header Styles */

body > header > img {
   display: block;
   float: left;
   width: 70%;
}

body > header > nav {
   float: left;
   width: 30%;
}

body > header > nav ul {
   margin-top: 20px;
}

body > header > nav li {
   display: block;
}

body > header > nav a {
   display: block;
   width: 100%;
   box-sizing: border-box;
}


/* Horizontal Navigation List Styles */

nav.horizontal li {
   display: block;
   float: left;
   width: 12.5%;
}

nav.horizontal a {
   display: block;
}


/* Topics Styles */

ul#topics {
   list-style: none;
}

ul#topics li {
   float: left;
   width: 25%;
   padding: 10px;
   box-sizing: border-box;
}

ul#topics li img {
   display: block;
   width: 100%;
}


/* HR Styles */

hr {
   clear: both;
   width: 90%;
   margin: 0 auto;
}


/* Customer Comment Styles */

ul#comments {
   list-style: none;
   margin: 20px 0;
}

ul#comments li {
   float: left;
   width: 33.33%;
   padding: 10px;
   box-sizing: border-box;
}

ul#comments li img {
   display: block;
   float: left;
   width: 20%;
   margin: 5px 10px 0 0;
}

ul#comments li p {
   float: left;
   width: 75%;
}


/* Footer Styles */

footer {
   clear: both;
}
