/* // CSS for shuffleboard scoring system
// requires index.html and script.js in same folder
// Developed by untitledTM 2023
// www.untitledtm.com */

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  /* width: 1920px; 
   min-width: 1920px; 
   max-width: 1920px; */
  background-color: black;
}
body::-webkit-scrollbar {
  display: none;
}
:root {
  --red-color: #ff0000; /* Red */
  --blue-color: #004eff; /* Blue */
  --green-color: #00ff80; /* Blue */
}
@font-face {
  font-family: "Teko";
  src: url("./fonts/Teko-SemiBold.ttf") format("truetype");

  font-weight: normal;
  font-style: normal;
}

.container {
  width: 1920px;
  height: 1200px;
  /* background-color: black; */
  background-image: url("img/background.png");
  background-size: cover;
  color: white;
  font-family: "Teko";
  margin: auto;
  position: relative;
}
.logo {
  margin: auto;
  position: absolute;
  top: 23px;
  left: 816px;
}

.noscore {
  margin: auto;
  position: absolute;
  top: 110px;
  left: 320px;
}
.tentop {
  margin: auto;
  position: absolute;
  top: 268px;
  left: 372px;
}
.eleft {
  margin: auto;
  position: absolute;
  top: 442px;
  left: 287px;
}
.eright {
  margin: auto;
  position: absolute;
  top: 442px;
  left: 453px;
}

.sleft {
  margin: auto;
  position: absolute;
  top: 624px;
  left: 195px;
}
.sright {
  margin: auto;
  position: absolute;
  top: 624px;
  left: 453px;
}
.tenoff {
  margin: auto;
  position: absolute;
  top: 822px;
  left: 182px;
}

.undo {
  margin: auto;
  position: absolute;
  top: 997px;
  left: 162px;
}

.restart {
  margin: auto;
  position: absolute;
  top: 997px;
  left: 476px;
}

.rescore {
  display: none;
  margin: auto;
  position: absolute;
  top: 997px;
  left: 890px;
}

.round {
  margin: auto;

  position: absolute;
  top: 177px;
  left: 812px;
  font-size: 93px;
  text-align: center;
  text-transform: uppercase;
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}

.round-span {
  /* Add styles for the spans */
  margin-bottom: 15px;
  display: flex;
}

.board {
  margin: auto;
  position: absolute;
  top: 236px;
  left: 162px;
}
.scale {
  margin: auto;
  position: absolute;
  top: 102px;
  left: 1406px;
}

.redMarker {
  transition: top 1s ease-in-out;

  margin: auto;
  position: absolute;
  top: 1031px;
  left: 1305px;
}

.blueMarker {
  transition: top 1s ease-in-out;
  margin: auto;
  position: absolute;
  top: 1031px;
  left: 1700px;
}

.winnerModal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.winnerModal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
}

#restartButton {
  display: block;
  width: 100%;
  padding: 10px 20px;
  margin-top: 20px;
  border: none;
  background-color: #333;
  color: white;
  cursor: pointer;
}

#restartButton:hover {
  background-color: #555;
}

.confirmationModal {
  display: none; /* hide the modal by default */
  position: fixed; /* position the modal */
  z-index: 999; /* set a high z-index to put it on top of other elements */
  left: 0;
  top: 0;
  width: 100%; /* cover the whole screen */
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* add a semi-transparent background */
}

.modal-content {
  width: 800px;
  height: 500px;

  margin: auto; /* center the modal both horizontally and vertically */
  position: absolute; /* make the modal positioned relative to the container */
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background-image: url("img/modal_bgd.png");
  background-repeat: no-repeat;
  background-position: center;
  font-family: "Teko";
  font-size: 40px;
  color: white;
}

.modalText {
  width: 600px;
  height: 300px;
  margin: auto;
  position: absolute;
  top: 55%; /* position the text in the middle of the container */
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  font-family: "Teko";
  font-size: 35px;
  color: white;
  text-align: center;
}
.modal-buttons {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 40px;
  width: 82%;
}
.rescoreButton {
  display: none;
}

.forwardButton {
  display: none;

  font-size: 110px;
  text-align: center;
  text-transform: uppercase;
  color: white;
  background: none;
  border: none;
}
.backButton {
  visibility: hidden;
  font-size: 110px;
  text-align: center;
  text-transform: uppercase;
  color: white;
  background: none;
  border: none;
}

.helpLogo {
  margin: auto;
  position: absolute;
  top: 1120px;
  left: 97%;
  transform: translateX(-50%);
}

/* Add styles for the active (touched) images */
.touchable.active {
  transform: scale(1.06); /* Scale up the image on touch */
}

.resetModal {
  display: none; /* hide the modal by default */
  position: fixed; /* position the modal */
  z-index: 999; /* set a high z-index to put it on top of other elements */
  left: 0;
  top: 0;
  width: 100%; /* cover the whole screen */
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* add a semi-transparent background */
}

.resetModal-content {
  width: 800px;
  height: 500px;
  margin: auto; /* center the modal both horizontally and vertically */
  position: absolute; /* make the modal positioned relative to the container */
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background-image: url("img/modal_bgd.png");
  background-repeat: no-repeat;
  background-position: center;
  font-family: "Teko";
  font-size: 45px;
  color: white;
}

.resetModal-buttons {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 40px;
  width: 82%;
}
.resetModal-buttons img {
  margin: 0 60px; /* set a margin of 100px on the left and right of each button */
}

.resetModalText {
  width: 600px;
  height: 300px;
  margin: auto;
  position: absolute;
  top: 55%; /* position the text in the middle of the container */
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  font-family: "Teko";
  font-size: 60px;
  color: white;
  text-align: center;
}

/* disc scores css */

.discscore {
  margin: auto;
  position: absolute;
  width: 254px;
  height: 700px;
  overflow: hidden; /* Hide overflow content if any */
  left: 890px;
  top: 288px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Teko";
  font-size: 35px;
  color: white;
  text-align: left;
}

td {
  padding: 0px;
  text-align: left;
  min-width: 127px;
}

/* Define the specific styles for the cells that span both columns */
td[colspan="2"] {
  padding-bottom: 5px;
  padding-top: 5px;
  /* background-color: #ccc; */
}

.teamblogo {
  opacity: 25%;
}

.stonescore {
  color: var(--green-color);
}

.redspan {
  color: var(--red-color);
}

.bluespan {
  color: var(--blue-color);
}

.greenspan {
  color: var(--green-color);
  font-size: 50px;
}

.helpModal {
  position: fixed; /* position the modal */
  z-index: 999; /* set a high z-index to put it on top of other elements */
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* add a semi-transparent background */
}

.help-content {
  margin: auto; /* center the modal both horizontally and vertically */
  position: absolute; /* make the modal positioned relative to the container */
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 1800px;
  height: 1010px;
}

.help-content img {
  display: block; /* make the image a block-level element */
  max-width: 100%; /* ensure the image doesn't exceed its container */
  max-height: 100%; /* ensure the image doesn't exceed its container */
}

.helpFooterNav {
  display: flex;
}

.winnerscore {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
}

.winnerrow {
  display: flex;
  font-size: 70px;
  margin: 0;
  padding: 0;
}
