/* overlapping block elements */

.default-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin: 50px auto;
    min-height: 100vh;
}

.overlap-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 100%;
    height: auto;
    /* Optional minimum height to ensure visibility */
    min-height: 300px;
}

.background-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 6px;
    background-color: rgba(var(--color-grey), 0.3);
    transform: translateX(-50%);
    z-index: 0;
}

.content-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 2;
    gap: 30px;
}
.clickable {
    cursor: pointer;
}

/* Dot Marker */
.dot-marker-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    padding: 10px 0;
    align-content: center;
}

.big-dot {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 2;
}

.small-dot {
    height: 25px;
    width: 25px;
    border-radius: 50%;
    background-color: rgba(var(--color-light), 0.5);
}

.dot-marker-container .dot-marker-text {
    font-size: 30px;
    font-weight: 600;
    line-height: 40px;
    padding: 0;
    margin: 0;
}


/* Experience block */

.experience-block {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%; /* Make it take full available width */
    max-width: min(80%, 1000px); /* Use min() to take the smaller of the two values */
    padding: 20px;
    margin: 0 auto;
    background: rgba(var(--color-light-grey), 0.2);
    flex-shrink: 0;
    border-radius: 40px;

    transition: background 0.2s ease-in-out;

}
.experience-block .upper-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
}

@media (max-width: 600px) {
    .experience-block .upper-row {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .experience-block .upper-status-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: start;
        box-sizing: border-box;
        align-self: stretch;
        width: 100%;
    }
}

/* Date and status */
.upper-status-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: start;
    gap: 10px;

}
@media(max-width: 880px){
    .upper-status-container {
        flex-direction: column-reverse;
        align-items: end;
    }
}

.experience-block .date {
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    padding: 5px 10px;
    margin: 0;
    background: rgba(var(--color-light), 0.8);
    border-radius: 20px;
}

.position-description-container {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin: 10px 0;
    gap: 5px;
}

.bottom-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
    gap: 20px;

}

.bottom-row svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
}
svg path {
    transition: fill 0.2s ease-in-out;
}
/* Text styles */
.default-container .label {
    margin: 50px 0;
}
.experience-block .position {
    font-size: 30px;
    font-style: normal;
    font-weight: 600;
    line-height: 40px; /* 100% */
    padding: 0;
    margin: 0;
}

.position-description-container .position-description {
    font-size: 30px;
    font-style: normal;
    font-weight: 500;
    padding: 0;
    margin: 0;
}

.description {
    white-space: pre-line;

    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    padding: 0;
    margin: 0;
}

/* Hover effects */

.experience-block:hover {
    background: rgba(var(--color-light-grey), 0.5);
}
.clickable:hover path {
    fill: rgba(var(--color-green), 1);

}