/*
    Theme Name: Pipetinho Portfolio 2025
*/

@import url('https://fonts.googleapis.com/css2?family=Bagel+Fat+One&family=Baloo+2:wght@400..800&family=Dangrek&family=Kodchasan:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&family=Kosugi+Maru&family=Zen+Tokyo+Zoo&display=swap');
@import url("https://use.typekit.net/zhz0dpz.css");

a{
    color: white;
}

#myName{
    font-family: "droog";
    font-weight: 700;
    pointer-events: none;
    position: absolute; 
    z-index: 1; 
    line-height: 1;
}

.pageLinks{
    list-style: none;
    background-color: transparent;
    margin: 0px;
    padding: 0px;
}

.pageLinks a {
    text-decoration: none;
    font-family: "Bagel Fat One";
    display: block;
}

.pageLinks li {
    list-style: none;
    transition: padding 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.videoEmbed iframe,
.videoEmbed video,
.videoEmbed object,
.videoEmbed embed {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    border-radius: 5px;
}

#videoOverlayBox {
    display: none;
}

/* VARIABLES IN VIEWPORT */

/**--------------------------------------------Desktop----------------------**/

@media (min-width: 1280px){  

    body {
    /* Set defaults for x and y so it doesn't break if JS fails or before load */
    --x: 50%;
    --y: 50%;
    background: radial-gradient( 
        circle at var(--x) var(--y), 
        #B8EDF1 0%, 
        #FD89DC 22%
    );
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    color: white;
    overflow-x: hidden;
    }
    
    #whiteBox{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        height: 35rem; 
        width: 70rem;  
        border: 5px solid white;
        border-radius: 8px;
        box-sizing: border-box;
        background-image: url("/wp-content/uploads/2025/12/homePhoto_A.png");
        z-index: 10;
        background-size: cover;
    }

    #whiteBox .boxContent{
        height: 100%;
        width: 100%;
        position: relative;
    }

    #whiteBoxClean .boxContentVideo {
        height: 100%;
        width: 100%;
        position: relative;
    }

    #whiteBoxClean .boxContentVideo ~ .videoEmbed {
        width: 68%;
        right: 0;
        top: 50%;
        transform: translate(-20px, -50%); 
    }

    #whiteBoxClean{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        height: 35rem; 
        width: 70rem;  
        background-color:rgba(255,255,255,0.25);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border:2px solid rgba(255,255,255,0.6);
        box-shadow: 0 4px 30px rgba(0,0,0,0.15);
        border-radius: 8px;
        box-sizing: border-box;
        z-index: 10;
        background-size: cover;
    }

    #whiteBoxClean .boxContent{
        height: 100%;
        width: 100%;
        position: relative;
    }
    
    .pageLinks{
        position: absolute;
        bottom: 20px;
        left: 20px;
        display: flex;
        font-size: 3em;
        flex-direction: column;
    }

    .pageLinks a{
        color: #FFFFFF;
    }

    .photoHome{
        display: none;
    }

    .videoEmbed {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translate(-10%,-50%);
        width: 50%;
        box-sizing: border-box;
        max-height: 90%;
        overflow-y: auto; 
    }

    #pgDesign {
        position: absolute;
        width: 740px; 
        height: 90%; 
        right: 20px; 
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column; 
        gap: 10px; 
        padding: 2px; 
        overflow: visible; 
    }

    #pgDesign h3{
        font-size: 2em;
        font-family: "Bagel Fat One";
    }

    .designPanel {
        border-radius: 5px;
        transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        overflow: hidden;
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    #formIntake, #aboutMeContent, #postList {
        position: absolute;
        width: 740px;
        height: 90%;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        background-color: white;
        overflow-y: auto;
        box-sizing: border-box;
        border:1px solid rgba(211, 211, 211, 0.75);
        border-radius:5px;
        padding: 10px 15px 10px 10px;
        display: flex; 
        flex-direction: column;
        gap: 15px;
    }
    
    .Post1, .Post2, .Post3 {
        background-color:#f1e48e;
        border-radius: 5px;
        padding: 15px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .Post1 a, .Post2 a, .Post3 a {
        color: #852bf5;
        text-decoration: none; 
        display: block;        
    }
    
    .Post1 h1, .Post2 h1, .Post3 h1,
    .Post1 p, .Post2 p, .Post3 p {
        color: #852bf5;
        margin: 0;
    }

    #aboutMeContent{
        color:#892BA9;
        font-size:1.3em;
        font-family: "Baloo 2";
        line-height: 1.1em;
    }

    #videoOverlayBox {
        position: absolute;
        width: 740px;
        height: 700px; 
        right: 20px;
        top: 50%;
        margin-top: -350px;
        box-sizing: border-box;
        border: 1px solid rgba(211, 211, 211, 0.75);
        border-radius: 5px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #fc89dc;
        padding: 0;
        overflow: hidden;
        z-index: 50;
    }

    #videoOverlayBox .videoEmbed {
        position: relative;
        width: 80%;
        z-index: 10;
    }
    #videoOverlayBox .boxOverlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 740px; 
        height: 700px;
        z-index: 20;
        pointer-events: none; 
        display: block;
    }


    /*  SCROLLBAR STYLING  */

    ::-webkit-scrollbar {
        width: auto;
    }

    ::-webkit-scrollbar-track {
        background: #e0c0e1;
    }

    ::-webkit-scrollbar-thumb {
        background-color: #cd5bde;
        border-radius: 20px;
        border: 3px solid white;
    }

    * {
        scrollbar-width: auto;
        scrollbar-color: #e0c0e1 transparent;
    }

    /* HOVER RULES */

    .pageLinks li:hover{
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .pageLinks li.active{
        padding:10px;
    }

    .pageLinks li.active a{
        color: #852bf5;
    }

    #whiteBox:hover {
        background-image: url("/wp-content/uploads/2025/12/homePhoto_B.png");
        transition: all 0.3s ease;
    }

    #whiteBox:hover .pageLinks a{
        color: #e0c0e1;
        transition: color 0.3s ease;
    }

    #whiteBox:hover .pageLinks li.active{
        transform: translateX(-10px);
        transition:all 0.2s ease-in-out;
    }

    #whiteBox .pageLinks a:hover{
        color: #E08CE9;
    }

    #whiteBoxClean:hover {
        background-color:rgba(224,192,225,0.25);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        transition: all 0.3s ease;
    }

    #whiteBoxClean:hover .pageLinks a{
        color: white;
        transition: color 0.3s ease;
    }

    #whiteBoxClean:hover .pageLinks li.active{
        transform: translateX(-10px);
        transition:all 0.2s ease-in-out;
    }

    #whiteBoxClean .pageLinks a:hover{
        color: #852bf5;
    }

    /* DESIGN - ACCORDEON STATES */

    .designPanel {  /*CLOSED STATE*/
        flex: 1;
        background-color: #E08CE9; 
        cursor: pointer;
        border: 2px solid #E08CE9;
    }

    .designPanel:not(.active) .panelTitle { /*CLOSED STATE*/
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        white-space: nowrap;
        font-family: "Bagel Fat One";
        font-size: 1.5rem;
        color: white;
        margin: 0;
    }

    .designPanel:not(.active) .panelContent { /*CLOSED STATE*/
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    }

    .designPanel.active { /*ACTIVE STATE*/
        flex: 8;
        background-color: white;
        cursor: default;
        border: 2px solid #eee;
    }

    .designPanel.active .panelTitle { /*ACTIVE STATE*/
        display: none;
    }

    .designPanel.active .panelContent { /*ACTIVE STATE*/
        opacity: 1;
        visibility: visible;
        padding: 0 20px 20px 20px;
        color: black;
        overflow-y: auto;
        transition: opacity 0.3s ease 0.3s, visibility 0s linear 0s;
    }

    .designPanel:not(.active):hover {
        background-color: #892BA9;
    }

    #magazine .panelContent {
        -ms-overflow-style: none; 
        scrollbar-width: none;
    }

    #magazine .panelContent::-webkit-scrollbar {
        display: none;
    }

    /* FORM STYLING */

    div#wpforms-88 {
        margin: 0px 0px 20px 0px;
    }

    #formIntake .wpforms-field-label {
        display: block;
        text-align: center;
        width: 100%;
        background-color:#e0c0e1;
        border-radius:5px;
        padding:10px;
    }

    legend.wpforms-field-label{
        font-family: "Baloo 2";
        color:#892BA9 !important;
    }

    label.wpforms-field-label {
        font-family: 'Baloo 2';
        color:#892BA9 !important;
    }

    label.wpforms-field-sublabel.after {
        font-family: 'Baloo 2';
    }

    select#wpforms-88-field_4 {
        font-family: 'Baloo 2';
    }

    .choices__inner {
        font-family: 'Baloo 2';
    }

    .choices__list.choices__list--dropdown {
        font-family: 'Baloo 2';
    }

    button#wpforms-submit-88 {
        display: block;
        margin: 40px auto;
        width: fit-content;
        font-family: 'Baloo 2';
        background-color: #cd5bde;
        border-radius: 30px;
        padding: 5px 30px;
    }

    /* MY NAME - DESKTOP */
    #myName{
        font-size: 4.5em;
        width: 70rem;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: 0rem; 
        text-align: right;
        opacity: 0;
        transition: all 0.2s ease-in-out;
    }

    /* MyName Animation */
    #whiteBox:hover + #myName{
        opacity: 1;
        margin-top: -19rem; 
    }
    
    #whiteBoxClean:hover + #myName{
        opacity: 1;
        margin-top: -19rem; 
    }


}

