html {
 user-select: none;
 -webkit-user-select: none;
 font-size: 16px;
 overflow: hidden;
}

/*dev only

div {
    border: 1px rgb(255,255,255) solid;
}
    */

body {
  font-family: "Inter", system-ui, sans-serif;
  font-optical-sizing: auto;
  margin: 0; 
    width: 100vw;
    height: 100vh;
    background-color: rgb(0,0,0);
    overflow: hidden;
}

.elementAnchor {
    display: none;
    height: 0;
    width: 0;
    padding: 0;
    margin: 0;
}

.sacrificialContainer {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* loading area*/

.loadingContainer {
    height: 40vh;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-evenly;
    gap: 2rem;
}

.logoContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40%;
    height: 100%;
}

.logoContainer > img {
    width: 60%;
}

.loadingDetailsContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-evenly;
    height: 100%;
}

.loadingTitleContainer, .loadingSubtitleContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0;
    max-width: 60%;
}

.loadingTitleContainer > p {
    font-weight: 400;
    color: rgb(255,255,255);
    font-size: 2.8rem;
    margin: 0;
}

.loadingSubtitleElement {
    font-weight: 00;
    color: rgb(255,255,255);
    font-size: 1.2rem;
    margin: 0;
}

.loadingStatusContainer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.loadingStatusContainer > p {
    font-weight: 300;
    color: rgb(255,255,255);
    font-size: 1.2rem;
    margin: 0;
}

.startExperienceButton {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 1.8rem;
    color: rgb(255,255,255);
    border: 2px solid;
    width: 60%;
    background-color: rgba(0,0,0,0,);
    transition: background-color 0.5s ease;
    margin: 0;
}

.videoButton {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 1.8rem;
    color: rgb(255,255,255);
    border: 2px solid;
    width: 60%;
    background-color: rgba(0,0,0,0,);
    transition: background-color 0.5s ease;
    margin: 2rem;
    opacity: 0;
    pointer-events: auto; 
}

.videoButton:hover {
    background-color: rgba(255,255,255,1);
    transition: background-color 0.5s ease;
    color: rgb(0,0,0);
}

.startExperienceButton:hover {
    background-color: rgba(255,255,255,0.8);
    transition: background-color 0.5s ease;
    color: rgb(21, 21, 21);
}

.titleOverlay, .darkOverlay{
  position: fixed;
  inset: 0;             
  z-index: 1000;         
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(0,0,0,0.8);
}

.titleText {
    font-weight: 600;
    color: rgb(255,255,255);
    font-size: 4rem;
    margin: 1rem;
}

.subtitleText {
    font-weight: 00;
    color: rgb(255, 255,255);
    font-size: 3rem;
    margin: 1rem;
}

.sectionMechanismContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.sectionMechanismContainer > p {
    font-size: 2rem;
    margin: 1rem;
    color: rgb(255,255,255);
}

.sectionMechanismContainer > img {
    width: 2.5rem;
    animation: jumpSlow 1s 0s ease-in-out infinite;
}

