/* style.css */

body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  color: #333;
  margin: 0px;
  padding: 0px;
  text-align: center;
  overflow-x: hidden;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.background-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(to right, rgb(255, 255, 255) 10%, rgba(255, 0, 0, 0) 30%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 1) 90%);
  pointer-events: none;
  z-index: -1;
}

h1 {
  margin-bottom: 40px;
  background-color: rgba(255, 255, 255, 0.95); /* Soft white background with some transparency */
  border-radius: 35px; /* Rounded corners */
  padding: 20px; /* Add some padding around the content */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add a soft shadow */
}

select {
  padding: 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  margin: 5px;
  width: 25%;
  border-radius: 5px; /* Rounded corners */
  
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add a soft shadow */

  text-align: center;
  text-align-last: center;
  background-color: #ffffffd9

  /* -moz-appearance: textfield;
  -webkit-appearance: textfield;
  appearance: textfield; */

}
 
.message {
  font-size: 28px;
  margin: 0px;
}

#message {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  margin: 5px;

}

button:hover {
  background-color: #0056b3;
}

input {
  padding: 10px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin: 5px;
  width: 55%;
}

label {
  font-size: 16px;
  margin-right: 10px;
}

.card-input {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  
}

.info-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.remaining-cards {
  font-size: 18px;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  justify-items: center;
  justify-content: center;
  margin-bottom: 20px;
  text-align: center;

}

.remaining-cards span {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 40px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 5px;
  grid-column-gap: 10px; /* Add this line to increase the space between columns */

}

.result-stats {
  font-size: 18px;
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  
}

.cards-played {
  font-size: 19px;
  margin-bottom: 20px;
}

.last-card {
  font-size: 19px;
  margin-bottom: 20px;
}

.played-cards-list {
  font-size: 19px;
  margin-bottom: 20px;
  
}

.remaining-cards {
  margin-bottom: 20px;
}

.remaining-cards-table {
  border-collapse: collapse;
  width: 50%;
  margin: 0 auto;

}

.remaining-cards-table th,
.remaining-cards-table td {
  border: 1px solid #ccc;
  padding: 5px;
  text-align: center;
  width: 80%; /* Set the width of the cells */
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); /* Add a soft shadow */

}

.remaining-cards-table thead th {
  background-color: #f2f2f294;
  font-weight: bold;
}

#newGame {
  
  /* make the button not so wide */
  width: 150px;
  display: none;
  /* cente flex */
  justify-content: center;
  /* center text */
  text-align: center;
  /* center button */
  margin: 15px auto;


}



.columns-container {
  display: flex;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.8); /* Soft white background with some transparency */
  border-radius: 55px; /* Rounded corners */
  padding: 20px; /* Add some padding around the content */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add a soft shadow */
}

.left-column,
.right-column {
  width: 75%;
}


/* Add this to your existing CSS */
.result-stats table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 20px;
}

.result-stats th,
.result-stats td {
  border: 1px solid #cccccc90;
  padding: 8px;
  text-align: center;
}

.result-stats thead th {
  background-color: #f2f2f29f;
  font-weight: normal;
}
