/* poppins-300 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/poppins-v20-latin-300.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* poppins-500 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/poppins-v20-latin-500.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* poppins-700 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/poppins-v20-latin-700.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

#applyCSS *,
#applyCSS *::before,
#applyCSS *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#applyCSS body {
    --color: rgba(30, 30, 30);
    --bgColor: rgba(245, 245, 245);
    min-height: 100vh;
    display: grid;
    align-content: center;
    gap: 2rem;
    padding: 2rem;
    font-family: "Poppins", sans-serif;
    color: var(--color);
    background: var(--bgColor);
}

#applyCSS h1 {
    text-align: center;
}

#applyCSS ul {
    --col-gap: 2rem;
    --row-gap: 2rem;
    --line-w: 0.25rem;
    display: grid;
    grid-template-columns: var(--line-w) 1fr;
    grid-auto-columns: max-content;
    column-gap: var(--col-gap);
    list-style: none;
    width: min(60rem, 90%);
    margin-inline: auto;
}

/* line */
#applyCSS ul::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 20;
    background: rgb(225, 225, 225);
    border-radius: calc(var(--line-w) / 2);
}

/* columns*/

/* row gaps */
#applyCSS ul li:not(:last-child) {
    margin-bottom: var(--row-gap);
}

/* card */
#applyCSS ul li {
    grid-column: 2;
    --inlineP: 1.5rem;
    margin-inline: var(--inlineP);
    grid-row: span 2;
    display: grid;
    grid-template-rows: min-content min-content min-content;
}

/* date */
#applyCSS ul li .date {
    --dateH: 3rem;
    height: var(--dateH);
    margin-inline: calc(var(--inlineP) * -1);

    text-align: center;
    background-color: var(--accent-color);

    color: white;
    font-size: 1.25rem;
    font-weight: 700;

    display: grid;
    place-content: center;
    position: relative;

    border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
}

/* date flap */
#applyCSS ul li .date::before {
    content: "";
    width: var(--inlineP);
    aspect-ratio: 1;
    background: var(--accent-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
    position: absolute;
    top: 100%;

    clip-path: polygon(0 0, 100% 0, 0 100%);
    right: 0;
}

/* circle */
#applyCSS ul li .date::after {
    content: "";
    position: absolute;
    width: 2rem;
    aspect-ratio: 1;
    background: var(--bgColor);
    border: 0.3rem solid var(--accent-color);
    border-radius: 50%;
    top: 50%;

    transform: translate(50%, -50%);
    right: calc(100% + var(--col-gap) + var(--line-w) / 2);
}

/* title descr */
#applyCSS ul li .title,
#applyCSS ul li .descr {
    background: var(--bgColor);
    position: relative;
    padding-inline: 1.5rem;
}

#applyCSS ul li .title {
    overflow: hidden;
    padding-block-start: 1.5rem;
    padding-block-end: 1rem;
    font-weight: 500;
}

#applyCSS ul li .descr {
    padding-block-end: 1.5rem;
    font-weight: 300;
}

/* shadows */
/*#applyCSS ul li .title::before,
#applyCSS ul li .descr::before {
content: "";
position: absolute;
width: 90%;
height: 0.5rem;
background: rgba(0, 0, 0, 0.5);
left: 50%;
border-radius: 50%;
filter: blur(4px);
transform: translate(-50%, 50%);
}*/
#applyCSS ul li .title::before {
    bottom: calc(100% + 0.125rem);
}

#applyCSS ul li .descr::before {
    z-index: -1;
    bottom: 0.25rem;
}

@media (min-width: 40rem) {
    #applyCSS ul {
        grid-template-columns: 1fr var(--line-w) 1fr;
    }

    #applyCSS ul::before {
        grid-column: 2;
    }

    #applyCSS ul li:nth-child(odd) {
        grid-column: 1;
    }

    #applyCSS ul li:nth-child(even) {
        grid-column: 3;
    }

    /* start second card */
    #applyCSS ul li:nth-child(2) {
        grid-row: 2/4;
    }

    #applyCSS ul li:nth-child(odd) .date::before {
        clip-path: polygon(0 0, 100% 0, 100% 100%);
        left: 0;
    }

    #applyCSS ul li:nth-child(odd) .date::after {
        transform: translate(-50%, -50%);
        left: calc(100% + var(--col-gap) + var(--line-w) / 2);
    }

    #applyCSS ul li:nth-child(odd) .date {
        border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
    }
}

.navbar-custom {
    background-color: #1a1a1a;
    z-index: 99999 !important;
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 14px;
        padding-bottom: 5px;
    }

    .navbar-brand img {
        width: 50px;
        height: auto;
        margin-right: 10px;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    .navbar-collapse {
        background-color: #1a1a1a;
        width: 100vw;
        margin-left: 20px;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .navbar-brand {
        font-size: 24px;
        padding-left: 30px;
    }

    .navbar-brand img {
        width: 80px;
        height: auto;
        margin-right: 10px;
    }

    .logo {
        width: 110px;
        height: auto;
    }
}

#home {
    padding-top: 120px;
}

.home-center {
    z-index: 9999;
}

.roadmap-title {
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.roadmap-item .date {
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #ffffffd1;
}

.roadmap-item .title {
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
    font-weight: 800 !important;
    color: #dfeef6;
}

.roadmap-item .descr {
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
    font-weight: 400 !important;
    color: #ffffffd1;
}

.roadmap-img {
    z-index: 9999;
    width: 20rem;
    height: 20rem;
}
