body {
    
  text-align: center;
  
  color: white;
  font-family: Arial, sans-serif; /* Arial as a fallback */
  max-width: 100%; /* Ensure it doesn't exceed the viewport */
  background-image: url('assets/View.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  animation: moveBackground 200s linear infinite alternate;
  height: 100%;
 
  
}

  
  @keyframes moveBackground {
    0% {
        background-position: center left; /* Start slightly to the left of center */
    }
    100% {
        background-position: center right; /* End slightly to the right of center */
    }
  }

h1, h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}


input {
    padding: 10px;
    margin: 8px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    width: 80%;
    max-width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button {
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 25px;
    margin-top: 10px;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
    transition: 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.3);
}

button:hover {
    background: linear-gradient(45deg, #ff4b2b, #ff416c);
    transform: scale(1.05);
}

#updateBtn {
    
    background: linear-gradient(45deg, #1d976c, #93f9b9);
    
    max-width: 150px;
}

#updateBtn:hover {
    background: linear-gradient(45deg, #93f9b9, #1d976c);
}
#LinkBtn,#ViewBtn,#HomeBtn{
    
    background: linear-gradient(45deg, #37ff05, #094401);
    width: 80%;
    max-width: 100px;
    width: 80%;
    font-size: 12px;
    font-weight: bold;
    gap: 20px; /* This property applies to elements *within* the button, not between buttons */
    padding: 8px;
    
    margin-right: 10px;
}


.LinkBtn,.ViewBtn,#HomeBtn:hover {
    background: linear-gradient(45deg, #001d6d, #33da0a);
}
#players-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  justify-content: center;
  padding: 10px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 20px auto;
  box-sizing: border-box;
}

/* Player Wrapper */
.player-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
  
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  margin-bottom: 10px;
}

/* Label */
.player-label {
  font-size: 12px;
  font-weight: bold;
  color: #333;
  margin-right: 12px;
  white-space: nowrap;
}

/* Input */
.player-input {
  flex: 1;
  padding: 16px;
  font-size: 12px;
  border: 2px solid #007bff;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.player-input:focus {
  border-color: #0056b3;
}

/* Warning Message */
#warning-message {
  display: none;
  font-size: 14px;
  color: yellow;
  font-weight: bold;
  margin-top: 15px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .player-wrapper {
    flex-direction: column;
    align-items: stretch;
  }



  .player-input {
    font-size: 12px;
    padding: 5px;
    width: 100%;
  }
}

#updateBtn {
  position: fixed;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%); /* This centers it horizontally */
  
  background-color: #28a745;
  color: white;
  font-size: 14px;
  font-weight: bold;

  padding: 14px 24px;
  border: none;
  border-radius: 50px;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);

  cursor: pointer;
  z-index: 9999;
 
}


#updateBtn:hover {
  
  box-shadow: 0px 12px 18px rgba(0, 0, 0, 0.3);
}



/* Remove margin from the last button to avoid extra space at the end */


#updateBtn:hover {
    background-color: #218838;  
}
.LinkBtn,.ViewBtn,#HomeBtn:hover {
    background-color: #02831e;
}


#searchBtn {
    display: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background: linear-gradient(45deg, #007bff, #00d4ff);
    color: white;
    transition: 0.3s ease;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    margin-left: 10px; /* Adjust spacing */
}

