body {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  background-image: url("../media/pirateShipBackground.jpg");
  min-height: 500px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  padding-left: 0px;
  padding-right: 0px;
}
#navbar {
  overflow: hidden;
  background-color: #333;
  margin-top: 0;
  padding: 10px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
#navbar a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
  font-size: 17px;
  margin-left:5px;
}
#navbar a:hover {
  background-color: silver;
  color: black;
}
#navbar a.active {
  background-color: orangered;
  color: white;
}
main{
	background:rgba(255,218,185,.6);
	width:90%;
	padding:10px 5px 30px 5px;
	margin-right:auto;
	margin-left:auto;
	margin-top:0px;
	border-radius:0px 0px 20px 20px;
}
h1 {
  margin-top: 30px;
  color: #333;
  text-align: center;
}
.score-board {
  margin: 20px;
  font-size: 20px;
  text-align: center;
}
.grid {
  display: grid;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.square {
  width: 80px;
  height: 80px;
  background-color: white;
  border: 2px solid #444;
  border-radius: 10px;
  cursor: pointer;
  touch-action: manipulation;
}
.shark {
  background-image: url('../media/shark.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
#FinalScore {
  display: none;
  text-align:center;
}
#restartBtn {
  padding: 10px 20px;
  font-size: 18px;
  background-color: black;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

#restartBtn:hover {
  background-color: gray;
}
table{
	min-width:420px;
	margin-left:auto;
	margin-right:auto;
}
tr,td{
	text-align:center;
}
/* Modal background */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}
/* Modal content box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  border-radius: 5px;
  position: relative;
}
/* Close button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 15px;
}
.close:hover, .close:focus {
  color: black;
  text-decoration: none;
}