

body {
	    background-color:#0099ff
}


@media (max-width: 768px) {
  .hero {
      height: 50vh;
  }
}


/* .heroContainer{
 
  background-image: url("http://localhost/football/images/heroImage.jpg");
  background-size: contain;
  color: white;
  width:5915 ;
  height : 3307;
  
} */



/* 

homepage average colour: rgb(17, 57, 78)

https://www.color-hex.com/color/012037

*/


.heroContainer {
  position: relative;
  height: 100vh;
  width: 100vw;
  background-image: url("http://localhost/football/images/heroImage.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden; /* Ensure content doesn't spill out */
}

.heroContainer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  
  /* Directly set the background again for cross-browser compatibility */
  background-image: url("../images/heroImage.jpg"); /* Same image */
  /* background-image: url("http://localhost/football/images/heroImage.jpg"); */
  background-size: cover;
  background-position: center;
  
  /* Apply the blur effect */
  filter: blur(8px);
  -webkit-filter: blur(8px);
  z-index: 1; /* Ensure it's behind the content */
}

.heroContent {
  position: relative;
  z-index: 2; /* Ensure the text is above the blur */
  color: white;
  text-align: center;
  padding: 20px;



}



.heroSubContent{
  position: relative;
  z-index: 2; /* Ensure the text is above the blur */
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 1.5em;
  
  /*Making the container a flexbox*/ 
  display: flex; 
  /*Making equal spaced divs*/ 
  justify-content: space-between; 
  /* background-color: black;  */

  
}
.heroSubContentText{
  width: 30%;
  margin: auto;
  /* border: 1px solid white; */
  color: black;
  text-align: left;
  background-color: #29c0ff;
  padding: 16px;
  font-weight: 700;
  min-height: 450px;
}
.heroSubContentText h3{
  font-weight: 700;
  font-size: 1.5em;
}

.heroSubContentText p{
  margin-bottom: 0px;

}

.heroSubContentText h2{
 text-align: center;
}


.gameID{
  visibility: hidden;
  display: none;
}

.GameTitle{
  font-weight: bold;
  font-size: 1.75em;
}


.pickerLinks{
  color: black;
  font-size: x-large;
}


.tableDiv{
  margin: auto;
  width: 60%;
  border: 3px solid white;
  padding: 10px;
  color:  black;
  background: rgba(96, 210, 18, 0.75)
} 



/* start of picker css */

.pageTitle{
  max-width: 90%;
  margin: auto;
}



/* Start of table CSS */
/* TimeZone column = Green
Points scored = Yellow
Total to date = Blue */
.tableView {
  max-width: 90%;
  margin: auto;
  overflow: auto; /* Creates a scrollable area for the table */
  max-height: 75vh;
}

#resultsTable {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: max-content;
}

#resultsTable thead {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 2;
}
#resultsTable th,
#resultsTable td {
  border: 1px solid black;
  padding: 8px 12px;
  white-space: pre-line;
  text-align: left;
}

/* All header cells stick to the top */
#resultsTable thead th {
  
  top: 0;
  background-color: #fff;
  z-index: 2;
}

/* The first column's header cell also sticks to the left */
#resultsTable thead th:first-child {
  left: 0;
  z-index: 3;
}

/* This is the missing rule: make the first column in the body sticky */
#resultsTable tbody tr td:first-child {
  position: sticky;
  left: 0;
  background-color: #fff;
  z-index: 1;
}

/* All first column body cells stick to the left */
#resultsTable tbody tr td:first-child {
  position: sticky;
  left: 0;
  background-color: #fff;
  z-index: 1;
}
/*
  BACKGROUND COLOR: Top row (id="headingRow")
  Apply background to all cells in this row *except* the first one.
*/
#resultsTable #headingRow th:not(:first-child) {
    background-color: #e4baba; /* Top row background for non-sticky cells */
}
/* Ensure the sticky first cell of the top row *also* gets this background when sticky */
#resultsTable #headingRow th:first-child {
    background-color: #e4baba; /* Apply top row background to sticky first cell too */
}


/*
  BACKGROUND COLOR: Other heading rows (id="headingRowData", id="headingRowFinalScores")
  Apply background to all cells in these rows *except* the first one.
*/
#resultsTable #headingRowData th:not(:first-child),
#resultsTable #headingRowFinalScores th:not(:first-child) {
    background-color: rgb(255, 236, 236); /* Other heading rows background for non-sticky cells */
}
/* Ensure the sticky first cells of these rows *also* get this background when sticky */
#resultsTable #headingRowData th:first-child,
#resultsTable #headingRowFinalScores th:first-child {
    background-color: rgb(255, 236, 236); /* Apply background to sticky first cells too */
}


