html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;  
    box-sizing: border-box;
    background-color: #0a0b1a;
}

:root {
  --theme1: #F0ECFF;   
  --theme2: #142850; 
  --theme3: #FFF5E1;   
}


.Nav_Bar {
    display: flex;               
    justify-content: space-between;
    align-items: center;

    position: fixed;       
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;   

    height: 10vh;
    background: transparent;
    
}

.binderMask {
    position: absolute;
    top: 10vh;    /* adjust to match where the page should sit */
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;


}


#heroTitle {
    font-family: 'Ruigslay';
    font-size: 3rem;
    color: var(--theme1);

    padding-left: 2vw;
    padding-top: 2vh;
}
.Nav_Bar nav {
   
    display: flex;
    align-items: center;
    

    height: 10vh;
    width: auto;

    padding-right: 2vw;
}
.Nav_Bar nav ul {
    display: flex;
        gap: .5vh;
}
.Nav_Bar nav ul li {
    text-transform: uppercase;          
    font-size: clamp(1rem, 2vh, 1.5rem);
    font-family: 'quantico';
    list-style: none;
    color: var(--theme1);

    border: 2px solid var(--theme1);
    padding: 0rem .5rem; /* <vertical,horizontal> */


}
.Nav_Bar nav ul li a {
    text-decoration: none;
    
    transition: all 0.3s ease 0s;

    color: var(--theme1);

    mix-blend-mode: difference;

}
.Nav_Bar nav ul li a:hover {
    transition: all 0.3s ease 0s;
    color: var(--theme2);
}
.carousel {
    margin: 3em auto;
    display: flex;
    gap: 10px; 
    width: 90%;
    overflow-x: auto;

    transform: translate(0, 15%);

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-marker-group: after;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel::scroll-marker-group {
    display: flex;
    justify-content: center;
    gap: 0.5em;
    padding-top: 0.5em;
}

.card::scroll-marker {
    content: '';
    height: 1em;
    width: 1em;
    background-color: var(--theme3);
    border-radius: 50%;
}

.card::scroll-marker:target-current {
    background-color: var(--theme2);
}

#carousel1 { anchor-name: --carousel1; }
#carousel2 { anchor-name: --carousel2; }

.carousel::scroll-button(right), .carousel::scroll-button(left) {
    content: '→';
    border: none;
    background-color: transparent;    
    color: var(--theme1);

    font-family: Consolas;
    font-size: 3rem;

    height: 5vh;
    width: 5vh;
    border-radius: 50%;
    padding-bottom: .1em;
    cursor: pointer;

    position: absolute;
    position-area: end end;
}

.carousel::scroll-button(left) {
    content: '←';
    position-area: left bottom;
}

#carousel1::scroll-button(right), #carousel1::scroll-button(left) {
    position-anchor: --carousel1;
}

#carousel2::scroll-button(right), #carousel2::scroll-button(left) {
    position-anchor: --carousel2;
}

.card {
    scroll-snap-align: start;
    height: clamp(200px, 35vh, 300px);
    flex: 0 0 auot;

    border-radius: .25em;
    text-align: center;
    align-content: center;

    font-family: 'ruigslay';
 }

.card img {
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
}



.lightbox {
  display: none;       
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 5px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--theme1);
  font-size: 2rem;
  cursor: pointer;
}

/*============================================================================================================================*/

#spacer1 {
    height: 10vh;
    width: 100%;
}

.binder {
    overflow-y: scroll;
    scroll-snap-type: y proximity;
    height: 100vh;

    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/media/background/A7R05945.webp');
    background-size: cover;     /* like object-fit: cover */
    background-position: center;
    background-repeat: no-repeat;


    scrollbar-width: none;
}

.page {
    height: 50vh;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.page h1{
    margin: 0;
    padding: 0;
    color: var(--theme3);
    font-size: 3rem;
}
.page p{
    margin: 0;
    padding: 0;
    color: var(--theme3);
    font-family: 'Jetbrains Mono';
    font-size: 1.5rem;
    width: clamp(300px, 80%, 1500px);
}

.page a {
    color: var(--theme1);
}

#processYap {
    height: 95vh;
}

#summary {
    height: 30vh;
}

#writeupPage {
    height: 100vh;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
}

#writeupPage h1{
    margin: 0;
    padding: 0;
    color: var(--theme3);
    font-size: 3rem;

}
#writeupPage p{
    margin: 0;
    padding: 0;
    color: var(--theme3);
    font-family: 'Jetbrains Mono';
    font-size: 1.5rem;
    width: clamp(300px, 80%, 1500px);
 }

#writeup {
    width: clamp(300px, 80%, 1500px);
    height: 100%;
}