html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  font-family: "Raleway", sans-serif;
}

.logo {
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0px 12px;
}

#brand {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: -36px;
  color: #fff;
}

nav {
  display: flex;
  position: fixed;
  top: 0;
  z-index: 9999;
  justify-content: space-between;
  width: 100%;
  background: linear-gradient(
    92.04deg,
    #18184a 24.18%,
    #19398a 50.95%,
    #18184a 110.32%
  );
  box-shadow: 0px 2px 8px 0px rgba(43, 37, 37, 0.425);
  padding: 0 4%;
}

nav > ul {
  list-style-type: none;
}

nav > ul > li > a {
  text-decoration: none;
  padding: 0px 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#mobileSideBarDiv {
  z-index: 10000000;
}

#mobileSideBarDiv .hidden {
  opacity: 0;
  visibility: hidden;
  transition-property: opacity, visibility;
  transition-duration: 1s, 0s;
  transition-delay: 0s, 1s;
}

.nav-links-mobile {
  top: 0;
  right: 0;
  height: 100vh;
  padding: 8px 16px;
  position: absolute;
  background: #fff;
  list-style-type: none;
  background: linear-gradient(
    92.04deg,
    #18184a 24.18%,
    #19398a 50.95%,
    #18184a 110.32%
  );
}
.nav-links-mobile > li > a {
  display: inline-block;
  text-decoration: none;
  padding: 16px 0px;
  width: 100%;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid #ffffff21;
}

.search-team-player-mobile {
  margin: 16px 0px;
  text-decoration: none;
}

.close-sidebar-wrapper {
  display: flex;
  justify-content: flex-end;
  align-content: center;
}

.close-sidebar {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.close-sidebar:hover {
  cursor: pointer;
}

.cross-lines {
  width: 24px;
  height: 2px;
  background: #fff;
  position: absolute;
}

.cross-lines:nth-child(1) {
  transform: rotate(45deg);
}
.cross-lines:nth-child(2) {
  transform: rotate(-45deg);
}

.search-team-player {
  position: relative;
}

.search-team-player-lg {
  padding: 0px 16px;
  display: flex;
  align-items: center;
}

.search-team-player input {
  border-radius: 18px;
  height: 36px;
  padding: 0px 0px 0px 8px;
  outline: none;
  border: 1px solid #ccc;
  font-size: 16px;
}
.search-btn {
  position: absolute;
  right: 16px;
  top: 0;
  font-size: 20px;
  width: 32px;
  height: 36px;
  border: none;
  background-color: transparent;
  color: #293778;
}

#search-btn:hover {
  cursor: pointer;
}

#search-results {
  position: relative;
}

.search-player-card-wrapper {
  position: fixed;
  width: 300px;
  top: 92px;
  right: 0;
  background-color: #ccc;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 92px);
  overflow: auto;
  scrollbar-width: thin;
  color: #fff;
  font-weight: 600;
  z-index: 99999;
}

.search-player-card {
  display: flex;
  align-items: center;
  margin: 0px 0px 8px;
  background: #0078bc;
}

#hamburger {
  display: none;
}

.mobileSideBarDiv {
  z-index: 10000;
}

#team-card-container {
  display: flex;
  flex-wrap: wrap;
  padding: 108px 48px 32px;
  justify-content: center;
}

.team-card {
  height: 400px;
  text-decoration: none;
  width: calc(25% - 30px);
  display: flex;
  margin: 15px;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  padding-top: 32px;
  transition: all 0.5s ease;
  transition-duration: 0.3s;
}

.team-card:hover {
  transform: translateY(-3%);
  box-shadow: 2px 2px 4px 0px #c0c0c0;
}

.team-img {
  width: 143px;
  height: 142px;
}

.team-name {
  color: #fff;
  padding: 8px 10%;
  text-align: center;
  height: 64px;
}
.team-ground {
  color: #fff;
  padding: 16px 15%;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  height: 64px;
}

.winners {
  display: flex;
  align-items: center;
  color: orange;
  background-color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 16px;
}

#team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.team-create-confirm {
  margin-top: 160px;
  margin-bottom: 60px;
  text-align: center;
  color: #18184a;
}
.team-create-confirm img {
  height: 300px;
}
.team-create-confirm h2 {
  margin-top: 60px;
}
.team-create-confirm p {
  margin-top: 10px;
}

#player-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  border: 1px solid #ccc;
  margin: 16px;
}

.player-card {
  height: 360px;
  width: calc(20% - 20px);
  display: flex;
  margin: 10px;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  padding-top: 32px;
}

.player-img {
  height: 250px;
  max-width: 100%;
}

.player-name {
  width: 100%;
  background: linear-gradient(180deg, #0078bc 0, #17479e 100%);
  color: #ffffff;
  text-align: center;
  padding: 8px;
}

@media screen and (max-width: 1224px) {
  #team-card-container {
    padding: 108px 32px 32px;
  }
  .team-card {
    width: calc(33.33% - 30px);
    height: 384px;
  }
  .player-card {
    width: calc(25% - 20px);
  }
}
@media screen and (max-width: 950px) {
  .team-card {
    width: calc(50% - 30px);
  }
  .player-card {
    width: calc(33.33% - 20px);
  }
  .nav-links {
    display: none;
  }

  nav {
    justify-content: space-between;
    box-shadow: none;
    padding: 0px 0px 0px 4%;
  }

  .hamburger {
    padding: 0px 12px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .search-player-card-wrapper {
    width: 237px;
  }

  .teams-top-strip {
    background: linear-gradient(
      92.04deg,
      #18184a 24.18%,
      #19398a 50.95%,
      #18184a 110.32%
    );
  }

  #hamburger-icon:hover {
    cursor: pointer;
  }

  #hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    z-index: 10001;
  }

  .line {
    height: 3px;
    width: 28px;
    background-color: #fff;
  }
}
@media screen and (max-width: 700px) {
  #team-card-container {
    padding: 108px 24px 32px;
  }
  .team-card {
    width: 100%;
  }
  .player-card {
    width: 100%;
  }
}
