:root {
    --main-font: "Lexend", sans-serif;
}

body {
    font-family: var(--main-font);
    background-color: rgb(29, 45, 57);
    color: white;
    margin: 0;
}

.back-arrow {
    font-size: 30px;
}

a {
    color: white;
}

h1 {
    color: rgb(29, 45, 57);
}

#my-name {
    font-size: 30px;
    font-weight: bold;
}

.full-page {
    display: flex;
    height: 80vw;
    margin: 20px;
}

.full-page > header {
    width: 20vw;
    height: 100vh;
    position: fixed;
    font-size: 20px;
    margin-left: 10px;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: space-around;
    padding-left: 0;
    flex-direction: column;
}

nav li {
    padding-top: 10px;
}

#h1-index-page {
    font-size: 32px;
    text-align: left;
    position: static;
    background-color: rgba(255, 255, 255, 0);
}

#welcome-section {
    margin-bottom: 40px;
}

#reading-now > div {
    display: flex;
    justify-content: space-between;
}

#reading-now > div > div {
    width: 45%;
}

#reading-next {
    padding: 20px;
}

h1 {
    font-size: 16px;
    text-align: right;
    position: fixed;
    right: 0px;
    background-color: white;
}

.page-description {
    position: relative;
    top: 50px;
}

.full-page > main {
    width: 80vw;
    margin-left: 35vw;
    margin-right: 10px;
}

footer {
    position: fixed;
    bottom: 0;
    margin: 20px;
}

a {
    text-decoration: none;
}

a:hover, .popup button:hover {
    background-color: rgb(244, 244, 104);
    color: rgb(29, 45, 57);
}

.popup button:hover {
    color: black;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery img:hover, button:hover {
    cursor: pointer;
}

#all-books {
    display: block;
}

#all-books img {
    margin-bottom: 20px;
}

figcaption {
    display: none;
}

.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    place-content: center;
    grid-gap: 30px;
}

#professional-experience {
    list-style-type: none;
}

.job-title {
    font-weight: bold;
    margin: 20px 0px;
}

/* styling for popup modals */
.popup {
    box-sizing: border-box;
    width: 98vw;
    height: 98vh;
    padding: 30px;
    background-color: rgba(23, 27, 30, 0.9);
    position: fixed;
    top: 1vh;
    left: 1vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popup img {
    width: auto;
    height: auto;
    margin: auto;
}

.popup button {
    background-color: rgba(255, 255, 255, 0);
    color: white;
    border: none;
    display: block;
    margin: auto;
    font-size: 30px;
}

#close-popup-button {
    position: absolute;
    top: 10px;
    right: 10px;
}

#carousel-nav-container {
    display: flex;
    justify-content: space-between;
}

/* switch gallery view to 2 columns for viewport sizes under 1000px */
@media (max-width: 1000px) {
    .gallery {
        grid-template-columns: 1fr 1fr;
    }
}