@keyframes entrence {
    0% {
        animation-timing-function: ease-in;
        opacity: 0;
        transform: scale(0);
    }

    38% {
        animation-timing-function: ease-out;
        opacity: 1;
        transform: scale(1);
    }

    55% {
        animation-timing-function: ease-in;
        transform: scale(0.7);
    }

    72% {
        animation-timing-function: ease-out;
        transform: scale(1);
    }

    81% {
        animation-timing-function: ease-in;
        transform: scale(0.84);
    }

    89% {
        animation-timing-function: ease-out;
        transform: scale(1);
    }

    95% {
        animation-timing-function: ease-in;
        transform: scale(0.95);
    }

    100% {
        animation-timing-function: ease-out;
        transform: scale(1);
    }
}

@keyframes attention {
	0% {
		transform: translate(0);
	}

	20% {
		transform: translate(-.3vw, .3vw);
	}

	40% {
		transform: translate(-.3vw, -.3vw);
	}

	60% {
		transform: translate(.3vw, .3vw);
	}

	80% {
		transform: translate(.3vw, -.3vw);
	}

	100% {
		transform: translate(0);
	}
}

/* ----------------------------------------------
 * Generated by Animista on 2024-12-20 21:49:5
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation pulsate-bck
 * ----------------------------------------
 */

@keyframes pulsate-bck {
    0% {
      -webkit-transform: scale(1);
              transform: scale(1);
    }
    50% {
      -webkit-transform: scale(0.9);
              transform: scale(0.9);
    }
    100% {
      -webkit-transform: scale(1);
              transform: scale(1);
    }
  }
  
