/* CSS RESET */

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

/* UTILITY */

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  z-index: 2;
}

a {
  color: inherit;
  text-decoration: none;
}

section {
  scroll-margin-top: 80px;
}

:root {
  --main-bg: #000;
  --header-bg: #fff;
  --footer-bg: #333;
  --teams-bg: #9b9b9b;
  --main-text-color: #fff;
  --secondary-text-color: #000;
  --footer-text-color: #a9a9a9;
  --active-text-color: #f00;
  --main-text-family: "Montserrat", sans-serif;
  --secondary-text-family: "Didact Gothic", sans-serif;
}

.newg {
  color: var(--active-text-color);
}

/* GLOBAL STYLESHEET */

/* HEADER */

header {
  height: 80px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--main-bg);
  z-index: 10;
}

.nav-container,
.hero-wrapper,
.about-wrapper,
.gallery-wrapper,
.teams-wrapper,
.team-img-wrapper,
.login-wrapper,
.footer-container,
.team-img-wrapper,
.contact-wrapper {
  width: min(90%, 1200px);
  margin-inline: auto;
}

nav {
  display: flex;
  justify-content: space-between;
}

.logo-container {
  height: 80px;
  padding: 5px;
}

.logo-container h2 {
  font-family: var(--main-text-family);
  font-size: 4rem;
  height: 100%;
  letter-spacing: 0.6rem;
}

.header-logo {
  height: 48px;
  width: 48px;
  margin-right: 0.6rem;
}

.hamburger {
  display: none;
  height: 100%;
  cursor: pointer;
}

.line-1,
.line-2,
.line-3 {
  height: 3px;
  width: 30px;
  background-color: var(--main-bg);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.line-1-active {
  transform: rotate(-45deg) translateY(8px);
}

.line-2-active {
  display: none;
}

.line-3-active {
  transform: rotate(45deg) translateY(-7px);
}

.nav-right ul {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.nav-right li {
  height: 80px;
  display: grid;
  place-content: center;
  list-style: none;
  padding-block: 10px;
  font-size: 2rem;
  font-family: var(--secondary-text-family);
  transition: all 0.3s ease;
  position: relative;
}

.nav-right li:hover {
  color: var(--active-text-color);
}

.nav-right li::before {
  content: "";
  position: absolute;
  bottom: 15px;
  left: 40px;
  width: 0px;
  height: 2px;
  background-color: var(--active-text-color);
  transition: all 0.3s ease;
}

.nav-right li:hover::before {
  content: "";
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--active-text-color);
}

/* HERO */

#hero {
  position: relative;
  z-index: 5;
  height: 100vh;
  background: url(assets/img2.webp) center/cover no-repeat;
  color: var(--main-text-color);
  display: grid;
  place-content: center;
}

.hero-wrapper {
  display: grid;
  place-content: center;
}

.maintitle-container {
  text-align: center;
}

.maintitle-container h1 {
  font-size: 4rem;
  font-family: var(--main-text-family);
  font-weight: bolder;
  text-transform: uppercase;
  text-shadow: 0px 0px 8px var(--secondary-text-color);
}

.maintitle-logo {
  height: 15rem;
  width: 15rem;
  margin-bottom: 4rem;
  border-radius: 50%;
  box-shadow: 0px 0px 10px 5px var(--secondary-text-color);
  backdrop-filter: blur(8px);
}

/* TRANSITION */

/* .transition {
  height: 50vh;
  background: linear-gradient(to bottom, #000, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pointer {
  color: var(--main-text-color);
  font-family: "Monsterrat", sans-serif;
  font-weight: 100;
  font-size: 2rem;
  letter-spacing: 5px;
  transition: all 0.3s ease;
}

.pointer:hover {
  color: var(--active-text-color);
  text-decoration: underline;
} */

/* ABOUT */

#about {
  /* height: calc(100vh - 80px); */
  position: relative;
  z-index: 5;
  background-color: var(--header-bg);
  display: flex;
}

.about-wrapper {
  text-align: center;
  margin-block: 6rem;
}

.about-wrapper h3 {
  font-family: var(--main-text-family);
  font-size: 3rem;
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.about-wrapper p {
  font-family: var(--secondary-text-family);
  font-size: 1.5rem;
}

/* GALLERY */

#gallery {
  position: relative;
  z-index: 2;
  background-color: var(--header-bg);
}

