/*
  1. Use a more-intuitive box-sizing model.
*/
@import url(https://fonts.googleapis.com/css?family=Nunito:regular,600,700,800&display=swap);
*,
*::before,
*::after {
  box-sizing: border-box;
}

/*
    2. Remove default margin
  */
* {
  margin: 10;
}

/*
    Typographic tweaks!
    3. Add accessible line-height
    4. Improve text rendering
  */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/*
    5. Improve media defaults
  */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/*
    6. Remove built-in form typography styles
  */
input,
button,
textarea,
select {
  font: inherit;
}

/*
    7. Avoid text overflows
  */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

a {
  color: #1d1d1d;
  text-decoration: none;
}

/*
    8. Create a root stacking context
  */
#root,
#__next {
  isolation: isolate;
}

html,
body {
  font-family: "Nunito", sans-serif;
  height: 100%;
  color: #1d1d1d;
  background-color: rgb(246, 244, 252);
}

body.lock {
  overflow: hidden;
}

h1 {
  font-size: 36px;
  margin: 20px 0;
  text-align: center;
}

h2 {
  font-size: 30px;
  margin: 20px 0;
}

h3 {
  font-size: 25px;
  margin: 20px 0;
}

p {
  font-size: 18px;
  font-weight: 350;
}

table {
  border-collapse: collapse;
  margin: 15px 0;
  width: 100%;
}
table th {
  background-color: #9ae65b;
}
table th,
table td {
  border: 1px solid #333;
  padding: 15px;
}

.casino-name {
  font-weight: bold; /* Делает текст жирным */
}

.games {
  white-space: nowrap; /* Запрещает перенос текста */
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 90vw;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

.main {
  min-height: 100vh;
  flex: 1 1 auto;
  padding-top: 30px;
}

.main img {
  border-radius: 10px; /* Скругляет углы изображения на 10px */
}

.header {
  background-color: #fff;
  position: sticky;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 99;
  padding: 10px 0;
}
.header__body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 75px;
}
.header .logo {
  flex: 0 0 15%;
}

.main .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  width: 160px;
  background-color: #62da20;
  border-radius: 30px;
  text-decoration: none;
  color: #1d1d1d;
  font-weight: 700;
  padding: 10px 0;
}
.main .btn:hover {
  background-color: #82ec49;
}
.main .content {
  padding: 30px 0;
}
.main .title {
  font-size: 24px;
  font-weight: 700;
}
.main__cards {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.main__card {
  display: grid;
  grid-template-columns: auto 1fr 2fr auto;
  gap: 15px;
  padding: 20px;
  border-radius: 10px;
  background-color: #fff;
}
.main .before-title::before {
  display: block;
  height: 1.1em;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  overflow: hidden;
  white-space: pre;
  opacity: 0.3;
}
.main .grid__img a {
  display: flex;
  width: auto;
  height: 126px;
  width: 180px;
  aspect-ratio: 180/125;
  background: #18006f;
  border-radius: 10px;
  overflow: hidden;
  justify-content: center;
}
.main .grid__img a img {
  -o-object-fit: contain;
  object-fit: contain;
  height: 100%;
}
.main .grid__title {
  font-size: 22px;
  font-weight: 700;
}
.main .grid__title::before {
  content: "Play at";
}
.main .grid__content ul {
  padding: 0;
}
.main .grid__content .grid__title::before {
  content: "WELCOME BONUS";
}
.main .grid__content__payment {
  margin-top: 20px;
}
.main .grid__content__payment img {
  max-width: 50px;
  padding-top: 5px;
}
.main .grid__content__payment::before {
  content: "PAYMENT METHODS";
}
.main .grid__button {
  padding-top: 1.1em;
}
.main .small__cards {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 50px;
}
.main .small__cards__card {
  background-color: #fff;
  padding: 15px;
  font-weight: 700;
  border-radius: 10px;
}
.main .small__cards__card:hover {
  box-shadow: 1px 4px 4px 0 rgba(2, 5, 60, 0.25);
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 50px 16px;
  background-color: #fff;
}
.footer__text {
  text-align: center;
}
.footer__icons {
  display: flex;
  align-items: center;
  flex-direction: column;
}
.footer__icons img:last-child {
  max-width: 40px;
}

@media (max-width: 1199px) {
  .grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .grid__title {
    display: none;
  }
}
@media (max-width: 768px) {
  .header .logo {
    flex: 0 0 35%;
  }
  .main .grid {
    display: flex;
    flex-direction: column;
  }
  .main .grid__img a {
    width: 100%;
    height: auto;
  }
  .main .grid__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .main .grid__content__payment {
    display: flex;
    flex-direction: column;
    width: 80%;
  }
  .main .grid__content__payment .icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .main .grid__button {
    margin: 0 auto;
    padding-top: 0.5em;
  }
  .main .small__cards {
    flex-direction: column;
    text-align: center;
  }
  .footer {
    padding: 30px 16px;
  }
}
