
/* General styles for centering and formatting */
body {
  font-family: Arial, sans-serif;
  background-color: #02071e;
  margin: 0;
  padding: 0;
}


.header {
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  background-color: #02071e;
  color: #f4f6fd;
  border-width: 10px;
  border-color: #1640f9;
  border: 5px solid #1640f9;
  margin: 10px;
  padding: 10px;
  background: url("./th.jpg") no-repeat center center fixed;
  background-size: cover;
}

.header h1 {
  display: inline-block;
  font-size: 48px;
  text-decoration: underline;
}

.h2 {
  text-align: center;
}

.header div {
  padding-top: 15px;
  margin-right: 30px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 20px;
}

.header div ul {
  list-style-type: none;
}

.header div ul li {
  display: inline-block;
  margin-left: 25px;
}

.nav-item {
  color: rgb(252, 0, 0);
  text-decoration: underline;
}

a {
  color: rgb(246, 238, 241);
  text-decoration: underline;
}

p {
  font-size: 16px;
}

.image {
  display: flex;
  float: right;
}

.image img {
  max-height: 300px;
  object-fit: contain;
  width: 200px;
}

.content {
  position: relative;
  left: 125px;
  text-align: center;
  width: 75%;
  margin-left: 20px;
}

.footer {
  clear: both;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  text-align: center;
  background-color: #02151e;
  padding: 20px 0;
  color: #f4f6fd;
  font-size: 14px;
}

.footer h2 {
  font-size: 20px;
}

.footer p {
  margin: 0;
}


.navbar {
  padding: 10px;
  border: 2px solid #1640f9;
  border-radius: 10px;
  margin: 20px;
  background-color: #02151e;
}

.navbar h2 {
  margin: 0;
  color: white;
}

.navbar-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.nav-item {
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: white;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  .navbar {
    padding: 5px; 
    text-align: center; 
  }

  .navbar h2 {
    font-size: 24px; 
  }

  .navbar-links {
    display: block; 
    text-align: center;
  }

  .nav-item {
    margin-bottom: 10px; 
  }

  .nav-link {
    font-size: 18px; 
  }
}


.game-display {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.item {
  width: 300px;
  margin: 10px;
  padding: 20px;
  background-color: #949292;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.item:hover {
  width: 300px;
  margin: 10px;
  padding: 20px;
  background-color: #b6b9bd;
  border-radius: 5px;
  box-shadow: 21px 14px 4px rgba(13, 88, 228, 0.772);
}

.item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}

.item h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.item p {
  margin: 5px 0;
  font-size: 14px;
  color: #010000;
}

/* add outline to close button on hover, emphasize on click */
.close-button:hover {
  outline: 1px solid white;
}

.close-button:active {
  outline: 2px solid white;
}

.title-history:active, .title-history-ul {
  color: #04091E
}