.gallery-active {
  height: 100vh;
}

.gallery-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 4rem;
}

.gallery-wrapper h2 {
  font-family: var(--main-text-family);
  font-size: 3rem;
  text-align: center;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 2rem;
}

.gallery-container {
  /* position: relative; */
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1rem;
}

.fullscreen-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--main-bg);
  z-index: 15;
}

.fullscreen-container-active {
  display: grid;
  place-content: center;
}

.gallery-container img {
  width: 100%;
  display: block;
}

.fullscreen {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 8;
}

.gallery-btn {
  display: none;
  position: absolute;
  width: 50px;
  height: 50px;
  top: 40px;
  right: 40px;
  z-index: 15;
  border: none;
  background-color: var(--header-bg);
  font-size: 2rem;
  color: var(--secondary-text-color);
  cursor: pointer;
}

.gallery-btn-active {
  display: block;
}

/* TEAMS */

.teams-hero {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  background: linear-gradient(to top, var(--main-bg), var(--header-bg));
  padding-bottom: 4rem;
}

.teams-wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.teams-wrapper h1 {
  font-family: var(--main-text-family);
  text-transform: uppercase;
  font-size: 4rem;
  margin-top: 8rem;
}

.teams-wrapper h2 {
  font-family: var(--secondary-text-family);
  font-size: 1.5rem;
  margin-block: 2rem;
}

.team-card {
  /* width: 350px; */
  height: 500px;
  position: relative;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
  filter: grayscale(1);
  transition: all 0.3s ease;
  color: var(--main-text-color);
  text-shadow: 0px 0px 10px var(--main-bg);
}

.teams-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 1rem;
  overflow: hidden;
}

.team-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.team-card:hover {
  filter: grayscale(0);
  text-shadow: 0px 0px 10px var(--active-text-color);
  color: var(--active-text-color);
}

.team-card p {
  position: absolute;
  width: 100%;
  text-align: center;
  left: 0;
  bottom: 100px;
  font-size: 2rem;
  font-family: var(--main-text-family);
  font-weight: bold;
  text-transform: uppercase;
  color: var(--main-text-color);
}

/* PLAYERS */

#moba,
#fps,
#simrace {
  position: relative;
  z-index: 2;
  /* background-color: var(--main-bg); */
  padding-block: 5rem;
}

#moba {
  background-color: var(--main-bg);
}

#fps {
  background-color: var(--footer-bg);
}

#simrace {
  background-color: var(--teams-bg);
}

.team-img-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  /* margin: 5rem; */
}

.game-logo-container {
  width: 50vw;
}

.game-logo-container img {
  width: 100%;
}

.players-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 2rem;
}

.player-card {
  position: relative;
  z-index: 3;
  height: 400px;
  background-color: var(--header-bg);
  /* margin-top: 1rem; */
  padding: 0.5rem;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* color: var(--secondary-text-color); */
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.player-card:hover {
  background-color: var(--active-text-color);
  /* color: var(--main-text-color); */
}

.player-img-container {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  /* clip-path: polygon(5% 0, 100% 0, 96% 80%, 1% 80%); */
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--main-bg);
  transition: all 0.3s ease;
}

.player-img {
  height: 100%;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.player-img:hover {
  opacity: 0.3;
}

.player-name {
  width: 100%;
  position: absolute;
  z-index: 4;
  text-align: center;
  bottom: 15px;
  left: 0;
  font-size: 2rem;
  font-family: var(--main-text-family);
  color: var(--main-text-color);
  text-shadow: 2px 2px 10px var(--secondary-text-color);
}

.player-data-container {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--main-text-color);
  font-family: var(--secondary-text-family);
  font-weight: bold;
}

#fps .player-role,
#simrace .player-role {
  display: none;
}

/* RESULTS TABLES */

.teams-results {
  width: 100%;
  padding: 2rem;
}

.teams-results h3 {
  font-family: var(--main-text-family);
  font-size: 3rem;
  color: var(--main-text-color);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2rem;
}

.results-table {
  color: var(--main-text-color);
  width: 100%;
  font-family: var(--secondary-text-family);
  border-collapse: collapse;
  border-style: hidden;
}

