:root {
    --color-background: #f7f7fb;
    --color-link: #005FCF;
    --color-link-hover: #b01818;
    --color-text: #121212;

    --color-link--dark-mode: #699bff;
    --color-link-hover--dark-mode: #ef6262;
    --color-text--dark-mode: #f7f7fb;

    --border-radius: 8px;
}

* {
    box-sizing: border-box;
}


/* ------------------------ SELECTION ------------------------ */

::selection{
    color: #fff;
    background-color: var(--color-text);
}
  
a::selection{
    color: #fff;
    background-color: var(--color-link);
}
  
#dark-mode ::selection {
    color: var(--color-text);
    background-color: var(--color-background);
}
  
#dark-mode a::selection {
    color: var(--color-background);
    background-color: var(--color-link--dark-mode);
}


/* ------------------------ CORE ------------------------ */

body {
    background-color: #F8F8F8;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: flex-start;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    line-height: 32px;
    font-weight: 300;
    font-style: normal;
    color: var(--color-text);
}

.page {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0px;
    border-radius: var(--border-radius);
    padding: 0;
    flex-direction: column;
    padding: 64px 40px 64px 40px;
}


/* ------------------------ ELEMENTS ------------------------ */

.home {
    padding: 24px 40px 24px 40px;
    font-size: 16px;
    line-height: 26px;
}

.monsterplay {
    align-items: center;
    justify-content: center;
    padding: 64px 40px;
}

body, #dark-mode, #retro-mode {
    @media screen and (max-width: 1399px) {
        .page {
            padding: 140px 40px;
        }
    }
}

/* ------------------------ ELEMENTS ------------------------ */

h1 {
    font-family: 'Cormorant SC', serif;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 6vh;
    line-height: 4.5vh;
    display: inline;
    margin: 0;
}

h3 {
    margin-top: 0;
    font-family: "trajan-pro-3", serif;
}

p {
    margin: 0 0 16px 0;
}

ul {
    list-style: none;
    padding: 0;
    margin: 4px 0 4px 0;
}

li {
    margin-bottom: 8px;
}

sup {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: normal;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: rgb(255, 255, 255);
    background-color: rgb(0, 0, 0, .3);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ------------------------ LINKS ------------------------ */

a {
    color: var(--color-link);
    text-decoration: none;
    position: relative;
    border-bottom: 1px solid rgb(0, 70, 207, .15);
    transition: border 0.5s;
}

a:hover {
    color: var(--color-link-hover);
    border-bottom: 1px solid rgb(176, 24, 24, .4);
    transition: border 0.1s;
}


.half-link {
    border-bottom: 1px dashed rgb(0, 70, 207, .25);
    transition: border 0.1s;
    text-transform: uppercase;
}

.half-link:hover {
    border-bottom: 1px dashed rgb(176, 24, 24, .4);
    transition: border 0.1s;
}

#dark-mode a {
    color: var(--color-link--dark-mode);
    text-decoration: none;
    border-bottom: 1px solid rgba(85, 141, 255, 0.4);
    transition: border 0.5s;
}

#dark-mode a:hover {
    color: var(--color-link-hover--dark-mode);
    border-bottom: 1px solid rgb(176, 24, 24, .2);
    transition: border 0.1s;
}


/* ------------------------ LINKS-PROJECT ------------------------ */

.project-link {
    position: relative;
    font-size: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: left;
    gap: 16px;
    margin-top: 24px;
    color: #000;
    width: 100%;
    font-weight: 600;
    width: 100%;
}


.project-link::before {
    content: '';
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(0, 0, 0, .2);
    z-index: 1; /* Может потребоваться добавить z-index, если есть перекрытие */
}

    .project-link a {
        font-size: 16px;
        font-weight: 300;
        padding-bottom: 8px;
        border-bottom: solid 1px #005F73;
        z-index: 999;
    }

    .global-link {
        position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: left;
    margin-top: 8px;
    }

    .blimb .project-link--global img {
        margin: 0;
    }

    .project-link--global {
        padding-left: 8px;
        padding-right: 8px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        background: rgb(243, 244, 247);
        transition: color 0.3s;
        border: none;
    }

    .drakewars .project-link--global img {
        margin: 0;
        padding: 0;
    }

    .project-link--global:hover {
        padding-left: 8px;
        padding-right: 8px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        background: rgb(252, 245, 245);
        transition: color 0.1s;
        border: none;
}


/* ------------------------ LINKS-CUSTOM ------------------------ */

