:root {
    --Gold: #DFAD57;
    --DarkGold: #EBB11C;
    --Purple: #4E3476;
    --text: #EBDA7B;
}

/*
#birthday{
    visibility: hidden;
}
*/
.tabs{
    display: flex;
    width: 50%;
/*    border-bottom: 2px solid var(--Gold);*/
    margin: 10px;
    z-index: 9;
    
}

.linkToNum{
    color: var(--Gold);
}

.linkToNum:hover{
    color: var(--DarkGold);
}

.tabCalc{
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 10px;
    border: 2px solid var(--Gold);
    border-radius: 15px 15px 0px 0px;
    background-color: var(--Purple);
    
}

.tabCalc.active{
    background-color: unset;
    border: 2px solid var(--Gold);
    border-radius: 15px 15px 0px 0px;
    border-bottom: 0;
}

.tabCalc.active:hover{
    background-color: unset;
}

.tabCalc:hover{
    background-color: var(--Purple);
    border-radius: 15px 15px 0px 0px;

}

.tabs span{
    color: var(--text);
    cursor: pointer;
    z-index: 9;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.form-section{
    display: flex;
    align-items: center;
    flex-direction: column;
    z-index: 9;
}

.numerology-form{
    display: flex;
}

.numerology-form input, .buttonSubmit{
    border: 2px solid var(--Gold) !important;
    background-color: var(--Purple) !important;
    color: var(--text) !important;
    border-radius: 50px !important;
    margin: 10px !important;
}

.form-section h3{
    color: var(--Gold);
}

#partner{
    display:none;
    z-index: 9;
}

#backPartner{
    display: none;
}



::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

::placeholder {
  color: var(--text);
  opacity: 1;
}

.containerNum {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 100%;
    gap:20px;
}

.triangle-section{
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
/*    overflow: hidden;*/
    margin: 20px;
}

.triangle-section #result{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    

}

.triangle-section #result .bottomButtonsContainer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: 530px;
    width: 100%;
}

.bc, .bcc{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

} 

.bcc{
    position: absolute;
    width: 100%;
}

.bc span, .bcc span{
    color: white;
    font-weight: bold;
}

.middleButtonContainer{
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    width: 100%;

}
.middleButtonContainer img{
    transition: transform 1s ease-in-out, padding 1s ease-in-out;;
}
.triClone{
    position: absolute;
    padding-bottom: 0px;
    transform: rotate(0deg);
}

.triClonePosition{
    transform: rotate(180deg); 
    padding-bottom: 250px !important;
}

.triRotated {
    transform: rotate(180deg); 
}


.absulotTri{
    position: absolute;
    margin-top:125px;
}

.zIndexH{
    z-index: 9;
}


.btnNum:focus{
    background-color: unset;
}

.btnNum:focus{
    outline: 5px auto white;
}

.btnNum{
    z-index: 9;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    border: 1px solid var(--Gold);
    cursor: pointer !important; 
    opacity: 1;
    transition: opacity 0.3s ease;
}   

.startImg{
    width: 80px;
    position: absolute;
    padding-bottom: 15px;
    
}

#star, .starTop, .startImg, .bc span{
    opacity: 1;
    transition: opacity 0.3s ease;
}

#star.hidden, .starTop.hidden, .startImg.hidden, .bc span.hidden {
    opacity: 0;
}  

.starTop{
    position: absolute;
    max-width: 300px !important;
    margin-bottom: 30px;
}

.btnNum.hidden {
    opacity: 0;
    pointer-events: none;
}

.btnNum img{
    border-radius: 50px !important;
    width: 60px !important;
    height: 60px !important;
}

.btnNum span{
    position: absolute;
    color: white;
    font-size: 30px;
    font-weight: bold;
    line-height: unset;
    text-shadow: 1px 1px 5px black;
}

.btnNum:hover{
    background-color: unset;
    transform: scale(1.1);
}

.plnTextCenter{
    text-align: center;
}

.rotating {
    animation: spin 60s linear infinite; 
}


@keyframes spin {
    0% {
        transform: rotate(0deg); 
    }
    100% {
        transform: rotate(360deg); 
    }
}


/* פופאפ */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 500px;
    background: var(--Purple);
    border: 2px solid var(--Gold);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    padding: 20px;
    color: var(--text);
    opacity: 0; /* שקיפות מלאה בהתחלה */
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    z-index: 99;
}

