@import url("https://fonts.googleapis.com/css?family=Rubik:500,400,800");

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-image: url("/hc/theming_assets/01KHXFPSBSA6Q80T1MM7MGXX3K");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 120rem 30rem;
  background-attachment: scroll;
  font-family: "Rubik", system-ui, sans-serif;
  color: #242424;
}

main {
  padding: 0rem 1rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

#landing_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  flex-shrink: 0;
}

/* Кнопка языка*/

.language-selector {
  position: relative;
}

.language-selector .dropdown-toggle {
  background: none;
  border: none;
  font-size: 14px;
  color: #1f1f1f;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.language-selector .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  min-width: 140px;
  padding: 6px 0;
  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity .15s ease, transform .15s ease;
}

.dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-selector .dropdown-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: #1f1f1f;
  text-decoration: none;
}

.language-selector .dropdown-menu a:hover {
  background: #f3f3f3;
}

#landing_header {
		display: flex;
  	flex-direction: row;
  	justify-content: space-between;
  	align-items: center;
}

.footer-language-selector {
  margin-right: 3rem;
  margin-top: 0;
  width: fit-content;
}

.navbar-brand img {
  height: 70px;
  width: auto;
  display: block;
}

#brand {
  width: fit-content;
}

#footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 3rem;
  
  color: grey;
  font-size: 14px !important;
}

a {
    color: grey !important;
}

#links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end; /* прижимаем вправо */
  gap: 12px; /* вместо margin */
  flex: 1;
}

#links a {
  white-space: nowrap;
}

#links a:last-child {
  margin-right: 0;
}

.text-center {
  	text-align: center;
    align-self: center;
  	margin-bottom: 2rem;
  	margin-top: 0;
    font-family: "Rubik", Helvetica;
    color: rgb(36, 36, 36);
    font-weight: 500;
    font-size: 17px;
    letter-spacing: 0.8px;
    
    white-space: normal;
    word-break: break-word;
}

#card-container {
  margin: 0 !important;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  gap: 24px;
  justify-content: center;
  justify-items: stretch;
}

#card-container > [class*="col-"] {
  padding: 0 !important;
  max-width: none !important;
  flex: none !important;
  width: 100%;
}

.game-card {
    display: flex;
    position: relative;
    border-radius: 4%;
    overflow: hidden;
    width: 100%;
    transition: transform 0.5s cubic-bezier(.25,.8,.25,1);
}
.game-card:hover {
    cursor: pointer;
    transform: scale(1.08);
}

.game-image {
    width: 100%;
    display: block;
}

.gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 4%;
    height: 30%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(25, 19, 66, 0) 0%,
        rgba(25, 19, 66, 1) 100%
    );
}

.game-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
  color: #ffffff;
}

.game-text h3 {
  font-weight: 800 !important;
  font-size: 28px !important;
  margin-bottom: 0rem;
}

.online-shooter {
  margin-top: 0px;
  opacity: 0.5;
  font-size: 14px;
  letter-spacing: 0.6px;
  font-weight: 300;
}

@media (max-width: 576px) {
  main {
    padding: 2rem 0.8rem 5rem;
  }

  h1 {
    margin-bottom: 2.5rem;
  }

  .game-text {
    font-size: 2.1rem;
    bottom: 3rem;
  }
  .game-card { max-width: 420px; }
}

/* ===== Mobile / small screens ===== */
@media (min-width: 450px) and (max-width: 576px) {
  .game-card { max-width: 420px; }
  .text-center {
    font-size: 1.25rem;
    line-height: 1.4;
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  #footer #links {
    align-items: center;
  }
}

@media (max-width: 576px) {
  #footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 1.5rem;
  }
  
  #landing_header {
    padding-left: 1rem;
    padding-right: 0rem;
  }

  #links {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
  }

  #links a {
    display: inline-block;
  }

}

#card-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
 
@media (min-width: 768px) and (max-width: 1199px) {
  #card-container {
    grid-template-columns: repeat(2, 320px);
    justify-content: center;
  }

  #card-container > [class*="col-"]:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: 320px;
  }
}

@media (max-width: 576px) {
  .logo img {
    width: 240px;
    transform: scaleX(1.3);
  }
}

@media (min-width: 1200px) {
  main.container {
    max-width: 1300px !important;
  }
}

@media (min-width: 1200px) {
  #card-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .game-card {
    max-width: none;
  }
}

@media (min-width: 1024px) {
  body {
    background-attachment: fixed;
  }
}

body {
  display: flex;
  flex-direction: column;
}

#footer {
  margin-top: auto;
}

header {
  flex-shrink: 0;
}

main {
  flex: 1 0 auto;
}

.skip-navigation {
  align-items: center;
  background-color: black;
  color: white;
  display: flex;
  font-size: 14px;
  justify-content: center;
  left: -999px;
  margin: 20px;
  padding: 20px;
  overflow: hidden;
  position: absolute;
  top: auto;
  z-index: -999;
}

[dir="rtl"] .skip-navigation {
  left: initial;
  right: -999px;
}

.skip-navigation:focus, .skip-navigation:active {
  left: auto;
  overflow: auto;
  text-align: center;
  text-decoration: none;
  top: auto;
  z-index: 999;
}

[dir="rtl"] .skip-navigation:focus, [dir="rtl"] .skip-navigation:active {
  left: initial;
  right: auto;
}