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

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

a:hover {
  color: black;
}

dialog {
  background-color: black;
  color: white;
  font-size: 1.3rem;
  padding: 10px;

  margin: auto;
  width: 380px;
  height: 400px;
}

dialog[open] {
  display: grid;
}

.container {
  display: grid;
  grid-template-rows: 100px 6fr;
  height: 100vh;
  width: 100vw;
}

header {
  /* position: fixed;
  width: 100%; */
  display: grid;
  position: relative;
  grid-template-columns: 1fr 4fr;
  align-items: center;
  background-color: #e92128;
}

.menu-btn {
  display: none;
  justify-self: end;
  margin-right: 30px;
  background-color: #e92128;
  border: none;
}

.header-links {
  display: flex;
  /* flex-wrap: wrap; */
  gap: 70px;
  justify-content: center;
  align-items: center;
  list-style: none
  ;
}

.header-links > li {
  color: #ffffff;
  font-size: 1.3rem;
}

.header-links > ul {
  list-style: none;
  padding: 0;
}

.social-media-img {
  width: 80px;
}

.link-main {
  display: grid;
}

/* MAIN CONTENT */

.main-content {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 0.5fr 5fr;
  justify-items: center;
  align-items: center;
  background-color: black;
}

.main-content > p {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  color: white;
  font-size: 1.5rem;
}

/* TEAM */
.player-card {
  width: 200px;
  height: 250px;
  background-repeat: no-repeat;
  border: 2px solid red;
  border-radius: 30px;
  background-color: rgb(255, 255, 255);
  background-position: center;
  cursor: pointer;
}

.player-card:hover {
  border: 7px solid red;
}

.player-card-1 {
  background-image: url(/assets/shirts/Alko.jpeg);
}

.player-card-2 {
  background-image: url(/assets/shirts/Eki.jpeg);
}

.player-card-3 {
  background-image: url(/assets/shirts/Maza.jpeg);
}

.player-card-4 {
  background-image: url(/assets/shirts/KebabLokki.jpeg);
}

.player-card-5 {
  background-image: url(/assets/shirts/Sane.jpeg);
}

.player-card-6 {
  background-image: url(/assets/shirts/Suti.jpeg);
}

.player-card-7 {
  background-image: url(/assets/shirts/Vilkki87.jpeg);
}

.player-card-8 {
  background-image: url(/assets/shirts/Mikko.jpg);
  background-size: 200px;
}

.player-card-9 {
  background-image: url(/assets/shirts/kokemus.jpg);
  background-size: 200px;
}


.btn-close-dialog {
  grid-row: 1;
  width: 30px;
  height: 30px;
  margin-left: 5px;
  margin-top: 5px;
  background-color: white;
  cursor: pointer;
  border: 0px;
  outline: none;
  box-shadow: 1px 1px 1px 1px #000000;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-h1 {
  margin-top: 30px;
  margin-bottom: 30px;
  color: white;
  text-align: center;
}

/* STICKY? */
footer {
  background-color: #e92128;
}

.muikut-logo {
  width: 120px;
  align-self: center;
  justify-self: center;
}

@media (max-width: 1600px) {
  .container {
    display: grid;
    grid-template-rows: 70px 6fr;
    /* height: 100vh;
        width: 100vw; */
  }

  a > img {
    width: 80px;
  }

  dialog {
    width: 40%;
  }

  .menu-btn {
    display: block;
    cursor: pointer;
    z-index: 2;
    font-weight: bolder;
    font-size: 25px;
  }

  .menu-img {
    width: 60px;
  }

  .header-links {
    display: none;
    justify-self: end;
    flex-direction: column;
    gap: 2rem;
    background-color: #e92128;
    top: 100%;
    width: 30%;
  }

  .header-links > li {
    font-size: 1.2rem;
  }

  .header-links > li:first-child {
    margin-top: 20px;
  }

  .header-links > li:last-child {
    margin-bottom: 20px;
  }

  .header-links.show {
    display: flex;
    position: absolute;
  }

  .header-links > p {
    color: #ffffff;
    font-size: 1.1rem;
  }

  .muikut-logo {
    width: 100px;
    z-index: 2;
  }

  .main-content {
    grid-template-columns: 1fr;
    grid-template-rows: 0.5fr 5fr;
    justify-items: center;
    align-items: center;
    background-color: black;
  }
}

@media (max-width: 768px) {
  a > img {
    width: 60px;
  }

  .container {
    grid-template-rows: 56px 6fr;
  }

  dialog {
    width: 60%;
  }

  .menu-btn {
    font-size: 20px;
  }

  .menu-img {
    width: 50px;
  }

  .main-content > p {
    font-size: 1rem;
  }

  .players-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .desktop-menu {
    display: none;
  }

  .header-links > li {
    color: #ffffff;
    font-size: 1rem;
  }

  .muikut-logo {
    width: 80px;
  }
}

@media (max-width: 576px) {
  a > img {
    width: 50px;
  }

  dialog {
    width: 80%;
    height: 330px;
  }

  .menu-btn {
    font-size: 20px;
  }

  .menu-img {
    width: 40px;
  }

  h1 {
    font-size: 1.2rem;
  }

  .container {
    grid-template-rows: 45px 6fr;
  }

  .main-content {
    display: initial;
    background-color: black;
  }

  .players-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
  }

  .player-card {
    width: 180px;
    height: 225px;
  }

  .btn-close-dialog {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    background-color: white;
    cursor: pointer;
    border: 0px;
    outline: none;
    box-shadow: 1px 1px 1px 1px #000000;
  }

  .header-links > li {
    color: #ffffff;
    font-size: 0.8rem;
  }

  .muikut-logo {
    width: 60px;
  }
}
