
@font-face
{
    font-family: 'Monument Regular';
    font-style: normal;
    font-weight: 400;
    src: url('../assets/fonts/ABCMonumentGrotesk-Regular.otf') format('truetype');
}

@keyframes fadeIn {
    from { 
        opacity: 0; 

    }
    to { 
        opacity: 1; 
    }
}
@keyframes fadeOut {
    from {
        opacity: 1;

    }

    to {
        opacity: 0;
    }
}
/* --------------------- Variables ------------------*/
/* -------------------------------------------------------*/
:root{
    --interactionColor: #171717;
    --softColor: #F3F3F3;
    --mainTextColor: #000000;
    --secondaryTextColor: #F3F3F3;



    --mainMargin: 16px;
    --borderRadius: 3px;

    --tinyText: 12px;
    --smallText: 16px;
    --mediumText: 20px;
    --bigText: 24px;
    --hugeText: 32px;

    --headerHeight: 28px;
}

body
{
    font-family: system-ui, sans-serif;
    background: #ffffff;
    color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 140vw;
    padding: 16px;

    transition: width 0.7s ease;

    overflow: hidden;
}

*{
    -webkit-font-smoothing: antialiased;
}

.body-open {
    width: 100vw;
}

main{
    height:100%;
    width:100%;
    display: flex;
    gap: var(--mainMargin);
}

.spacer
{
    height: var(--spacerHeight);
}


/* --------------------- Texts ---------------------------*/
/* -------------------------------------------------------*/

.tinyText {
    font-size: var(--tinyText);
}

.smallText {
    font-size: var(--smallText);
}

.mediumText {
    font-size: var(--mediumText);
}

.bigText {
    font-size: var(--bigText);
}

.hugeText{
    font-size: var(--hugeText);
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
}


/* --------------------- HEADER SECTION ------------------*/
/* -------------------------------------------------------*/

 *,
 *::before,
 *::after {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
 }

 #scene-root {
     width: auto;
     height: 100%;
     overflow: hidden;
     position: relative;
     user-select: none;
     background: #ffffff;
     /* border: 0.5px solid #F3F3F3; */
     flex-grow: 1;
     flex-shrink: 0;
   
 }

 #scene-root.dragging {
     cursor: grabbing;
 }

 #scene-canvas {
     position: absolute;
     inset: 0;
 }

 .xpNode {
     position: absolute;
     width: 5px;
     height: 5px;
     border-radius: 50%;
     pointer-events: none;
     will-change: transform;

     background-color: rgb(0, 0, 0);
 }

 .node {
     position: absolute;
     width: 15px;
     max-width: 15px;
     height: 15px;
     border-radius: var(--borderRadius);
     pointer-events: none;
     will-change: transform;
 }


 .node-title, .xp-title {
    position:relative;
    top: -16px;
    right: -15px;
    padding: 3px 5px;
    font-size: 12px;
    color: #000000;
    pointer-events: none;
    text-wrap-mode: nowrap;
    transition: all 0.1s ease;
    background-color: transparent;
    width: fit-content;
    border-radius: var(--borderRadius);
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease; 
 }

  .node-active {
      background-color: black;
      color: white;
      opacity: 1 !important;
  }

 .selected-node{
    background-color: black;
    color: white;  
    opacity: 1 !important;
 }

.about-content-container{
    display: none;
    flex-direction: column;
    transition:  0.3s ease;
    background-color: rgb(255, 255, 255);
    margin-left: 1px;
    width: calc(40vw - 16px);
    flex-shrink: 0;
 }


 .project-content-container{
    display: flex;
    flex-direction: column;
    transition:  0.3s ease;
    background-color: rgb(255, 255, 255);
    margin-left: 1px;
    width: calc(40vw - 16px);
    flex-shrink: 0;
 }

 .project-title-container{
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
 }

 .project-header{
    display:flex;
    justify-content: space-between;
    min-height: var(--headerHeight);
    margin-bottom: 16px;
 }

 .close-button{
    aspect-ratio: 1/1;
    width: auto;
    height: 100%;
    background-color: var(--softColor);
    border-radius: var(--borderRadius);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 14;
     transition: background-color 0.2s ease;
     cursor: pointer;
 }

 .close-button:hover{
    background-color: var(--interactionColor);
    color: var(--secondaryTextColor);
    cursor: pointer;
 }

  .close-button:hover svg .cross{
      stroke: var(--secondaryTextColor);
  }

 .crossContainer {
     display: flex;
     align-items: center;
     justify-content: center;
     width: auto;
     height: 40%;
     aspect-ratio: 1/1;
 }

 .cross {
     stroke: var(--mainTextColor);
     stroke-width: 1;
 }

