body {
  font-family: Arial, sans-serif;
  background-color: #1a1a2e;
  color: #f0f8ff;
  margin: 0;
  padding: 0;
}


#game-container {
width: 90%;
margin: 20px auto;
padding: 20px;
background: #16213e;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Keyframes for continuous smooth rocking */
@keyframes rocking {
0% { transform: rotate(0deg); }
50% { transform: rotate(4deg); }
100% { transform: rotate(0deg); }
}

.rocking {
animation: rocking 6s infinite ease-in-out;
}





#balance {
  margin-bottom: 20px;
  font-size: 1.5em;
  font-weight: bold;
  color: #ffd700;
}

#game-result {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #333;
color: white;
padding: 20px;
border-radius: 10px;
font-size: 1.5em;
text-align: center;
z-index: 1000;
}

#restart-button {
display: block;
margin: 0 auto;
padding: 10px 20px;
font-size: 1em;
background: #ffd700;
color: #000;
border: none;
border-radius: 5px;
cursor: pointer;
position: fixed; /* Fix it to the top of the page */
top: 25px; /* Position at the top */
left: 90%; 
transform: translateX(-50%); /* Adjust for centering */
z-index: 1001; /* Ensure it appears above other elements */
}


#restart-button:hover {
background: #daa520;
}


#marketplace, #inventory, #activity-log {
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #ffffff;
}

.resource {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  align-items: center;
  background: #0f3460;
  padding: 10px;
  border-radius: 5px;
  color: #ffffff;
}

button {
  padding: 5px 15px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
}

button:disabled {
  background-color: #555;
}

input[type="number"] {
  width: 50px;
  margin-left: 10px;
}

#cities button {
  margin-right: 10px;
  padding: 8px 15px;
  font-size: 1em;
}
#animation-toggle {
margin: 10px 0;
text-align: center;
font-size: 1.2em;
color: #ffffff;
}

#rocking-switch {
margin-left: 10px;
transform: scale(1.5); /* Make the switch larger */
cursor: pointer;
}


#ship-icon {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 60px;
  cursor: pointer;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin-bottom: 5px;
}
      
  
  
  