:root {
    --bg_black: #2e2e2e;
    --almost_white: #ffffff;
    --light-blue: aqua;
}

* {
    margin: 0;
    padding: 0;
}

body {
    width: 100vw;
    height: 100vh;
    font-family: monospace;
    background-image: url(../../miscelaneous/img/wallpaper.jpg);
    background-size: cover;
    overflow: hidden;
}

#body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cristal {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px) saturate(100%);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2),
}

#pantalla-carga {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--almost_white);
    z-index: 1000001;
    background-color: var(--bg_black);
}

#disclaimer {
    display: flex;
    justify-content: center;
    text-align: center;
    color: rgb(165, 165, 165);
    font-weight: bold;
}

#disclaimer span {
    display: block;
    width: 80%;
}

#profile {
    cursor: none;
    pointer-events: none;
    width: 200px;
    height: 200px;
    border-radius: 100%;
    margin-bottom: 2rem;
    border: 5px solid var(--light-blue);
    padding: 10px;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+ */
    user-select: none;         /* estándar */
    -webkit-touch-callout: none; /* iOS Safari */
}

#mail-link, #linkedin-link {
    color: var(--light-blue);
}

.container {
    --uib-size: 60px;
    --uib-color: var(--almost_white);
    --uib-speed: 1.75s;
    --uib-bg-opacity: .1;
    position: relative;
    display: flex;
    flex-direction: column;
    height: var(--uib-size);
    width: var(--uib-size);
    transform: rotate(45deg);
    animation: rotate calc(var(--uib-speed) * 2) ease-in-out infinite;
}

.half {
    --uib-half-size: calc(var(--uib-size) * 0.435);
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--uib-half-size);
    height: var(--uib-half-size);
    overflow: hidden;
    isolation: isolate;

    &:first-child {
        top: 8.25%;
        left: 8.25%;
        border-radius: 50% 50% calc(var(--uib-size) / 15);
    }

    &:last-child {
        bottom: 8.25%;
        right: 8.25%;
        transform: rotate(180deg);
        align-self: flex-end;
        border-radius: 50% 50% calc(var(--uib-size) / 15);

        &::after {
            animation-delay: calc(var(--uib-speed) * -1);
        }
    }

    &::before {
        content: '';
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background-color: var(--uib-color);
        opacity: var(--uib-bg-opacity);
        transition: background-color 0.3s ease;
    }

    &::after {
        content: '';
        position: relative;
        z-index: 1;
        display: block;
        background-color: var(--uib-color);
        height: 100%;
        transform: rotate(45deg) translate(-3%, 50%) scaleX(1.2);
        width: 100%;
        transform-origin: bottom right;
        border-radius: 0 0 calc(var(--uib-size) / 20) 0;
        animation: flow calc(var(--uib-speed) * 2) linear infinite both;
        transition: background-color 0.3s ease;
    }
}

@keyframes flow {
    0% {
        transform: rotate(45deg) translate(-3%, 50%) scaleX(1.2);
    }

    30% {
        transform: rotate(45deg) translate(115%, 50%) scaleX(1.2);
    }

    30.001%,
    50% {
        transform: rotate(0deg) translate(-85%, -85%) scaleX(1);
    }

    80%,
    100% {
        transform: rotate(0deg) translate(0%, 0%) scaleX(1);
    }
}

@keyframes rotate {

    0%,
    30% {
        transform: rotate(45deg);
    }

    50%,
    80% {
        transform: rotate(225deg);
    }

    100% {
        transform: rotate(405deg);
    }
}

#descargar {
    margin-left: 20px;
    margin-right: 10px;
}

.esconder-en-movil {
    display: none;
}