.results-table td {
  padding: 1rem;
  border: 1px solid var(--main-text-color);
}

.division {
  text-align: center;
}

.tournament,
.table-header {
  letter-spacing: 1px;
}

.table-header,
.division {
  font-weight: bolder;
  font-size: 1.5rem;
}

/* CONTACT */

.contact-hero {
  background-color: var(--header-bg);
  color: var(--secondary-text-color);
  position: relative;
  z-index: 2;
}

.contact-wrapper {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-wrapper img {
  height: 75px;
  width: 75px;
  margin: 2rem;
}

.contact-wrapper h1 {
  font-family: var(--main-text-family);
  text-transform: uppercase;
  font-weight: 300;
  font-size: 3rem;
}

.contact-form-container {
  width: 100%;
}

.contact-form-container form {
  display: flex;
  flex-direction: column;
  width: min(800px, 90%);
  margin-inline: auto;
  gap: 0.5rem;
  font-family: var(--secondary-text-family);
  font-size: 1rem;
}

.contact-name-container {
  width: 100%;
  display: flex;
  gap: 0.5rem;
}

.contact-form-container form input {
  padding: 0.3rem;
  border: 1px solid var(--secondary-text-color);
  transition: all 0.3s ease;
}

.contact-form-container form #firstname,
.contact-form-container form #lastname {
  width: 50%;
}

.contact-form-container form input:focus {
  outline: none;
  border: 1px solid var(--active-text-color);
}

.contact-form-container textarea {
  border: 1px solid var(--secondary-text-color);
  padding: 0.3rem;
}

.contact-form-container textarea:focus {
  outline: none;
  border: 1px solid var(--active-text-color);
}

.contact-form-container textarea::placeholder {
  font-family: var(--secondary-text-family);
}

.contact-btn {
  width: 100%;
  background-color: var(--main-bg);
  border: none;
  color: var(--main-text-color);
  padding: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  font-family: var(--secondary-text-family);
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: var(--active-text-color);
}

/* LOGIN */

.login-hero {
  position: relative;
  z-index: 2;
  height: 100vh;
  width: 100%;
  background: url(assets/img1.webp) no-repeat center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-wrapper {
  padding: 2rem;
  backdrop-filter: blur(15px);
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--main-text-color);
  justify-content: space-between;
  box-shadow: 2px 2px 15px var(--main-bg);
}

.login-wrapper img {
  height: 75px;
  width: 75px;
  display: block;
}

.login-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 2rem;
  gap: 4rem;
}

.login-container h2 {
  font-family: var(--main-text-family);
  font-size: 2rem;
  text-align: center;
  text-transform: uppercase;
}

.login-left,
.login-right {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-container form {
  display: flex;
  flex-direction: column;
}

.login-container label {
  font-family: var(--secondary-text-family);
  font-size: 1rem;
  letter-spacing: 1px;
}

.login-container input {
  width: 100%;
  background-color: transparent;
  margin-block: 0.5rem;
  padding: 0.5rem;
  border: none;
  border-bottom: 1px solid var(--main-text-color);
  color: var(--main-text-color);
}

.login-container input:focus {
  outline: none;
  border-bottom: 1px solid var(--active-text-color);
}

.btn {
  background-color: var(--active-text-color);
  color: var(--main-text-color);
  margin-top: 1rem;
  border: none;
  border-radius: 50px;
  padding: 0.5rem;
  font-family: var(--secondary-text-family);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--main-bg);
}

.login-msg,
.register-msg {
  position: absolute;
  width: 100%;
  left: 0;
  top: 80px;
  background-color: var(--active-text-color);
  color: var(--main-text-color);
  padding: 1rem;
  font-family: var(--secondary-text-family);
  font-size: 1.5rem;
  text-align: center;
  display: none;
}

.msg-active {
  display: block;
}

/* FOOTER */

#gallery,
.login-hero,
#simrace,
.contact-hero {
  box-shadow: 0px 20px 20px var(--main-bg);
}

footer {
  z-index: 1;
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--footer-bg);
}

.footer-container {
  display: flex;
  padding-block: 5rem;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo,
.footer-teams,
.footer-contact,
.footer-subscribe {
  width: 25%;
}

.footer-teams,
.footer-contact {
  display: flex;
  flex-direction: column;
}

.footer-logo img {
  width: 50px;
  height: 50px;
}

.footer-teams h4,
.footer-contact h4,
.footer-subscribe h4 {
  font-family: var(--main-text-family);
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--main-text-color);
}