.a-global {
    background-image: url("../img/global/link-type--global.svg");
    background-position: right center;
    background-repeat: no-repeat;
    padding-right: 24px;
}   


/* ------------------------ SCROLLING-TEXT ------------------------ */

.scrolling-text {
    white-space: nowrap;
    overflow: hidden;
    position: absolute;
    width: 100%;
    height: 30px;
    background-color: #BB0245;
  }
  
  .scrolling-text p {
    display: inline-block;
    position: absolute;
    animation: marquee 1s linear infinite;
    font-family: 'Unbounded', sans-serif;
    color: #FFF1D1;
    font-size: 12px;
  }
  
  @keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
  }

/* ------------------------ SECTIONS-W ------------------------ */

.section--100 {
    width: 100%;
}

.section--w100 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: row;
    gap: 16px 40px;  
}

@media screen and (max-width: 719px){
    .section--w100 {
        flex-direction: column-reverse;
    }

}

.section--w100:last-of-type {
    margin-bottom: 0;
}

.margin-bot-40 {
    margin-bottom: 40px;
}

.margin-bot-80 {
    margin-bottom: 80px;
}

.margin-bot-120 {
    margin-bottom: 120px;
}

.margin-top-40 {
    margin-top: 40px;
}

.padding-bot-40 {
    padding-bottom: 40px;
}

.border-bot-40 {
    padding-bottom: 40px;
    border-bottom: 1px solid rgb(0, 0, 0, .1);
}

.gap-8 {
    gap: 8px;
}

.gap-0 {
    gap: 0px;
}

.section--h100 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px 24px;    
}


/* ------------------------ CONTENT ------------------------ */

                                        .content-img {
    flex: 1 1 100%; 
    background: #F7F7FB;
    border-radius: var(--border-radius);
}

.content-text {
  flex: 1 1 100%;
  max-width: 980px;
}

.gameloft .content-text p {
    font-size: 20px;
    line-height: 32px;
  }

.content-text--last {
    flex: 1 1 100%;
  max-width: 240px;
}

    .content-text p {
        padding-right: 24px;
    }

    .content-text:last-child p {
        padding-right: 0px;
    }

.home .content a {
    border-bottom: none;
}

.project-description {
    max-width: 100%;
    background-color: #EBC7A5;
    padding: 16px 24px;
    border-radius: 8px;
}

.project-description p:last-of-type {
    margin-bottom: 0;
}


/* ------------------------ SIDEBAR ------------------------ */

.sidebar {
    width: 264px;
}

@media screen and (max-width: 719px){
    .sidebar {
        width: 100%;
        gap: 8px;
    }
}

    .section-header .sidebar{
        margin-top: 4px;
}

    .section-header .sidebar{
        margin-top: 4px;
}

    .section-header .sidebar a {
        margin-right: 24px;
}

.language {
    margin-right: 24px;
}

.language-active {
    color: #000;
    border: none;
}

.language-not-active {
    color: #d0d0d0;
    border: none;
}

.sidebar--title {
    font-family: 'Cormorant SC', serif;
    font-weight: 300;
    font-size: 24px;
    font-style: normal;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 8px;
}

.sidebar--date {
    font-size: 12px;
    font-weight: 300;
    margin-bottom: 24px;
    line-height: 10px;
    border: solid 1px rgb(0, 0, 0, .07);
    background-color: rgb(0, 0, 0, .02);
    padding: 6px 8px;
    border-radius: 8px;
    display: inline-block;
}

.mini-preview--description {
    font-size: 12px;
    font-weight: 300;
    line-height: normal;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: #8F8F8F;
}

.sidebar--description {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 300;
}

.sidebar--rating {
    display: flex;
    align-items: left center;
    gap: 4px;
    flex-direction: row;
}


/* ------------------------ ARROWS ------------------------ */

.btn-back-arrow a, #dark-mode .btn-back-arrow a, #retro-mode .btn-back-arrow a {
    position: fixed;
    background-size: 40px 40px;
    background-position: 24px 24px;
    background-repeat: no-repeat;
    width: 88px;
    height: 88px;
    border: none;
    transition: 0.3s;
    margin: 24px 24px;
}

#dark-mode .gameloft .btn-back-arrow a {
    background-size: 40px 40px;
    background-position: 0 0;
    margin: 0px 0px;
}


#dark-mode .btn-back-arrow:hover a, #retro-mode .btn-back-arrow:hover a {
    transition: 0.1s;
}

.btn-back-arrow a {
    background-image: url("../img/global/back--default.svg");
    margin: 40px 24px;
}