/*
  BACKGROUND COLOR: Table body cells
  Apply background to all cells in the tbody *except* the first column.
  NOTE: This general background will be overridden by the more specific
  td[id*="..."] rules if they apply to a given cell.
*/
#resultsTable tbody td:not(:first-child) {
    background-color: #0099ff; /* Default table body background for non-sticky cells */
}

/*
  SPECIFIC Table Body Cell Backgrounds (by ID pattern)
  These rules are more specific than tbody td:not(:first-child) and will take precedence.
  Crucially, we ensure these *don't* override the sticky first column by using :not(:first-child).
*/
#resultsTable td[id*="result-"]:not(:first-child) {
    background-color: #ffe6e6;
}

#resultsTable td[id*="points-"]:not(:first-child) {
    background-color: #e6e600;
}

#resultsTable td[id*="total-"]:not(:first-child) {
    background-color: #00ace6;
}

/* --- NEW RULE ADDED HERE --- */
#resultsTable td[id*="submission-"]:not(:first-child) {
    background-color: #33ff33; /* Your new background color */
}
/* --- END NEW RULE --- */


/*
  Make ALL header rows sticky (for vertical scrolling)
  This applies position: sticky and top: 0 to all <th> elements in the header.
  Their z-index will ensure they stack correctly.
*/


/* Optional: Add subtle borders to sticky elements for visual separation */
#resultsTable thead th:first-child,
#resultsTable tbody td:first-child {
  border-right: 1px solid #ccc;
}
#resultsTable thead th {
  border-bottom: 1px solid #ccc;
}




#headingRow1 {
    /* background-color:#;; */
}

#headingRow {
    background-color: #e4baba;
}

#headingRowFinalScores ,#headingRowData{
    background-color: rgb(255, 236, 236);
    
}

th{
  border: 1px solid black;
  padding: 0 24px;
}

td{
  border: 1px solid black;
  padding: 0 24px;
}


/* End of table CSS */


#tz-Submit{
  background-color: #00ace6;
  /* margin: 20px 40px 20px 180px; */
  padding: 20px;
  font-weight: 800;
  border-radius: 8px;
  border:0;
  margin: auto;
  
}
#pickerForm{
  text-align: center; 
}

#emailAddress{
  margin-bottom: 20px;
  background-color: #00ace6;
font-weight: 600;
  
}

/* end of picker css */


/* Start of Nav CSS */


ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333;
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
}

li {
  float: left;
  display: inline;
}

li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

li a:hover {
  background-color: #111;
}

.active {
  background-color: #4CAF50;
}



.navtop {
  width: 100%;
  border: 0;
}
.navtop div {
  display: flex;
  margin: 0 auto;
  width: 1000px;
  height: 100%;
}
.navtop div h1, .navtop div a {
  display: inline-flex;
  align-items: center;
}
.navtop div h1 {
  flex: 1;
  font-size: 24px;
  padding: 0;
  margin: 0;
  color: #eaebed;
  font-weight: normal;
}
.navtop div a {
  padding: 0 20px;
  text-decoration: none;
  color: #c1c4c8;
  font-weight: bold;
}
.navtop div a i {
  padding: 2px 8px 0 0;
}
.navtop div a:hover {
  color: #eaebed;
}


/* End of Nav CSS */




/* Start of auth CSS */

* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
  font-size: 16px;
}

.login {
  width: 400px;
  background-color: #ffffff;
  box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
  margin: 100px auto;
}
.login h1 {
  text-align: center;
  color: #5b6574;
  font-size: 24px;
  padding: 20px 0 20px 0;
  border-bottom: 1px solid #dee0e4;
}
.login form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 20px;
  /*padding-right: 40px;*/
}
.login form label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30%;
  height: 50px;
  /* background-color: #3274d6; */
  color: black;
  text-align: center;
  
}
.login form input[type="password"], .login form input[type="text"] , .login form input[type="email"] {
  width: 70%;
  height: 50px;
  border: 1px solid #dee0e4;
  margin-bottom: 20px;
  padding: 0 15px;
}
.login form input[type="submit"] {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  border: 0;
  cursor: pointer;
  font-weight: bold;
  color: #ffffff;
  
  background-color: #3274d6;
}
.login form input[type="submit"]:hover {
  background-color: #2868c7;
  
}

.content {
    width: 1000px;
    margin: 0 auto;
}
.content h2 {
    margin: 0;
    padding: 25px 0;
    font-size: 22px;
    border-bottom: 1px solid #e0e0e3;
    /* color: #4a536e; */
}
.content > p, .content > div {
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
    margin: 25px 0;
    padding: 25px;
    background-color: #fff;
}
.content > p table td, .content > div table td {
    padding: 5px;
}
.content > p table td:first-child, .content > div table td:first-child {
    font-weight: bold;
    /* color: #4a536e; */
    padding-right: 15px;
}
.content > div p {
    padding: 5px;
    margin: 0 0 10px 0;
}

