body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100dvh;
    margin: 0;
    background-color: #FEEE91;
    font-family: 'Arial Rounded', sans-serif;
    text-align: center;
    gap: 1vh;
    cursor: auto;
}

header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
    margin-bottom: 5px;
}

h1,
h2,
h3,
p {
    margin: 0;
    padding: 1;
    line-height: 1.1;
}

h1 {
    font-size: 3rem;
}

#message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    white-space: normal;
    z-index: 100;
    width: 80%;
    background-color: #d3edfbb1;
    padding: 20px;
    border-radius: 20px;
    border: none;
    font-weight: bold;
    text-align: center;
    pointer-events: none;
    display: none;
}

#message:not(:empty) {
    display: block;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 10px;
}

p {
    font-size: 1.2rem;
}

.bttn {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    width: 100%;
}

#start,
#reset {
    font-size: 1.5rem;
    justify-content: center;
    gap: 20px;
    border-radius: 20px;
    background-color: #ffa239;
    border-style: dashed;
    flex-shrink: 0;
}

.board {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    width: 80vmin;
    height: 80vmin;
    flex-shrink: 1;
    min-height: 0;
    margin: auto;
    border: 5px solid #1b348e;
    background-color: #ACE4FF;
    margin-bottom: 20px;
    cursor: none;
}

#custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    width: 100px;
    height: 100px;
    background-image: url(../images/miloAnimation.PNG);
    background-size: contain;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%);
    display: none;
}

.treat img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.falling-treat {
    width: clamp(40px, 8vmin, 80px);
    height: clamp(40px, 8vmin, 80px);
    position: absolute;
    top: 0px;
    animation: fall 10s linear forwards;
    z-index: 10;
}

@keyframes fall {
    0% {
        top: -100px;
    }

    100% {
        top: calc(110%);
    }
}

.bouncing-ball {
    position: absolute;
    width: 5px;
    height: 5px;
    z-index: 200;

    animation-name: verticalBounce, horizontalTravel;
    animation-duration: 1s, 4s;
    animation-iteration-count: infinite, infinite;
    animation-timing-function: ease-in-out, linear;
    animation-direction: alternate, alternate;
}

@keyframes verticalBounce {
    0% {bottom: 600px; opacity: 0;}
    1% {opacity: 1;}
    50% {bottom: 0px; opacity: 1;}
    100% {bottom: 600px; opacity:1;}
}

@keyframes horizontalTravel {
    from {left: -20%;}
    to {left: calc(100% - 50px);}
}

#milkBone,
#iceCreamCone,
#broccoli,
#apple {
    display: none;
}