@charset "utf-8";

/* ----------------- HTML & Body ----------------- */
html {
    background-color: #f0f4f8;
    background-image: url('background.jpg'); /* optional background */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

body {
    font-family: Verdana, Geneva, sans-serif;
    color: #333333;
    background-color: rgba(255, 255, 255, 0.9);
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* ----------------- Header ----------------- */
header {
    text-align: center;
    padding: 10px 0; /* optional spacing above and below */
}

/* Header image styling */
header img {
    max-width: 20%;      /* image will use up to 30% of page width */
    height: auto;        /* maintain aspect ratio */
    display: block;
    margin-left: auto;   /* center the image horizontally */
    margin-right: auto;
    border-radius: 10px; /* optional rounded corners for style */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* optional subtle shadow */
}

/* ----------------- Headings ----------------- */
h1, h2 {
    text-shadow: 4px 6px 5px gray;
}

/* ----------------- Navigation ----------------- */
/* Commented old nav styles */
/*
nav {
    background-color: rgb(180, 200, 215);
    padding: 15px;
    text-align: center;
}

nav a {
    padding: 0 10px;
    text-decoration: none;
    color: rgb(40, 40, 40);
}

nav a:hover {
    text-decoration: underline;
    color: rgb(20, 90, 150);
}
*/

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    display: block;
    width: 20%; /* 5 columns */
    float: left;
}

nav a {
    display: block;
    background-color: rgb(180, 200, 215);
    line-height: 2.8em;
    text-decoration: none;
    text-align: center;
    color: rgb(40, 40, 40);
}

nav a:hover {
    background-color: rgb(120, 160, 200);
    color: white;
}

/* ----------------- Main Content ----------------- */
main {
    padding: 20px;
    margin-top: 35px;
}

/* Images inside main only */
main > img {
    width: 25%;
    float: right;
    margin: 0 0 10px 10px;
}

/* ----------------- Footer ----------------- */
body > footer {
    background-color: rgb(180, 200, 215);
    color: rgba(102, 102, 102, 0.6);
    font-weight: bold;
    font-size: 0.9em;
    line-height: 3em;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    clear: both;
}

/* ----------------- Education list ----------------- */
.education-list {
    list-style-type: square;
}