/* End of auth CSS */



/* Start of btton css */


.button {
  background-color: #04AA6D; /* Green */
  border: none;
  color: white;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
}

.button1 {
  background-color: white; 
  color: black; 
  border: 2px solid #04AA6D;
}

.button1:hover {
  background-color: #04AA6D;
  color: white;
}

.button2 {
  background-color: white; 
  color: black; 
  border: 2px solid #008CBA;
}

.button2:hover {
  background-color: #008CBA;
  color: white;
}

.button3 {
  background-color: white; 
  color: black; 
  border: 2px solid #f44336;
}

.button3:hover {
  background-color: #f44336;
  color: white;
}

.button4 {
  background-color: white;
  color: black;
  border: 2px solid #e7e7e7;
}

.button4:hover {background-color: #e7e7e7;}

.button5 {
  background-color: white;
  color: black;
  border: 2px solid #555555;
}

.button5:hover {
  background-color: #555555;
  color: white;
}

/* end of button css */
 
/* start of form css */
 .formContainer{
  display: flex;
  /* align-items: center; */
  justify-content: center;
  min-height: 50%;
    
}

.formBox{
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px 40px;
  width: 50%;
  
}

.formBox input,select{ margin-bottom: 15px; }

/* .formBox {margin-bottom: 15px;} */

 /* {
  background-color: #00f59b;
  color: black;
  padding: 8px;
} */



.formBox input[type=submit] {
  position: relative;
  background-color: #04AA6D;
  border: none;
  font-size: 28px;
  color: #FFFFFF;
  padding: 20px;
  /* width: 200px; */
  text-align: center;
  transition-duration: 0.4s;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
}

.formBox input[type=submit] :after {
  content: "";
  background: #f1f1f1;
  display: block;
  position: absolute;
  padding-top: 300%;
  padding-left: 350%;
  margin-left: -20px !important;
  margin-top: -120%;
  opacity: 0;
  transition: all 0.8s
}

.formBox input[type=submit] :active:after {
  padding: 0;
  margin: 0;
  opacity: 1;
  transition: 0s
}

/* end of form css */


/* Set the background image to fill space under the navbar */
        .background {
            background-image: url('http://localhost/football/images/2.jpg'); /* Path to your background image */
            background-size: cover; /* Cover the entire container */
            background-position: center; /* Center the image */
            background-repeat: no-repeat; /* Prevent repeating the image */
            height: 100%; /* Ensure the container covers the full height */
            width: 100%; /* Cover full width */
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: -1; /* Ensure background is below the content */
        }

        /* Optional: Style for the content container to improve readability */
        .content-container {
          background-color: rgba(255, 255, 255, 0.85);
          width: 50vw; /* or use max-width for better responsiveness */
          margin: 80px auto 0 auto; /* top margin to clear navbar, auto for horizontal centering */
          padding: 20px;
          font-size: 20px;
          box-sizing: border-box;
          border: 1px solid white;
          display: block;
          height: auto;
          overflow: visible;
        }



        a {
            color: rgb(75, 120, 255); /* A light color for the link */
            
           
        }




#thingy {
  position:absolute;
  bottom:-300px;
  left:50%; 
  transform:translateX(-300%); /* centered first regardless of width*/
  margin-left: -175px; /* then moved over */

  border: 2px solid white;
  background-color: #fcdf03;
  color: black;

  padding: 24px;
  font-weight: bolder;
}

#thingy h2{
  font-weight: bold;
}



#thingy a {
  all: unset;
}



#ThingyContainer { 
  width: 98vw; 
  /* height: 70vh;  */
  /* border: 2px solid black;  */
  /*Making the container a flexbox*/ 
  display: flex; 
  /*Making equal spaced divs*/ 
  justify-content: space-between; 
  /* background-color: black;  */
  margin-top: 80px;
  padding: 0 200px;
} 

.Thingybox {
  background-color: yellow;
  color: black;
  font-size: 2rem;
  font-weight: bold;
  
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  
  width: 20%;
  height: 15%;
  min-width: 20%;
  min-height: 15%;
  
  padding: 10px;
  box-sizing: border-box; /* important so padding doesn’t break sizing */
}


.Thingybox a {all: unset; }


/* start of title css */
h1{
  font-size: 64px;
}

ion-icon{
  font-size: 38px; 
  transform: translateY(3px);
  
}
/* end of title css */

#howToPlayDiv{
  /* color:#00cc00;
  font-weight: 700; */
  margin: auto;
  width: 65%;
  /* border: 3px solid green; */
  padding: 10px;
}