/**------------------------------------------Tablet----------------------------**/

@media (min-width: 1000px) and (max-width: 1279px){

    body{
        background-image: url("/wp-content/uploads/2025/12/pinheiroFelipe_bgRecolor_3-scaled.png"); /* Original vector by Rungphailin Sreehom for Vecteezy*/
        background-size: 500px;
        background-repeat: repeat;
        color: white;
        overflow-x: hidden;
    }

    #myName{
        display: block;
        opacity: 1;
        font-size: 4.5em;
        width: 45rem;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: -20rem;
        text-align: center;
    }
    
    #whiteBoxClean {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        height: 35rem;
        width: 50rem;
        background-color: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-radius: 8px;
        z-index: 10;
        box-sizing: border-box;
    }

    #whiteBox {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        height: 35rem;
        width: 50rem;
        background-color: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-radius: 8px;
        z-index: 10;
        box-sizing: border-box;
    }

    #whiteBox .boxContent, #whiteBoxClean .boxContent {
        position: relative;
        height: 100%;
        width: 100%;
    }

    .pageLinks {
        position: absolute;
        top: 20px;
        bottom: 20px;
        left: 20px;
        width: 20%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 15px;
        font-size: 1.5em;
        z-index: 20;
    }

    .pageLinks li {
        flex-grow: 1;
        width: 100%;
    }

    .pageLinks li a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        background-color: #E08CE9;
        border-radius: 25px;
    }

    .pageLinks li.active a{
        font-size: 1.4em;
        background-color: #892BA9;
    }

    .pageLinks a:active {
        background-color: #de74e9; 
        transform: scale(0.95); 
        box-shadow: none; 
    }

    #formIntake, #aboutMeContent, #postList, #pgDesign {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        height: 92%;
        width: 70%;
        background-color: white;
        overflow-y: auto;
        box-sizing: border-box;
        border: 1px solid rgba(211, 211, 211, 0.75);
        border-radius: 5px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .photoHome{
        display: none;
    }

    #aboutMeContent{
        color:#892BA9;
        font-size:1.1em;
        font-family: "Baloo 2";
        line-height: 1.1em;
        text-align: center;
    }

    #pgDesign {
        display: flex;
        flex-direction: column;
        gap: 10px;
        overflow: visible;
        border: none; 
        background-color: transparent;
        padding: 2px;
    }
    
    .Post1, .Post2, .Post3 {
        background-color: #E08CE9;
        border: 2px solid #E08CE9;
        border-radius: 15px;
        padding: 20px;
        flex: 1; 
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .designPanel {
        border-radius: 5px;
        transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        overflow: hidden;
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: #E08CE9;
    }

    .videoEmbed {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 70%;
        box-sizing: border-box;
        max-height: 90%;
        overflow-y: auto; 
    }

    /*  SCROLLBAR STYLING  */

    ::-webkit-scrollbar {
        width: auto;
    }

    ::-webkit-scrollbar-track {
        background: #e0c0e1;
    }

    ::-webkit-scrollbar-thumb {
        background-color: #cd5bde;
        border-radius: 20px;
        border: 3px solid white;
    }

    * {
        scrollbar-width: auto;
        scrollbar-color: #e0c0e1 transparent;
    }

    /* --- ACCORDEON STATES --- */

    .designPanel { /*CLOSED STATE*/
        flex: 1;
        cursor: pointer;
        background-color: #E08CE9;
        border: 2px solid #E08CE9;
    }

    .designPanel:not(.active) .panelTitle { /*CLOSED STATE*/
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        white-space: nowrap;
        font-family: "Bagel Fat One";
        font-size: 1.5rem;
        color: white;
        margin: 0;
    }

    .designPanel:not(.active) .panelContent { /*CLOSED STATE*/
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    }

    .designPanel.active { /*ACTIVE STATE*/
        flex: 8;
        background-color: white;   
        cursor: default;
        border: 2px solid #eee;
    }

    .designPanel.active .panelTitle { /*ACTIVE STATE*/
        display: none;
    }

    .designPanel.active .panelContent { /*ACTIVE STATE*/
        opacity: 1;
        visibility: visible;
        padding: 0 20px 20px 20px;
        color: black;
        overflow-y: auto;
        transition: opacity 0.3s ease 0.3s, visibility 0s linear 0s;
    }

    /*FORM STYLING*/

    div#wpforms-88 {
        margin: 0px 0px 20px 0px;
    }

    #formIntake .wpforms-field-label {
        display: block;
        text-align: center;
        width: 100%;
        background-color:#e0c0e1;
        border-radius:5px;
        padding:10px;
    }

    legend.wpforms-field-label{
        font-family: "Baloo 2";
        color:#892BA9 !important;
    }

    label.wpforms-field-label {
        font-family: 'Baloo 2';
        color:#892BA9 !important;
    }

    label.wpforms-field-sublabel.after {
        font-family: 'Baloo 2';
    }

    select#wpforms-88-field_4 {
        font-family: 'Baloo 2';
    }

    .choices__inner {
        font-family: 'Baloo 2';
    }

    .choices__list.choices__list--dropdown {
        font-family: 'Baloo 2';
    }

    button#wpforms-submit-88 {
        display: block;
        margin: 40px auto;
        width: fit-content;
        font-family: 'Baloo 2';
        background-color: #cd5bde;
        border-radius: 30px;
        padding: 5px 30px;
    }
}

    
/**---------------------------------------Mobile------------------------------**/

