/*!
Theme Name: mario
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: mario
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready


/*********************** typography ************************/

@import url('https://fonts.cdnfonts.com/css/ibm-plex-mono-3');


h1 {                /*Title - Name*/
    color: #fff;
    font-family: 'IBM Plex Mono', sans-serif;
    text-align: center;
    font-size: 14px;
    letter-spacing: 4px;
    font-weight: 400;
    line-height: 180%;
    padding: 0;
    margin: 0;
}

h2 {               /*Menu*/
    color: #fff;
    font-family: 'IBM Plex Mono', sans-serif;
    text-align: center;
    font-size: 14px;
    letter-spacing: 4px;
    font-weight: 400;
    line-height: 180%;
    margin: 0;
    padding: 0;
}

h3 {               /*About_Texts*/
    color: #000;
    font-family: 'IBM Plex Mono', sans-serif;
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 300;
    line-height: 180%;
}

p {           /*Paragraphs*/
    color: #000;
    font-family: 'IBM Plex Mono', sans-serif;
    text-align: left;
    margin: 0;
    margin-bottom: 20px;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 200;
    line-height: 180%;
}


/*********************** layout ************************/
* {
    box-sizing: border-box;
}

body, html {
    height: 100%;
    background: #000;
}

a {
    text-decoration: none;
}

.page_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
    padding: 0;
}

#header {
    width: 100%;
    text-align: center;
    padding: 30px 0;
}

.link {
    scale: 150%;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.spacer {
    flex-grow: 1;
    width: 100%;
}

#footer {
    width: 100%;
    padding: 30px;
    display: flex;
    justify-content: center;
}

#footer2 {
    width: 100%;
    padding: 30px;
    display: flex;
    justify-content: center;
    cursor: pointer;
}
 
.menu {
    width: 50%;
    padding-top: 20px;
    border-top: solid #fff 0.5px;
    display: flex;
    justify-content: space-between;
}

.menu h2 {
    cursor: pointer;
}

.aboutbutton {
    margin: 0 -5px 0 0;
    padding: 0;
}

.col-1 {
    flex: 0 0 8.3%;
}

.col-2 {
    flex: 0 0 16.6%;
}

.col-5 {
    flex: 0 0 41.6%;
}

.col-6 {
    flex: 0 0 50%;
}

.col-7 {
    flex: 0 0 58.3%;
}

.col-11 {
    flex: 0 0 91.6%;
}

.col-12 {
    flex: 0 0 100%;
}

/*********************** About_Section ************************/
.slide-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease; 
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden; 
}

.slide-panel.active {
    right: 0;
}

.panel-content {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    column-gap: 80px;
}

.close-button {
    position: absolute;
    top: 40px;
    left: 13px;
    display: flex;
    flex-direction: column-reverse; /* text on top, chevron below */
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 0;
}

.chevron-icon {
    width: 12px;
    height: 12px;
}

.close-text {
    writing-mode: vertical-rl;   /* Bottom to top */
    transform: rotate(180deg);   /* Flip so it's readable */
    font-size: 10px;
    font-family: 'IBM Plex Mono', sans-serif;
    color: #000;
    letter-spacing: 1px;
    line-height: 1;
}

.leftcolumn {
    width: 40%;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
}

.rightcolumn {
    position: relative;
    top: -5px;
    width: 60%;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    align-items: flex-start;
}

.panel-wrapper {
    padding: 40px;
}

#aboutPanel {
  transition: transform 0.3s ease;
  pointer-events: auto;
}

#aboutPanel:not(.active) {
  pointer-events: none;
}

#aboutPanel .panel-content h2 {
    margin-top: 0;
}

.panel-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999;
    cursor: pointer;
    pointer-events: auto; 
}

.panel-backdrop.active {
    display: block;
}

.photo {
    width: 100%;
    height: auto;
    overflow: hidden;
    display: flex; 
    justify-content: center;
    align-items: flex-start;
}

.photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
}


/*********************** Slider_homepage ************************/

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
    position: relative;
}

#image-display {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    text-align: center;
    padding: 15px;
    max-width: 90vw;
    z-index: 999;
}

#image-display img {
    text-align: center;
    max-width: 100vw;
    max-height: 50vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    z-index: 999;
}

#large-image{
    display: block;
    max-width: 90vw;
    max-height: 50vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    z-index: 9999;
}

