@charset "utf-8";

/* 4. Body styles */
body { margin: 0; 
    width: 90%; 
    margin-left: auto; 
    margin-right: auto; 
    background-color: rgb(230,90,80); 
    color: white; 
    font-family: Verdana, Geneva, sans-serif; }

/* 5. Header section */
header {
    text-align: center;
    padding: 20px;
}

/* 6. h2 elements */
h2 {
    font-size: 1.3em;
}
h1, h2 {
    text-shadow: 4px 6px 5px gray;
    color: white; 
}

/* 7. Navigation section */
nav {
    background-color: rgb(42,127,127);
    padding: 15px;
    text-align: center;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
nav li {
    display: block;
    width: 20%;
    float: left;
}

/* 8. Links inside nav */
nav a {
    display: block;
    background-color: rgb(42, 127, 127);
    line-height: 2.8em;
    text-decoration: none;
    text-align: center;
    color: white;
}


/* 9. Hover effect for nav links */
nav a:hover {
    background-color: rgb(244,180,0);
    color: white;
}


/* 10. Main element */
main {
    padding: 20px;
    margin-top: 35px;

}

/* 11. Image styling */

main > img {
    width: 25%;
    padding: 10px;
    float: right;
    margin-left: 20px;
}
header img {
    width: 100%;
    height: auto;
}

/* 12. Footer styling */
body > footer {
    background-color: rgb(42,127,127); /* matches nav */
    color: black;
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    clear: both;
}

/* 13. Custom list marker for education page */
ul.education-list {
    list-style-type: square; /* change to any non-default marker */
}

html {
    background-color: rgb(42,127,127); /*fallback color */
    background-image: url("background.jpg");  
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
