:root {
    --primary-bg-color: #121212;
    --secondary-bg-color: #1e1e1e;
    --text-color-primary: #e0e0e0;
    --text-color-secondary: #a0a0a0;
    --accent-color: #4a90e2;
    --border-radius: 12px;
    --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s;
}

.latest-updates {
    background-color: #f0f0f0;
    position: fixed;
    z-index: 11;
    padding: 20px 0;
    width: 450px;
    height: 75dvh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    bottom: 0;
    left: 0;
    border-top-left-radius: 4px;
    transition: transform 0s ease;
    min-height: 250px;
    transform: translateX(0%);
}


#mail {
    display: none;
}

#mail a {
    text-decoration: none;
    color: #000;

    &:hover {
        background: linear-gradient(90deg, #000, #000, #000, #fff, #000);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        background-size: 200% 200%;
        animation: gradientAnimation 0.3s linear;
    }

}

#mail.open {
    display: block;
}

.latest-updates h3 {
    padding: 10px;
    margin-top: 5px;
    font-size: 1.5em;
    background: linear-gradient(90deg, #000, #000, #000, #000, #000, #000, #000, #fff, #000, #000, #000, #000, #000, #000, #000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    font-family: "PT Sans", sans-serif;
    font-weight: 400;
    position: relative;
    left: 0;
}

.commits,
.news {
    overflow-y: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #f0f0f0;
    padding: 15px 10px;
    width: 80%;
    min-height: 70px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    border: 1px solid #ddd;
}

.commit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: #000;
}

.news .commit:hover{
    transform: none;
}

.commit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, #000, transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-speed) ease;
}

.commit:hover::before {
    transform: scaleX(1);
}

.svg-close {
    width: 18px;
    height: 18px;
    transition: all 0.1s ease;
}


#close-updates:hover .svg-close path {
    stroke: #000;
    fill: #000;
}

#close-updates.open:hover .svg-close path {
    stroke: #fff;
    fill: #fff;
}

.svg-close.open {
    transform: rotate(180deg);
}

.svg-close.open path {
    stroke: #fff;
    fill: #fff;
}

#date {
    font-size: 0.6em;
    color: gray;
}

.commit {
    padding: 14px 7px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.2s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 5px;

    &:hover {
        box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1), -10px -10px 20px rgba(255, 255, 255, 0.5);
    }
}



.latest-updates.updates-hidden {
    transform: translateX(-100%);
    overflow: visible;
}

#close-updates {
    position: fixed;
    top: 30px;
    right: -20px;
    border: 0;
    padding: 30px 0;
    border-top-right-radius: 20%;
    border-bottom-right-radius: 20%;
    outline: none;
    background: #000;
    border: 1px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 20px;
    height: 130px;
    transition: transform 0.2s ease, background 0.1s ease, width 0.2s ease, right 0.2s ease;

    &:hover {
        right: -50px;
        width: 50px;
        background: #fff;
        border: 1px solid #ddd;
    }
}

#close-updates.open {
    border-top-right-radius: 0%;
    border-bottom-right-radius: 0%;
    background: #000;
    height: 100%;
    top: 0%;
    border: 1px solid #000;

    &:hover {
        right: -20px;
        background: #000;
        border: none;
        border: 1px solid #000;
        background: #000;
        width: 20px;
    }
}

.social-links-1 {
    display: none;
}

.social-links-1.open {
    display: flex;
}

.social-links-1 a img {
    width: 28px;
}

.social-links-1.open a:first-child {
    display: none;
}

.overlay-start {
    z-index: 10;
    position: absolute;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: #0000009d;
    width: 100%;
    height: 100%;
    display: none;
}

.overlay-start.active {
    display: block;
}

.no-scroll {
    overflow: hidden;
}

.count {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: -8px;
    top: -12px;
    background: #fff;
    color: #000;
    font-size: 1.4em;
    pointer-events: none;
    border: 1px solid #ddd;
    border-left: 0;
    border-bottom: 0;
}

.news .commit {
    background: #000;
    color: white;
    box-sizing: border-box;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    min-height: fit-content;
}

@media screen and (orientation: landscape) and (max-width: 767px) {
    .latest-updates {
        overflow-y: auto;
    }
}


@media only screen and (max-width: 767px) {
    .latest-updates {
        width: 70vw;
        padding: 10px;
    }

    .commits {
        padding: 5px 10px;
    }

    .latest-updates h3 {
        margin: 0;
    }

    #close-updates {
        width: 15px;
        right: -15px;

        &:hover {
            right: -15px;
            width: 15px;
        }
    }
}