/* ------------------- */
/* Reset               */
/* ------------------- */

/* https://piccalil.li/blog/a-modern-css-reset/ <= This is a useful resource for resets */

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture {
    margin: 0; 
}

/* set up the body */
body {
    line-height: 1.5;
    min-height: 100vh;
}

/* make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* make form elements easier to work with */
input,
button,
textarea,
select {
    font: inherit;
}

/* remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture {
    margin: 0; 
}

/* set up the body */
body {
    line-height: 1.5;
    min-height: 100vh;
}

/* make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* make form elements easier to work with */
input,
button,
textarea,
select {
    font: inherit;
}

/* remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------- */
/* Styles              */
/* ------------------- */

body {
    color: #c3c3c3;
    font-size: 3rem;
    text-align: center;
}

.box {
    width: 100%;
    height: 80vh;
    background-color: #232323;
}

/* .sticky-wrapper {
    position: sticky;
    top: 0;
} */

main {
    position: relative;
    background-color: #232323;
}

.sticky-box {
    height: 100vh;
    position: sticky;
    /* top: 0; */
    border-top-left-radius: 5rem;
    border-top-right-radius: 5rem;
    border-top: 2px solid #333333;
    border-bottom: 0;
}

.post-main-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
}

/* .sticky-box:nth-of-type(1) {
    background-color: #2f2f2f;
    top: 0rem;
    top: 0;
} */

/* .sticky-box:nth-of-type(2) {
    background-color: #3a3a3a;
    top: 2rem;
    top: 40px;
} */

/* .sticky-box:nth-of-type(3) {
    background-color: #4a4a4a;
    top: 5rem;
    top: 80px;
} */

/* .sticky-box:nth-of-type(3) {
    position: relative;
} */

/* .base {
    height: 100vh;
    width: 100%;
    position: sticky;
    top: 0;
    background-color: red;
    z-index: -1;
} */

main div p:not(#title-paragraph-element) {
    text-align: left;
    font-size: 2rem;
    padding-inline: 1rem;
}

.two-col-section {
    display: flex;
    position: relative;
}

.sticky-img {
    width: 50%;
    height: 100vh;
    padding: 20rem;
    object-fit: cover;
    position: sticky;
    top: 0;
}