@import url('https://fonts.googleapis.com/css2?family=Quantico:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Megrim&display=swap');

/* style for all body */
body,
html {
    margin: 0;
    padding: 0;
    /* prevent user from scrolling */
    overflow: hidden;
}

#canvas-container {
    position: relative;
}

/* style for the canvas */
canvas {
    /* postiion absolute to overlap with other elements */
    position: absolute;
    /* making sure top and eft corner is at html of origin */
    top: 0;
    left: 0;
    /* arrange to back  with thez-index property*/
    z-index: -1;
    display: block;
}

body {
    /* Define a linear gradient with a specific size and position */
    background: linear-gradient(90deg, var(--gradient-start-color, #ffffff), var(--gradient-end-color, #000000));
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: background-position 0.5s ease;
}

/* Trigger the transition by changing the background-position */
body:hover {
    background-position: 0% 0;
}

#color-changing-btn {
    background: linear-gradient(145deg, #1f1f1f, #2c2c2c);
    /* Dark sleek gradient */
    color: #fff;
    border: 1px solid #444;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), inset 0 -3px 5px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    margin-left: 30px;
    font-family: "Quantico", sans-serif;
    font-size: 20px;
}

/* Hover effect: gradient shift and lift */
#color-changing-btn:hover {
    /* background: linear-gradient(135deg, #0e0725, #5c03bc, #e536ab, #f4e5f0); */
    background: linear-gradient(135deg, #1a2766, #ae1b1e, #fc9f32, #136e01);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), inset 0 -3px 5px rgba(255, 255, 255, 0.08);
}

/* Active effect: press down */
#color-changing-btn:active {
    transform: translateY(2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 -2px 3px rgba(255, 255, 255, 0.05);
}

/* Optional subtle shine on hover */
#color-changing-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

#color-changing-btn:hover::before {
    top: -20%;
    left: -20%;
}

#title {
    position: fixed;
    top: 10px;
    left: 33rem;
    color: grey;
    font-family: "Megrim", system-ui;
    font-size: 40px;
    text-transform: uppercase;

}

#scroll-text {
    position: fixed;
    bottom: 25px;
    left: 65px;
    color: #e8e3e3;
    font-family: "Quantico", sans-serif;
}

#credits {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 14px;
    color: #888;
    font-family: Arial, sans-serif;
    text-align: right;
}

.scroll-downs {
    position: absolute;
    /* top: 0; */
    /* right: 0; */
    bottom: 12px;
    left: 20px;
    margin: auto;

    width: 34px;
    height: 55px;
}

.mousey {
    width: 3px;
    padding: 10px 15px;
    height: 35px;
    border: 2px solid #fff;
    border-radius: 25px;
    opacity: 0.75;
    box-sizing: content-box;
}

.scroller {
    width: 3px;
    height: 10px;
    border-radius: 25%;
    background-color: #fff;
    animation-name: scroll;
    animation-duration: 2.2s;
    animation-timing-function: cubic-bezier(.15, .41, .69, .94);
    animation-iteration-count: infinite;
}

@keyframes scroll {
    0% {
        opacity: 0;
    }

    10% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}