main {
    margin: 0 auto;
    padding: 0 9%;
}

header {
    margin-bottom: .5rem;
}

.c-project {
    max-width: 600px;
    margin: 0 auto;
}

.c-project__subtitle {
    color: #923EF8;
    color: #ffffff85;
    font-size: 1.1rem;
    font-size: clamp(1.1rem, 2.2vw, 1.25rem);
    padding: 1.5rem 0 .25rem;
}

.c-project__title {
    font-size: clamp(1.7rem, 4vw, 2.75rem);
    color: aliceblue;
    color: #3ef892;
    position: relative;
    line-height: 1.25;
    text-align: right;
    font-weight: 400;
    opacity: 1;
}

.c-project__puzzle {
    display: block;
    width: 25px;
    height: 22px;
    position: relative;
    background-color: #2d4096;
    transition: background-color 1.25s ease-in-out;
    position: absolute;
    top: 47.5%;
    transform: translateY(-50%);
}

.c-project__puzzle::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    left: -10%;
    top: 12.5%;
    background-color: #2d4096;
}

.c-project__puzzle::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    left: 55%;
    bottom: -12.5%;
    transform: translateX(-50%);
    background-color: #2d4096;
}

.c-project__items {
    list-style-type: none;
    max-width: 133.2px;
    white-space: nowrap;
}

.c-project__about,
.c-project__item {
    color: aliceblue;
    font-size: 1rem;
    text-align: justify;
    line-height: 1.5;
    letter-spacing: .025rem;
}

.c-project__link {
    color: #3ef892;
    text-decoration: none;
    margin: 1.75rem 0;
    width: -moz-fit-content;
    width: fit-content;
    height: -moz-fit-content;
    height: fit-content;
    display: block;
    letter-spacing: .025rem;
    cursor: pointer;
    position: relative;
}

.c-project__link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 1.5rem;
    width: 100%;
    height: .1rem;
    background-color: #3ef892;
    transform: scale(0);
    transition: transform .4s ease;
}

.c-project__link:hover::after {
    transform: scale(1);
}

main .c-project__monitor {
    position: relative;
    top: initial;
    transform: initial;
    left: initial;
    margin: 0 auto 1.75rem;
}

main .c-project__preview {
    padding: 2.5% 5% 0;
}

.c-project .c-project__title,
.c-project .c-project__item,
.c-project .c-project__about,
.c-project .c-project__link {
    color: #2d4096;
    transition: color 1.25s ease-in;
}

.h-opacity .c-project__title,
.h-opacity .c-project__link {
    color: #3ef892;
}

.h-opacity .c-project__item,
.h-opacity .c-project__about{
    color: aliceblue;
}

.h-opacity .c-project__puzzle {
    background-color: #F8923E;
}

.c-devices {
    margin: 4.5rem auto 5rem;
}

/* The device with borders */
.c-smartphone {
    position: relative;
    width: 340px;
    height: 600px;
    margin: auto;
    border: 14px black solid;
    border-top-width: 60px;
    border-bottom-width: 60px;
    border-radius: 36px;
}

/* The horizontal line on the top of the device */
.c-smartphone:before {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #333;
    border-radius: 10px;
}

/* The circle on the bottom of the device */
.c-smartphone:after {
    content: '';
    display: block;
    width: 35px;
    height: 35px;
    position: absolute;
    left: 50%;
    bottom: -65px;
    border: .5px solid rgba(192, 192, 192, 0.185);
    transform: translate(-50%, -50%);
    background: rgba(51, 51, 51, 0.719);
    border-radius: 50%;
}

/* The screen (or content) of the device */
.c-smartphone .c-smartphone__content {
    width: 340px;
    height: 101%;
    background: white;
    overflow-y: scroll
}

.c-smartphone__content img {
    width: 315px;
    border: none;
}

.c-desktop__shell,
.c-smartphone__shell {
    overflow: hidden;
    height: 100%;
}

.c-desktop {
    z-index: 10;
    background-color: #000;
    border-top: 1.25px solid #888;
    padding: 2% 2% 4% 2%;
    border-bottom-left-radius: 50% 2%;
    border-bottom-right-radius: 50% 2%;
    height: 275px;
    max-width: 459px;
    min-width: 259px;
    width: 100%;
    overflow: hidden;
    position: relative;
    transform: initial;
    top: initial;
    left: initial;
    margin: 0 auto 1.75rem;
}

.h-height{
    height: initial;
}

.c-desktop:after {
    content: '';
    display: block;
    position: absolute;
    bottom: 3%;
    left: 36%;
    height: .75%;
    width: 28%;
    background-color: #DDD;
    border-radius: 50%;
    box-shadow: 0 0 2.5px 0 white;
}

