:root {
  --header-color: antiquewhite;
  --header-color: aliceblue;
  --footer-color: var(--header-color);
  --headings-font: 'Raleway', sans-serif;
  --text-font: 'Alegreya Sans', sans-serif;
}

body, html {
    height: 100%;
    margin: 0;
}

body {
    padding: 0;
    margin: 0;
    font-size: larger;
    display: flex;
    flex-direction: column;
    font-family: var(--text-font);
}

nav {
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--headings-font);
    border-bottom: 1px dotted grey;
}

nav a {
    padding: 10px;
    text-decoration: none;
}

.languagesBox {
    padding-top: 10px;
}

.languagesBox a {
    padding: 5px; 
    text-decoration: none;
}

.navbar-links {
    display: flex;
    gap: 15px;
    padding-right: 20px;
}

nav a.active {
    text-decoration: underline;
}

.content {
    padding: 20px 20px;
    display: flex;
    flex: 1;
    align-items: flex-start;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;

}

h2, h3, h4 {
    width: 100%;
    font-family: var(--headings-font);
}

h2 {
    text-align: center;
}

h2, h3, h4 {
    margin-bottom: 0;
}

p {
    margin: 10px 0px 5px 0px;
}

.last {
    min-height: calc(100vh - 60px);
    scroll-margin-top: 0;
}

footer {
    border-top: 1px dotted grey;
    background-color: var(--footer-color);
    padding: 10px 0px 10px 0px;
    text-align: center;
}

#profile {
    width: 100%;
    max-width: 150px;
}

.intro-container {
    display: flex;
}

.intro-container-right {
    flex: 4;
    padding: 20px 20px 0 20px;
    margin-left: 10px;
    border: solid 1px grey;
}

.intro-container-left {
    flex: 1;
    align-items: flex-start;
    justify-content: right;
    display: flex;
}

.intro-quote {
    text-align: center;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 30px;
}

.navbar-toggler {
    display: none;
    font-size: 1.5em;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin: 10px;
}

.nav-link:hover {
    text-decoration: underline;
}

.lang-flag.disabled {
  pointer-events: none;   /* disables click */
  opacity: 0.33;          /* visually dimmed */
  cursor: default;        /* optional: no pointer cursor */
}

img.book-cover {
    border: 1px solid black;
    width: 300px;
    display: block;
    margin: 0 auto;
}

.center {
    text-align: center;
    width: 100%;
}

.header-separator {
    background-color: var(--header-color);
    text-align: center;
    font-size: x-large;
    border-bottom: 1px dotted black;
}

@media (max-width: 768px) {
    .navbar-links {
        flex-direction: column;
        width: 100%;
        display: none;
        text-align: right;
    }

    img.book-cover {
        border: 1px solid black;
        width: 100%;
    }

    .navbar-toggler {
        display: block;
        color: black;
        border: 1px solid black;
    }

    .navbar-links.show {
        display: flex;
        padding-right: 5px;
    }

    .languagesBox {
        padding-bottom: 10px;
    }
}