*,
::before,
::after {
    box-sizing: border-box;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif, Apple Color Emoji, "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
    min-height: 80vh;
    max-width: 800px;
    margin: 20px auto 10px;
    padding: 10px;
    display: grid;
}

/* max width appropriate for phones in body */
@media screen and (max-width: 800px) {
    body {
        max-width: 100%;
    }
}

.profile-container img {
    border-radius: 50%;
}

.blog-page img {
    max-width: 400px;
    height: auto;
}

.blog-page {
    line-height: 1.5em;
}

.blog-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.blog-list p {
    margin: 0; /* Remove default paragraph margin */
}

.blog-list h2 {
    margin: 0; /* Remove default heading margin */
}

.blog-list-intro {
    margin-left: 7.75rem;
}

@media screen and (max-width: 800px) {
    .blog-page {
        line-height: 1.2em;
    }

    .blog-page img {
        max-width: 100%;
    }
}

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

header nav li {
    margin-right: 20px;
}

header nav li:first-child {
    margin-left: 0;
}

header nav a {
    text-decoration: none;
}

header nav a.active {
    text-decoration: underline;
}
.profile-container {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    flex-direction: row;
}

.profile-text {
    padding: 50px;
    text-align: left;
}

.hero-section button {
    border: none;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 8px;
    margin: 4px 2px;
    cursor: pointer;
}

.hero-section button:hover {
    background-color: #4CAF50;
    color: white;
}

@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        text-align: center;
    }

    .profile-text {
        padding: 20px;
        text-align: center;
    }
}

.blog-posts {
    text-align: left;
}

a {
    color: currentColor;
}

footer {
    text-align: center;
}


.template-homepage main {
    text-align: center;
}

.skip-link {
    position: absolute;
    top: -30px;
}

.skip-link:focus-visible {
    top: 5px;
}

.page-form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
}

.page-form :is(textarea, input, select) {
    width: 100%;
    max-width: 500px;
    min-height: 40px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.page-form .helptext {
    font-style: italic;
}
