 body {
    margin: 0;
    padding: 0;
    font-family: 'Squada One', sans-serif;
    background: linear-gradient(135deg, #30c0df, #2a8fad);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}


/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Navbar */
.navbar {
    background: #2c3e50;
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: 0.3s;
}

.navbar a:hover, .navbar .active {
    background: #e67e22;
}

/* Container */
.container {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.title {
    font-size: 2em;
    margin-bottom: 15px;
}

/* How to Play List */
.how-to-play ol {
    list-style: decimal;
    padding-left: 20px;
    font-size: 1.2em;
    text-align: left;
}

.how-to-play li {
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    transition: 0.3s;
}

.how-to-play li:hover {
    background: #e67e22;
    color: white;
}

/* Good Luck Message */
.good-luck {
    font-size: 1.2em;
    font-weight: bold;
    color: #27ae60;
    margin-top: 20px;
}



/*Start */
/* In style.css */
#game-over {
    /* Existing styles */
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
}

.game-over-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.game-over-buttons button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #ffcc00;
    border: none;
    border-radius: 5px;
    color: #000;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.game-over-buttons button:hover {
    background-color: #e6b800;
}

/* For mobile responsiveness */
@media (min-width: 480px) {
    .game-over-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .game-over-buttons button {
        width: auto;
        margin: 0 5px;
    }
}


/*end*/


/* Game Container - Ensures Game Over stays inside */
.game-container {
    position: relative;
    display: inline-block;
}

/* Game Over Screen */
#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: white;
    text-align: center;
    z-index: 30;
    display: none; /* Hidden by default */
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 250px;
}

/* Game Over Buttons */
#game-over button {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    background-color: #ffcc00;
    border: none;
    border-radius: 5px;
    color: black;
    font-weight: bold;
}

#game-over button:hover {
    background-color: #e6b800;
}

/* Canvas Centering */
#canvas {
    background-color: #30c0df;
    border: 2px solid black;
    display: block;
    margin: auto;
}





#canvas {
    background-color: #30c0df;
    border: 2px solid black;
    display: block;
    margin: auto;
    padding: auto;
}

.container {
    text-align: center;
    color: #2d3e51;
}

.how-to-play ol {
    list-style: decimal;
    padding-left: 20px;
    font-size: 1.2em;
}

.how-to-play li {
    margin: 10px 0;
}


#game-over {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: white;
  text-align: center;
  z-index: 30;
  display: none; /* Hidden by default */
}

.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    display: flex;
    justify-content: space-around;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.navbar a:hover {
    color: #ffcc00;
}

.buttons {
  margin-top: 20px;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  margin: 5px;
  cursor: pointer;
  background-color: #ffcc00;
  border: none;
  border-radius: 5px;
  color: #000;
}

button:hover {
  background-color: #e6b800;
}


/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Navbar */
.navbar {
    background: #2c3e50;
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: 0.3s;
}

.navbar a:hover, .navbar .active {
    background: #e67e22;
}

/* Container */
.container {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.title {
    font-size: 2em;
    margin-bottom: 15px;
}

/* Leaderboard */
.leaderboard-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}

thead {
    background: #e67e22;
    color: white;
    font-size: 1.2em;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

tbody tr:nth-child(even) {
    background: #f9f9f9;
}

tbody tr:hover {
    background: #dff0d8;
    transition: 0.3s;
}

/* Animation */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




