/* Example of a simple CSS reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.carousel-m {
    width: 100vw;
    height: 105vh;
    margin-top: -50px;
    overflow: hidden;
    position: relative;
}

.carousel-m .list-m .item-m {
    width: 180px;
    height: 250px;
    position: absolute;
    top: 80%;
    transform: translateY(-70%);
    left: 70%;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    background-position: 50% 50%;
    background-size: cover;
    z-index: 100;
    transition: 1s;
}
.carousel-m .list-m .item-m img{
    background-size: cover;
}


.carousel-m .list-m .item-m:nth-child(1),
.carousel-m .list-m .item-m:nth-child(2) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.carousel-m .list-m .item-m:nth-child(3) {
    left: 80%;
}

.carousel-m .list-m .item-m:nth-child(4) {
    left: calc(80% + 200px);
}

.carousel-m .list-m .item-m:nth-child(5) {
    left: calc(80% + 400px);
}

.carousel-m .list-m .item-m:nth-child(6) {
    left: calc(80% + 600px);
}

.carousel-m .list-m .item-m:nth-child(7) {
    left: calc(80% + 800px);
    opacity: 0;
}

.item-m .content-m {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    text-align: left;
    color: black;
    margin-left: 5%;
    display: none;
}

.list-m .item-m:nth-child(2) .content-m {
    display: block;
}

.content-m .title-m {
    font-size: 100px;
    text-transform: uppercase;
    color: #0004ea;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1;
    opacity: 0;
    animation: animate-m 1s ease-in-out 0.3s 1 forwards;
}

.content-m .name-m {
    color: #000000;
    font-size: 100px;
    text-transform: uppercase;
    font-weight: bold;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    line-height: 1;
    text-shadow: 3px 4px 4px rgba(255, 255, 255, 0.8);

    opacity: 0;
    animation: animate-m 1s ease-in-out 0.6s 1 forwards;
}

.content-m .des-m {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    margin-left: 5px;
    opacity: 0;
    animation: animate-m 1s ease-in-out 0.9s 1 forwards;
}

.content-m .btn-m {
    margin-left: 5px;
    opacity: 0;
    animation: animate-m 1s ease-in-out 1.2s 1 forwards;
}

.content-m .btn-m button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border: 2px solid #fff;
}

.content-m .btn-m button:nth-child(1) {
    margin-left: 5px;
}

.content-m .btn-m button:nth-child(2) {
    background: transparent;
    color: #0004ea;
    border: 2px solid #fff;
    transition: 0.3s;
}

.content-m .btn-m button:nth-child(2):hover {
    background-color: #0004ea;
    color: #fff;
    border-color: #000000;
}

@keyframes animate-m {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to {
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

.arrows-m {
    position: absolute;
    top: 90%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: left;
}

.arrows-m button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    background-color: #0004ea;
    border: none;
    font-size: 16px;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
    cursor: pointer;
}

.arrows-m button:hover {
    background-color: #fff;
    color: #000000;
}
/* tme running */
.carousel-m .timeRunningM {
    position: absolute;
    z-index: 999;
    width: 0%;
    height: 4px;
    margin-top: 50px;
    background-color: #0004ea;
    animation: runnigTimeM 7s linear 1 forwards;
}

@keyframes runnigTimeM {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}
@media screen and (max-width: 500px) {
    .carousel-desktop{
        display: none;
    }
    .carousel-mobile{
        display: flex;
    }
    .carousel-m {
        width: 100vw;
        height: 80vh;
        margin-top: 40px;
        overflow: hidden;
        position: relative;
    }
    .item-m .content-m {
        top: 42%;
        width: 300px;
        margin-left: 15px;
    }

    .content-m .title-m,
    .content-m .name-m {
        font-size: 45px;
    }

    .content-m .btn-m button {
        padding: 10px 15px;
        font-size: 14px;
    }
    .carousel-m .list-m .item-m {
        width: 80px;
        height: 130px;
        position: absolute;
        top: 90%;
        transform: translateY(-70%);
        left: 70%;
        border-radius: 20px;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        background-position: 50% 50%;
        background-size: cover;
        z-index: 100;
        transition: 1s;
    }
}
@media screen and (max-width: 370px) {
    .carousel-desktop{
        display: none;
    }
    .carousel-mobile{
        display: flex;
    }
    .carousel-m {
        width: 100vw;
        height: 80vh;
        margin-top: 80px;
        overflow: hidden;
        position: relative;
    }
    .item-m .content-m {
        top: 42%;
        width: 300px;
        margin-left: 15px;
    }

    .content-m .title-m,
    .content-m .name-m {
        font-size: 45px;
    }

    .content-m .btn-m button {
        padding: 10px 15px;
        font-size: 14px;
    }
    .carousel-m .list-m .item-m {
        width: 80px;
        height: 130px;
        position: absolute;
        top: 90%;
        transform: translateY(-70%);
        left: 70%;
        border-radius: 20px;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        background-position: 50% 50%;
        background-size: cover;
        z-index: 100;
        transition: 1s;
    }
}