@font-face {
  font-family: "Comic Sans MS";
  src: url("./../src/fonts/COMICSANS.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body,
html {
  font-family: "Comic Sans MS", cursive;
  background-image: url("./../src/img/background.jpg");
  background-color: #111;
  background-size: cover;
  background-position: center bottom;

  /* Zajišťuje, že se pozadí posouvá spolu s obsahem, když se stránka posouvá */
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #efefef;
  font-size: 20px;
}

.btn {
  border: none;
  max-width: 200px;
  text-align: center;
  cursor: pointer;
  padding: 25px 80px;
  margin: 25px auto;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  outline: none;
  position: relative;
  background-color: rgb(38, 38, 38);
  border: solid 1px transparent;
  border-radius: 30px;
  -webkit-font-smoothing: antialiased;
  transition: transform 0.3s ease; /* Přidání přechodové animace na transformaci */
  border: #efefef 2px solid;
}

.btn:hover {
  background-color: rgb(68, 68, 68); /* Změna barvy na hover */
  transform: scale(1.05); /* Zvětšení tlačítka při najetí myší */
}

.btn:active {
  transform: scale(0.95); /* Změna velikosti při stisknutí tlačítka */
}

.nav {
  max-width: 600px;
  margin: auto;
  overflow: hidden;
  padding: 0 20px 0 20px;
  height: 90%;
}

.instructions {
  text-align: center;
  margin-top: 10px;
}

.block-levels {
  border-radius: 10px;
  max-width: 862px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-levels {
  max-width: auto;
  margin: auto;
  overflow: hidden;
  padding: 0 20px 0 20px;
  height: 90%;
}

.btn-levels {
  border: none;
  max-width: 100px;
  width: 100px;
  text-align: center;
  cursor: pointer;
  padding: 25px 25px;
  margin: 8px 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  outline: none;
  position: relative;
  background-color: rgb(38, 38, 38);
  border: solid 1px transparent;
  border-radius: 30px;
  -webkit-font-smoothing: antialiased;
  transition: transform 0.3s ease;
  border: #efefef 2px solid;
}

.btn-levels:hover {
  background-color: rgb(68, 68, 68); /* Změna barvy na hover */
  transform: scale(1.05);
}

.btn-levels:active {
  transform: scale(0.95); /* Změna velikosti při stisknutí tlačítka */
}

.btn-back {
  border: none;
  max-width: 200px;
  text-align: center;
  cursor: pointer;
  padding: 25px 80px;
  margin: 25px auto;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  outline: none;
  position: relative;
  background-color: rgb(38, 38, 38);
  border: solid 1px transparent;
  border-radius: 30px;
  -webkit-font-smoothing: antialiased;
  transition: transform 0.3s ease; /* Přidání přechodové animace na transformaci */
  border: #efefef 2px solid;
}

.btn-back:hover {
  background-color: rgb(68, 68, 68); /* Změna barvy na hover */
  transform: scale(1.05); /* Rotace tlačítka při najetí */
}

.btn-back:active {
  transform: scale(0.95); /* Změna velikosti při stisknutí tlačítka */
}

.dark-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 1);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s;
}

.dark-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.main-title {
  font-family: "Comic Sans MS", cursive;
  font-size: 75px;
  letter-spacing: 3.2px;
  word-spacing: 2px;
  color: #efefef;
  font-weight: 700;
  text-decoration: none;
  font-style: normal;
  font-variant: normal;
  text-transform: none;
  text-align: center;
}

.buttons-text {
  color: #fff;
  text-align: center;
  padding: 25px 80px;
  margin: 25px;
}

/* Grid Container */
.grid-container-3 {
  display: grid;
  max-width: 1000px;
  margin: auto;
  grid-template-columns: repeat(
    3,
    1fr
  ); /* Tři sloupce s rovnoměrným podílem šířky */
  grid-gap: 20px; /* Odsazení mezi sloupci */
}

.grid-container-2 {
  display: grid;
  max-width: 1000px;
  margin: 10px auto 10px auto;
  grid-template-columns: repeat(
    2,
    1fr
  ); /* Tři sloupce s rovnoměrným podílem šířky */
  grid-gap: 20px; /* Odsazení mezi sloupci */
}

.t-left {
  text-align: left;
  margin-left: 50px;
}

.t-right {
  text-align: right;
  margin-right: 50px;
}

/* Příklad použití: */
.grid-item {
  grid-column: span 1; /* Výchozí šířka sloupce - 1/3 grid kontejneru */
}

/* Prázdný sloupec, pokud chcete mít prázdný prostor mezi sloupci */
.empty-column {
  display: none;
}

.settings {
  display: flex;
  justify-content: right;
}

.btn-game-menu {
  border: none;
  max-width: 200px;
  text-align: center;
  cursor: pointer;
  padding: 25px;
  margin: 25px 25px 0px 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  outline: none;
  position: relative;
  background-color: rgb(38, 38, 38);
  border: solid 1px transparent;
  border-radius: 30px;
  -webkit-font-smoothing: antialiased;
  transition: transform 0.3s ease;
  border: #efefef 2px solid;
}

.btn-game-menu:hover {
  background-color: rgb(68, 68, 68); /* Změna barvy na hover */
  transform: scale(1.05); /* Změna barvy na hover */
}

.btn-game-menu:active {
  transform: scale(0.95); /* Změna velikosti při stisknutí tlačítka */
}

.menu-controls {
  max-height: 24px;
  justify-content: center;
  top: 50%;
}

@media all and (min-width: 1024px) and (max-width: 1280px) {
  .main-title {
    font-size: 48px;
  }
}

@media all and (min-width: 768px) and (max-width: 1024px) {
  .main-title {
    font-size: 44px;
  }
}

@media all and (min-width: 480px) and (max-width: 768px) {
  .main-title {
    font-size: 44px;
  }
}

/*Phones*/
@media all and (min-width: 380px) and (max-width: 480px) {
  .main-title {
    font-size: 40px;
  }

  .menu-controls {
    max-height: 20px;
  }

  .btn-game-menu {
    font-size: 18px;
    padding: 10px 16px 10px 16px;
    margin: 10px 10px 10px 10px;
  }

  .buttons-text {
    color: #fff;
    text-align: center;
    padding: 25px 80px;
    margin: 25px;
  }

  .btn {
    font-size: 18px;
  }

  .btn-levels {
    font-size: 18px;
    padding: 16px;
    margin: 8px;
  }

  .btn-back {
    font-size: 18px;
  }

  .t-left {
    font-size: 18px;
    margin-left: 24px;
    text-align: left;
  }

  .t-right {
    font-size: 18px;
    margin-right: 24px;
    text-align: right;
  }

  .score {
    font-size: 18px;
  }
}

/*Ultra small phones*/
@media all and (max-width: 380px) {
  .main-title {
    font-size: 36px;
  }

  .btn-game-menu {
    font-size: 18px;
    padding: 10px 16px 10px 16px;
    margin: 10px 10px 10px 10px;
  }

  .buttons-text {
    color: #fff;
    text-align: center;
    padding: 25px 80px;
    margin: 25px;
  }

  .btn {
    font-size: 18px;
    padding: 25px 40px;
  }

  .btn-levels {
    font-size: 18px;
    padding: 10px;
    margin: 4px;
  }

  .btn-back {
    font-size: 18px;
  }

  .t-left {
    font-size: 18px;
    margin-left: 8px;
    text-align: left;
  }

  .t-right {
    font-size: 18px;
    margin-right: 8px;
    text-align: right;
  }

  .score {
    font-size: 18px;
  }

  .menu-controls {
    max-height: 20px;
  }
}
