  /* General Page styling */
body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scrollbar due to side images */
    font-family: 'Freeman';
    background-color: rgba(200, 223, 88, 0.803);
}

h1 {
  font-size: 50px;
  margin-bottom: 10px;
  margin-left: 30px;
  margin-top: 30px;
  font-weight: bold;
  color:rgb(235, 73, 73)
}

p {
  color: #38b649;
  font-weight: 900;
}

/* Background */

#side-image-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 10%;
  height: 100%;
  background-image: url("images/pickleball.png"); /* Set the left image */
  background-repeat: repeat; /* Repeat the image vertically */
  background-size: 100px; /* Adjust the size of the pickleball image */
  animation: movePickleballs 20s linear infinite;
}

#side-image-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 10%;
  height: 100%;
  background-image: url("images/pickleball.png"); /* Set the right image */
  background-repeat: repeat; /* Repeat the image vertically */
  background-size: 100px; /* Adjust the size of the pickleball image */
  animation: movePickleballs 20s linear infinite;
}

@keyframes movePickleballs {
  0% {
      background-position: 0 0;
  }
  100% {
      background-position: 100% 100%; /* Adjust the end position for the background */
  }
}

/* Main Components */

#container {
  /* background-image: url("images/court.jpeg"); */
  background-repeat: no-repeat;
  background-size: 100% 100%;
  min-height: 100vh;
  width: 80%;
  height: 100%;
  /* max-width: 1200px; */
  background-color: azure;
  position: absolute; 
}

#start-instructions {
  margin-left: 30px;
  font-weight: 900;
  /* width: 100px; */
}

/* Inputs */

#inputs {
  display: flex;
  gap: 20px; /* Adds spacing between columns */
  align-items: flex-start; /* Aligns items at the top */
}

.input-column {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Spacing between input elements */
  flex: .17; 
}

.teams-column {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Spacing between team sections */
  flex: .83;
  align-items: center;
}

/* Teams and players */

.team-label {
  left: 50%;
  align-items: center;
  /* color: #ed6fbf; */
  font-size: 28px;
  margin-bottom: 5px;
  padding-top: 0;
  margin-top: 0;
}

#team_1, #team_2 {
  display: flex;
  flex-wrap: wrap;
  /* gap: 10px; */
}

.player {
  /* width: 100px; Adjust size as needed */
  height: 170px;
  margin-right: 10px;
  margin-left: 10px;
}

#alex_1, #alex_2 {
  height: 140px;
}

/* Image styling for players */
.light-up {
    /* height: 100px; */
    opacity: 0.4;
    /* margin: 5px 5px 5px; */
}

.light-up:hover {
    opacity: 1;
    cursor: pointer;
}

/* Game num input styling */

.input-wrapper label {
  font-size: 20px;
}

.input-wrapper {
  margin-left: 30px;
  width: 200px;
}

.slider {
  display: flex;
  margin-top: 10px;
}
.slider input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: rgb(196, 196, 196); /* White background color for the slider bar */
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

/* Style the slider thumb (circle) */
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #38b649; /* Green background color for the slider thumb */
  cursor: pointer;
}

.slider input[type="range"]:hover {
  opacity: 1;
}

/* Server select styling */
#server-select {
  width: 85px; 
  height: 35px; 
  font-size: 16px; 
  padding: 5px; 
}

/* Predict Winner button styling */

.predict-button {
  /* margin: 0; */
  position: absolute;
  /* top: 95%; */
  left: 50%;
  /* -ms-transform: translate(-50%, -50%); */
  transform: translate(-50%, -50%);
  margin-top: 7%;
}

.button-clicked {
  transform: translateY(3px); /* Adjust the amount of indentation */
}

#predict {
    font-family: inherit;
    padding: 14px 24px;
    font-size: 20px;
    background-color: #38b649;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#predict:hover {
    background-color: #45a049;
}

/* Results Modal Styling */

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
  position: relative; /* Ensure children are positioned relative to the modal */
  background-color: rgb(38, 185, 218);
  margin: 15% auto; 
  padding: 7px;
  border: 1px solid #060606;
  width: 10%; 
  text-align: center;
  font-size: 24px; /* Large text */
  border-radius: 15px; /* Rounded edges */
}

.modal-content p {
  color:rgb(250, 250, 250)
}

.close-button {
  position: absolute; /* Position relative to .modal-content */
  top: 0px; 
  right: 7px;
  color: #000000;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#about {
  top: 92%;
  left: 85%;
  position: absolute;
  transform: translate(-50%, -50%);
}

#about-button {
  cursor: pointer;
}

/* Adjustments for mobile responsiveness */
@media only screen and (max-width: 1100px) {
  /* body { */
      /* align-items: flex-start; Align items to the start of the flex container */
  /* } */

  #side-image-left,
  #side-image-right {
      display: none; /* Hide side images on smaller screens */
  }

  h1 {
    font-size: 50px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-top: 30px;
    color:rgb(235, 73, 73)
  }

  #container {
      width: 100%; /* Adjust container width to full width */
      background-size: contain;
      background-repeat: no-repeat;
      /* background-position: center 330px; */
      background-color: azure;
      display: flex;
      flex-direction: column; /* Stack children vertically */
      align-items: center; /* Center all children horizontally */
      /* gap: 0px; Add space between each child */
  }

  .input-wrapper {
    display: flex; /* Flexbox layout */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center contents horizontally */
    justify-content: center; /* Center contents vertically if needed */
    width: 200px;
    margin: 5px auto; 
  }

  #start-instructions {
    text-align: center;
    margin-top: 10px;
    margin-left: 0px;
    margin-right: 0px;
  } 
  
  #inputs {
    flex-direction: column;
    align-items: center; 
  }

  .input-wrapper label {
    font-size: 16px;
    text-align: center; 
  }

  .input-column, .teams-column {
    flex: 1; /* Both columns take full width */
    width: 100%; /* Ensure they stretch across the screen */
    gap: 0px;
  }

  #team_1, #team_2 {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    height: auto;
  }

  .team-label {
    /* color: #ed6fbf; */
    font-size: 18px;
  }
  
  #team_2_label{
    padding-top: 28px;
  }

  .player {
    height: 80px;
    margin: 0;
  }

  #alex_1, #alex_2 {
    height: 60px;
  }

  #server-select {
    width: 80px; 
    height: 30px; 
    font-size: 14px; 
    padding: 5px;
  }

  .predict-button {
    top: 80%;
    left: 50%;
  }

  #predict {
    padding: 10px 20px;
    font-size: 18px;
  }

  .modal-content {
      width: 80%; /* Adjust width for mobile */
      max-width: 300px; /* Prevent it from being too wide */
      top: 35%;
      text-align: center; /* Center text */
  }

  .close-button {
      position: absolute;
      top: 3px;
      right: 10px;
      font-size: 24px;
      cursor: pointer;
      color: black;
  }

  #winnerText {
      font-size: 18px; /* Readable text */
      font-weight: bold;
      margin-top: 10px;
  }

  #about {
    top: 92%;
    left: 55%
  }

}