body {
    margin: 0;
    height: 100vh;
    background-image: url('img/clickerbg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: 'Bebas Neue', sans-serif;
    overflow: hidden;
    touch-action: none;
}

.bebas-neue-regular {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  

#warningModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: 'Bebas Neue', sans-serif;
    z-index: 1050; /* High z-index to ensure it's on top */
}

#warningMessage {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    font-size: 25px; /* Adjusted font size here */
}

/* Increase font size for smaller texts specifically, if needed */
#warningMessage p {
    font-size: 24px; /* Larger font size for paragraph texts */
    margin-bottom: 10px; /* Add space between paragraphs */
}

#agreeButton {
    background-color: #4CAF50; /* Green */
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px; /* Larger font size for button */
    margin: 20px 2px; /* Add more margin to the top and bottom */
    cursor: pointer;
    border: none;
    border-radius: 5px;
}



.fly-up-text {
    position: absolute;
    color: #fff;
    font-size: 25px;
    z-index: 1000;
    pointer-events: none;
    user-select: none;
    opacity: 1;
}

.animate-fly-up {
    animation: flyUpAndFade 0.8s ease forwards;
}

@keyframes flyUpAndFade {
    to {
        transform: translateY(-100px);
        opacity: 0;
    }
}

.click-area {
    position: relative;
    display: inline-block;
    perspective: 1000px;
}

.clickable-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 375px;
    transition: transform 0.3s;
    transform-style: preserve-3d;
}

.countdown {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    text-align: center;
    user-select: none;
}

@media (orientation: landscape) {
    .clickable-image {
        max-height: 80vh;
    }
}

.bonus-image {
    transition: opacity 2s;
    position: absolute;
    max-width: 10%;
    cursor: pointer;
    display: none;
}

.tap-count {
    font-size: 48px;
    margin-bottom: 20px;
    user-select: none;
}

@media (max-width: 480px) {
    .tap-count, .timer-record {
        font-size: 24px;
    }
}

.game-over-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 1000;
    font-size: 40px;
}

#gameOverText {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    word-break: break-word;
}

#restartButton {
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    text-decoration: underline;
    margin-top: 20px;
}

#scoreEntry {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

#scoreEntry input,
#scoreEntry button {
    width: 100%;
    margin-bottom: 10px;
    max-width: 300px;
    margin: 10px auto; /* Auto margins for horizontal centering */
}

#scoreEntry button {
    background: transparent;
    border: 1px solid white;
    border-radius: 5px;
    padding: 10px;
    font-size: 1.25rem;
    color: white;
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
}

#scoreEntry input {
    border: 2px solid #ffffff;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px;
    border-radius: 5px;
    outline: none;
    font-size: 1rem;
}

@media (min-width: 768px) {
    #scoreEntry input,
    #scoreEntry button {
        max-width: 400px;
    }
}

@media (min-width: 1024px) {
    #gameOverText {
        font-size: 2.5vw;
    }
}

#scoresListWindow {
    text-align: center; /* Centering text inside the leaderboard window */
    padding: 20px; /* Add some padding around the entire leaderboard for spacing */
    font-size: 19px;
}

#scoresListWindow div {
    margin-bottom: 10px; /* Regular gap for 4th place and lower */
}

/* Larger gap after the first three places */
#scoresListWindow div:nth-child(1),
#scoresListWindow div:nth-child(2),
#scoresListWindow div:nth-child(3) {
    margin-bottom: 25px; /* Larger gap after the top three places */
}

/* Style for top three places to make them stand out */
#scoresListWindow div:nth-child(1) {
    font-size: 40px;
    color: gold;
}

#scoresListWindow div:nth-child(2) {
    font-size: 35px;
    color: silver;
}

#scoresListWindow div:nth-child(3) {
    font-size: 30px;
    color: bronze;
}