.footer-logo p,
.footer-teams a,
.footer-contact p,
.footer-contact a {
  font-family: var(--secondary-text-family);
  font-size: 1rem;
  margin-bottom: 0.7rem;
  color: var(--footer-text-color);
  transition: all 0.3s ease;
}

.footer-teams a:hover,
.footer-contact a:hover {
  color: var(--main-text-color);
}

.footer-subscribe-form-container {
  width: 100%;
}

.footer-subscribe input {
  width: 100%;
  height: 2rem;
  padding: 0.3rem;
  border: 3px solid var(--main-bg);
  transition: all 0.3s ease;
}

.footer-subscribe input:focus {
  outline: none;
  border: 3px solid var(--active-text-color);
}

.footer-subscribe button {
  width: 100%;
  height: 2rem;
  border: none;
  background-color: var(--main-bg);
  color: var(--main-text-color);
  font-family: var(--main-text-family);
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-subscribe button:hover {
  background-color: var(--active-text-color);
}

/* MEDIA QUERIES */

/* TABLET */

@media (max-width: 1200px) {
  /* HEADER */

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    padding-left: 5vw;
    border-left: 1px solid var(--main-bg);
  }

  .navitems {
    position: absolute;
    z-index: 3;
    height: 60vh;
    width: 100vw;
    top: 80px;
    left: 120%;
    flex-direction: column;
    align-items: center;
    background-color: var(--header-bg);
    text-transform: uppercase;
    font-family: var(--main-text-family);
    padding-block: 15%;
    box-shadow: 0px 20px 20px var(--main-bg);
  }

  .active {
    left: 0;
  }

  /* GALLERY */

  .gallery-active {
    height: auto;
  }

  .fullscreen {
    position: relative;
  }

  .gallery-btn {
    height: 20px;
    width: 20px;
    font-size: 1rem;
    top: 10px;
    right: 10px;
  }

  .gallery-btn-active {
    display: block;
  }

  /* RESULTS TABLE */

  .division {
    display: none;
  }

  /* LOGIN */

  .login-hero {
    height: auto;
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .login-container {
    flex-direction: column;
  }

  .login-left,
  .login-right {
    width: 100%;
  }

  .login-left h2,
  .login-right h2 {
    margin-bottom: 2rem;
  }

  /* FOOTER */

  footer {
    position: relative;
  }

  .footer-container {
    flex-direction: column;
  }

  .footer-logo,
  .footer-teams,
  .footer-contact,
  .footer-subscribe {
    width: 100%;
  }
}

/* PHONE */

@media (max-width: 700px) {
  /* HEADER */

  .logo-container h2 {
    font-size: 2rem;
    display: flex;
    align-items: center;
  }

  .header-logo {
    height: 1.5rem;
    width: 1.5rem;
  }

  /* HERO */

  .hero-wrapper h1 {
    font-size: 2rem;
    font-weight: bolder;
  }

  .maintitle-logo {
    height: 10rem;
    width: 10rem;
  }

  #about h3 {
    font-size: 1.5rem;
    font-weight: bolder;
  }

  #about p {
    font-size: 1rem;
  }

  .gallery-wrapper h2 {
    font-size: 1.5rem;
    font-weight: bolder;
  }

  /* TEAMS */

  .teams-wrapper h1 {
    font-size: 2rem;
  }

  .teams-wrapper h2 {
    font-size: 1rem;
  }

  /* RESULTS TABLE */

  .teams-results h3 {
    font-size: 2rem;
    padding: none;
  }

  .table-header {
    /* display: none; */
    font-size: 1rem;
    border-bottom: none;
  }

  .results-table {
    font-size: 0.5rem;
  }

  /* CONTACT */

  .contact-wrapper {
    height: auto;
    margin-top: 80px;
    padding-bottom: 2rem;
  }

  .contact-wrapper h1 {
    text-align: center;
  }

  /* LOGIN */

  .login-container {
    padding: 0.5rem;
  }
}

@media (max-height: 700px) and (orientation: landscape) {
  #hero {
    margin-top: 80px;
    padding-top: 2rem;
    height: auto;
  }
}