#caption {
    display: block;
    margin: 10px auto 0;
    padding: 10px;
    max-width: 90vw;
    font-size: 10px;
    letter-spacing: 2px;
    color: #fff;
    text-align: center;
    font-family: 'IBM Plex Mono', sans-serif;
    white-space: normal;
    word-wrap: break-word;
}

#slider-container {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    position: relative;
}

#slider {
    display: inline-flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: scroll 30s linear infinite;
}

#slider img {
    width: 180px;
    height: 110px;
    margin: 0 8px;
    opacity: 1;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s;
    object-fit: cover;
}
#slider img:hover {
    transform: scale(1.1);
}

#slider img.zoomed {
    transform: scale(1.1) !important;
}


/*********************** Projects_Page ************************/

#projects_section {
    width: 100%;
    flex-grow: 1;
    text-align: left;
    padding-top: 60px;
    padding-left: 60px;
    padding-right: 60px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    column-gap: 80px;
}

#projects-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
}

.block_wrapper {
    width: 70%;
    position: relative;

    height: 300px;
    padding: 0;
    margin: 0;
    transition: opacity 0.3 ease;
    display: flex;
    flex-direction: column;
}

.project_wrapper {
    position: relative;
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 0;
    margin: 0;
    margin-bottom: 0px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.project_wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.project_wrapper:hover {
    position: 1;
    text-decoration: none;
}

.project_wrapper:hover::after {
    width: 100%;
}

.project_wrapper .link {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project_wrapper:hover .link {
    opacity: 1;
}

.project_wrapper a img.link {
    position: absolute;
    top: 50%;
    left: 85%; 
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    width: 7px;
    height: 7px;
}

.project_wrapper:hover a img.link {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
    pointer-events: auto;
}

#image_wrapper {
    width: 30%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

#hover_image_display {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: none;
    z-index: 10;
    transition: none;
}

.nameproject {
    width: 330px;
    display: flex;
    justify-content: flex-start;
}

.category {
    width: 150px;
    display: flex;
    justify-content: flex-start;
}

.date {
    width: 40px;
    display: flex;
    justify-content: flex-end;
}

.project_wrapper:hover::after {
    width: 100%;
}

.project_wrapper:hover + #hover_image_display {
    display: block;
}

.block_wrapper .project_wrapper:hover {
    opacity: 1;
}

.imagepreview {
    height: auto;
    width: 100%;
    visibility: visible;
    display: block;
    position: relative;
}

.hover-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin-bottom: 0;
}


/*********************** Popup Project ************************/
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 85vh;
    max-width: 90%; 
    max-height: 90%;
    background: white;
    padding: 40px 60px 40px 60px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    column-gap: 40px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.project_wrapper .link {
    width: 12px;
    height: 12px; 
}

.project_wrapper .link img {
    width: 100%;
    height: auto;
}

.title-project {
    line-height: 8px;
    margin-bottom: 20px;
}

.popup-left {
    width: 30%;
    height: 100%;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popup-left > div:not(.top-description) {
    margin-top: -20px; /* adjust value as needed */
}

.popup-right {
    width: 70%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/*CURSOR*/
.touch #cursor, .touch #cursor.show{
    display: none;
}

#cursor{
    position: fixed;
    z-index: 999999;
    mix-blend-mode: difference;
    opacity: 1;
    pointer-events:none;
}

#cursor div {
    position:fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display:none;
}

#cursor div.prev_btn {
    color: #fff;
}

.prev_btn {
    width: 50%;
}

#cursor div.next_btn {
    color: #fff;
}

.next_btn {
    width: 50%;
}

.slider {
    position: relative;
    width: 100%;
    height: calc(100% - 40px); /* Keep your original height setup */
    overflow: hidden;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}


.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slider-track img,
.slider-track video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* This keeps the aspect ratio and fits within the container */
    flex-shrink: 0; /* Prevent the slide from shrinking */
}

.slider-track img,
.slider-track video {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.left-layer,
.right-layer {
    position: absolute;
    top: 10px;
    height: calc(100% - 80px);
    width: calc(50% - 20px);
    z-index: 5;
}

.left-layer {
    left: 5px;
}

.right-layer {
    right: 40px;
}

.prev_btn svg, .next_btn svg {
    cursor: none;
    position: absolute;
    z-index: 10;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    bottom: 40px;
}

.dots button {
    width: 8px;
    height: 8px;
    padding: 0px;
    border-radius: 50%;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.7);
    transition: background-color 0.3s ease;
}

