@import url('https://fonts.googleapis.com/css2?family=Galindo&display=swap');

html, button {
    font-family: "Galindo", sans-serif;
    font-weight: 400;
    font-style: normal;
}

body {
    background-color: purple;
}

#stats-display {
    position: absolute;
    top: 0;
    padding: 10px 20px;
    border-radius: 0 0 10px 0;
    left: 0;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    color: rgba(255, 255, 255, 0.75);
    font-variant-numeric: tabular-nums;
}

#collected-count {
    color: rgb(242, 255, 93);
    font-size: 1.5em;
    margin-left: 4px;
    min-width: 50px;
    display: inline-block;
}

#timer {
    min-width: 100px;
    color: rgb(174, 246, 255);
}


body { margin: 0; }
canvas { display: block; }
#game-container {
    width: 100%;
    height: 100vh;
    position: relative;
}
.screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 1000;
    padding: 20px;
}
.screen img {
    max-width: 30vh;
    margin-bottom: 12px;
    border-radius: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
#start-screen {
    background-color: rgba(0, 0, 0, 0.5);
}
#end-screen {
    background-color: rgba(0, 0, 0, 0.8);
}
.screen h1 {
    font-size: 1.2e;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.screen p {
    font-size: 1.2em;
    margin: 10px 0;
    text-align: center;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.button {
    padding: 10px 20px;
    font-size: 1.2em;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}
.button:hover {
    background-color: #45a049;
}
.touch-controls {
    position: fixed;
    bottom: 0;
    padding: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    z-index: 100;
    pointer-events: none;
    align-items: flex-end;
    z-index: 2000;
}
.touch-button {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.touch-button:active {
    background-color: rgba(255, 255, 255, 0.5);
}
.vertical-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.horizontal-buttons {
    display: flex;
    gap: 10px;
}
@media (max-width: 768px) {
    .touch-button {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}
