body {
    font-family: 'Nunito';
    color: lavender;
    font-size: 24px;
}

a:link {
    color: #46cfff;
}

a:visited {
    color: #b1ebff;
}

a:active {
    color: #07bfff;
}

h1, h2, h3, h4 {
    font-family: 'Karla'
}

.clarifier {
    font-weight: normal
}

button.sectionButton {
    width: 33%;
    height: 10em;
}

button {
    border: none;
    background-color: #380137;
    color: lavender;
}

button :is(h1,h2) {
    transition: text-shadow 0.2s ease-in-out;
    text-shadow: 0px 0px 0px #d753ff;
}

button:active {
    background-color: #420040;
}

button:hover {
    cursor: pointer;
}

.section {
    transition: padding 0.4s ease-in-out, max-height 0.4s ease-in-out, opacity 0.4s ease-in;
    overflow: hidden;
    height: fit-content;
    max-height: 0;
    opacity: 0;
    background-color: transparent;
    padding: 0;
    text-align: justify;
}

.section.selected {
    max-height: 50em;
    padding: 2em;
}

.section.selected {
    opacity: 1;
}

.section.selected.transparent {
    opacity: 0;
}

#workHistory .sectionHeader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: fit-content;
}

.subsectionButtons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 8rem;
    width: 100%;
}

.subsectionButtons button {
    padding: 0.5rem 2rem;
    height: 100%;
    width: 33%;
    border-left: black solid 2px;
    border-right: black solid 2px;
}

.subsectionButtons button:first-child {
    border-radius: 20px 0 0 20px;
    border-left: none;
}

.subsectionButtons button:last-child {
    border-radius: 0 20px 20px 0;
    border-right: none;
}

.subsectionButtonText {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.subsectionButtonText h1 {
    font-size: 3rem;
    margin: 0;
}

.subsectionButtonText h2 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: normal;
}

.subsections>div {
    display: none;
}

.subsections>div.selected {
    display: block;
}

#pageMargins {
    padding: 6em
}

#pageContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3em;
    width: 70%;
    margin: 0 auto;
}

.content {
    min-height: fit-content;
    margin: 0 auto;
}

#sectionContainer {
    min-height: fit-content;
    min-width: fit-content;
}

#sectionButtonsRowOne, #sectionButtonsRowTwo {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-overflow: clip;
}

#myStoryImage {
    float: left;
    margin: 0 2em;
    width: 35%;
    border-radius: 10%;
    max-height: inherit;
    border-color: rgba(0, 0, 0, 0.4);
    border-style: solid;
    border-width: 6px;
}

#footer {
    min-width: fit-content;
    font-family: 'Karla';
}

#background {
    position: fixed;
    z-index: -10;
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
    top: 0;
    left: 0;
    margin: 0;
}

.section {
    background: rgba(217, 99, 255, .08);
}

button.selected :is(h1,h2) {
    text-shadow: 0px 0px 10px #d753ff;
}

span.glow {
	text-shadow: 0px 0px 10px #d753ff;
}

div.buttonContents {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.buttonCarrot {
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
    margin: 0 0.5em;
    font-size: 2rem;
}

button.selected .buttonCarrot {
    opacity: 1;
}


/* =============== PHOTOGRAPHY =============== */

div#photographyBoxOuter {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: fit-content;
    margin: 4rem 0;
}

/* left and right arrows */
button.photographyScrollButton {
    border: none;
    background: rgba(215, 83, 255, 0);
    font-size: 10rem;
    color: inherit;
}

button.photographyScrollButton:active {
    background: rgba(215, 83, 255, 0.3);
}

/* col of rows */
div#photographyBoxInner {
    flex-grow: 1;
    padding: 0 4%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 70vh;
}

/* row */
#photographyBoxInner>div {
    width: 100%;
    height: 30%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* box w/ img */
#photographyBoxInner>div>div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
}

/* photos */
div#photographyBoxInner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

div#photographyBoxInner img:hover {
    cursor: pointer;
}

div#photographyBoxInner img.loading+div.loader {
    animation: spin 1s linear 0s infinite;
    display: block;
    border: 5px solid #42454a;
    border-top: 5px solid violet;
    border-bottom: 5px solid violet;
    border-radius: 100%;
    width: 30px;
    height: 30px;
}

div.loader {
    display: none;
}

div#photographyBoxInner img.loading {
    display: none;
}

div#photographyBoxInner img.hidden {
    display: none;
}

.freezeScroll {
    overflow: hidden;
}

img.expanded {
    display: none;
}

img.overlay {
    position: absolute;
    object-fit: contain;
    z-index: 100;
}

div.overlay {
    position: fixed;
    inset: 0px 0px 0px 0px;
    z-index: 99;
    transition: background-color 0.6s ease-in-out;
    background-color: rgba(0, 0, 0, 0);
}

div.overlay.dimmed {
    background-color: rgba(0, 0, 0, 0.6);
}

#backgroundAnimations div {
    position: fixed;
    z-index: -5;
    animation-name: bubble;
    animation-duration: 20s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
    border-radius: 50%;
    top: 100vh;
    aspect-ratio: 1;
    background-color: rgba(38, 168, 255, 0.05);
}

img.overlay.fullRes {
    z-index: 101;
    inset: 0px 0px 0px 0px;
    width: 100%;
    height: 100%;
}

/* =============== ANIMATIONS =============== */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


@keyframes bubble {
    from {
        transform: translateY(5vh);
    }

    to {
        transform: translateY(-200vh);
    }
}