* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Trebuchet MS", "Arial", sans-serif;
  background: url(perfect-green-grass.jpg);
  background-size: cover;
  background-position: center;
  color: #e6e6e6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  overflow: hidden;
}

h1 {
  font-size: 4rem;
  margin: 20px;
  color: rgb(209, 163, 47);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 10px;
}
.info {
  font-size: 1.2rem;
  color: #ccc;
  margin: 10px;
  position: absolute;
  top: 100px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.welcome {
  font-size: 2rem;
  color: rgb(255, 248, 231);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: 15px;
}

.startGame {
  background-color: rgb(209, 163, 47);
  color: #292929;
  border: none;
  border-radius: 10px;
  padding: 15px 30px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}
.startGame:hover {
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
}

.game {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  padding: 20px;
  height: 60%;
  width: 80%;
  max-width: 800px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
  position: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#showCard {
  font-size: 2.5rem;
  font-weight: bold;
  /* color: rgb(209, 163, 47); */
  color: azure;
  display: flex;
  justify-content: center;
  margin: 10px;
}
#trackCard {
  font-size: 1rem;
  font-weight: bold;
  /* color: rgb(209, 163, 47); */
  color: azure;
  display: flex;
  justify-content: center;
  margin: 10px;
  /* border: 1px solid rgb(209, 163, 47); */
  /* border-radius: 5px; */
  /* padding: 5px 10px; */
}

.customAlertBox { 
  display: none; /*Initially hidden*/
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #e6e6e6;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
.customAlertContent {
  background-color: rgb(0, 0, 0);
  color: #e6e6e6;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
  text-align: center;
  max-width: 400px;
}
.customAlertContent h3 {
  margin-bottom: 20px;
  color: azure;
}

.gBtns {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
#dealBtn,
#resetGame,
#hitBtn,
#standBtn {
  background-color: rgb(209, 163, 47);
  color: #292929;
  border: none;
  border-radius: 10px;
  padding: 5px 15px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 10px;
}
#dealBtn:hover,
#resetGame:hover,
#hitBtn:hover,
#standBtn:hover {
  background-color: rgb(209, 163, 47);
  color: #292929;
  padding: 6px 16px;
}
#dealBtn:active,
#resetGame:active,
#hitBtn:active,
#standBtn:active {
  background-color: rgba(0, 0, 0, 0.7);
  color: #292929;
  padding: 5px 15px;
}

#msg {
  font-size: 1.2rem;
  color: rgb(209, 163, 47);
  margin: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

footer {
  position: absolute;
  bottom: 0px;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: #ccc;
  padding: 15px;
}

.btns {
  position: relative;
  display: flex;
  justify-content: center;
}

.howto,
.rules,
.tips {
  color: antiquewhite;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  padding: 10px 25px;
  margin: 10px;
  max-width: 150px;
  text-decoration: none;
}

.howto:hover,
.rules:hover,
.tips:hover {
  background-color: rgb(209, 163, 47);
  color: #fff;
  transition: background-color 0.2s ease;
}

.footer-text {
  position: relative;
  color: #e6e6e6;
  font-size: 1rem;
  margin-top: 20px;
}
