/* styles.css */

@font-face {
    font-family: "inter";
         src: url('Inter-Medium.woff') format('woff2');
}

body {
    margin: 0;
    padding: 0;
    font-family: "inter", sans-serif;
    background-color: #fff;
}

/* Prevent text selection */
body, #canvasContainer {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Standard syntax */
}

img {
    -webkit-user-drag: none; /* Prevent dragging in WebKit-based browsers */
    
}



/* SVG animation as background */
#background-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

#background-svg svg {
    width: 100%;
    height: 100%;
}

/* Header with logo */
header {
    padding: 20px;
    display: flex;
    align-items: center;
}



header img {
    width: 100px;
    height: auto;
}

/* Main content area */
main {
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Centered text */
#centered-text {
    text-align: center;
    background-color: white;
    font-size: 24px;
    margin: 20px;
    line-height: 1.2;
}

/* Footer */
footer {
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-around;
}

/* Footer links */
footer a {
    color: black;
    background-color: white;
    text-decoration: none;
}

/* Additional styles for the second page */
    body{
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "inter", sans-serif;
}

/* Additional styles for the second page */
     html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "inter", sans-serif;
}


        #canvasContainer {
            position: relative;
            width: calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right));
            height: calc(100% - env(safe-area-inset-top) - env(safe-area-inset-bottom));
            display: flex;
            justify-content: center;
            align-items: center;
        }


svg {
    display: block;
    position: absolute;
}

#levelDisplay {
    position: absolute;
    top: 20px; /* Adjust as needed to align with the exit button */
    left: 50%;
    text-align: center;
    background-color: white;
    transform: translateX(-50%);
    font-size: 20px;
    color: black;
    z-index: 15;
}

#goButton {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    padding: 10px 40px;
    font-size: 30px;
    cursor: pointer;
    background-color: white;
    font-family: "inter";
    color: black;
    border: 4px solid #000;
}

#exitImageLink {
    display: flex; /* Use flexbox to align items */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally, if needed */
    position: absolute;
    top: 90%;
    z-index: 1500;
    padding: 20px; /* Adjust this value to increase the clickable area */
    background-color: transparent; /* Transparent background */
    text-decoration: none; /* Remove underline from the link */
    color: black; /* Set text color */
    cursor: pointer;
}


        #exitImageLink span {
            margin-left: 10px; /* Ensure spacing between the image and the text */
            background-color: white;

        }

#restartGameButton {
    position: absolute;
    display: none;
    top: 13px;
    left: 13px;
    z-index: 15;
  padding: 0px 20px 20px 0px; /* Adjust this value to increase the clickable area */
  background-color: rgba(255, 255, 255, 0); /* Transparent background */    
  width: 22px;
}

#scoreDisplay {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: black;
}

#gifContainer {
    position: absolute;
    z-index: 11;
    border: 4px solid #000;
    top: 25.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;

}

.gameImage {
    width: 164px;
    height: 164px;
    object-fit: contain;
    border: 1px solid #ddd;
}

#gameOverDiv {
    text-align: center;
    display: none;
    background-color: white;
    z-index: 10;
}

#gameOverDiv p {
    margin: 10px;
}

#gameOverMessage {
    font-size: 40px;
}


.newHighScoreMessage {
    text-align: center;
    font-size: 24px;
    margin-top: 25%;
    /* Additional styling */
}

.trophyContainer {
    display: flex;
    justify-content: center;
    /* Additional styling */
}

.trophy {
    /* Trophy image styling */
}


  /*      @media (max-width: 768px) {
            #header h1 {
                font-size: 18px;
            }

            #header #totalScore {
                font-size: 28px;
            }

            .levelNumber {
                font-size: 2em;
            }

            .highScore {
                font-size: 1em;
            }
        }
*/
/* Line 1D has no dark mode: stay white even when the browser is in dark mode. */
html { color-scheme: only light; background-color: #fff; }
