/* 
   Physics Containers
*/
.physics-container {
    display: block;
    position: fixed;
    top: 3rem;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    /* min-height: 0svh;
    max-height: 0svh; */
    z-index: 10;
    transition: 1s;
}


/* Tablet */
@media only screen and (max-width: 36rem) {
    .physics-container.hidden {
        display: none;
    }
}

/* Desktop */
@media only screen and (min-width: 48rem) {
    .physics-container.third {
        width: 0vw; /* 33vw */
    }
}

.physics-project {
    position: absolute;
    background-color: var(--pastelColor, black);
    color: white;
    top: 50%;
    left: 50%;
    width: fit-content;
    height: fit-content;
    padding: 0.4rem 0.6rem;
    border-radius: 3px;
    translate: -50% -50%;
    rotate: var(--angle, 0deg);
    transition: 0s top, 0s left, 0s transform, 300ms opacity, scale 200ms;
    white-space: nowrap;
    opacity: 0;
    scale: 0.3;
}

.physics-project.black {
    color: black;
}

.physics-project.visible {
    scale: 0.98;
    opacity: 1;
}

.pages-containers .unselected,
.physics-container .unselected {
    background-color: rgb(215, 215, 215);
}

.physics-container .selected .physics-project-content {
    opacity: 1;
}

.physics-container .circle {
    position: absolute;
    width: 5rem;
    height: 5rem;
    display: flex;
    text-align: center;
    align-items: center;
    align-content: center;
    justify-content: center;
    padding-bottom: 0.2rem;
    color: white;
    background-color: rgb(215, 215, 215);
    translate: -50% -50%;
    rotate: var(--angle, 0deg);
    border-radius: 4rem;
    transition: 0s;
    opacity: 0;
    scale: 0.2;
}

.physics-container .circle.visible {
    scale: 0.98;
    opacity: 1;
}

/* Tablet (> 768px) */
@media only screen and (min-width: 48em) {
    .physics-container .rectangle {
        padding: 0.6rem 0.8rem;
    }
    
    .physics-container .circle {
        width: 6rem;
        height: 6rem;        
    }

    .physics-container .rectangle.scaled {
        width: 60%; 
        height: auto;
    }
}

/* 
    Project 
*/

/* Tablet (> 768px) */
.physics-project-content {
    transition: 300ms ease;
}

.physics-project-content .t-body {
    line-height: 1.1em;
}

.physics-project-content-subtitle {
    opacity: 0.5;
}

@media (hover: hover) {
    .physics-project-content {
        opacity: 0;
    }

    .pages-containers.unselected:hover,
    .physics-project.unselected:hover {
        background-color: rgb(150, 150, 150);
    }
    
    .physics-project:hover .physics-project-content {
        opacity: 1;
    }
}

/* Project Image */

.physics-project-image {
    display: none;
}


@media (hover: hover) {
    .physics-project-image.vertical {
        display: block;
        opacity: 0;
        position: fixed;
        top: 3rem;
        left: var(--posX, 50%);
        width: 20rem;
        height: 20rem;
        object-fit: contain;
        border-radius: 1rem;
        translate: -50% 0;
        z-index: 9;
        /* transition: ease-in-out 200ms; */
    }

    .physics-project-image.horizontal {
        display: block;
        opacity: 0;
        position: fixed;
        top: 3rem;
        left: var(--posX, 50%);
        width: 30rem;
        height: 30rem;
        object-fit: contain;
        border-radius: 1rem;
        translate: -50% 0;
        z-index: 9;
        /* transition:ease-in-out 200ms; */
    }

    .physics-project-image img {
        border-radius: 4px;
    }

    .physics-project-image.visible {
        display: block;
        opacity: 1;
    }

    .physics-container.hover .project {
        filter: grayscale(1) opacity(100%);
        background-color: #E9E9E9;
    }

    .physics-container .project:hover,
    .physics-container .project:focus,
    .physics-container .project:focus-within {
        filter: grayscale(0) opacity(100%);
        background-color: var(--pastelColor, black);
    }
}

.image-hover {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* Inside the projects page  */

/* .projects .project .slideshow,
.projects .project .video-player {
    position: relative;
    z-index: 1;
} */

.projects .physics-container {
    position: absolute;
    z-index: 0;
}

.projects .project-content {
    position: relative;
    overflow: visible;
}

/* Desktop */
@media only screen and (min-width: 92rem) {
    .projects .project .slideshow,
    .projects .project .video-player {
        position: relative;
        width: 90%;
        z-index: 1;
    }
}

.hidden-page-name {
    display: none;
}

.circle:hover .hidden-page-name {
    display: inline;
}

.circle:hover {
    background-color: rgb(150, 150, 150);
}

/* Canvas */

canvas {
    display: none;
    opacity: 0.1;
    position: fixed;
    top: 3rem;
    bottom: 0;
    left: 0;
    right: 0;
    /* z-index: 10; */
}