#PLAYERS {
  height: max-content;
  width: 100%;
  display: flex;
  flex-direction: column;
  
  padding-top: 0px;
  align-items: center;
  padding-bottom: 40px;
  font-family: "poppins", sans-serif;
}

.players-heading {
  height: max-content;
  color: white;
  background-color: var(--main-color);
  padding: 20px;
  width: 100%;
  height: 25vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.players-heading-text {
  width: max-content;
  margin-left: 0vh;
  margin-top: 150px;
  padding: 20px;
}

.players-heading p {
  font-size: 40px;
  font-weight: 700;
  font-family: "poppins", sans-serif;
}
#Players-sub-sections {
  padding: 10px;
  display: flex;
  flex-direction: column;
 
}
#sub-sections-heading {
  border-bottom: 1px solid rgb(153, 153, 153);
  flex-direction: row;
  display: flex;
  justify-content: space-between;
  
  padding: 0px;
  color: var(--text-color);
  height: max-content;
}
.sub-heading-main-text p {

  font-size: 30px;
  padding: 0px;
  font-family: "poppins", sans-serif;
  font-weight: 800;
}
.sub-heading-view-section {
  margin-right: 20px;
  padding: 0px;
  cursor: pointer;

}
.PLAYERS-main-section {
  display: flex;
  min-width: 140vh; /*Control width of boxes here!!! */
  padding:5px;
  height: max-content;
  flex-direction: column;
  gap: 0px;
  -webkit-gap: 0px; /* WebKit-based browsers like Safari */
}

/* ..............TOggle view here!!!!!!!! */
/* Image boxes section */
#Gks-sub-section-main {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
  -webkit-gap: 5px; /* WebKit-based browsers like Safari */
}
#Gks-sub-section-main.active {
  display: none;
}
.Defender-divisions {
  display: flex;
  flex-direction: column;
  width: max-content;
  height: max-content;
}
#Defenders-sub-section-main {
  display: flex;
  justify-content: flex-start;
  gap: 5px;
  -webkit-gap: 5px; /* WebKit-based browsers like Safari */
  width: max-content;
}
#Defenders-sub-section-main.active {
  display: none;
}
#Midfielders-sub-section-main {
  display: flex;
  justify-content: flex-start;
  gap: 5px;
  -webkit-gap: 5px; /* WebKit-based browsers like Safari */
  width: max-content;
}
#Midfielders-sub-section-main.active {
  display: none;
}
#Attackers-sub-section-main {
  display: flex;
  justify-content: flex-start;
  gap: 5px;
  -webkit-gap: 5px; /* WebKit-based browsers like Safari */
  width: max-content;
}
#Attackers-sub-section-main.active {
  display: none;
}
/* .........TOggle view here!!!!!!!! */

#players-images-section {
  padding: 10px;
  width: 100%;
  height: 350px;
  border-radius: 10px;
  display: flex;
  gap: 5px;
  -webkit-gap: 5px; /* WebKit-based browsers like Safari */
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.image-sec {
  border: 2px solid;
  width: 100%;
  height: max-content;
}
.players-details {
  width: 100%;
  height: max-content;
}

.single-team {
  width: 400px;
  height: 490px;
  overflow: hidden;
  position: relative;
  margin: 10px;
  border-radius: 10px;
}
 b {
  color: var(--main-color);
  font-weight: 800;
  ;
 }

.single-team::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.3s ease;
  opacity: 0;
}
.single-team::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transform: translateY(0);
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.8) 20%,
    rgba(0, 108, 255, 0)
  );
  z-index: 2;
}
.single-team:hover:after {
  opacity: 0;
}

.single-team img {
  height: auto;
  transition: all 0.5s ease;
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 100%;
  transform: scale(1.1) translate(5%, 10%);
}
.single-team:hover img {
  transform: scale(1);
}

.single-team .info {
  transition: all 0.5s ease;
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 5%;
  width: max-content;
  height: 150px;
  padding: 0px 15px;
  border-left: 5px solid var(--main-color);
  border-radius: 15px 0 0 15px;
  color: #ffffff;
  z-index: 3;
  opacity: 1;
}
.single-team:hover .info {
  opacity: 0;
  transform: translateX(0);
}
.info h3 {
  width: max-content;
  padding: 5px;
  height: max-content;
  margin-bottom: 5px;
  text-transform: uppercase;
  margin-top: 20px;
  letter-spacing: 2px;
  font-family: "poppins", sans-serif;
  font-size: 40px;
  font-weight: 900;
  color: var(--main-color);
  margin-left: 10px;
}
.info p {
  width: max-content;
  padding: 5px;
  font-size: 30px;
  line-height: 20px;
  margin-top: -5px;
}
.info h3,
.info p {
  transition: all 0.7s ease;
  overflow: hidden;
}
.single-team:hover .info h3,
.single-team:hover .info p {
  transform: translateX(0);
}

