:root {
    --clr-blue-light: #0097ff;
    --clr-blue: #0033AD;
    --angleX: 0deg;
    --angleY: 0deg;
}

body {
    transform-style: preserve-3d;
    transform: perspective(600px);
}

#tres_iconos strong {
    color: var(--clr-blue);
}

.number-background {
    position: absolute;
    top: 0rem;
    left: 0.3rem;
    font-size: 12.5rem;
    color: var(--clr-blue);
    opacity: 0.25;
    z-index: 0;
}

.card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 20rem;
}

.card img, .instructions img {
    width: 5rem;
    height: 5rem;
    margin-bottom: 1rem;
}

.instructions p {
    margin: auto;
}

.box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.box:hover {
    box-shadow: 0px 6px 6px 0px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

/* Parallax */
.pseudo-parallax-card-container {
    flex-flow: column;
    justify-content: center;
    align-items: center;
    background-color: var(--clr-blue);
    border-radius: 1rem;
    width: 300px;
    height: 350px;
}

.flex {
    display: flex;
}

.flex.flex-row {
    flex-flow: row wrap;
}

.mock {
    width: 50%;
    height: 50%;
    z-index: 2;
}

.mock.left.top:hover ~ .content-container {
    --angleX: 8deg;
    --angleY: -25deg;
}

.mock.left.bottom:hover ~ .content-container {
    --angleX: -8deg;
    --angleY: -25deg;
}

.mock.right.top:hover ~ .content-container {
    --angleX: 8deg;
    --angleY: 25deg;
}

.mock.right.bottom:hover ~ .content-container {
    --angleX: -8deg;
    --angleY: 25deg;
}

.content-container {
    position: absolute;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 350px;
    text-align: center;
    background-color: #fff;
    border-radius: 1rem;
    color: black;
    user-select: none;
    transition: box-shadow 0.5s ease, transform 0.65s ease;
    will-change: transform;
    box-shadow: -20px 10px 20px rgba(0, 0, 0, 0.4);
    transform: translatey(0) rotatex(var(--angleX, 0)) rotatey(var(--angleY, 0)) translatez(-10px);
    filter: brightness(110%);
}

.controls-container {
    position: absolute;
    top: 5%;
    left: 75%;
    width: 50px;
    height: 20px;
    justify-content: space-between;
}

.controls-container .control {
    width: 10px;
    height: 10px;
    border-radius: 1rem;
    background-color: var(--clr-blue);
    box-shadow: 2px 2px 1px black, 0.5px 1px 0px var(--clr-blue-light) inset;
}

.message-container .message {
    position: absolute;
    top: 35%;
    left: -20%;
    width: 180px;
    height: 40px;
    z-index: 200;
    border-radius: 20px;
    box-shadow: -20px 10px 10px rgba(0, 0, 0, 0.2), -1px -1px 0px #a0a0a0 inset;
}

.message-container .message-one {
    background: #528acf;
}

.message-container .message-two {
    top: 55%;
    left: 60%;
    background: #ffb6cd;
}

.message-container .message-three {
    top: 75%;
    left: 60%;
    background: #97fac9;
}

.message-container .instructions {
    position: absolute;
    top: 25%;
    width: 100%;
    left: 0%;
}

.name {
    color: #adc0ca;
}

.gradient-box {
    opacity: 25%;
    width: 100vw;
    position: absolute;
    left: 0;
    padding: 0;
    margin: 0;
    height: 5rem;
    background: linear-gradient(to bottom, #7a7a7a, #d9d9d9);
}