.popup.show {
    transform: translate(-50%, -50%) scale(1); /* הגדלה לגודל מלא */
    opacity: 1; /* הפוך לגלוי */
}


/*
.hidden {
    display: none;
}
*/

.popup-content {
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}



.timeline-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 40px 0;
    padding-top: 60px;
    opacity: 1;
    transition: opacity 0.3s ease;
    flex-direction: column;
}
    
.timeline-container h2{
    color:white;

}

.timeline-container.hidden{
    opacity: 0;
    
}

.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    height: 4px;
    background-color: var(--Gold);
    border-radius: 5px;
}

/* סגנון לנקודות (כפתורים) */
.year {
    position: relative;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 3px solid var(--Gold);
    border-radius: 50%;
/*    cursor: pointer;*/
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: transform 0.3s, background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*
.year:hover {
    transform: scale(1.3); 
}

.year.selected:hover {

    animation: none;
    transform: scale(1.3);
    transition: transform 0.3s ease-in-out;
}
*/

/* תוויות שנה תמיד מוצגות מתחת לעיגולים */
.year::after {
    content: ' שנה ' attr(data-num);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: bold;
    color: white;
    white-space: nowrap;
}

.year.feedback{
    width: 30px;
    height: 30px;
}

/* סגנון לעיגול נבחר */
.year.selected {
    width: 30px;
    height: 30px;
    border-width: 4px;
/*
    animation: grow-shrink 2s infinite ease-in-out;
    animation-play-state: running;
*/
}

.year div{
    color: white;
    font-weight: bold;
    width: 100px !important;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 140px;
    flex-direction: column-reverse;
    position: absolute;
    min-height: 100px;
    align-items: center;
}


@keyframes grow-shrink {
    0%, 100% {
        transform: scale(1); /* הגודל המקורי */
        filter: drop-shadow(0px 0px 0px #262626);
    }
    50% {
        transform: scale(1.3); /* גדל ב-50% */
        filter: drop-shadow(0px 0px 2px #262626);
    }
}

/* חץ מעל הנקודה הנבחרת */

.year.selected::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--Gold);

}




.year span{
/*
    position: absolute;
    top: -118px;
*/
    display: flex;
    line-height: 20px;
    color: white;
    font-weight: bold;
/*    height: 100px;*/
    width: 100px;
    text-align: center;
    align-items: flex-end;
    justify-content: center;
}
/*

.year span{
    position: absolute;
    top: -40px;
    color: white;
    font-weight: bold;
    width: 100px;
    text-align: center;
}
*/

.errorPopup {
    position: fixed;
    display: flex;
    height:100px;
    justify-content: center;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000000cf;
    color: white;
    padding: 20px;
    border-radius: 25px;
    min-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    z-index: 9;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
}

.errorPopup p{
    margin: 0 !important;
}

.errorPopup.show {
    opacity: 1; /* הופך גלוי */
    visibility: visible;
}

#yourYear{
    position: absolute;
    top: 0;
    width: 100%;
}

#personalYear{
    color:white;
    padding-bottom: 120px;
    text-align: center;
    width:90%;
}


@media (max-width: 768px) {
    
    .tabs{
        width: 100%;
        
    }
    
    .startImg{
        width: 60px;
    }
    
    .containerNum {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        
    overflow: hidden;
    }

    .triangle-section {

        position: relative;
    }
    
    .form-section,
    .triangle-section {
        width: 100%; /* רוחב מלא */
        text-align: center;
    }
    

    
    .absulotTri{
        margin-top:70px;
    }
    
    .numerology-form {
        min-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .numerology-form input{
        min-width: 94% !important;
        height: 50px;
    }
    
    #triangleSingle, #triClone{
        padding: 0 50px;
    }

    .form-section {
        margin-bottom: 20px;
        z-index: 9;
    }
    
    #partner{
        width: 100%;
        
    }
    .popup {
        width: 90%; 
        padding: 15px;
        
    }
    
    .timeline-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px; 
        width: 100%; 
        flex-direction: column;
    }
    
    .triClonePosition{
        transform: rotate(180deg); 
        padding-bottom: 150px !important;
    }


    .year::after{
        font-size: 16px;
        content: attr(data-num);
    }
    
    .year.selected::after{
        content: ' שנה ' attr(data-num) !important;
    }
    
    .triangle-section #result .bottomButtonsContainer{
        max-width:420px;
        
    }
    
/*
    .year div{

        width: unset !important;
        line-height: 20px;
        text-align: center;
    }
*/
    



}