/* offices table */
.normal-colors {
    --primary-color: #4890FD;
    --gradient-primary-color: radial-gradient(#6ba4fa, #447dd3);
}

.alert-colors {
    --primary-color: #ee3f33;
    --gradient-primary-color: radial-gradient(#ff5d5d, #ee3f33);
}


table {
    width: 90%;
    height: 100%;
    padding: 0;
    margin: 0;
    align-items: center;
    margin-top: 2vh;
}

#main_table {
    margin-left: 5%;
    width: 90%;
    height: 98%;
    border-collapse: collapse;
    padding: 0;
    margin: 0, auto;

}

tr,
td {
    padding: 0;
    margin: 0;
}

.transform_div:hover {
    transform: scale(1.1);
}
.transform_div-main:hover {
    transform: scale(1.05);
}
/* bubbles */
.kpi {
    margin-left: 25%;
    background: #447dd3; /* Base color */
    background: linear-gradient(145deg, #4d89e8, #3a6ab3); /* Subtle gradient for depth */
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    animation: entrence 1.3s ease 0s 1 normal forwards;
    box-shadow: 
        inset 0 -2px 4px rgba(0,0,0,0.15),  /* Reduced inner shadow at bottom */
        inset 0 2px 4px rgba(255,255,255,0.2), /* Kept inner highlight at top */
        0 2px 6px -2px rgba(0,0,0,0.2), /* Reduced outer shadow */
        0 6px 12px rgba(0,0,0,0.15); /* Reduced larger shadow for depth */
    position: relative;
    transition: all 0.3s ease;
}

.kpi:hover {
    background: linear-gradient(145deg, #5494f5, #447dd3);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 -2px 4px rgba(0,0,0,0.15),
        inset 0 2px 4px rgba(255,255,255,0.3),
        0 4px 8px -2px rgba(0,0,0,0.3),
        0 8px 16px rgba(0,0,0,0.15);
}



.policy {
    margin-left: 25%;
    height: 4.5vw;
    width: 4.5vw;
    background: #c3c3c3; /* Base color */
    background: linear-gradient(145deg, #d4d4d4, #b4b4b4); /* Subtle gradient for depth */
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    animation: entrence 1.3s ease 0s 1 normal forwards;
    box-shadow: 
        inset 0 -2px 4px rgba(0,0,0,0.15),  /* Reduced inner shadow at bottom */
        inset 0 2px 4px rgba(255,255,255,0.2), /* Kept inner highlight at top */
        0 2px 6px -2px rgba(0,0,0,0.2), /* Reduced outer shadow */
        0 6px 12px rgba(0,0,0,0.15); /* Reduced larger shadow for depth */
    position: relative;
    transition: all 0.3s ease;
}

.policy:hover {
    background: linear-gradient(145deg, #e3e3e3, #c3c3c3);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 -2px 4px rgba(0,0,0,0.15),
        inset 0 2px 4px rgba(255,255,255,0.3),
        0 4px 8px -2px rgba(0,0,0,0.3),
        0 8px 16px rgba(0,0,0,0.15);
    margin-left: 25%;
}

.main_bubble {
    height: 10.3vh;
    width: 10.3vh;
    background-color: grey;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    display: block;
    margin: auto;
    animation: entrence 1s ease 0s 1 normal forwards;
    background-size: cover;
    border: .1vw solid grey;
    object-fit: cover;    /* Crop the image to fill the container */
    background-size: 90%; /* Increase to zoom in */
    background-position: center; /* Keep focus in the middle */

}

.main_bubble:hover {
    display: block;
    margin: auto;
    background-color: rgb(155, 155, 155);

}
.alert_bubble {
    margin-left: 25%;
    height: 6vw;
    width: 6vw;
    background: #ee3f33; /* Base color */
    background: linear-gradient(145deg, #ff5d5d, #ee3f33); /* Subtle gradient for depth */
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    box-shadow: 
        inset 0 -2px 4px rgba(0,0,0,0.15),
        inset 0 2px 4px rgba(255,255,255,0.2),
        0 2px 6px -2px rgba(0,0,0,0.2),
        0 6px 12px rgba(0,0,0,0.15);
    position: relative;
    transition: all 0.3s ease;
    animation: 
        entrence 1.3s ease 0s 1 forwards,
        pulsate-bck 1.5s linear 1.5s infinite;
}
.alert_bubble:hover {
    background: linear-gradient(145deg, #ff6b6b, #ff4040);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 -2px 4px rgba(0,0,0,0.15),
        inset 0 2px 4px rgba(255,255,255,0.3),
        0 4px 8px -2px rgba(0,0,0,0.3),
        0 8px 16px rgba(255,0,0,0.15);
}
.explain_span {
    margin-right: 6vw;
    display: block;
    float: right;
    height: 3vw;
    width: 3vw;
    background: #ababab; /* Base color */
    background: linear-gradient(145deg, #cecece, #9a9a9a); /* Subtle gradient for depth */
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    left: 90%;
    box-shadow: 
        inset 0 -2px 4px rgba(0,0,0,0.15),
        inset 0 2px 4px rgba(255,255,255,0.2),
        0 2px 6px -2px rgba(0,0,0,0.2),
        0 6px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.explain_span:hover {
    background: linear-gradient(145deg, #d8d8d8, #a3a3a3);
    transform: translateY(-1px);
    box-shadow: 
        inset 0 -2px 4px rgba(0,0,0,0.15),
        inset 0 2px 4px rgba(255,255,255,0.3),
        0 4px 8px -2px rgba(0,0,0,0.3),
        0 8px 16px rgba(0,0,0,0.15);
}


[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    background: #433f3ff1;
    padding: .3em;
    z-index: 1; 
    position: absolute;
    top: 0px;
    left: 50%;
    color:white;
    border-radius: 1.5vh;
    font-weight: bold;
    font-size: 2vh;
    font-family: Arial, Helvetica, sans-serif;
    float: right;
    direction: rtl;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;

  }

#main_upper_left{
    float: right;
    margin-right: 1vw;
}
#main_upper_right{
    float: left;
    margin-left: 1vw;
}
#main_bottom_left{
    float: right;
    margin-right: 1vw;
}
#main_bottom_right{
    float: left;
    margin-left: 1vw;
}

.up-right{
    float: left;
}
.up-left{
    float: right;
}
.down-right{
    float: left;
}
.down-left{
    float: right;
}
.office-modal-position{
    float: none;
    margin: 0 auto;
    height: 50vh;
    width: 60vh;

}
/* modals */
.kpi-modal {
    width: 94%;
    height: 100%;
    border: .3vh solid #4890FD;
    border-radius: 3vh;
    padding: 3vh;
    margin: 0;
    padding-top: 0;
    margin-left: 1%;
    background-color: white;
    margin-top: 1vh;
    clip-path: inset(0 round 3vh);
    animation: modalEntrance 0.3s ease-out forwards;
}

.kpi-modal::backdrop {
    background-image: linear-gradient(#fff, #f2f2f2);
    animation: fadeIn 0.3s ease-out forwards;
}

.policies-modal {
    border: .3vh solid rgb(188, 188, 188);
    width: 94%;
    height: 100%;
    border-radius: 3vh;
    padding: 3vh;
    margin: 0;
    padding-top: 0;
    margin-left: 1%;
    background-color: white;
    margin-top: 1vh;
    clip-path: inset(0 round 3vh);
    animation: modalEntrance 0.3s ease-out forwards;
}

.policies-modal::backdrop {
    background-image: linear-gradient(#fff, #f2f2f2);
    animation: fadeIn 0.3s ease-out forwards;
}

.close_button {
    border: none;
    font-weight: 700;
    background-color: #4890FD;
    border-radius: 3vh;
    color: white;
    width: 5vh;
    height: 5vh;
    cursor: pointer;
    font-size: 3vh;
    padding: 0;
    position: fixed;
    top: 2.5vh;
    left: 3vh;
}

.close_button:hover {
    background-color: #257cff;
}

.share_button {
    border: none;
    font-weight: 700;
    background-color: #25cd70;
    border-radius: 3vh;
    color: white;
    width: 10vh;
    height: 3vh;
    cursor: pointer;
    font-size: 2vh;
    padding: 0;
    position: fixed;
    top: 2.7vh;
    left: 9vh;
    display: flex;
     align-items: center; 
     justify-content: center;
}
.share_button:hover{
    background-color: #20b362;

}
.share_button p{
    font-weight: bold;
}
p {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 300;
}

.source-span {
    border: none;
    font-weight: 700;
    background-color: #d8d4d9;
    border-radius: 3vh;
    color: white;
    width: 10vh;
    height: 3vh;
    cursor: pointer;
    font-size:3.5vh;
    padding: 0;
    position: fixed;
    top: 2.7vh;
    left: 22vh;
    display: flex;
    align-items: center; 
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold; 
}
.source-span:hover{
    background-color: rgb(201, 201, 201);
}
#modal-source-link{
    outline: none;        
    text-decoration: none;
}
.source-span-p {
    border: none;
    font-weight: 700;
    background-color: #d8d4d9;
    border-radius: 3vh;
    color: white;
    width: 10vh;
    height: 3vh;
    cursor: pointer;
    font-size:3.5vh;
    padding: 0;
    position: fixed;
    top: 2.7vh;
    left: 22vh;
    display: flex;
    align-items: center; 
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold; 
    }
.source-span-p:hover{
    background-color: rgb(201, 201, 201);
}
#policy-source-link{ 
    outline: none;        
    text-decoration: none;}
    
.up-left {
    border-right: 1vh solid;
    border-image-slice: 1;
    border-width: 0.8vh;
    border-image-source: linear-gradient(#ffffff, #858585);
}

.info-modal {
    width: 94%;
    height: 300vh;
    border: .3vh solid #4890FD;
    border-radius: 3vh;
    padding: 3vh;
    margin: 0;
    padding-top: 0;
    margin-left: 1%;
    background-image: linear-gradient(#fff, #f2f2f2);
    margin-top: 1vh;
    overflow: hidden;
    animation: modalEntrance 0.3s ease-out forwards;
}

.info-modal::backdrop {
    background-image: linear-gradient(#fff, #f2f2f2);
    animation: fadeIn 0.3s ease-out forwards;
}

.policies-modal::-webkit-scrollbar {
    width: 1vh;
    height: .2vh;
}
/* Define the thumb style */
.policies-modal::-webkit-scrollbar-thumb {
background: rgb(207, 207, 207);
border-radius: 10px;
}
.policies-modal::-webkit-scrollbar-thumb:hover {
background: #c5c5c5;
}

.kpi-modal::-webkit-scrollbar {
    width: 1vh;
    height: .2vh;
}
/* Define the thumb style */
.kpi-modal::-webkit-scrollbar-thumb {
background: rgb(207, 207, 207);
border-radius: 10px;
}
.kpi-modal::-webkit-scrollbar-thumb:hover {
background: #c5c5c5;
}

.office-modal::-webkit-scrollbar {
    width: 1vh;
    height: .2vh;
}
/* Define the thumb style */
.office-modal::-webkit-scrollbar-thumb {
background: rgb(207, 207, 207);
border-radius: 10px;
}
.office-modal::-webkit-scrollbar-thumb:hover {
background: #c5c5c5;
}
/* icons */
.bubble_icon {
    width: 3vw;
    display: block;
    margin: 0 auto;
    margin-top: 10%;
    padding: .5vw;
}

.large{
    width: 10vh;
    height: 10vh;
}
.large:hover{
    transform: scale(1.2);
}
.medium{
    width: 8vh;
    height: 8vh;
}
.medium:hover{
    transform: scale(1.2);
}
.small{
    width: 6.5vh;
    height: 6.5vh;
}
.small:hover{
    transform: scale(1.2);
}

.small_icon{
    width: 4vh;
    height: 4vh;
}
.medium_icon{
    width: 5vh;
    height: 5vh;
    margin-bottom: 1vh;
}
.large_icon{
    width: 6vh;
    height: 6vh;
}

/* modal content */
 
.kpi-modal:focus{
    outline: none;

}
.modal-content{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;

}

.modal-info-table{
    width: 100%;
    height: auto;
    margin:0;
    padding: 0;
}
.modal-info-table p{
    font-family: 'Assistant', sans-serif;

    margin-top: 2.5vh;
    padding: 0;
}
#graph_div_kpi{
    /*width:100%; if you want that the timeline will be shown at start and not animate*/
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

 /* Timeline container */
 .timeline {
    display: flex;
    height: 6vh;
    width: 100%;
    background-color: transparent;
    margin: 0;
    margin-top: 2vh;
    padding: 0;
    margin-left: 2vh;
}
/* Style for each era */
.era {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    text-align: right;
    justify-content: space-between;
    align-items: center;
    padding: .7vh;
    box-shadow: 0px 3px 3px rgb(189, 189, 189);

}
.era img{
    border-radius: 3vh;
    box-shadow: 0px 3px 3px rgb(189, 189, 189);

}
.era p{
    font-size: 2vh;
}
/* Labels */
.label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 5px;
}
.chart-div{
    margin: 0 auto;
    max-width: 100%;
}

.share-message{
    display: none; 
    position: fixed; 
    width: 25vw;
    height: 3vw;
    top: 90%; 
    left: 70%; 
    padding: .5vw; 
    background: rgba(0, 0, 0, 0.8); 
    color: white; 
    border-radius: 2.5vh;
}
.share-message p{
    font-weight: bold;
    color: white;
    margin: auto;
    float: right;
    margin-right: 1vw;
    font-size: 2.2vw;
}
.share-message img{
    width: 2.5vw;
    height: 2.5vw;
    float: right;
    margin-right: 1vw;
}

/* office modal */
.office-modal {
    width: 94%;
    height: 100%;
    border: .3vh solid #4890FD;
    border-radius: 3vh;
    padding: 3vh;
    margin: 0;
    padding-top: 0;
    margin-left: 1%;
    background-color: white;
    margin-top: 1vh;
    clip-path: inset(0 round 3vh);
    animation: modalEntrance 0.3s ease-out forwards;
}

.office-modal::backdrop {
    background-image: linear-gradient(#fff, #f2f2f2);
    animation: fadeIn 0.3s ease-out forwards;
}

.office-modal:focus{
    outline: none;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95%;
    margin-left: 3%;
    color: none;
}


.office-content{
    width: 100%;
    height: 72vh;
}
.office-info-table{
    width: 100%;
    height: 100%;
    margin:0;
    padding: 0;
}
.office-info{
    padding-top: 2vh;
}
.office-info-table p{
    font-family: 'Assistant', sans-serif;
    padding: 0;
    direction: rtl;
    margin: 0;
    font-size: 2.7vh;
}
.office-branches{
    padding-top: 2vh;
    height: 50vh;
}
.office-branches p{
    font-size: 3vh;
    margin-bottom: 3vh;
}
.office-branches img{
    width: 7vh;
    height: 7vh;
    margin-bottom: 3vh;
    margin-right: 0vh;
    border-radius: 50%;
    box-shadow: 0px .5vh .5vh rgb(189, 189, 189);
}
.branch-content {
    display: flex;
    align-items: center;
    float: right;
    width: 100%;
    justify-content: flex-end; /* Align content to the right */

}
.branch-content p {
    margin-right: 10px; /* Adjust the spacing as needed */
}
.branch-img {
    height: auto;
}

#modal-img-office {
    margin: 0;
    height: 6vw;
    width: 6vw; 
    background: radial-gradient(#6ba4fa, #447dd3); 
    border-radius: 50%;
    float: left;
    margin-top: 1.5vh;
    border: .3vh solid #4890FD;
    background-size: 90%; /* Increase to zoom in */
    background-position: center; /* Keep focus in the middle */
}
.btns-div{
    position: relative; /* Ensure the element is positioned */
    z-index: 1000;
}
.news-feed{
    margin-top: 12vh;
    direction: rtl;
}
.news-feed:focus{
    outline: none;
}

.era {
    position: relative; /* Ensures the tooltip is positioned relative to the era div */
}

.era::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120vh; /* Changed from % to vh */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5vh 1vh; /* Changed from px to vh */
    border-radius: 0.5vh; /* Changed from px to vh */
    font-size: 2.2vh; /* Changed from px to vh */
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    height: 3vh; /* Changed from % to vh */
}

.era:hover::after {
    visibility: visible;
    opacity: 1;
}
#office-indexes-title{
    font-size: 3vh;
    margin: 0;
    padding: 0;
    margin-bottom: 2vh;
    font-weight: bold;
    align-items: center;
    text-align: center;
}
.office-indexes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vh 2vh;
    justify-items: center;
    align-items: start;
    width: 100%;
    max-width: 100%;
    margin: 0vh auto 10vh auto;
    padding: 0;
}

.new-index-card {
    position: relative;
    width: 31.5vh;
    height: 13vh;
    background: #f8f8f883;
    border: .3vh solid #4890FD;
    border-radius: 1vh;
    box-shadow: 0 2px 8px rgba(72, 144, 253, 0.08);
    font-family: 'Assistant', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow: visible;
    animation: entrence 1.3s ease 0s 1 normal forwards;

}

.new-index-bubble-icon {
    position: relative;
    top: -10%;
    left: -50%;
    width: 5vh;
    height: 5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(72, 144, 253, 0.10);
}

.new-index-icon {
    width: 3.2vh;
    height: 3.2vh;
    object-fit: contain;
    display: block;
}

.new-index-title {
    position: absolute;
    top: 1.2vh;
    right: 1.5vh;
    font-size: 2.5vh;
    font-weight: bold;
    color: #222;
    text-align: right;
    z-index: 1;
}

.new-index-avg {
    position: relative;
    top: 0%;
    left: 45%;
    transform: translate(-50%, -50%);
    font-size: 3.2vh;
    font-weight: bold;
    color: #222;
    text-align: center;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1vh;
    direction: rtl;
}

.index-avg-text {
    font-size: 2.2vh;
    font-weight: bold;
    color: #222;
    margin-top: 1vh;
    padding: 0;
}

.new-index-date {
    position: absolute;
    bottom: 0vh;
    left: 1.5vh;
    font-size: 2.5vh;
    color: #888;
    text-align: left;
    z-index: 1;
    
}

.new-index-percent {
    position: absolute;
    bottom: 1.2vh;
    right: 1.5vh;
    font-size: 2.1vh;
    font-weight: bold;
    text-align: right;
    z-index: 1;
}

/* Remove old index-card padding and min sizes for new layout */
.index-card.new-index-card {
    min-width: unset;
    min-height: unset;
    padding: 0;
    margin: 0;
}

.non-kpi-border {
    border: 1px solid #808080;
    background-color: #f8f8f883;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
    color: #666;
}

.error-message {
    text-align: center;
    padding: 20px;
    color: #ff0000;
    font-size: 1.2em;
}

@keyframes modalEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#office-info-p {
    font-size: 2.3vh;
}