/* filename: style.css */
html
{
    height: 100%;
}
body
{
    /*background-color: white;
    background-image: url("../photo/background.png");*/
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    font-size: 12px;
    direction: rtl;
    margin: 0px;
    padding: 0px;
}
#block-left h3
{
    font-size: 14px;
    margin-top: -1px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 8px;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
}
#block-left h4
{
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 6px;
    margin-right: 6px;
    font-size: 12px;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}
#block-parent
{
    display: flex;
    height: 100%;
    overflow: hidden;
}
#block-right
{
    height: 100%;
    flex-grow: 1;
    background-color: rgb(218, 165, 32);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    position: relative; /* For positioning radial items */
    overflow: hidden;
}
#block-left
{
    height: 100%;
    width:400px;
    margin-left: 2%;
    margin-right: 4%;
    overflow-y: auto; /* Enable scroll for timeline history */
    scrollbar-width: none; /* Hide scrollbar in Firefox */
}
#block-left::-webkit-scrollbar {
    display: none; /* Hide scrollbar in Chrome/Safari/Edge */
}
#block-circle
{
    background-color: white;
    background-image: url("../photo/circle.jpg");
    background-repeat: no-repeat;
    background-size: 100%;
    position: relative;
    width: 256px;
    height: 256px;
    border-radius: 256px;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    border: 10px solid rgb(218, 165, 32); /* Added golden border */
   
    box-shadow: none; /* Removed all shadows */
    z-index: 10; /* Ensure circle is above lines */
}
#block-left-title
{
    width: 100%;
    height: 128px;
}
.b-l-item
{
    width: 100%;
    height: 128px;
    float: right;
    position: relative; /* Added relative to contain absolute children */
}
.b-l-item-r
{
    text-align: left;
    direction: ltr;
    width: 192px;
    height: 100%;
    float: right;
}
.b-l-item-m
{
    width: 16px;
    height: 100%;
    float: right;
    position: relative; /* Ensure relative positioning for absolute circle */
}
.b-l-item-l
{
    text-align: right;
    direction: ltr;
    width: 192px;
    height: 100%;
    float: right;
}
.b-l-item-m-circle
{
    background-color: rgb(218, 165, 32);
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 16px;
    top: 1%; /* Adjusted vertical position as requested */
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 2;
}
.b-l-item-m-line
{
    position: relative;
    width: 1px;
    height: 110px;
    border-right: 3px dashed black;
    top: 18px;
    left: -6.5px;
}
/* Radial active projects styles */
.radial-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    z-index: 5; /* Lines and items below circle */
}
.radial-item {
    position: absolute;
    width: 140px;
    height: 50px;
    background-color: #ffffff21;
    border: 2px solid white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    color: black;
    text-decoration: none;
    /*box-shadow: 0 0 10px rgba(0,0,0,0.3);*/
    box-shadow: none;
    transition: all 0.3s ease;
    z-index: 6;
    opacity: 0; /* Start hidden for animation */
    transform: scale(0.8); /* Start smaller for animation */
}
.radial-item.show {
    opacity: 1;
    transform: scale(1);
}
.radial-item:hover {
    background-color: rgba(255,255,255,1);
    transform: scale(1.1);
    border-color: #fff;
}
/* Line connecting item to center - behind items */
.radial-line {
    position: absolute;
    background: white;
    height: 2px;
    transform-origin: left center;
    z-index: 4;
    opacity: 0; /* Start hidden for animation */
    transform: scaleX(0); /* Start with zero length for animation */
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.radial-line.show {
    opacity: 1;
    transform: scaleX(1);
}
/* Fade-in animation for history items */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}
/* Responsive adjustments */
@media (max-width: 1024px) {
    #block-parent {
        flex-direction: column;
    }
    #block-left {
        width: 100%;
        height: auto;
        margin: 0;
        overflow-y: auto; /* Keep scrollable */
    }
    #block-right {
        height: 70vh;
        width: 100%;
    }
    #block-circle {
        width: 200px;
        height: 200px;
    }
    .radial-item {
        width: 120px;
        height: 45px;
        font-size: 11px;
    }
}
@media (max-width: 480px) {
    .radial-item {
        width: 100px;
        height: 40px;
        font-size: 10px;
    }
    #block-circle {
        width: 180px;
        height: 180px;
    }
}