.c-desktop__wrapper {
    overflow-y: scroll;
    overflow-y: overlay;
    height: 101%;
    width: 102.5%;
    min-width: 100%;
}

.c-devices__subtitle {
    font-weight: 400;
    color: #ffffff85;
    font-size: 1.25rem;
    width: 100%;
    margin: 0 auto;
    padding: 3.5rem 0 1.5rem;
    text-align: center;
    white-space: nowrap;
}

.c-mobile__preview {
    width: -moz-fit-content;
    width: fit-content;
    height: fit-content;
    margin: 0 auto;
    border-top: 1.25px solid #888;
    border-radius: 36px;
    width: -moz-fit-content;
    width: fit-content;
    height: fit-content;
    margin: 0 auto;
    border-top: 1.25px solid #888;
    border-radius: 36px;
}

.c-project__image{
    position: relative;
    background-size: cover;
    background-position: center center;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    overflow: hidden;
    transition: filter 1.25s ease-in!important;
}

.c-project__blur {
    filter: blur(2px);
}

.c-devices__img{
    height: auto;
    width: 100%;
}

.h-hide__tablet {
    display: none !important;
}

@media all and (max-width: 475px) {
    .c-desktop{
        height: 210px;
    }
    .h-height{
        height: initial;
    }
}

@media all and (min-width: 728px) {
    .c-project {
        display: grid;
        max-width: 750px;
        grid-template-columns: fit-content fit-content;
        grid-template-rows: fit-content fit-content;
        grid-template-areas:
            ". title"
            "languages about";
        padding-top: 5rem;
    }

    .h-grid__title {
        grid-area: title;
    }

    .h-grid__language {
        grid-area: languages;
        margin-right: 8rem;
    }

    .h-grid__about {
        grid-area: about;
    }

    .c-project__title {
        text-align: left;
        grid-area: title;
        margin-bottom: .75rem;
    }

    .c-project__puzzle {
        width: 32.5px;
        height: 27.5px;
        right: 0;
        top: 55%;
    }

    .c-project__puzzle::before {
        content: '';
        position: absolute;
        width: 13.5px;
        height: 13.5px;
        border-radius: 50%;
        left: -7.5%;
        top: 15%;
        background-color: #2d4096;
    }

    .c-project__puzzle::after {
        content: '';
        position: absolute;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        left: 55%;
        bottom: -12.5%;
        transform: translateX(-50%);
        background-color: #2d4096;
    }

    .c-project__subtitle {
        padding-bottom: .75rem;
    }

    main .c-project__monitor {
        padding: 1% 1% 2% 1%;
        margin: 0 auto 3.5rem;
        max-width: 750px;
        overflow: hidden !important;
    }

    .c-desktop {
        width: 100%;
        max-width: 750px;
        height: 350px;
        padding: 1.5% 1.5% 3% 1.5%;
        overflow: hidden;
    }

    main .c-desktop:after,
    main .c-work__monitor:after {
        bottom: .45rem;
    }

    .c-project__countries,
    .c-project__business,
    .c-project_img_desktop {
        transition: all 2s;
    }

    .h-hide__tablet {
        display: block !important;
    }

    .c-project__image {
        height: 0;
        padding-bottom: 56.25%;
        position: relative;
        overflow: hidden;
        /*transition: background-image .25s ease-in-out;*/
    }
}

@media all and (min-width: 850px) {
    .c-desktop{
        height: 400px;
    }
}
@media all and (min-width: 1023px) {
    main .c-project__preview {
        padding: 0;
    }

    .c-project {
        padding-top: 7.5rem;
    }

    .c-desktop {
        padding: 1% 1% 2% 1%;
        min-height: 325px;
        max-height: 425px;
    }
    .c-devices {
        margin: 10rem auto 5rem;
    }
}

@media screen and (min-width: 1150px) {
    .c-desktop:after {
        position: absolute;
        bottom: 3%;
        left: 36%;
        height: .75%;
        width: 28%;
    }
}

@media all and (min-width: 1600px) {
    main .c-desktop,
    main .c-project__monitor {
        padding: .5% .5% 1% .5%;
    }
    main .c-desktop:after,
    main .c-work__monitor:after {
        bottom: 2%;
    }
}

.h-padding-bottom {
    padding-bottom: .5rem !important;
}

.h-color__orange {
    color: #F8923E !important;
}

.h-bg__orange {
    background-color: #F8923E !important;
}

.h-color__purple {
    color: #923EF8 !important;
}

.h-bg__purple {
    background-color: #923EF8 !important;
}

.h-underline{
    text-decoration: underline;
}

.h-underline:hover{
    color: #3ef892;
}

.h-light{
    font-weight: 200;
}