/* MEDIA QUERIES  */


/*......................... LAPTOP DISPLAYS ...............  */
@media screen and (min-width: 930px) and (max-width: 1440px) {
  #PLAYERS {
    height: max-content;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
     -webkit-gap: 10px; /* WebKit-based brow */

    padding-top: 0px;
    font-family: "roboto", sans-serif;
    align-items: center;
    padding-bottom: 60px;
  }

  .players-heading {
    height: max-content;
    color: white;
    background-color: var(--main-color);
    padding: 20px;
    width: 100%;
    padding-bottom: 30px;
    height: 25vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .players-heading-text {
    width: max-content;
    margin-left: -50vh;
    margin-top: 130px;
    padding: 20px;
  }

  .players-heading p {
    font-size: 30px;
    font-weight: 900;
  }
  #Players-sub-sections {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
      -webkit-gap: 20px; /* WebKit-based brow */
    width: max-content;
    overflow: hidden;
    
  }
  #sub-sections-heading {
    border-bottom: 1px solid rgb(153, 153, 153);
    flex-direction: row;
    display: flex;
    justify-content: space-between;
    padding: 0px;
    color: var(--text-color);
    height: max-content;
    
  }
  .sub-heading-main-text p {
  font-size: 20px;
    padding: 0px;
    font-family: "poppins", sans-serif;
    font-weight: 700;
  }
  .sub-heading-view-section {
    margin-right: 20px;
    padding: 0px;
    cursor: pointer;
  }
  .PLAYERS-main-section {
    display: flex;
    min-width: 10vh; /*Control width of boxes here!!! */
    padding: 10px;
    height: max-content;
    flex-direction: column;
    gap: 10px;
      -webkit-gap: 10px; /* WebKit-based brow */
    overflow: hidden;
    width: max-content;
  }

  /* .........TOggle view here!!!!!!!! */

  #players-images-section {
    padding: 10px;
    width: max-content;
    height: 350px;
    border-radius: 10px;
    display: flex;
    gap: 5px;
      -webkit-gap: 5px; /* WebKit-based brow */
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .image-sec {
    border: 2px solid;
    width: max-content;
    height: max-content;
  }
  .players-details {
    width: max-content;
    height: max-content;
  }

  .single-team {
    width: 200px;
    height: 270px;
    overflow: hidden;
    position: relative;
    margin: 10px;
    border-radius: 10px;

  }

  .single-team::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.3s ease;
    opacity: 0;
  }
  .single-team::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.8) 20%,
      rgba(0, 108, 255, 0)
    );
    z-index: 2;
  }
  .single-team::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.9) 10%,
      rgba(255, 255, 255, 0.2)
    );
    z-index: 2;
  }
  .single-team:hover:after {
    opacity: 0;
  }

  .single-team img {
    height: auto;
    transition: all 0.5s ease;
    width: 100%;
    height: auto;
    object-fit: cover;
    min-height: 100%;
    transform: scale(1.1) translate(5%, 10%);
  }
  .single-team:hover img {
    transform: scale(1);
  }

  .single-team .info {
    transition: all 0.5s ease;
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 10%;
    width: max-content;
    height: 80px;
    padding: 0px 15px;
    border-left: 5px solid var(--main-color);
    border-radius: 15px 0 0 15px;
    color: #ffffff;
    z-index: 3;
    opacity: 1;
    ;
    padding-bottom: 10px;
  }
  .single-team:hover .info {
    opacity: 0;
    transform: translateX(0);
  }
  .info h3 {
    width: max-content;
    padding: 5px;
    height: max-content;
    margin-bottom: 5px;
    text-transform: uppercase;
    margin-top: 0px;
    letter-spacing: 2px;
    font-family: "poppins", sans-serif;
    font-size: 35px;
    font-weight: 800;
    color: var(--main-color);
    margin-left: 0px;
  }
  .info p {
    width: max-content;
    padding: 5px;
    font-size: 15px;
    line-height: 0px;
    font-family: "poppins", sans-serif;
    margin-top: -10px;
  }
  .info h3,
  .info p {
    transition: all 0.7s ease;
    overflow: hidden;
  }
  .single-team:hover .info h3,
  .single-team:hover .info p {
    transform: translateX(0);
  }
}