@media (max-width: 999px){
   
    body {
        background-image: url("/wp-content/uploads/2025/12/pinheiroFelipe_bgRecolor_3-scaled.png"); /* Original vector by Rungphailin Sreehom for Vecteezy*/
        background-size: 500px;
        background-repeat: repeat;
        color: white;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }

    header, .site-header { order: 0; width: 100%; }
    footer, .site-footer { order: 10; width: 100%; margin-top: auto; }

    #myName{
        display: block; 
        opacity: 1;
        width: 20rem; 
        font-size: 2em;
        text-align: center;
        
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 15px 0;
        order: 1; /*--Flex Order--*/
    }

    #whiteBox, #whiteBoxClean {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 20rem; 
        height: auto;
        background-color: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-radius: 5px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        z-index: 10;
        order: 2; /*--Flex Order--*/
    }

    #whiteBox .boxContent, #whiteBoxClean .boxContent {
        height: auto; 
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 20px;
        padding-bottom: 15px;
        flex-direction: column;
    }

    .pageLinks{
        width: 100%;
        padding: 20px 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .pageLinks li{
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .pageLinks a {
        display: block;
        width: 85%; 
        margin: 0 auto; 
        background-color: #E08CE9;  
        padding: 8px 0; 
        border-radius: 20px;
        font-size: 1.2rem; 
        transition: all 0.1s ease; 
        box-shadow: 2px 3px 2px rgba(0,0,0,0.1); 
        color: white;
    }

    .pageLinks li.active a{
        color: white;
        background-color: #892BA9;
    }

    .pageLinks a:active {
        background-color: #de74e9; 
        transform: scale(0.95); 
        box-shadow: none; 
    }

    .photoHome {
    display: block;
    width: 100%;
    height: auto;
    }

    .photoHome img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 0 0 5px 5px;
    }
    
    #aboutMeContent{
        color: #892BA9;
        font-size:1.1em;
        font-family: "Baloo 2";
        text-align: center;
        padding:20px;
    }

    #pgDesign {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%; 
        height: 40vh;
        min-height: 400px;
        padding: 10px;
        box-sizing: border-box;
    }

    .videoEmbed {
        width: 100%;
        padding: 20px 10px 5px 10px;
        box-sizing: border-box;
        display: block;
    }

    /* --- ACCORDEON STATES --- */

    .designPanel { /*CLOSED STATE*/
        flex: 1;
        cursor: pointer;
        background-color: #E08CE9;
        border: 2px solid #E08CE9;
        position: relative;
        transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        overflow: hidden; 
        border-radius: 5px;
    }

    .designPanel:not(.active) .panelTitle { /*CLOSED STATE*/
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        white-space: nowrap;
        font-family: "Bagel Fat One";
        font-size: 1.5rem;
        color: white;
        margin: 0;
    }

    .designPanel:not(.active) .panelContent { /*CLOSED STATE*/
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    }

    .designPanel.active { /*ACTIVE STATE*/
        flex: 3;
        background-color: white;
        cursor: default;
        border: 2px solid #eee;
    }

    .designPanel.active .panelTitle { /*ACTIVE STATE*/
        display: none;
    }

    .designPanel.active .panelContent { /*ACTIVE STATE*/
        opacity: 1;
        visibility: visible;
        padding: 0 20px 20px 20px;
        color: black;
        overflow-y: auto;
        transition: opacity 0.3s ease 0.3s, visibility 0s linear 0s;
    }

    /*FORM STYLING*/

    div#wpforms-88 {
        margin: 0px 0px 20px 0px;
    }

    #formIntake .wpforms-field-label {
        display: block;
        text-align: center;
        width: 100%;
        background-color:#e0c0e1;
        border-radius:5px;
        padding:10px;
    }

    legend.wpforms-field-label{
        font-family: "Baloo 2";
        color:#892BA9 !important;
    }

    label.wpforms-field-label {
        font-family: 'Baloo 2';
        color:#892BA9 !important;
    }

    label.wpforms-field-sublabel.after {
        font-family: 'Baloo 2';
    }

    select#wpforms-88-field_4 {
        font-family: 'Baloo 2';
    }

    .choices__inner {
        font-family: 'Baloo 2';
    }

    .choices__list.choices__list--dropdown {
        font-family: 'Baloo 2';
    }

    button#wpforms-submit-88 {
        display: block;
        margin: auto;
        width: fit-content;
        font-family: 'Baloo 2';
        background-color: #cd5bde;
        border-radius: 30px;
        padding: 5px 30px;
    }
}

