*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    font-size: 62.5%; /* Changes 16 to 10 pixels */
    /* CSS Variables */
    --bg: #290688;
    --evil-bg: #38040450;
    --before-evil: #0e0e0e;
    --during-evil: #350707;
    --after-evil: #b90505;
}


html,
body {
    /* font-family: CustomFont, 'Helvetica', sans-serif; */ 
    font-family: 'Helvetica', sans-serif;
    font-size: 1.6rem;
    color: white;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
}
body {
    overflow: hidden;
    background: var(--bg); /* Use the --bg variable for the background */
}


img {
    max-width: 100%; /* prevents imgs from modifying size of body */
}

/*--------------------------- Elements --------------------------*/

.everything {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2.5rem;
    height: 100dvh; 
    position: relative;
    z-index: 999;
    pointer-events: none;
    user-select: none;
    transition: none; /* Remove transition for instant background change */
    background: var(--bg);
}

.everything  * {
    opacity: 0;
    transition: all 500ms ease-in-out;
}

.time {
    font-size: 6rem;
    font-weight: 800;   /* this only works with variable fonts :/ */
    
}

/* --------------------------- sillies -------------------------- */

.evil, .evil > *{
    color: rgb(255, 0, 0);
    background-color: #380404;
    font-family: papyrus;
    font-weight: 800;
}

#tooltipBackground {
    display: none;
    align-items: center;
    justify-content: center;
    height: 20dvh;
    width: 75dvw;
    position: fixed;
    top: 0;
    margin: 2rem;
    background-color: var(--evil-bg);
    backdrop-filter: blur(10px);
    border-radius: 1.8rem;
    pointer-events: none;
}

#evilTooltip {
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    margin: auto auto;
    z-index: 9;
    height: fit-content;
    width: 75%;
    word-wrap: break-word;
    text-align: center;
    font-size: 2.6dvw;
    overflow: hidden;
    font-family: papyrus;
}

input {
    all: unset;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 1rem;
    margin: 1rem 0;
    animation: sliderSpin 750ms forwards;
    transition: all 1250ms ease;
    height: 1.5rem;
    outline: none;
    z-index: -999;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: grab;
    pointer-events: all;
    user-select: all;
}

input:active{
    cursor: grabbing;
}



#evilBtn {
    all: unset;
    padding: 1.5rem 2rem; 
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px); /* This will blur the background behind the button */
    border-radius: 1rem;
    margin-top: 2rem;
    text-align: center;
    cursor: pointer !important;
    pointer-events: all;
    transition: all 250ms ease-in-out;
    -webkit-box-shadow: 4px 4px 24px 1px rgba(0,0,0,0.39);
    -moz-box-shadow: 4px 4px 24px 1px rgba(0,0,0,0.39);
    box-shadow: 4px 4px 24px 1px rgba(0,0,0,0.39);
    opacity: 0;
}

/* #evilBtn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #cfcfcf;
    border-radius: 1.75rem;
    scale: 1.1;
} */
 
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes evilTooltip {
    0% {
        opacity: 0;
        color: var(--before-evil);
        transform: translateY(-100%);
    }
    
    100% {
        top: 0;
        opacity: 1;
        color: var(--after-evil);
        transform: translateY(0);
    }
}

@keyframes sliderSpin {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-90deg);
    }

    100% {
        transform: rotate(2880deg);
    }
}

@media (max-width: 768px) {
    #evilTooltip {
        width: 75dvw;
        font-size: 10dvw;
    }

}