/*SMALL  MONITORS  AND TABLETS  DISPLAYS  */
@media screen and (min-width: 770px) and (max-width: 929px) {
  #PLAYERS {
    height: max-content;
    width: 100%;
    display: flex;
    padding-top: 0px;
    font-family: "poppins", sans-serif;
    align-items: center;
    padding-bottom: 40px;
    justify-content: center;
  }

  .players-heading {
    height: max-content;
    color: white;
    background-color: var(--main-color);
    padding: 20px;
    width: 100%;
    height: 25vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 30px;
  }
  .players-heading-text {
    width: max-content;
    margin-left: 0vh;
    margin-top: 150px;
    padding: 20px;
  }

  .players-heading p {
    font-size: 30px;
    font-weight: 700;
  }
  #Players-sub-sections {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }
  #sub-sections-heading {
    border-bottom: 2px solid rgb(153, 153, 153);
    flex-direction: row;
    display: flex;
    justify-content: space-between;
    padding: 0px;
    color: var(--text-color);
    height: max-content;
    
  }
  .sub-heading-main-text p {
  font-size: 26px;
    padding: 0px;
    font-family: "poppins", sans-serif;
    font-weight: 700;
  }
  .sub-heading-view-section {
    margin-right: 20px;
    padding: 0px;
    cursor: pointer;
  }
  .PLAYERS-main-section {
    display: flex;
    min-width: 0px !important;
    width: max-content; /*Control width of boxes here!!! */

    padding: 0px;
    height: max-content;
    flex-direction: column;
    gap: 0px;
          -webkit-gap: 0px; /* WebKit-based browsers */
    justify-content: center;
    align-items: center;
  }

  /* .........TOggle view here!!!!!!!! */

  #Players-images-section {
    padding: 10px;
    width: 100%;
    height: 350px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  #Defenders-sub-section-main,
  #Midfielders-sub-section-main,
  #Attackers-sub-section-main,
  #Gks-sub-section-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .image-sec {
    border: 2px solid;
    width: 100%;
    height: max-content;
  }
  .players-details {
    width: 100%;
    height: max-content;
  }

  .single-team {
    width: 600px;
    height: 750px;
    overflow: hidden;
    position: relative;
    margin: 10px;
    border-radius: 10px;
  }

  .single-team::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.3s ease;
    opacity: 0;
  }
  .single-team::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(
      45deg,
      rgba(0, 0, 0, 1) 50%,
      rgba(0, 108, 255, 0)
    );
    z-index: 2;
  }
  .single-team::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.9) 10%,
      rgba(255, 255, 255, 0.2)
    );
    z-index: 2;
  }
  .single-team:hover:after {
    opacity: 0;
  }

  .single-team img {
    height: auto;
    transition: all 0.5s ease;
    width: 100%;
    height: auto;
    object-fit: cover;
    min-height: 100%;
    transform: scale(1.1) translate(5%, 10%);
  }
  .single-team:hover img {
    transform: scale(1);
  }

  .single-team .info {
    transition: all 0.5s ease;
    position: absolute;
    left: 5%;
    overflow: visible;
    right: 5%;
    bottom: 10%;
    width: max-content;
    height: 160px;
    padding: 0px 15px;
    border-left: 5px solid var(--main-color);
    border-radius: 15px 0 0 15px;
    color: #ffffff;
    z-index: 3;
    opacity: 1;
  }
  .single-team:hover .info {
    opacity: 0;
    transform: translateX(0);
  }
  .info h3 {
    width: max-content;
    padding: 5px;
    height: max-content;
    margin-bottom: 5px;
    text-transform: uppercase;
    margin-top: 0px;
    letter-spacing: 2px;
    font-family: "poppins", sans-serif;
    font-size: 55px;
    font-weight: 800;
    color: var(--main-color);
    margin-left: 0px;
  }
  .info p {
    width: 100%;
    height: max-content;
    padding: 20px 5px 20px 5px;
    font-size: 30px;
    line-height: 0px;
    font-family: "poppins", sans-serif;
    margin-top: -20px;
  }
  .info h3,
  .info p {
    transition: all 0.7s ease;
    overflow: hidden;
  }
  .single-team:hover .info h3,
  .single-team:hover .info p {
    transform: translateX(0);
  }
}

