@font-face {
    font-family: 'Jester';
    src: url('jester.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Jester', Arial, sans-serif;
}

/* Styles for the main game */
body:not(.welcome-body) {
    background-image: url('pinkybraincage.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Styles for the welcome screen */
.welcome-body {
    background-color: #87CEEB; /* Light blue background */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#welcomeScreen {
    text-align: center;
}

#startGame, #howToPlay {
    font-size: 24px;
    margin: 10px;
    padding: 15px 30px;
    cursor: pointer;
    background-color: #FFA500; /* Orange buttons */
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Jester', Arial, sans-serif;
}

#startGame:hover, #howToPlay:hover {
    background-color: #FF8C00; /* Darker orange on hover */
}

#howToPlayBubble {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 50%;
    padding: 40px;
    text-align: center;
    font-size: 48px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#howToPlayBubble .small-text {
    font-size: 24px;
    margin-top: 10px;
}

/* Existing styles for the main game */
#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#score, #gameOver, #pinkyCount, #leaderboard {
    position: absolute;
    font-size: 24px;
    font-family: 'Jester', Arial, sans-serif;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#score {
    top: 10px;
    left: 10px;
}

#pinkyCount {
    top: 10px;
    right: 10px;
}

#gameOver, #leaderboard {
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

#nameInput {
    font-size: 18px;
    margin: 10px 0;
    font-family: 'Jester', Arial, sans-serif;
}

#submitScore, #restartGame, #viewLeaderboard {
    font-size: 18px;
    margin: 10px 0;
    font-family: 'Jester', Arial, sans-serif;
    padding: 10px 20px;
    cursor: pointer;
}

#leaderboardList {
    list-style-type: none;
    padding: 0;
}

#leaderboardList li {
    margin: 5px 0;
}