#searchBtn:hover {
    background: linear-gradient(45deg, #0056b3, #0099ff);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}
.tournament-box {
    background: white;
    padding: 20px;
    margin: 10px auto;
    border-radius: 8px;
    width: 50%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 2px solid #007bff;
}
.threebtn {
    display: flex; /* Makes the children flex items */
  }
  
  .threebtn > * { /* Selects all direct children */
    flex: 1; /* Distributes available space equally among children */
  }
/* Big card box */
#login-box {
  display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    padding: 40px 30px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    text-align: center;
    z-index: 999;
    animation: fadeIn 3s ease-in-out;
    font-family: 'Segoe UI', sans-serif;
  }
  
  /* Google-style login button */
  #google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background-color: #ffffff;
    color: #444;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
    /*transition: all 0.2s ease-in-out;*/
  }
  
  #google-login-btn:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 6px rgba(60, 64, 67, 0.3);
    /*transform: translateY(-1px);*/
  }
  
  #google-login-btn::before {
    content: '';
    background: url('https://developers.google.com/identity/images/g-logo.png') no-repeat center center;
    background-size: contain;
    width: 20px;
    height: 20px;
    display: inline-block;
  }
  
  /* Subtle fade-in animation */
  
 
    
    

    h1 { 
        color: #333; 
        margin-bottom: 10px;
    }
    input {
        width: 300px;
        height: 20px;
        padding: 8px;
        margin: 5px;
        font-size: 16px;
        border: 2px solid #007bff;
        border-radius: 5px;
    }
    button {
        padding: 10px 20px;
        font-size: 16px;
        cursor: pointer;
        border: none;
        border-radius: 5px;
        margin-top: 10px;
        background-color: #007bff;
        color: white;
        transition: 0.3s ease;
    }
    button:hover {
        background-color: #0056b3;
    }
           
    
    #warning-message {
        display: none;
        font-size: 14px;
        color: yellow;
        font-weight: bold;
        margin-top: 15px;
    }
    #tournament-details {
      background: linear-gradient(135deg, #0099ff,#fffb00, #ff6600,#00f7ff);
      padding: 5px; /* Adjust padding for smaller screens */
      align-self: auto;
      border-radius: 8px;
      width: 80%; /* Take up more width on smaller screens */
      box-shadow: 0px 4px 6px rgba(255, 255, 255, 0.1);
      text-align: center;
      max-width: 100%;
      margin-left: 9%;
      margin-right: 5%;
  }

    #created-at {
        font-size: 14px;
        color: #000000;
        font-weight: bold;
        margin-bottom: 5px;
    }
    .player-input.readonly {
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ccc;
    cursor: not-allowed;
    font-size: 12px;
}




.chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #4285F4, #34A853);
  color: white;
  border: none;
  padding: 15px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  
}
#chat-toggle.chat-btn {
  font-size: 1.5em; /* Increase the font size */
  padding: 15px 25px; /* Adjust padding to make it bigger */
  border-radius: 10%;
}


/* Chat Panel */
.chat-panel {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  flex-direction: column;
  font-family: sans-serif;
  z-index: 999;
}


/* Chat Header */
.chat-header {
  background: #4285F4;
  color: white;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Chat Body */
.chat-body {
  height: 250px;               /* Let it grow naturally */
  max-height: 400px;          /* But not beyond this */
  overflow-y: auto;           /* Enable scroll if content exceeds max-height */
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background-color: white;
  scroll-behavior: auto;
  
}


.message {
  padding: 8px 12px; /* Keep your desired padding */
  max-width: 80%; /* Keep the maximum width */
  color: #0008fa;
  font-size: 14px;
  border-radius: 8px; /* Optional: If you have rounded corners */
  margin-bottom: 4px; /* Optional: Spacing between messages */
  /* Remove white-space: nowrap; */
  /* Remove overflow-x: auto; */
  word-break: break-word; /* Optional: To break long words if necessary */
}

.message.sent {
  align-self: flex-end;
  background-color: #e0f7fa; /* Light blue for sent messages */
  color: #000; /* Adjust text color if needed */
}

.message.received {
  align-self: flex-start;
  background-color: #f0f4c3; /* Light yellow for received messages */
  color: #000; /* Adjust text color if needed */
}

/* Chat Input */
.chat-input {
  display: flex;

  align-items: center;
  padding: 5px;
  border-top: 1px solid #000000;
  background-color: #f9f9f9;
  
  
  
}

.chat-input input {
  
  padding: 20px 20px;
  font-size: 14px;
  border: 2px solid #0008fa;
  border-radius: 6px;
  outline: none;
  background-color: #e6f8f3;
   /* space between input and button */
  margin-left: 0%;
  width: 100%;
  
  
  
  
  
}

.send-btn {
  background: linear-gradient(135deg, #002a6e, #34fb22);
  color: #fff;
  border: none;
  padding: 5px 5px;
  font-size: 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 5px;
  
  margin-bottom: 5px;
  
  width: 70px;
  
  
  
  
}

.send-btn:hover {
  background-color: #2c9449;
}


.send-btn:hover {
  background-color: #2c9449;
}


#searchBtn{
  display: none;
}
.close-btn {
  position: absolute;
  
  right: 0;
  background: red;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #ffffff;
  padding: 8px;
  margin-top: 0px;
  
}

/* General reset and font setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif;
}

.app-wrapper {
  
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sign-in-container {
  
  display: none;
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  width: 360px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: fixed; /* Floating above the parent */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the container */
  z-index: 10; /* Ensure it stays above other content */
}

