:root {
    --page-bg: #EFA9BD;
    --box-bg: #FFE3E0;
    --text-color: rgb(0, 0, 0);
    --secondary-text: #d5b7ce;
    --link-color: #db9dd1;
    --link-hover-color: rgb(0, 0, 0);

    --title-font: 'TitleFont';
    --body-font: 'BodyFont';
}

body {
    background-color: var(--page-bg);
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    top: -10%;
    background-size: contain;
    background-repeat: no-repeat;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(115vh) rotate(360deg);
    }
}

.box-holder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 97vh;
    background-color: var(--box-bg);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.box-holder p#counter {
    position: absolute;
    top: 50%;
    margin-top: 20vh;
    font-family: var(--title-font);
    color: var(--text-color);
    font-size: 1.4rem;
    cursor: default;
}

.box-holder h1 {
    position: absolute;
    top: 15%;
    font-family: var(--title-font);
    color: var(--text-color);
    transition: transform 0.3s ease;
    cursor: default;
}

.box-holder h1:hover {
    transform: scale(1.08);
}

.box-holder .text {
    position: absolute;
    top: 64%;
    font-size: 2vh;
    margin-top: 20vh;
    font-family: var(--body-font);
    color: var(--secondary-text);
}

.box-holder .link {
    position: absolute;
    top: 67%;
    font-size: 2vh;
    margin-top: 20vh;
    font-family: var(--body-font);
    color: var(--secondary-text);
}

.box-holder .link a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.box-holder .link a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

.box-holder img {
    height: 30vh;
    width: 30vh;
    position: absolute;
    transition: transform 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
}

@media (hover: hover) {
    .box-holder img:hover {
        transform: scale(1.08);
    }
}

.box-holder img:active {
    transform: scale(0.92);
}

.float-number {
    position: absolute;
    font-family: var(--title-font);
    color: var(--text-color);
    font-size: 1.5rem;
    pointer-events: none;
    user-select: none;
    animation: floatUp 1.3s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px);
    }
}


@font-face {
  font-family: 'TitleFont';
  src: url('OutlineBubble-Regular.otf');
}
@font-face {
  font-family: 'BodyFont';
  src: url('Talina_DEMO.otf');
}
