/********** common style **********/
#container {
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#container h1 {
    font-size: 3rem;
    color: #fd721d;
    text-align: center;
}

#container .loader {
    margin: 2%;
    background: #faf1ec;
    position: relative;
}

#container .loader:after {
    content: attr(data-name);
    position: absolute;
    top: 5%;
    right: 5%;
    font-weight: 800;
    color: #fce8dc;
}

#container .loader__item {
    width: 80%;
    height: 80%;
    position: absolute;
    top: 10%;
    left: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/********** #style **********/
#loader-1 span {
    margin: 0 5px;
}

#loader-1 span:nth-child(2) {
    animation: loader-1 1s ease-in-out infinite;
}

#loader-1 span:nth-child(3) {
    animation: loader-1 1s ease-in-out 0.33s infinite;
}

#loader-1 span:nth-child(4) {
    animation: loader-1 1s ease-in-out 0.66s infinite;
}

#loader-1 .brace {
    font-size: 2rem;
    font-weight: 600;
    color: #fd721d;
    margin: 0 10px;
}

#loader-1 .dot {
    width: 10px;
    height: 10px;
    background: #fd721d;
    border-radius: 50px;
}

#loader-2 .square {
    width: 70px;
}

#loader-2 .square .dot {
    display: inline-block;
    margin: 5px;
    width: 10px;
    height: 10px;
    background: #fd721d;
    border-radius: 50px;
    animation: loader-2-disappear 0.8s alternate infinite;
}

#loader-2 .square .dot:nth-child(1) {
    animation-delay: 0.2s;
}

#loader-2 .square .dot:nth-child(2) {
    animation-delay: 0.4s;
}

#loader-2 .square .dot:nth-child(3) {
    animation-delay: 0.6s;
}

#loader-2 .square .dot:nth-child(4) {
    animation-delay: 0.4s;
}

#loader-2 .square .dot:nth-child(5) {
    animation-delay: 0.6s;
}

#loader-2 .square .dot:nth-child(6) {
    animation-delay: 0.8s;
}

#loader-2 .square .dot:nth-child(7) {
    animation-delay: 0.6s;
}

#loader-2 .square .dot:nth-child(8) {
    animation-delay: 0.8s;
}

#loader-2 .square .dot:nth-child(9) {
    animation-delay: 1s;
}

#loader-3 .dot {
    margin: 0 2px;
    width: 10px;
    height: 10px;
    background: #fd721d;
    border-radius: 50px;
}

#loader-3 .dot:first-child {
    animation: loader-3 2s ease-in-out infinite;
}

#loader-3 .dot:nth-child(2) {
    animation: loader-3 2s ease-in-out 1s infinite;
}

#loader-3 .dot:nth-child(3) {
    animation: loader-3 2s ease-in-out infinite;
}

#loader-3 .dot:nth-child(4) {
    animation: loader-3 2s ease-in-out 1s infinite;
}

#loader-3 .dot:last-child {
    animation: loader-3 2s ease-in-out infinite;
}

#loader-4 p {
    position: relative;
    font-weight: 900;
    font-size: 1.5rem;
    color: #ffeade;
}

#loader-4 p:before {
    content: attr(data-text);
    position: absolute;
    overflow: hidden;
    width: 0;
    color: #fd721d;
    animation: loader-4 2s infinite;
}

#loader-5 p {
    position: relative;
    background: #fd721d;
    transform-origin: 50% 0;
    transform-style: preserve-3d;
    width: 120px;
    height: 50px;
    color: #fff;
    line-height: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
    animation: loader-5 2.6s ease-in-out infinite;
}

#loader-5 p:before {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    transition: background 0.3s;
    transform: rotateX(-90deg);
    transform-origin: 50% 0;
    background: #fd721d;
    color: #fff;
}

#loader-6 p {
    font-weight: 900;
    font-size: 1.5rem;
    color: #fd721d;
    text-shadow: 0 13.36px 8.896px #e0d6d0, 0 -2px 1px #fff;
    animation: loader-6 2s ease-in-out infinite;
}

@keyframes loader-6 {
    50% {
        margin-bottom: 50px;
        text-shadow: none;
    }
}

/********** keyframe **********/
@keyframes loader-1 {
    0%, 75%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-10px);
    }
}

@keyframes loader-2-disappear {
    0% {
        transform: scale(1, 1);
    }
    100% {
        transform: scale(0, 0);
    }
}

@keyframes loader-3 {
    0%, 25%, 50%, 75%, 100% {
        transform: translate(0);
    }
    12% {
        transform: translate(-10px, 10px);
    }
    37% {
        transform: translate(10px, 10px);
    }
    62% {
        transform: translate(-10px, -10px);
    }
    87% {
        transform: translate(10px, -10px);
    }
}

@keyframes loader-4 {
    50% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

@keyframes loader-5 {
    50% {
        transform: rotateX(90deg) translateY(-22px);
    }
}

/********** responsive **********/
@media screen and (min-width: 1024px) {
    .loader {
        width: calc(88% / 3);
        padding-top: calc(88% / 3);
    }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
    .loader {
        width: calc(88% / 3);
        padding-top: calc(88% / 3);
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .loader {
        width: 46%;
        padding-top: 46%;
    }
}

@media screen and (max-width: 480px) {
    .loader {
        display: flex;
        width: 100%;
        padding-top: 80%;
        justify-content: center;
        align-items: center;

    }

}