.body{
    background-color: white;
}

/* General header layout mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm*/
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #020277, #0049b5,  #00ce0e);
    padding: 10px 20px;
}

/* Logo + title container */
.logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 50px;
    width: auto;
}

/* Title text next to logo */
.logo-title h3 {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: goldenrod;
    font-size: 1.5rem;
    margin: 0;
}

/* Navbar styling */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffcc00;
}
/* end Section ============================================================================================*/


/* Welcome Section Styling=================================================================================== */
.welcome-section {
    background: linear-gradient(90deg, #020277, #0049b5,  #00ce0e) ;
    color: white;
    text-align: center;
    padding: 25px 15px;
    font-family: Arial, sans-serif;
    margin-left: 10px;
    margin-top: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 50px;
    
}

.welcome-content {
    max-width: 600px;
    margin: auto;
}



.welcome-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.welcome-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.welcome-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s ease;
}

.login-btn {
    background: #17203d;
    color: white;
    border-color: white;
    border-radius: 40px;
    border-style: solid;
    border-width: 0.5px;

}

.register-btn {
    background: white;
    color: rgb(5, 3, 3);
    border-color: white;
    border-radius: 40px;
    border-style: solid;
    border-width: 0.5px;
}

.btn:hover {
    opacity: 0.85;
}
/* end of welcome section ============================================================================================*/


/* Cards Section ============================================================================================*/
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  
}

.card {
  padding: 30px;
  text-align:center;
  color: rgb(250, 252, 251);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  border-color: white;
  border-radius: 40px;
  border-style: solid;
  border-width: 0.5px;
  width: 320px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, #00ff2f, #0049b5,  #010e9b);
  
}

.card h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}
/* end of welcome page ============================================================================================*/


/* start of build team ============================================================================================*/
    .budget-bar {
      max-width: 900px;
      margin: 20px auto 10px;
      background: linear-gradient(90deg, #00ff2f, #0049b5,  #010e9b);
      padding: 10px 20px;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      display: flex;
      justify-content: space-between;
      font-weight: bold;
      color: white;
    }
    .team-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      background: linear-gradient(90deg, #010e9b, #0049b5, #00ff2f);
      padding: 20px;
      margin: 0 auto 30px;
      border-radius: 8px;
      max-width: 900px;
      box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
      color: white;
    }
    .player-slot {
      width: 150px;
      height: 200px;
      background: #949494;
      border-radius: 8px;
      margin: 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .player-slot img {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      object-fit: cover;
      margin-bottom: 8px;
    }
    .player-slot button {
      background: #0d3b66;
      color: white;
      border: none;
      padding: 8px 12px;
      border-radius: 4px;
      cursor: pointer;
      margin-top: 10px;
    }
    .player-slot button:hover {
      background: #145a99;
    }
    /* Player selection popup */
    .player-selection {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.7);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
    .player-selection-content {
      background: white;
      padding: 20px;
      max-width: 800px;
      border-radius: 8px;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 15px;
      max-height: 80vh;
      overflow-y: auto;
    }
    .player-card {
      background: #f4f4f4;
      padding: 10px;
      text-align: center;
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.3s;
    }
    .player-card:hover {
      background: #dce7f3;
    }
    .player-card img {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      object-fit: cover;
      margin-bottom: 6px;
    }
    .player-name {
      font-weight: bold;
    }
    .player-value {
      color: green;
    }

/* Container for the save button fixed at bottom center */
.save-button-container {
  width: 100%;
  text-align: center;  /* center horizontally */
  margin-top: 40px;    /* space above button */
  padding-bottom: 20px; /* optional padding below */
  
}
#save-team-btn {
  padding: 10px 20px;
  font-size: 1.2rem;
  cursor: pointer;
  background-color: #2c206d;
  color: white;
}

/* END OF BUILD TEAM ===================================================================================================== */

/* START OF REG PAGE====================================================================================================*/
/* Auth container (only affects login/register pages) */
.auth-container {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #1e1e2f, #2b2b47);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Form box */
.auth-form {
  background: #2c206d;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 400px;
}

/* Title */
.auth-form h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #00d084;
}

/* Inputs */
.auth-form input {
  width: 100%;
  padding: 0.8rem;
  margin: 0.6rem 0;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
}

.auth-form input:focus {
  outline: none;
  border: 2px solid #00d084;
  background: #0d3b66;
}

/* Button */
.auth-form button {
  width: 100%;
  padding: 0.8rem;
  background: #00d084;
  border: none;
  border-radius: 6px;
  color: #1e1e2f;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: 0.3s ease;
}

.auth-form button:hover {
  background: #00a76b;
}

/* Switch link */
.auth-form .switch-link {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.auth-form .switch-link a {
  color: #00d084;
  text-decoration: none;
}

.auth-form .switch-link a:hover {
  text-decoration: underline;
}

/* END OF REG/login PAGE====================================================================================================*/