.labels{
    display: flex;
    align-items: center;
    gap: 8px;
    height: max-content;
    
}

.labels span{
    font-size: var(--tinyText);
    border-radius: var(--borderRadius);
    padding: 4px 8px;
    background-color: rgb(249, 144, 144);
}

.project-cover-container img{
    max-width: 100%;
    width: 100%;
    height: auto;
}

.gallery{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery img{
   width: 100%;
   height: auto;
}

.project-description{
    padding-top: 46px;
    padding-bottom: 46px;
}

.project-scrollSection{
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
}

.about-scrollSection {
    overflow-y: scroll;
    scrollbar-width: none;
    /* Firefox */
}

.description{
    margin-bottom: 32px;
    line-height: 1.1;
}

.collabs-list{
    display: flex;
    gap: 32px;
}

.collabs-list div p{
    margin-bottom: 16px;
    
}

.collabs-list li p{
    color: rgb(187, 187, 187);
}

.collab {
    padding: 3px 5px;
    font-size: var(--smallText);
    color: var(--mainTextColor);
    background-color: var(--softColor);
    border-radius: var(--borderRadius);

    transition: background-color .2s ease;
    cursor: pointer;
}

.collab:hover{
    background-color: var(--interactionColor);
    color: var(--secondaryTextColor);
}

.templateLine{
    display:none;
}

.connector{
    opacity: 1;
    stroke-width: 1;
    transition: opacity 0.2s ease;
}

.cursorPos{
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    opacity: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.scene-root-centerPoint{
    position:relative;
    top: 50%;
    left: 50%;
    width:15px;
    height:15px;
    background-color: transparent;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.xp-title{
    position:relative;
    top: -14px;
    right: -13px;
}

.project-preview{
    position:absolute;
    top:0;
    left:0;
    width: 300px;
    height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    object-fit: cover;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    animation: none;

    

    z-index: 10;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: var(--borderRadius);
}

.scene-root-footer{
    display:flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    bottom: 0;
    height: 48px;
    z-index: 12;
}

.labels-container{
    display: flex;
    align-items: center;
    gap: 10px;
}

.label{
    padding: 3px 5px;
    font-size: 12px;
    color: var(--mainTextColor);
    background-color: var(--softColor);
    border-radius: var(--borderRadius);

    transition: all 0.2s ease;
}

.label:hover{
    background-color: var(--interactionColor);
    color: var(--secondaryTextColor);
    cursor: pointer;
}

.medium-label{
    padding: 4px 8px;
    font-size: var(--mediumText);
    color: var(--mainTextColor);
    background-color: var(--softColor);
    border-radius: var(--borderRadius);
    transition: all 0.2s ease;
}

.medium-label p{
    font-size: var(--smallText);
}

.active-tag {
    background-color: var(--interactionColor);
    color: var(--secondaryTextColor);
    margin-bottom: 16px;
}

.scene-root-header{
    height: var(--headerHeight);
    position:absolute;
    top:0;
    left: 0;
    width: 100%;
    display :flex;
    justify-content: space-between;
}

.home-button{
    height:100%;
    aspect-ratio: 1/1;
    width: auto;

    border-radius: 50%;
    background-color: var(--softColor);
}

.about-button{
    padding: 4px 8px;
    background-color: var(--softColor);
    color: var(--mainTextColor);
    border-radius: var(--borderRadius);
    font-size: var(--smallText);
}

.about-button:hover{
    background-color: var(--interactionColor);
    color: var(--secondaryTextColor);
    cursor: pointer;
}

.about-button-active{
    background-color: var(--interactionColor);
    color: var(--secondaryTextColor);
}

.year-container{
        
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    background-color: var(--softColor);
    border-radius: var(--borderRadius);

    height: 100%;
}

.year{
    color: var(--mainTextColor);
    font-size: var(--smallText);
}

.side-content-container{
    display:flex;
    overflow-y: scroll;
    scrollbar-width: none;
}

.contact-list{
    display: flex;
    gap: 16px;
}
.contact-container{
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.xp-image-container{
    position:absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2000;
}

.xp-image{
    max-width:60%;
    max-height: 60%;
    object-fit: contain;
    border-radius: var(--borderRadius);
    animation: fadeIn 0.6s ease ;
}