.dots button.active {
    background-color: rgb(0, 0, 0);
}








@media all and (max-width:900px) {
    
}



@media (max-width: 768px) {
    
}




@media all and (max-width:450px) {
    h1 {
        color: #fff;
        font-family: 'IBM Plex Mono', sans-serif;
        text-align: center;
        font-size: 14px;
        letter-spacing: 4px;
        font-weight: 400;
        line-height: 160%;
        padding: 0;
        margin: 0;
    }

    h2 {
        color: #fff;
        font-family: 'IBM Plex Mono', sans-serif;
        text-align: center;
        font-size: 14px;
        letter-spacing: 4px;
        font-weight: 400;
        line-height: 180%;
        margin: 0;
        padding: 0;
    }

    h3 {
        color: #000;
        font-family: 'IBM Plex Mono', sans-serif;
        padding: 0;
        margin: 0;
        text-align: left;
        font-size: 12px;
        letter-spacing: 1px;
        font-weight: 300;
        line-height: 180%;
    }

    p {
        color: #000;
        font-family: 'IBM Plex Mono', sans-serif;
        text-align: left;
        margin: 0;
        margin-bottom: 20px;
        font-size: 12px;
        letter-spacing: 1px;
        font-weight: 200;
        line-height: 180%;
    }

    * {
        box-sizing: border-box;
    }

    body, html {
        height: 100%;
        background: #000;
        margin: 0;
    }

    a {
        text-decoration: none;
    }

    .page_wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 100vh;
        width: 100vw;
        padding: 0;
    }

    #header {
        width: 80%;
        text-align: center;
        padding: 20px 0;
    }

    .link {
        scale: 150%;
        margin: 0;
        padding: 0;
        cursor: pointer;
    }

    .spacer {
        flex-grow: 1;
        height: auto;
    }

    #footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 10px;
        display: flex;
        justify-content: center;
        background: black;
    }

    #footer2 {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 10px;
        display: flex;
        justify-content: center;
        cursor: pointer;
    }

    .menu {
        width: 80%;
        padding-top: 20px;
        border-top: solid #fff 0.5px;
        display: flex;
        justify-content: space-between;
    }

    .menu h2 {
        cursor: pointer;
    }

    .aboutbutton {
        margin: 0 -5px 0 0;
        padding: 0;
    }

    .col-1 { flex: 0 0 8.3%; }
    .col-2 { flex: 0 0 16.6%; }
    .col-5 { flex: 0 0 41.6%; }
    .col-6 { flex: 0 0 50%; }
    .col-7 { flex: 0 0 58.3%; }
    .col-11 { flex: 0 0 91.6%; }
    .col-12 { flex: 0 0 100%; }

    .slide-panel {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 99999;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .slide-panel.active {
        right: 0;
        width: 100%;
        transform: translateX(0);
    }

    .panel-content {
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .leftcolumn, .rightcolumn {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .rightcolumn {
        justify-content: center;
        align-items: center;
    }

    .panel-wrapper {
        padding: 20px;
    }

    #aboutPanel .panel-content h2 {
        margin-top: 0;
        transition: right 0.3s ease, transform 0.3s ease;
        will-change: transform;
    }

    .panel-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.75);
        z-index: 999;
        cursor: pointer;
        pointer-events: auto;
        transition: opacity 0.3s ease;
    }

    .panel-backdrop.active {
        display: block;
    }

    .photo {
        width: 100%;
        height: auto;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        padding-top: 20px;
    }

    .photo img {
        width: 60%;
        max-width: 250px;
        height: auto;
        object-fit: cover;
    }

    .close-button {
        position: absolute;
        top: 20px;
        left: 0;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        padding: 0;
    }

    .chevron-icon {
        width: 12px;
        height: 12px;
    }

    .close-text {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-size: 10px;
        font-family: 'IBM Plex Mono', sans-serif;
        color: #000;
        letter-spacing: 1px;
        line-height: 1;
    }

    body {
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100vh;
        overflow: hidden;
        background-color: #000;
        position: relative;
    }

    #image-display {
        position: absolute;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: none;
        text-align: center;
        padding: 10px;
        max-width: 90vw;
        z-index: 999;
    }

    #image-display img {
        text-align: center;
        max-width: 80vw;
        max-height: 40vh;
        height: auto;
        display: block;
        object-fit: contain;
        z-index: 999;
    }

    #large-image {
        display: block;
        max-width: 90vw;
        max-height: 50vh;
        width: auto;
        height: auto;
        margin: 0 auto;
        object-fit: contain;
    }

    #caption {
        display: block;
        margin: 10px auto 0;
        padding: 10px;
        max-width: 90vw;
        font-size: 10px;
        letter-spacing: 2px;
        color: #fff;
        text-align: center;
        font-family: 'IBM Plex Mono', sans-serif;
        white-space: normal;
        word-wrap: break-word;
    }

    #slider-container {
        position: relative;
        left: 0;
        right: 0;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 0 10px;
        z-index: 999;
    }

    #slider {
        display: flex;
        flex-wrap: nowrap;
        transition: none;
        margin-left: 0;
        width: max-content;
    }

    #slider img {
        width: 120px;
        height: 80px;
        margin: 0 8px;
        opacity: 1;
        cursor: pointer;
        cursor: zoom-in;
        border-radius: 0px;
        transition: transform 0.3s;
        object-fit: cover;
    }

    #slider img.zoomed {
        transform: scale(1.1);
        transition: transform 0.3s ease;
        cursor: zoom-out;
        z-index: 1000;
        position: relative;
    }

    #projects_section {
        flex-direction: column;
        padding: 20px;
        row-gap: 20px;
    }

    #projects-container {
        width: 100%;
        height: 100%;
        overflow-y: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
        box-sizing: border-box;
    }

    .block_wrapper {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
        overflow-y: auto;
    }

    .project_wrapper {
        margin-bottom: 10px;
    }

    .project_wrapper .nameproject {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .project_wrapper .date {
        justify-content: flex-end;
    }

    .project_wrapper .category {
        font-size: 0.9em;
        margin-top: 4px;
    }

    .nameproject, .date, .category {
        width: auto !important;
    }
    
    .category {
        display: none;
    }

    .nameproject p,
    .date p,
    .category p {
        margin: 0;
    }

    .project_wrapper img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .project_wrapper:hover {
        text-decoration: none;
    }

    .project_wrapper .link {
        display: none !important;
    }

    #image_wrapper {
        display: none !important;
    }

    .hover-image img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        margin-bottom: 0;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }

    .popup {
        position: relative; 
        width: 100vw;
        padding: 20px 20px 0 20px;
        border-radius: 0;
        overflow-y: auto;
    }

    .popup-content {
        display: flex;
        flex-direction: column;
        gap: 10px;
        overflow-y: auto;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .popup-left, .popup-right {
        margin: 0; /* remove margin */
        padding: 0; /* or reduce padding if needed */
    }
  
    .popup-content::-webkit-scrollbar {
        display: none;
   }

    .close-btn {
        margin-top: 5px;
        margin-right: -5px;
        font-size: 20px;
        padding: 0;
    }

    .title-project {
        line-height: 8px;
        margin-bottom: 20px;
    }

    .popup-left, .popup-right {
        width: 100%;
    }

    .touch #cursor, .touch #cursor.show {
        display: none;
    }

    #cursor {
        display: none !important;
    }

    .slider {
        position: relative;
        width: 100%;
        height: 250px; /* You can adjust this height to fit your design */
        overflow: hidden;
        cursor: none;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
    }

    .slider img,
    .slider video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.3s ease;
    }
    
    
    .slider-track {
        display: flex;
        width: 100%;
    }
    
    .slider-track img,
    .slider-track video {
        min-width: 100%;
        max-width: 100%;
        flex-shrink: 0;
    }
    
    .slider-track img,
    .slider-track video {
        flex: 0 0 100%;
        width: 100%;
        height: auto;
        object-fit: cover;
    }


    .left-layer, .right-layer {
        position: absolute;
        top: 10px;
        height: calc(100% - 80px);
        width: calc(50% - 20px);
        z-index: 5;
    }

    .left-layer {
        left: 5px;
    }

    .right-layer {
        right: 40px;
    }

    .dots {
        position: static;
        margin-top: 10px;
    }

    .dots button {
        width: 8px;
        height: 8px;
        padding: 0px;
        border-radius: 50%;
        cursor: pointer;
        background-color: transparent;
        border: 1px solid rgba(0, 0, 0, 0.7);
        transition: background-color 0.3s ease;
    }

    .dots button.active {
        background-color: rgb(0, 0, 0);
    }

}














