/* settings start */
@import url(fonts.css);

:root {
    --CB-700: 'Comfortaa-Bold';
    --CR-400: 'Comfortaa-Regular';
    --JB-700: 'JosefinSans-Bold';
    --JR-400: 'JosefinSans-Regular';
    --RB-700: 'Roboto-Bold';
    --RR-400: 'Roboto-Regular';
}

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
}

.container {
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}
/* settings end */
/* ******************************************************** */
/* footer start */
.header__nav {
    background: rgb(54, 37, 37);
}

.header__nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.header__nav-title {
    font-family: var(--JB-700);
    font-size: 35px;
    color: white;
    transition: .3s;
}

.header__nav-title span {
    color: red;
    transition: .15s;
}

.header__nav-title:hover {
    color: blue;
}

.header__nav-title:hover span {
    color: rgb(144, 245, 114);
}

.header__nav-list {
    display: flex;
}

.header__nav-item:not(:last-of-type) {
    margin-right: 30px;
}

.header__nav-link {
    font-family: var(--CB-700);
    color: white;
    font-size: 20px;
    text-transform: uppercase;
    transition: .3s;
}
.header__nav-link:hover {
    color: red;
}

.list__link {
    color: rgb(70, 66, 66);
    cursor: pointer;
}

.list__link:hover {
    color: rgb(70, 66, 66);
}
/* header end */
/* ******************************************************* */
/* main start */
.main {
    background: linear-gradient(180deg, rgb(54, 37, 37), rgb(176, 190, 235));
}

.main__content {
    width: 70%;
    margin: 0 auto;
    padding: 30px 0;
    position: relative;
}

.main__content-img {
    width: 100%;
}

.main__content-title {
    font-family: var(--RB-700);
    font-size: 100px;
    position: absolute;
    top: 210px;
    left: 160px;
    color: rgb(32, 24, 24);
    z-index: 2;
}

.main__content-black {
    position: absolute;
    top: 37px;
    left: 6px;
    width: 827px;
    height: 469.5px;
    background: rgb(20, 16, 16);
    border-radius: 3px;
}

.main__content-box {
    width: 100%;
    height: 100%;
}

.main__black-item {
    width: 100px;
    height: 100px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  
    animation-name: cube;
    animation-duration: 80s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.main__black-gif {
    width: 100%;
    z-index: 5;
    opacity: .80;
    position: absolute;
    top: 0px;
    left: 0px;
}

.main__black-img {    
    width: 50%;
    z-index: 4;
}

/* main end */
/* *****************************  */
/* footer start */
.footer {
    background: rgb(154, 169, 216);
    padding: 10px;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.footer__qr {
    height: 40px;
    border-radius: 5px;
    opacity: .8;
}
/* footer end */
/* ************************************************* *
/* popup start */
.popup {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    overflow-x: hidden;
    transition: .8s;
    z-index: 5;
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup:target .popup__content{
    opacity: 1;
    transform: perspective(600px) translate(0px, 0px) rotateX(0deg);
}

.popup__area {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.popup__body {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
    z-index: 9;
}
.popup__content {
    background: rgb(139, 161, 154);
    color: black;
    max-width: 800px;
    padding: 30px;
    position: relative;
    border-radius: 25px;
    transition: .8s;
    opacity: 0;
    transform: perspective(600px) translate(0px, -100%) rotateX(45deg);
}

.popup__close {   
    position: absolute;
    right: 20px;
    top: 20px;
    color: rgb(32, 39, 41);
    text-decoration: none;    
}

.popup__img {
    border-radius: 15px;
}
/* popup end */
/* ********************************* */

/* animation start */
@keyframes cube {
    0% {
        left: 0;
        top: 0;
    }

    5% {
        left: 350px;
        top: 369px;
    }

    10% {
        top: 0px;
        left: 727px;
    }

    15% {
        top: 369px;
        left: 500px;
    }

    20% {
        top: 0px;
        left: 221px;
    }

    25% {
        top: 150px;
        left: 0;
    }

    30% {
        top: 369px;
        left: 437px;
    }

    35% {
        top: 0;
        left: 600px;
    }   

    40% {
        top: 80px;
        left: 727px;
    }

    45% {
        top: 369px;
        left: 502px;
    }

    50% {
        top: 0;
        left: 230px;
    }

    55% {
        top: 176px;
        left: 0;
    }

    60% {
        top: 369px;
        left: 250px;
    }

    65% {
        top: 0;
        left: 400px;
    }

    70% {
        top: 240px;
        left: 727px;
    }

    75% {
        top: 369px;
        left: 480px;
    }

    80% {
        top: 0px;
        left: 150px;
    }

    85% {
        top: 95px;
        left: 0;
    }
    
    90% {
        top: 369px;
        left: 362px;
    }

    95% {
        top: 0;
        left: 450px;
    }

    100% {
        left: 727px;
        top: 369px;
    }
}
/* animation end */