/* THE CANVAS SITUATION */

    #canvasLayer {
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none; 
        opacity: 0;
    }

    #mainCanvas {
        width: 100%;
        height: 100%;
        display: block;
    }

    #scrollContainer {
        position: fixed;
        inset: 0;
        z-index: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none;
        opacity: 0;
    }

    #scrollContainer::-webkit-scrollbar {
        display: none; 
    }

    .zone {
        position: relative;
        width: 100%;
        min-height: 400vh; /* timeline driver */
    }

    .zone .textBox {
        position: sticky;
        top: 50%;
        transform: translateY(-50%);
        width: 25%;              
        margin-left: 3rem;    
        margin-right: auto;
        background-color: rgba(255, 255, 255, 0.95);
        color: rgb(0, 0, 0);
        padding: 2rem;
        z-index: 2;
        pointer-events: auto;
    }

        .textBox {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        }

        .textBox.isVisible {
        opacity: 1;
        transform: translateY(0);
        }

    .textBoxTitle {
        font-size: 1.6rem;
        font-weight: 600;
        margin: 0 0 0.5rem 0;
    }

    .textBoxDescription {
        font-size: 1.1rem;
        font-weight: 400;
        margin: 0;
    }

    .mediumActionButton {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        font-size: 1.2rem;
        color: rgb(0, 0, 0);
        border: 2px solid;
        width: 60%;
        background-color: rgba(0,0,0,0);
        transition: background-color 0.5s ease;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .mediumActionButton:hover {
        color: rgb(229, 229, 229);
        background-color: rgba(0,0,0,0.8);
        transition: background-color 0.5s ease;
    }

    /* SCROLL ENDS HERE */

    /* mergem cu video */

    .videoBackground {
        z-index: 0;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        z-index: -1;
        pointer-events: none;
        background-color: #000;
    }

    .contentHolderOne {
        display: flex;
        height: 100%;
        width: 100%;
        z-index: 1;
        flex-direction: row;
        align-items: flex-end;
        justify-content: center;
    }

    .textHolderOne {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 50%;
        padding: 2rem;
        background-color: rgba(0,0,0,0.8);
        margin-bottom: 6rem;

    }

    .videoLayerText {
        color: rgb(255,255,255);
        font-size: 2rem;
        margin: 0;
    }

    /* LAST FULLSCREEN TEXT WALL */ 

    .endContainer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 60%;
        height: 100%;
    }

    .endTitle {
        font-size: 3rem;
        color: rgb(255,255,255);
        font-weight: 400;
        opacity: 0;
    }

    .endText {
        font-size: 1.6rem;
        color: rgb(255,255,255);
        font-weight: 400;
        opacity: 0;
    }


/* MEDIA QUEEEEERIES, MAIN ONE IS MOSTLY MOBILE */

@media (max-width: 768px) {
    .loadingContainer {
        flex-direction: column;
        height: auto;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
    }

    .loadingDetailsContainer {
        align-items: center;
        gap: 2rem;
    }

    .loadingTitleContainer, .loadingSubtitleContainer {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        margin: 0;
        max-width: 60%;
    }

    html {
        font-size: 14px;
    }

    .titleText {
        font-weight: 600;
        color: rgb(255,255,255);
        font-size: 3rem;
        margin: 1rem;
    }

    .subtitleText {
        font-weight: 00;
        color: rgb(255, 255,255);
        font-size: 2.5rem;
        margin: 1rem;
    }

    .sectionMechanismContainer > p {
        font-size: 1.2rem;
        margin: 0.5rem;
        color: rgb(255,255,255);
    }

    .sectionMechanismContainer > img {
        width: 1.5rem;
        animation: jumpSlow 1s 0s ease-in-out infinite;
    }

    .zone .textBox {
        position: sticky;
        top: 80%;
        transform: translateY(-50%);
        width: auto;       
        margin-left: 3rem;    
        margin-right: 3rem;
        background-color: rgba(255, 255, 255, 0.95);
        color: rgb(0, 0, 0);
        padding: 2rem;
        z-index: 2;
        pointer-events: auto;
    }

    .videoLayerText {
        color: rgb(255,255,255);
        font-size: 1.5rem;
        margin: 0;
    }

    .textHolderOne {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 80%;
        padding: 2rem;
        background-color: rgba(0,0,0,0.8);
        margin-bottom: 6rem;

    }

    .endContainer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 80%;
        height: 100%;
    }

    .endTitle {
        font-size: 1.5rem;
        color: rgb(255,255,255);
        font-weight: 400;
        opacity: 0;
    }

    .endText {
        font-size: 1.2rem;
        color: rgb(255,255,255);
        font-weight: 400;
        opacity: 0;
    }

    .videoButton {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
        font-size: 1.5rem;
        color: rgb(255,255,255);
        border: 2px solid;
        width: 60%;
        background-color: rgba(0,0,0,0,);
        transition: background-color 0.5s ease;
        margin: 0;
        opacity: 0;
        pointer-events: auto; 
    }

    .videoButton:hover {
    background-color: rgba(255,255,255,1);
    transition: background-color 0.5s ease;
    color: rgb(0,0,0);
}


}

@media (max-width: 1280px) {
  html { font-size: 15px; }
}

@media (max-width: 1024px) {
  html { font-size: 14.5px; }
}

@media (max-width: 480px) {
  html { font-size: 13.5px; }
}

@media (max-width: 360px) {
  html { font-size: 13px; }
}