/* CSS Styles */
*{
   font-family: "DM Serif Text", serif;
  font-weight: 400;
  font-style: normal;
  box-sizing: border-box;
}

body{
    background-color: rgb(217, 232, 255);                                                           
    background-image: url(images/tanback.png);
    margin: 0;
}
h1{
    font-size: 3rem;
    color: #cee2ff;
}
h2{
    font-size: 1.5rem;
    color: rgb(72, 70, 93);
}
p, ul, ol {
    font-size: 1rem;
    color: rgb(47, 48, 53);
}

a:link {
    color: rgb(72, 70, 93);
    text-decoration: none ;
}
a:hover, a:visited {
    color:rgb(129, 129, 152);
    text-decoration: underline;
}


/* Button Style*/
.button a:link, .button a:visited{
    border: rgb(72, 70, 93) thin solid;
    color:rgb(217, 232, 255);
    background-color: rgb(72, 70, 93);
    padding: 10px 18px;
    display: inline-block; /* allow button to size to its content */
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}
.button a:hover {
    border: rgb(217, 232, 255) thin solid;
    color:rgb(72, 70, 93);
    background-color: rgb(217, 232, 255);
}

/* Ensure the .button container has no unexpected margins when used in .photo */
.button {
    margin: 0.5rem 0 0 0
}

/* Header Styles */
header {
    background-color: rgb(72, 70, 93);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
    padding: 0 5%;
    text-transform: uppercase;
    height: 110px;
}
header h1{
    grid-column: 1 / span 6;
    margin-top: 25px;
}
header nav{
    grid-column: 7 / span 6;
}
header h1 a:link,
header h1 a:hover
header h1 a:visited {
    color: white;
    text-decoration: none;
}

header nav ul {
    display: flex;
    justify-content: flex-end;
    list-style-type: none;
    padding: 0;
    margin-top: 30px;
}

header nav li a:link,
header nav li a:hover
header nav li a:visited {
    color: white;
    text-decoration: none;
    padding: 0 2rem;
}

.pic{
    width: 350px;
    height: 280.925px;
}

/* add a small bottom margin on the image to ensure breathing room */
.pic{
    margin-bottom: 0.5rem;
}

.container {
    background-color:#bcd7ff;
    width: 95%;
    max-width: 1000px;
    margin: 0 auto; /* center the container in the viewport */
    padding: 35px 5% 0 5%; 
}


/* Homepage content styles*/
.home {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem; /* increased gap between columns (and rows) so .photo and .about have more space */
    align-items: start; /* align grid items' top edges so .photo lines up with .about's content */
    justify-content: center;
}

.about {
    grid-column:1 / span 8;
    padding: 0 5% 2rem 0;
}
.about h2 {
    margin-top: 0; /* remove default heading top margin so it sits at the top of the article */
}
.photo {
    grid-column: 9 / span 4;
    /* place photo and its button at the top of the column, centered horizontally */
    display: flex;
    flex-direction: column;
    align-items: center;     /* center horizontally */
    justify-content: flex-start; /* move content to the top of the column */
    gap: 0.75rem;
    padding-top: 0rem; /* no extra top offset so it lines up with the heading */
}

/* Work Page Content Styles */
.work {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.work div{
    text-align: center;
    padding: 0 5% 5%;
}

/* Make images responsive inside the two-column work grid */
.work img {
    width: 100%;
    height: auto;
    display: block;
}



/* Footer Styles */
footer {
    text-align: center;
    padding: 1.5rem;
    margin: .5rem 3.5rem;
    border-top: #666 solid thin;
}

footer ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

footer ul a {
    display: block;
    padding: 0 .5rem;
}





