html {
background-image: url('background.png');
background-repeat: repeat;
}

.line {
    width: 100%;
    height: 1px;
    box-sizing: border-box;
}

/* Reset Styles */

a {
    text-decoration: none;
}

body, h1, h2, h3, h4, ul, p, figure, dl, dd, dt  {
    padding: 0;
    margin: 0;
}

.body, html {
    height: 100%;
}


li {
    list-style: none;
}

/* Spacing */

.xxs {
    gap: 0.25rem;
}

.xs {
    gap: 0.75rem;
}

.s {
    gap: 1rem;
}

.m {
    gap: 1.25rem;
}

.m2 {
    gap: 1.5rem;
}

.l {
    gap: 2rem;
}

.xl {
    gap: 4rem
}

.xxl {
    gap: 6rem;
}

/* Top/Bottom Padding */

.padding-l {
    padding: 4rem 0rem;
}

.padding-xl {
    padding: 15rem 0rem;
}

.padding-vh {
    padding: 50dvh 0rem;
}

/* Nav Bar */
.tabs {
    flex-direction: row;
    display: flex;
}

.fixed-bar {
    background-image: url(background.png);
    position: fixed; 
    width: 100%;

    z-index: 99999;
}

.nav-bar a {
    position: relative;
    text-decoration: none;
}

.nav-bar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-bar a:hover::after {
    width: 100%;
}

.nav-bar {
    flex-direction: row;
    display: flex;
    justify-content: space-between;    
}

.nav-bar-container {
    display: flex;
    flex-direction: column;
    padding: 1.75rem 2rem 0rem 2rem;
}

.bottom-nav-bar-container {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    
    width: 100%;
    padding: 0rem 2rem 1.75rem 2rem;
    box-sizing: border-box;
}

.footer {
    display: flex;
    justify-content: space-between;
}

/* Margins */

.margins {
    margin: 0rem 2rem;
}

.margin-flex {
    margin-left: clamp(0rem, calc(80vw - 50rem), 18rem);
    margin-right: clamp(0rem, calc(80vw - 50rem), 18rem);
}

/* Link Hover */
.link:hover {
 color: #a30808;   
}

/* Three Row Box Component*/

.three-box-container {
    display: flex;
    flex-direction: row;
}

.box {
    display: flex;
    flex-direction: column;

    padding: 1rem;
    border: 1px black solid;
    width: 100%;

    box-sizing: border-box;
}

.accent-rect {
    width: 24px;
    height: 4px;
    background-color: #EB0000;
}

/* Image & XYZ Component*/

.image-and-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-and-caption figcaption {
    text-align: center;
}

.two-figure-row {
    display: flex;
    flex-direction: row;
    align-items: center;
}


/* Flex Directions (Keep at end to overwrite) */

.flex-column {
    display: flex; 
    flex-direction: column;
}

.flex-row {
    display: flex; 
    flex-direction: row;
}

/* Fade In Animation */
[data-fade] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

[data-fade].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Backgrounds */

.background {
    background-image: url(background.png);
}

/* Case Study Hero */

.landing-section-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

.project-details {
    flex: 1;
    min-height: 0;

    position: sticky;
    top: calc(5vh + 2rem);

    display: flex;
    flex-direction: column;
}

.project-thumbnail {
    flex: 2;
    min-height: 0;

    position: sticky;
    top: calc(5vh + 2rem);
    align-self: flex-start;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
}

.space-between-container {
    display: flex;
    justify-content: space-between;
}

.project-showcase-container {
    display: flex;
    flex-direction: column;
}

.horizontal-scroll-wrapper {
    position: relative;
}

.project-media-container {
    margin: 0;
    position: sticky;
    top: 10vh;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}
