/* general */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: white;
    color: #333;
    padding: 20px;
}

header {
    background-color: #331F26;
    padding: 20px;
    margin-bottom: 30px;
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5);
    border-top-left-radius: 3em;
    border-bottom-right-radius: 3em;
}

header h1 {
    color: white;
    margin-bottom: 10px;
    padding-left: 30px;
    font-size: 2.5em;
}

nav ul {
    list-style-type: none;
}

nav li {
    display: inline;
    margin-right: 20px;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

nav a:hover {
    color: #95B9D0;
}

h2 {
    background-color: #95B9D0;
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 10px 25px;
    border-top-left-radius: 1em;
    border-bottom-right-radius: 1em;
    font-size: 1.7em;
    text-align: center;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.4em;
    font-weight: normal;
}

p {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

ul, ol, dl {
    margin: 20px 30px;
    font-size: 1.2em;
}

main {
    max-width: 1200px;
    margin: 20px auto;
}

footer {
    background-color: #331F26;
    color: white;
    font-weight: bold;
    border-top-left-radius: 2em;
    border-bottom-right-radius: 2em;
    padding: 10px;
    text-align: center;
}

footer a {
    color: white;
}

footer a:hover {
    color: #95B9D0;
}

/* homepage */

dl.three-column  {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

dl.three-column dt {
    font-weight: bold;
    font-size: 1.2em;
    margin: 20px 0;
}

.center {
    width: fit-content;
    margin: 0 auto;
}

/* cv */

blockquote {
    max-width: 600px;
    margin: 40px auto;
    font-weight: bold;
    font-style: italic;
}

.cv {
    display: flex;
    gap: 40px;
    background-color: #d0e4ff;
    margin: 20px;
    border-radius: 1em;
}

.cv div {
    padding: 20px;
}

.cv h2 {
    margin-top: 0;
}

.cv li {
    list-style-type: circle;
    list-style-position: inside;
}

.italic {
    font-style: italic;
}

.bold, time {
    font-weight: bold;
}

time {
    font-size: 1.1em;
}

.column1 {
    flex: 1;
}

.column2 {
    flex: 2;
}

#about {
    text-transform: uppercase;
}

/* projects */

figure img {
    border-radius: 6px;
}

figcaption {
    text-align: center;
    font-style: italic;
    margin-top: 5px;
}

img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* form */

form {
    margin-top: 20px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
}

input[type="submit"] {
    background-color: #331F26;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

input[type="submit"]:hover {
    background-color: #6d4352;
}