body, html {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, #00DBDE 0%, #FC00FF 100%);
    height: 100%;
}


/* Content flex box for page*/
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
}

.content img {
    width: 600px;
    height: auto;
    top: 10%;
    position: absolute;
}

/* Horizontal line in center of page */
.content::before {
    content: '';
    position: absolute;
    top: calc(50% - 0.9375vmin); /* Adjusted to align with the Pokeball's center line */
    left: 0;
    width: 100%;
    height: 1.875vmin;
    background-color: black;
    z-index: 0; /* Place the line behind Pokeball */
}

/* Wrapper for the pokeball (needed to use multiple effects at once) */
.pokeball-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rollIn 1.5s ease-out forwards;
}

/* Pokeball */
.pokeball {
    height: 25vmin;
    width: 25vmin;
    border-radius: 50%;
    border: 1.875vmin solid black;
    background-image:
        radial-gradient(white 20%, white 20%, black 20%, black 30%, transparent 30%, transparent), 
        linear-gradient(red 46%, black 46%, black 54%, white 54%);
    position: relative;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

/* Allows the pokeball to expand on hover */
.pokeball:hover {
    transform: scale(1.2);
}

/* Text under Pokeball */
.start-text {
    font-size: 40px;
    font-weight: bold;
    color: black;
    opacity: 0;
    animation: fadeIn 2s ease-in forwards 1.5s, floatUpDown 2.5s ease-in-out infinite 3.5s;
    bottom: 20%;
    position: absolute;
    margin: 0;
    padding: 0;
}

/* Fade-in animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Float up/down animation */
@keyframes floatUpDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Rolling in from the right animation to the middle animation */
@keyframes rollIn {
    0% {
        transform: translateX(100vw) rotate(0deg);
    }
    100% {
        transform: translateX(0) rotate(720deg);
    }
}

/* Rolling out to the left from the middle animation */
@keyframes rollOut {
    0% {
        transform: translateX(0) rotate(720deg);
    }
    100% {
        transform: translateX(-100vw) rotate(1440deg);
    }
}

/* Class that when added triggers roll-out animation */
.roll-out {
    animation: rollOut 1.5s ease-in forwards;
}