#content {
            background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white background */
            position: absolute;
            /* Adjust position to perfectly center it */
            width: 80vw;  
            height: 80vh; /* 50% of the viewport height */
            margin: auto;
            color: back;
            padding: 20px;
            font-size: 20px;
            z-index: 2;  /* Ensure it's above the blurred background */
            box-sizing: border-box; /* Ensure padding doesn't affect width/height */
            border: 1px solid white;
        }


#gamePicker{
  margin: auto;
  
}
.gamePickerTable td{
  padding: 10px;
}

@media only screen and (max-width: 1080px) {
  .formContainer{
    width: fit-content;
    margin: auto;
    
  }
  .formBox{
    padding: 12px;
    width: fit-content;
    padding: 8px;
  }
#ThingyContainer { 
  width: 80%;
  height: auto;    
  
  flex-direction: column;
      align-items: center;
      height: auto;
      padding: 0px;
      margin-top: 50px;
      
  }

  .Thingybox{
    width: fit-content;
    height: fit-content;
  }

  .heroContainer {
/*  position: relative;
  height: 80%;
  width: 80%;
  
  background-image: url("http://localhost/football/images/heroImage.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;  Ensure content doesn't spill out */
}
}


@media only screen and (max-width: 900px) {
  #ThingyContainer { 
      flex-direction: column;
      align-items: center;
      height: auto;
      padding: 0px;
      margin-top: 50px;
      
  }

  .Thingybox { 
      width: 90%;
      height: 120px;
      margin-bottom: 20px;
      
  }

  .tableDiv {
      width: 95%;
  }

  .heroContent{
      padding: 5px;
  }



  .heroSubContent{
    flex-direction: column; /* Stack items vertically */
    /* position: relative; */
    z-index: 2; /* Ensure the text is above the blur */
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 1.5em;
    
    /*Making the container a flexbox*/ 
    display: flex; 
    /*Making equal spaced divs*/ 
    justify-content: space-between; 
    /* background-color: black;  */
  
    
  }
  .heroSubContentText{
    width: 100%;
    margin: auto;
    /* border: 1px solid white; */
    color: black;
    background-color: #29c0ff;
    padding: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    
  }
  .heroSubContentText h3{
    font-weight: 700;
    font-size: 1.5em;
  }

  .heroContainer{
    overflow: auto;
  
      
  }
  .content-container {
      width:90%;

}


@media only screen and (max-width: 600px) {
  .tableDiv{
    margin: auto;
    width: 90%;
    border: 3px solid black;
    padding: 10px;
  }



  #ThingyContainer { 
    /* width: 98vw; 
    height: 70vh;  */
    /* border: 2px solid black;  */
    /*Making the container a flexbox*/ 
    display: flex; 
    /*Making equal spaced divs*/ 
    justify-content: space-between; 
    /* background-color: black;  */
    margin-top: 300px;
    padding: 0 200px;
    
  } 
  
  .Thingybox { 
    background-color: yellow; 
    color: black; 
    font-size: 2rem; 
    font-weight: bold;
    /* border: 4px solid white;  */
  } 
  
  .Thingybox a {all: unset; }
  
.formBox{
    max-width: 90%;
    max-width: 80%;
    margin:auto;
    

  }
 

}



/* Responsive for phones (500px and smaller) */
@media only screen and (max-width: 500px) {
  #ThingyContainer { 
      flex-direction: column;
      align-items: center;
      height: auto;
      padding: 0px;
      margin-top: 50px;
      
  }

  .Thingybox { 
      width: 90%;
      height: 120px;
      margin-bottom: 20px;
      
  }

  .tableDiv {
      width: 95%;
  }

  .heroContent{
      padding: 5px;
      overflow: visible;
  }



  .heroSubContent{
    flex-direction: column; /* Stack items vertically */
    /* position: relative; */
    z-index: 2; /* Ensure the text is above the blur */
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 1.5em;
    
    /*Making the container a flexbox*/ 
    display: flex; 
    /*Making equal spaced divs*/ 
    justify-content: space-between; 
    /* background-color: black;  */
  
    
  }
  .heroSubContentText{
    width: 100%;
    margin: auto;
    /* border: 1px solid white; */
    color: black;
    background-color: #29c0ff;
    padding: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    
  }
  .heroSubContentText h3{
    font-weight: 700;
    font-size: 1.5em;
  }



  .formBox{
    max-width: 90%;
    max-width: 80%;
    margin:auto;
    

  }

}
/* 

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 80%; 
  border: 1px solid #ddd;
}

th, td {
  text-align: left;
  padding: 8px;
}

tr:nth-child(even){background-color: #f2f2f2} */