html,
body {
    /* fallback for old browsers */
    background: -webkit-linear-gradient(#D7D6C2, 55%, #137ba1);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(#D7D6C2, 55%, #137ba1);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

    font-family: 'Barlow', sans-serif;
    /* Fallback for browsers without Barlow */
    font-style: normal;
    font-weight: 200;
    height: 100vh;
    /* Use viewport height for full-screen */
    margin: 0;

    text-align: center;
    overflow: hidden;
}

/* Floating Mark */
.floating-mark-top {
    position: fixed;
    top: 3%;
    left: 50%;

    transform: translateX(-50%);
    opacity: 0.85;
    z-index: 9999;

    max-width: 12rem;
    height: auto;
}

.floating-mark-down {
    position: fixed;
    bottom: 3%;
    left: 50%;

    transform: translateX(-50%);
    opacity: 0.85;
    z-index: 9999;

    max-width: 12rem;
    height: auto;
}

/* Cartel (Centered Content) */
.box {
    margin-top: 1.5rem;
    display: flex;
    /* Use flexbox for easy centering */
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    position: relative;
    /* Needed for absolute positioning of child elements */
    min-height: 100vh;
    /* Fallback for non-full-height content */
}

.box div {
    width: 460px;
    height: 80px;
    line-height: 80px;
    color: #000000;
    background-color: #fff;
    border-radius: 1rem;
    font-size: 2.8rem;
    /* Adjust font size if needed */
    z-index: 3;
    position: absolute;
    /* Removed to inherit from .box */
    text-transform: capitalize;
    animation: moving 9s linear infinite;
    -webkit-animation: moving 9s linear infinite;
    -moz-animation: moving 9s linear infinite;
    -o-animation: moving 9s linear infinite;

    transform-origin: 50% -400%;
    -webkittransform-origin: 50% -400%;
    -moz-transform-origin: 50% -400%;
    -o-transform-origin: 50% -400%;
}

/* Pibote */
.box div:before {
    content: "";
    width: 30px;
    height: 30px;
    background-color: #1D718D;
    z-index: 4;
    border-radius: 100%;
    display: block;
    position: absolute;
    left: calc(50% - 15px);
    /* Center horizontally within .box div */
    top: -230px;
}

/* Cuerda */
.box div:after {
    content: "";
    width: 3px;
    height: 220px;
    background-color: #fff;
    display: block;
    z-index: 1;
    position: absolute;
    left: calc(50% - 1.5px);
    /* Center horizontally within .box div */
    top: -200px;
}

/* Texto Externo */
.box p {
    position: absolute;

    /* Effects */
    cursor: pointer;
    transition:
        color 0.2s ease-in-out,
        background-color 0.2s ease-in-out; /* Transición suave */

    /* Removed for default behavior within .box */
    top: 62.5%;
    left: auto;

    /* Adjust left position if needed */
    font-weight: 700;
    text-transform: uppercase;
    color: #0d6889;

    /* Box */
    background-color: #ffffffdd;
    border-radius: 15px;
    box-shadow: 4px 5px 3px 0 rgba(5, 5, 5, 0.2);
    padding: .4rem 1.5rem;
    width: auto;
}

.box p:hover,
.box p:focus {
    color: #fff;
    background-color: #094f69;
}

.box p#come_back {
    display: block;
    font-size: 2rem;
    /* Adjust font size if needed */
}

#signal {
    font-weight: 300;
}

@keyframes moving {

    0%,
    100% {
        transform: rotate(0)
    }

    25% {
        transform: rotate(3deg);
    }

    50% {
        transform: rotate(-3deg)
    }
}

@-webkit-keyframes moving {

    0%,
    100% {
        transform: rotate(0)
    }

    25% {
        transform: rotate(3deg);
    }

    50% {
        transform: rotate(-3deg)
    }
}

@-moz-keyframes moving {

    0%,
    100% {
        transform: rotate(0)
    }

    25% {
        transform: rotate(3deg);
    }

    50% {
        transform: rotate(-3deg)
    }
}

@-o-keyframes moving {

    0%,
    100% {
        transform: rotate(0)
    }

    25% {
        transform: rotate(3deg);
    }

    50% {
        transform: rotate(-3deg)
    }
}
