/* Hide scrollbar for Chrome, Safari and Opera */
.example::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.example {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Global styles */
body, html {
    height: 100vh;  /* Ensures the entire viewport is filled */
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: black;  /* Sets the background to black */
    color: black;  /* Ensures text color is set for visibility in areas where it's overridden */
    overflow: hidden;  /* Prevents overall page scrolling */
}

/* Game container styling */
#gameContainer {
    display: grid;
    width: 100vw;  /* Full viewport width */
    height: 100vh;  /* Full viewport height */
    padding: 0;
    box-sizing: border-box;
    position: relative;  /* Ensures it fills the viewport */
}

/* Responsive grid adjustments for different orientations */
@media (orientation: landscape) {
    #gameContainer {
        grid-template-columns: repeat(10, 10vw);
        grid-template-rows: repeat(5, 20vh);
    }
    .square {
        height: 20vh;
        width: 10vw;
    }
}

@media (orientation: portrait) {
    #gameContainer {
        grid-template-columns: repeat(5, 20vw);
        grid-template-rows: repeat(10, 10vh);
    }
    .square {
        height: 10vh;
        width: 20vw;
    }
}

/* Styling for game squares */
.square {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 5px solid black; /* Distinctive border for each square */
}

/* Color styling for gold and silver squares */
.gold, .silver {
    height: 100%;
    width: 100%;
}

.gold {
    background-color: gold;  /* Gold color for these squares */
}

.silver {
    background-color: silver;  /* Silver color for these squares */
}

/* Positioning and styling for score, start button, and submission form */
#score, #startButton, #submitForm {
    position: absolute;
    width: 100%;
    text-align: center;
    z-index: 1000;  /* Ensures visibility over other elements */
}

#score {
    top: 5%;  /* Positioning at the top for visibility */
}

#startButton {
    bottom: 33%;  /* Bottom positioning for accessibility */
    color: black;
    background-color: white;
    border: none;
    padding: 1vh 2vw;
    font-size: 7vh;
    cursor: pointer;
    transition: opacity 0.3s ease-out;  /* Smooth transition for visual effect */
}

#submitForm {
    bottom: 33%;  /* Aligns with the start button position */
    background-color: white;
    color: black;
    font-size: 7vh;
    display: none;  /* Initially hidden */
}

/* High Scores Table styling */
table{border-spacing: 0px;}

#highScores {
    max-height: 90vh;  /* Restricts height to enable internal scrolling */
    overflow-y: auto;  /* Allows vertical scrolling within the table */
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);  /* Soft shadow for depth */
    background-color: white;
    scrollbar-width: none;
}

#highScores th, #highScores td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;  /* Defines a subtle divider */
}

#highScores th {
    background-color: black;
    color: white;
    padding-top: 30px;
    padding-bottom: 12px;
    width:100vw;
}

#highScores tbody tr:last-child td {
    padding-bottom: 30px;  /* Additional padding for the last row */
}

#username {
    text-transform: uppercase;
}

.h2score {
    background-color: black;
    color: white;
    text-align: center;
    padding: 5px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
    .fixTableHead { 
      overflow-y: auto; 
       
    } 
    .fixTableHead thead th { 
      position: sticky; 
       
    } 
#cookie-banner p {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
  }
  #cookie-banner button {
    border-radius: 5px;
  }
  #cookie-banner a {
    color: #007bff;
    text-decoration: underline;
  }
  #cookie-banner a:hover {
    text-decoration: none;
  }

