
@import url('https://fonts.googleapis.com/css2?family=Wendy+One&display=swap');

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-image: url('bg.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    font-family: 'Wendy One', sans-serif;
    background-color: #F7CA05; /* backup color if image fails */
}

#front-page-container {
    color: white;
    position: relative;
}

.box {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
}

h3 {
    font-size: 12vw;
    white-space: nowrap;
    overflow: hidden;
    line-height: 220px;
    color: #F7CA05;
    text-shadow: 0 10px 7px rgba(0, 0, 0, 0.4), 0 -10px 1px #fff;
    letter-spacing: -3px;
    margin: 0;
}

h3:hover {
    animation: glitch 0.3s linear infinite;
    cursor: pointer;
}

#start-button {
    background-color: #ff6347;
    border: solid 3px white;
    padding: 15px 30px;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-top: 250px; /* push down under the title */
    z-index: 2;
    position: relative;
    font-family: 'Wendy One', sans-serif;
    color: white;
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.4);
}

#start-button:hover {
    background-color: #ff4500;
    animation: glitch 0.3s linear infinite; /* <-- ADD SHAKE ON HOVER */
}

/* Glitch / Shake animation */
@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}