/* CSS Styles */
*{
    font-family: "Montserrat", sans-serif;
    box-sizing: border-box;
}
body {
    background-color: #efd0c0;
    background-image: url(images/moroccan-flower.png);
    margin: 0;
}
h1{
    font-size: 2.5rem;
    color: #404040;
}
h2{
    font-size: 2rem;
    color: #404040;
}
p, ul, ol{
    font-size: 1rem;
    color: #404040;
}
a:link {
    color: #0081e3;
    text-decoration: none;
}
a:hover, a:visited {
    color: #005799;
    text-decoration: underline;
}

img {
    max-width: 100%;
}

/*button style */
.button a:link, .button a:visited {
    color: #666;
    border: #666 thin solid;
    padding: 10px 0;
    display: block;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}
.button a:hover {
    border: #000 thin solid;
    color: white;
    background-color: #000;
}

/*header styles*/
header {
    background-color: #004d5d;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
    padding: 0 5%;
    height: 90px;
}
header h1 {
    grid-column: 1 / span 6;
    margin-top: 15px;
}
header h1 a:link {
    color: white;
    text-decoration: none;
}

header h1 a:hover,
header h1 a:visited {
    color: white;
    text-decoration: underline;
}
header nav {
    grid-column: 7 / span 6;
}
header nav ul {
    display: flex;
    justify-content: flex-end;
    list-style-type: none;
    padding: 0;
    margin-top: 30px;
}
header nav li a:link {
    color: white;
    font-size: 1.5rem;
    padding: 0 2rem;
    text-decoration: none;
}
header nav li a:hover, 
header nav li a:visited {
    color: white;
    text-decoration: underline;
    font-size: 1.5rem;
    padding: 0 2rem;
}

.pic {
    width: 275px;
}

.container {
    background-color: white;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 35px 5% 0 5%;
}
/* Homepage Content Styles */
.home {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
}
.about {
    grid-column: 1 / span 8;
    padding: 0 5% 2rem;
}
.photo {
    grid-column: 9 / span 4;
}

/* Project Content Styles */
.project1_image {
    grid-column: 1 / span 5;
    width: 350px;
}
.project1_text {
    grid-column: 6 / span 8;
    padding: 0 5% 2rem;
}
.project2_image {
    grid-column: 1 / span 4;
    width: 400px; 
}
.project2_text {
    grid-column: 5 / span 8;
    padding: 0 5% 2rem;
}
.project3_image {
    grid-column: 1 / span 4;
    width: 800px;
}
.project3_text {
    grid-column: 1 / span 9;
    padding: 0 5% 2rem;
}
.project4_image {
    grid-column: 1 / span 4;
    width: 850px;
}
.project4_text {
    grid-column: 1 / span 7;
    padding: 0 5% 2rem;
}



/* Work Page Content Styles */
.work {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.work div {
    text-align: center;
    padding: 0 5% 5% 5%;
}

.work img {
      border: #000 thin solid;
}


/* 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 0.5rem;
}
footer ul a:link, footer ul a:visited {
    color: #666;
}
footer ul a:hover {
    color: #333;
}


/* Media Queries for responsive website */
@media (max-width: 728px) {
    .about, .photo,.project1_image, .project1_text, .project2_image, .project2_text, .project3_image, .project3_text, .project4_image, .project4_text {
        grid-column: 1 / span 12;
    }
    .work {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
}
header {
    background-color: #004d5d;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
    padding: 0 5%;
    height: 120px;
}

}