/* MOBILE PHONES  DISPLAYS  */
@media screen and (min-width: 320px) and (max-width: 769px) {
  #PLAYERS {
    height: max-content;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 0px;
    font-family: "poppins", sans-serif;
    align-items: center;
    padding-bottom: 50px;
    justify-content: center;
    overflow: hidden;
  }

  .players-heading {
    height: max-content;
    color: white;
    background-color: var(--main-color);
    padding: 0px;
    width: 100%;
    height: 15vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 30px;
  }
  .players-heading-text {
    width: max-content;
    margin-left: -20px;
    margin-top: 120px;
    padding: 20px 0px 40px 0px;
  }

  .players-heading p {
    font-size: 20px;
    font-weight: 500;
   padding: 30px;
  }
  #Players-sub-sections {
    padding: 0px;
    display: flex;
    flex-direction: column;
    gap: 10px;
          -webkit-gap: 10px; /* WebKit-based browsers */
    justify-content: center;
  }
  #sub-sections-heading {
    border-bottom: 2px solid rgb(153, 153, 153);
    flex-direction: row;
    display: flex;
    justify-content: space-between;
    padding: 0px;
    color: var(--text-color);
    height: max-content;
    margin-left: 30px;
    overflow: hidden;
  }
  .sub-heading-main-text p {
  font-size: 17px;
    padding: 0px;
    
    font-family: "poppins", sans-serif;
    font-weight: 700;
  }
  .sub-heading-view-section {
    margin-right: 20px;
    padding: 0px;
    cursor: pointer;

  }
  .PLAYERS-main-section {
    display: flex;
    min-width: 0px !important;
    width: 100%; /*Control width of boxes here!!! */
    padding: 10px;
    height: max-content;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  /* .........TOggle view here!!!!!!!! */
  #Players-images-section {
    padding: 10px;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  #Defenders-sub-section-main,
  #Midfielders-sub-section-main,
  #Attackers-sub-section-main,
  #Gks-sub-section-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
  }

  .image-sec {
    border: 2px solid;
    width: 100%;
    height: max-content;
  }
  .players-details {
    width: 100%;
    height: max-content;
  }

  .single-team {
    width: 95%;
    height: auto;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    margin: 10px;
    border-radius: 10px;
  }

  .single-team::after {
    content: "";
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.3s ease;
    opacity: 0;
  }
  .single-team::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    opacity: 1;
    background: linear-gradient(
      35deg,
      rgba(0, 0, 0, 0.8) 20%,
      rgba(0, 0, 0, .4)
    );
    z-index: 2;
  }
  .single-team::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 450px auto;
    opacity: 1;
    background: linear-gradient(
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 2)
    );
    z-index: 2;
  }
  .single-team:hover:after {
    opacity: 0;
  }

  .single-team img {
    height: auto;
    transition: all 0.5s ease;
    width: 100% ;
    height: auto;
    object-fit: cover;
    transform: scale(1.1) translate(5%, 10%);
  }
  .single-team:hover img {
    transform: scale(1);
  }

  .single-team .info {
    transition: all 0.5s ease;
    position: absolute;
    left: 0%;
    overflow: visible;
    right: 5%;
    bottom: 10%;
    width: max-content;
    height: 80px;
    padding: 0px 15px;
    /* border-left: 5px solid var(--main-color); */
    border-radius: 15px 0 0 15px;
    border: none;
    color: #ffffff;
    z-index: 3;
    opacity: 1;
  }
  .single-team:hover .info {
    opacity: 0;
    transform: translateX(0);
  }
 
  .info h3 {
    width: max-content;
    padding: 5px;
    height: max-content;
    margin-bottom: -10px;
    text-transform: uppercase;
    margin-top: 0px;
    letter-spacing: 2px;
    font-family: "poppins", sans-serif;
    font-size: 25px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-left: 30px;
    text-decoration: underline;
    text-underline-offset: 10px;
  }
  .info p {
    width: 100%;
    height: max-content;
    padding: 20px 5px 20px 5px;
    font-size: 23px;
    line-height: 0px;
    font-family: "poppins", sans-serif;
    margin-top: 10px;
  }
     b {
       color: var(--main-color);
       font-weight: 800;
       font-size: 30px
       ;
     }
  
     em {
    font-size: 18px;
    font-weight: 700;
    color:white;
    margin-top: -10px;
  }
  .info h3,
  .info p {
    transition: all 0.7s ease;
    overflow: hidden;
  }
  .single-team:hover .info h3,
  .single-team:hover .info p {
    transform: translateX(0);
  }
}
