@import "../../variables.css";
#home {
    background: rgba(27, 27, 27, 0.4);
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

@keyframes move-bg {
    0% {
        transform: scale(1.5);
    }
    100% {
        transform: scale(1);
    }
}

#home .bg-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    z-index: -1;
    overflow: hidden;
}

#home .bg-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: move-bg 20s linear forwards;
}

#home .text-wrapper {
    display: flex;
    align-items: center;
    padding-top: 25vh;
    height: 100%;
    width: 100%;
    flex-direction: column;
}

#home .text-wrapper .text-box {
    background: var(--color1);
    border-radius: 0.5rem;
    width: fit-content;
    height: fit-content;
    max-width: 95%;
}

#home .text-wrapper .text-box p {
    font-size: 3rem;
    font-weight: 500;
    text-transform: uppercase;
    color: aliceblue;
    padding: 0.5rem 1rem 0.5rem 1rem;
    text-align: center;
}

#home .text-wrapper .warning {
    margin-top: 15vh;
    background: var(--color2);
    border-radius: 0.5rem;
    width: fit-content;
    height: fit-content;
    /* animation: warning 3s ease-in-out infinite; */
    animation: pulse 1s infinite;
    max-width: 80%;
}

#home .text-wrapper .warning p {
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    color: aliceblue;
    padding: 0.5rem 1rem 0.5rem 1rem;
    text-align: center;
}

@keyframes pulse {
    from {
        box-shadow: red 0 0 0;
    }
    to {
        box-shadow: rgba(255, 0, 0, 0) 0 0 0 2rem;
    }
}

@keyframes warning {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@media (min-width: 640px) {
    #home .text-wrapper {
        padding-top: 25vh;
    }
    #home .text-wrapper .text-box p {
        font-size: 4rem;
    }
    #home .text-wrapper .warning p {
        font-size: 1.5rem;
    }
    #home .text-wrapper .warning {
        margin-top: 20vh;
    }
}

@media (min-width: 768px) {
    #home .text-wrapper {
        padding-top: 27vh;
    }
    #home .text-wrapper .text-box p {
        font-size: 5rem;
    }
    #home .text-wrapper .warning p {
        font-size: 2rem;
    }
    #home .text-wrapper .warning {
        margin-top: 20vh;
    }
}

@media (min-width: 1280px) {
    #home .text-wrapper {
        padding-top: 27vh;
    }
    #home .text-wrapper .text-box p {
        font-size: 6rem;
    }
    #home .text-wrapper .warning p {
        font-size: 3rem;
    }
    #home .text-wrapper .warning {
        margin-top: 20vh;
    }
}