.google-logo {
  height: 30px;
  margin-bottom: 20px;
}

.sign-in-title {
  font-size: 24px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 8px;
}

.sign-in-subtitle {
  font-size: 14px;
  color: #5f6368;
  margin-bottom: 30px;
}

.buttons-container {
  display: flex;
  justify-content: center;
}

.sign-in-button {
  background-color: #4285f4;
  color: white;
  font-size: 14px;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
}

.sign-in-button:hover {
  background-color: #3367d6;
}
/* Existing styles for the container div and button */
.another-box h3 {
  margin-top: 10px; /* <-- Add top margin */
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-align: center; /* Optional: center align the heading */
}


.chat-input-area {
  background-color: #000016;
  color: #ffffff;
  font-size: 14px;
  padding: 10px;
  border-radius: 6px;
  
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  min-height: 100px;
  max-height: 300px; /* Limit the maximum height */
  overflow-y: auto; /* Enable vertical scroll if needed */
  font-family: 'Arial', sans-serif;
  white-space: pre-wrap;
  word-wrap: break-word;
  text-align: center;
  
}

.chat-input-area p {
  margin: 0;
}

.another-box h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}


/* General Styles */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  color: #000000;
}

h2, h3 {
  color: #000000;
  font-weight: bold;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

li {
  margin: 10px 0;
}

a {
  color: #1a73e8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Main Content Section */
#extra-content {
  margin: 30px auto;
  max-width: 90%;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* About Section */
#about-etournament {
  margin-bottom: 40px;
}

#about-etournament h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

#about-etournament ul {
  padding-left: 20px;
}

#about-etournament li {
  margin: 10px 0;
}

/* Manage Tournament Section */
#manage-tournament {
  margin-bottom: 40px;
}

#manage-tournament h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

#manage-tournament ul {
  padding-left: 20px;
}

#manage-tournament li {
  margin: 8px 0;
}

#manage-tournament h3 {
  font-size: 1.5em;
  margin-top: 20px;
}

/* Football Facts Section */
#football-facts {
  margin-bottom: 40px;
}

#football-facts h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

#football-facts ul {
  padding-left: 20px;
}

#football-facts li {
  margin: 8px 0;
}

/* Mobile Engagement Section */
#mobile-engagement {
  margin-bottom: 40px;
}

#mobile-engagement h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

#mobile-engagement ul {
  padding-left: 20px;
}

#mobile-engagement li {
  margin: 8px 0;
}

/* About Us Section */
#about-us {
  margin-bottom: 40px;
}

#about-us h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

#about-us p {
  margin-bottom: 10px;
}

/* Privacy Policy Section */
#privacy-policy {
  margin-bottom: 40px;
}

#privacy-policy h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

#privacy-policy p {
  margin-bottom: 10px;
}

/* Contact Us Section */
#contact-us {
  margin-bottom: 40px;
}

#contact-us h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

#contact-us p {
  margin-bottom: 10px;
}

/* Footer Styles */
footer {
  background-color: #f8f8f8;
  color: #333;
  text-align: center;
  padding: 10px;
  font-size: 1em;
  position: relative;
  bottom: 0;
  width: 100%;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
}

footer a {
  color: #333;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsiveness */
@media (max-width: 768px) {
  #extra-content {
      padding: 15px;
      margin: 20px;
  }

  h2 {
      font-size: 1.8em;
  }

  h3 {
      font-size: 1.4em;
  }

  ul {
      padding-left: 10px;
  }

  li {
      margin: 6px 0;
  }

  footer {
      font-size: 0.9em;
  }
}
