* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    width: 100%;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    height: 300px;
    width: 300px;
    /* background-color: red; */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.loader span {
    position: absolute;
    border: 2px solid rgb(163, 8, 8);
    width: 100%;
    height: 100%;
    animation: animate 5s linear infinite;
}

.loader span:nth-child(2) {
    animation-direction: reverse;
}

.loader span:nth-child(3) {
    animation-delay: 3s;
}

.loaded {
    opacity: 0;
    transition: all 0.5s;
}

.content {
    position: absolute;
    color: aqua;
    font-size: 1.2rem;
    visibility: hidden;
    transition: all 1.0s;
    transition-delay: 0.3s;
}

@keyframes animate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader h2 {
    color: white;
    font-size: 2.3rem;
    font-weight: 700;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}