.btn-back-arrow a:hover {
    background-image: url("../img/global/back--hover.svg");
}

#dark-mode .btn-back-arrow a {
    background-image: url("../img/global/back-dm--default.svg");
}

#dark-mode .btn-back-arrow:hover a {
    background-image: url("../img/global/back-dm--hover.svg");
}

#retro-mode .btn-back-arrow a {
    background-image: url("../img/global/back-retro--default.svg");
    background-position: 24px 40px;
}

#retro-mode .btn-back-arrow:hover a {
    background-image: url("../img/global/back-retro--hover.svg");
    background-position: 24px 40px;
}

/* ------------------------ W ------------------------ */

.drakewars .w-project {
    max-width: 1400px;
}

.fintoda .w-project {
    max-width: 1400px;
}

.monsterplay .w-project {
    max-width: 1400px;
    align-items: flex-start;
    gap: 0px;
}

.dhyana .w-project {
    max-width: 1200px;
    align-items: flex-start;
    gap: 0px;
}

.workers-dashboard .w-project {
    max-width: 1200px;
    align-items: flex-start;
    gap: 0px;
}

.workers-dashboard-old .w-project {
    max-width: 1200px;
    align-items: flex-start;
    gap: 0px;
}

.yami .w-project {
    max-width: 1024px;
    align-items: flex-start;
    gap: 0px;
}


.cardiomo .w-project {
    max-width: 1128px;
    align-items: flex-start;
    gap: 0px;
}

.blimb .w-project {
    max-width: 1248px;
    align-items: flex-start;
    gap: 0px;
}

.route4me .w-project {
    max-width: 1050px;
    align-items: flex-start;
    gap: 0px;
}

.gameloft .section--w100 {
    align-items: flex-start;
    justify-content: left;
}

.gameloft p {
    max-width: 920px;
}

#glhf {
    background-color: #F5F5F5;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    line-height: 28px;
    font-weight: 300;
    font-style: normal;
    color: var(--color-text);
    justify-content: center;
    flex-direction: column;
}

.glhf {
    display: flex;
    align-items: center;
    gap: 0px;
    padding: 140px 16px 40px 16px;
}

.glhf h1 {
    margin-top: 2vh;
    margin-bottom: 4vh; 
}

.glhf h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    line-height: 28px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.glhf li {
    overflow: hidden; /* Чтобы текст не выходил за пределы элемента */
    word-wrap: break-word; /* Разрешить перенос слов */
    padding-left: 40px; /* Отступ слева для текста */
    position: relative;
    margin-left: -40px;
}

.glhf li:before {
    content: "—";
    position: absolute;
    left: 0; 
}

.glhf .w-project {
    max-width: 813px;
    gap: 0;
}


#glhf .gap-8 {
    gap: 8px;
}

.glhf p {
    margin: 8px 0 8px 0;
}

.glhf-white {
    background-color: #fff;
}

.glhf-navigation a {
    width: 100%;
    color: #73b2ff;
    background-color: #323739;
    border-radius: 8px;
    transition: .3s;
}

.glhf-navigation a:hover {
    width: 100%;
    color: #ff2424;
    background-color: #171a1b;
    border-radius: 8px;
    transition: .1s;
}

.glhf-navigation .glhf-part-active a {
    width: 100%;
    color: #fff;
    background-color: #171a1b;
    border-radius: 8px;
    transition: .3s;
    font-weight: 400;
}

.glhf-navigation {
    left: 0;
    top: 0;
    position: fixed;
    color: #fff;
    font-size: 14px;
    line-height: 24px;
    background-color: #323739;
    z-index: 999;
}

.glhf-part, .glhf-part-active {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    text-align: center;
}

.title-preview {
    margin-top: 20vh;
}

.glhf-ua, .glhf-en {
    position: relative;
    width: 50%;
    height: 10vh;
    min-height: 160px;
    border-radius: 16px;
    transition: .5s;
}

.glhf-ua a, .glhf-en a {
    display: block;
    width: 100%;
    height: 10vh;
    border: 0;
}

.glhf-ua {
    background-image: url("../projects/gameloft-test/img/preview-UA.png");
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
}

.glhf-ua:hover {
    background-image: url("../projects/gameloft-test/img/preview-UA.png");
    background-size: 105% auto;
    background-position: center;
}

.glhf-en {
    background-image: url("../projects/gameloft-test/img/preview-EN.png");
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
}

.glhf-en:hover {
    background-image: url("../projects/gameloft-test/img/preview-EN.png");
    background-size: 105% auto;
    background-position: center;
}

