/* Modal container */
.score-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 9999; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background-color: rgba(0, 0, 0, 0.75); /* Black background with opacity */
}

/* Modal content */
.score-modal-content {
  background-color: #f0f0f0;
  margin: auto;
  padding: 10px;
  border-radius: 10px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 5px solid black;
  width: 95%;
  max-height: 90vh; /* Restrict modal height to 90% of viewport height */
  overflow-y: auto; /* Enable scrolling if content exceeds max-height */
  text-align: center;
  /* Enhanced shadow */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4),
              0 6px 6px rgba(0, 0, 0, 0.2);
}


/* Close button (X) */
.close {
  position: absolute;
  top: -13px;   /* Adjust this value to fine-tune the position */
  right: 5px; /* Adjust this value to fine-tune the position */
  font-size: 45px;
  font-weight: bold;
  cursor: pointer;

}

.close:hover,
.close:focus {
  color: #ddd;
  text-decoration: none;
  cursor: pointer;
}

/* Table styling inside modal */
.modal-table {
  width: 100%;
  border-collapse: separate;	
}

/* Table header */
.modal-table th {
  background-color: #1c3a5e;
  color: white;
  padding: 5px;
  text-align: center;
  border-bottom: 2px solid #1c3a5e;
}

/* Table rows */
.modal-table td {
  padding: 5px;
  border-bottom: 1px solid #ddd;
}

/* Table footer */
.modal-table tfoot {
  background-color: #1c3a5e;
  color: white;
}

.modal-table tfoot td {
  padding: 5px;
  font-weight: bold;
  font-size: 18px;
}

.modal-content h3,
.modal-content h4 {
    background-color: #1c3a5e; /* Set background color */
    width: 100%; /* Ensure full width */
    padding: 8px; /* Add padding for better spacing */
    margin: 0; /* Remove default margin */
    box-sizing: border-box; /* Ensure padding does not affect width */
    color: #fff; /* Text color */
    font-weight: bold; /* Make text bold */
}

.modal-content h3 {
    font-size: 1.5em; /* Set font size for h3 */
}

.modal-content h4 {
    font-size: 1.2em; /* Set font size for h4 */
}

.split-text-div {
    display: flex;           /* Use flexbox for layout */
    justify-content: space-between; /* Space out children elements */
    width: 100%;             /* Set the width to 100% */
    padding: 2px;           /* Optional: Padding for better appearance */
    box-sizing: border-box;  /* Include padding in element's total width */
}
.left-text {
    text-align: left;        /* Align text to the left */
}

.right-text {
    text-align: right;       /* Align text to the right */
	font-weight: bold;
}

.bonus-points {
	color: darkgreen;
}
.penalty-points {
	color: red;
}
.multiply-points {
	color: darkblue;
}

.guess-score {
	color: #267137;
}
.guess-winner {
	color: #ff9900;
}
.guess-nothing {
	color: #C20D0D;
}

.addition {
	background: #F2FBF7;
}
.multiplication {
	background: #e6f2ff;
}