body {
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #00182e;
    background-image: url('images/dots.gif');
    background-repeat: repeat;
}

canvas {
    display: block;
    background: url('images/ruimte.jpg') center center / cover no-repeat;
}

#zon {
    position: fixed;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    opacity: 0.6;
}

.smooch-sans-unique {
    font-family: "Smooch Sans", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

.nabla-unique {
    font-family: "Nabla", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "EDPT" 100, "EHLT" 12;
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%, 50%);
    text-align: center;
    color: white;
    font-size: 36px;
    pointer-events: none;
    white-space: nowrap;
}



.roboto-billie {
  font-family: "Roboto", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.sixtyfour-convergence-billie {
  font-family: "Sixtyfour Convergence", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "BLED" 0,
    "SCAN" 0,
    "XELA" 0,
    "YELA" 0;
}


#controls img {
    width: 60px;
    height: 60px;
    border: none;
    background: transparent;
    cursor: pointer;
}

#controls .row {
    display: flex;
    justify-content: center;
    gap: 20px;
}

button {
    width: 60px;
    height: 60px;
    font-size: 24px;
    text-align: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
    padding: 10;
    outline: none;
}

button:focus {
    outline: none;
}

#controls button {
    position: relative;
    z-index: 10;  /* Make sure buttons are above other elements */
}

#playAgainButton {
    display: block; /* Ensure it's visible when needed */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10; /* Ensure it's on top of other content */
    transition: transform 0.2s ease-in-out; /* Smooth transition for scaling */
}

#playAgainLink {
    position: absolute;
    display: none; /* Initially hidden */
    z-index: 10;
    width: 150px; /* Adjust the width based on your button size */
	height: 122px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px; /* Adjust spacing from the dancing player */
    transition: transform 0.2s ease-in-out; /* Smooth transition for scaling */
}

#playAgainLink img {
    transition: transform 0.3s ease; /* Smooth transition */
}

#playAgainLink:hover img {
    transform: scale(1.3); /* Enlarge image on hover */
}

#playAgainLink:active img {
    transform: scale(0.8); /* Shrink image on click */
}

#start-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(3, 44, 94, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            color: white;
            font-family: 'Smooch Sans', sans-serif;
            text-align: center;
        }



#start-screen h1 {
            font-family: 'Nabla', cursive;
            font-size: 80px;
            margin-bottom: 20px;
            color: #32CD32;
        }

.game-instructions ul {
            list-style-type: none;
            padding: 0;
            text-align: left;
            margin: 20px 0;
        }

.game-instructions li {
            margin-bottom: 10px;
            font-size: 1.2rem;
        }

#start-game-btn {
            background-color: #66b646;
            color: #9e2900;
 			width: 120px;
			height: 60px;
    		text-align: center;
 			font-weight: 800;
            border: 1px;
            padding: 0px 0px;
            font-size: 1.5rem;
            border-radius: 30px;
            cursor: pointer;
            transition: background-color 0.1s ease;
        }

#start-game-btn:hover {
            background-color: #59d029;
            box-shadow: 0 0 75px #55e01d;

        }

.controls-preview {
            margin-top: 20px;
        }

.preview-btn {
            background-color: rgba(255,255,255,0.2);
            color: white;
            border: 2px solid white;
            width: 50px;
            height: 50px;
            margin: 5px;
            font-size: 1.5rem;
            border-radius: 10px;
        }

.screen-overlay {
    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;
    z-index: 1000;
}


.start-screen-container {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    color: white;
}


.start-screen-container h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #ffd700;
    font-family: 'Smooch Sans', serif;
}

.game-stats {
    margin: 2rem 0;
}

.game-stats h2 {
    font-size: 1.5rem;
    margin: 1rem 0;
    font-family: 'Smooch Sans', serif;
    color: #ffffff;
}

.game-button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-family: 'Smooch Sans', serif;
}

.game-button:hover {
    background-color: #45a049;
}

@media (max-width: 768px) {
    .start-screen-container {
        padding: 1.5rem;
        width: 90%;
    }
    
    .start-screen-container h1 {
        font-size: 2.5rem;
    }
    
    .game-stats h2 {
        font-size: 1.25rem;
    }
}







.points-gained {
    position: absolute;
    font-size: 36px;
    font-weight: bold;
    color: gold;
    z-index: 1000;
    animation: fade-up 1s ease-out forwards;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

#winMessage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 58px;
    font-weight: bold;
    color: yellow;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    display: none; /* Initially hidden */
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 20; /* Make sure it appears on top */
}

.game-over-image {
width: 364px; height: 62px;
    margin-bottom: 20px;
}

.play-again-button {
    max-width: 200px;
    height: auto;
    margin-top: 20px;
}

.game-stats {
    margin: 2rem 0;
}

.game-stats h2 {
    font-size: 1.5rem;
    margin: 1rem 0;
    font-family: 'Smooch Sans', serif;
    color: 'white';
}