.glhf-ua:hover, .glhf-en:hover {
    width: 55%;
    transition: .3s;
}

.glhf-preview-language {
    position: absolute;
    left: 16px;
    top: 12px;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
}

.title-preview h1 {
    font-size: 5vh;
    line-height: 4vh;
    margin: 0;
}

.glhf-figma {
    padding: 0;
    margin: 0;
    border-radius: 16px;
    transform: scale(1.0);
    transition: .4s ease;
    border: 0;
}

.glhf-figma:hover {
    padding: 0;
    margin: 0;
    border-radius: 16px;
    transform: scale(1.05);
    transition: .2s ease;
    border: 0;
}

.glhf-userflow {
    padding: 0;
    margin: 0;
    border-radius: 16px;
    transform: scale(1.0);
    transition: .4s ease;
    border: 0;
}

.glhf-userflow:hover {
    padding: 0;
    margin: 0;
    border-radius: 16px;
    transform: scale(1.05);
    transition: .2s ease;
    border: 0;
}

.glhf .glhf-figma img, .glhf .glhf-userflow img {
    border: none;
    padding: 0;
    margin: 0;

}

.glhf-figma a img,
.glhf-userflow a img {
    display: inline-block; /* Заменяем display: block; на inline-block; для изображений */
}

#glhf {
    @media screen and (max-width: 799px) {
        .page {
            padding: 140px 40px;
        }

        .section--w100 {
            flex-direction: row;
        }

        .title-preview {
            margin-top: 7vh;
        }

        .glhf-navigation {
            height: 60px;
        }

        .glhf-navigation a {
            height: 60px;
            padding: 16px;
        }
        .glhf {
            display: flex;
            align-items: center;
            gap: 0px;
            padding: 40px 16px 24px 16px;
        }
        .margin-bot-80 {
            margin-bottom: 40px;
        }
        .margin-bot-40 {
            margin-bottom: 24px;
        }
        .glhf img {
            margin-bottom: 16px;
        }
    }
}

/* ------------------------ DARK ------------------------ */

#dark-mode {
    background: #222429;
    color: #b0b0b0  ;
}

#dark-mode h1 {
    color: rgb(255, 255, 255);
}

#dark-mode h3 {
    color: rgb(255, 255, 255);
}

#dark-mode .project-link {
    color: #fff;
}

/* ------------------------ RETRO ------------------------ */

#retro-mode {
    background: rgb(255, 241, 209);
    color: #01121A;
}

#retro-mode .bg-img {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: url("../img/preview/rocket--noise.gif");
    opacity: 0.03;
    z-index: -999;
}

#retro-mode h1, #retro-mode h3 {
    font-family: 'Unbounded', sans-serif;
}

#retro-mode sup {
    font-weight: 600;
    color: rgb(255, 241, 209, 1);
    background-color: #BB0245;
}

#retro-mode a {
    color: #005F73;
}

#retro-mode a:hover {
    color: #9C2264;
}

#retro-mode .project-link {
    position: relative;
    padding-bottom: 0px; /* Добавим отступ снизу для псевдоэлемента */
}

#retro-mode .project-link a {
    padding-bottom: 8px;
    border-bottom: solid 1px #005F73;
    z-index: 999;
}

#retro-mode .project-link a:hover {
    color: #9C2264;
    border-bottom: solid 1px #9C2264;
}


/* ------------------------ CARDIOMI ------------------------ */

#cardiomo {
    background: #3A92AB;
    color: #fff;
}

.text-about-big {
    width: 80%;
    font-size: 32px;
    line-height: 48px;
    font-weight: 300;
    padding-right: 80px;
}

.text-about {
    font-size: 24px;
    line-height: 36px;
    width: 30%;
    padding-right: 48px;
}

.cv {
    margin-top: 24px;
    padding: 2px 16px;
    border-radius: 4px;
    border: 1px solid rgb(201, 220, 243);
    display: inline-block;
}

.cv:hover {
    border: 1px solid rgb(243, 201, 201)
}

.gameloft {
    width: 100%;
    padding: 64px 40px 64px 40px;
    font-size: 16px;
    line-height: 26px;
}

.links-global {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: row;
    gap: 8px;  
}

.fintoda .box-video {
    width: 100%;
    position: relative;
    background-color: #F8F8FB;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    padding: 16px;
    gap: 16px;
}

.notification {
    width: 100%;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: #fff;
    background-color: #000;
    position: absolute;
    left: 0;
    top: 0;
    text-transform: uppercase;
}