* {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow: hidden;

    background-color: #ffd6e7;

    background-image:
        linear-gradient(45deg, #ffb6d5 25%, transparent 25%),
        linear-gradient(-45deg, #ffb6d5 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ffb6d5 75%),
        linear-gradient(-45deg, transparent 75%, #ffb6d5 75%);

    background-size: 80px 80px;

    background-position:
        0 0,
        0 40px,
        40px -40px,
        -40px 0;
}

#game {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}



#player {
    position: absolute;

    width: 100px;
    height: auto;

    image-rendering: pixelated;
    image-rendering: crisp-edges;

    user-select: none;
    pointer-events: none;

    z-index: 10;
}



#pie {
    position: absolute;

    width: 60px;
    height: auto;

    image-rendering: pixelated;
    image-rendering: crisp-edges;

    user-select: none;
    pointer-events: none;

    z-index: 5;
}


#score {
    position: fixed;

    top: 20px;
    right: 20px;

    padding: 10px 18px;
    color: white;
    background: #fb6853;

    border: 4px solid white;
    border-radius: 10px;

    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;

    z-index: 100;
}

#timer {
    position: fixed;

    top: 20px;
    left: 20px;

    padding: 10px 18px;
    color: white;
    background: #fb6853;

    border: 4px solid white;
    border-radius: 10px;

    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;

    z-index: 100;
}

#gameOver {
    display: none;

    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    padding: 25px 40px;

    background: white;

    border: 6px solid black;
    border-radius: 15px;

    font-family: Arial, sans-serif;
    font-size: 48px;
    font-weight: bold;

    z-index: 200;
}



#startScreen {
    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background: #fff5f7;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    z-index: 500;
}


/* TITLE */

#startScreen h1 {
    font-family: Arial, sans-serif;

    font-size: 60px;

    margin-bottom: 30px;
}


/* START BUTTON */

#startButton {
    padding: 15px 35px;

    font-family: Arial, sans-serif;

    font-size: 25px;
    font-weight: bold;

    background: #fb6853;

    color: white;

    border: 4px solid white;

    border-radius: 12px;

    cursor: pointer;
}


#startButton:hover {
    transform: scale(1.05);
}

#retryButton {
    margin-top: 20px;

    padding: 12px 30px;

    font-size: 24px;
    font-weight: bold;

    background: #fb6853;
    color: white;

    border: 4px solid white;
    border-radius: 10px;

    cursor: pointer;
}

#retryButton:hover {
    transform: scale(1.05);
}