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

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Russo One', sans-serif;
  font-weight: 400;
  background-image: url('images/background-pattern.png');
  background-position: center;
  background-size: cover;
  /*color: #f1f3f5;*/
  /*color: #dee2e6;*/
  color: #ced4da;
  line-height: 1.5;
}

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

.container {
  /*margin-bottom: 2rem;*/
  flex: 1;
  max-width: 900px;
  margin: 0 auto;      /* center horizontally */
  padding: 0.5rem 2rem 1.5rem;  /* less top padding */
}

.logo-header {
  text-align: center;
  padding: 1rem;
}

.logo {
  height: 70px;
  width: auto;
}

.block {
  /*margin: 0rem 0;*/
  /*margin-bottom: 2rem;*/
  font-size: 1.25rem; /* 20px if base = 16px */
  line-height: 1.5;   /* makes text more readable */
}

.lastblock {
  margin-bottom: 2.5rem;
  font-size: 1.25rem;
  line-height: 1.5;
}

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #02b8c0, transparent);
  margin: 1.25rem 0;
}

.btn {
  display: inline-block;
  margin: 1rem 0.5rem;
  padding: 1rem 2rem;
  background: #1f1f1f;
  color: #f1f3f5;
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid #444;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #0088cc;
  border-color: #0088cc;
  transform: translateY(-5px);
}

.telegram {
  background: #61a8de;
  border-color: #61a8de;
  display: block;
  text-align: center;
  margin: 1rem auto; /* auto = centered horizontally */
  width: 55%
  /*width: fit-content; /* keeps the button only as wide as its text */
}

.telegram:hover {
  background: #0077b5;
  border-color: #0077b5;
}

.back {
  margin-top: 2rem;
}

footer {
  position: fixed;
  bottom: 0;
  left: 50%;                 /* start from middle */
  transform: translateX(-50%); /* center it */
  width: 900px;              /* same as max-width of .container */
  max-width: 90%;            /* responsive on smaller screens */
  text-align: center;
  padding: 1rem;
  background: #1c1c1c;
  font-size: 0.9rem;
  z-index: 1000;
  border-radius: 8px 8px 0 0; /* optional: rounded top corners */
}

.text-link {
  /*color: #c0eb75;*/
  /*color: #f1f3f5;          /* match normal text color */
  /*color: #dee2e6;*/
  color: #ced4da;
  text-decoration: none;  /* looks like a text link */
  display: block;             /* makes it act like a block */
  text-align: center;         /* centers the text inside */
  margin: 1rem auto;          /* centers the block itself */
}

.article h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.article p {
  margin-bottom: 1.5rem;
}

.green-text {
  /*color: #c0eb75;*/
  color: #87d146;
  /*color: #b2e16d;*/
}

.red-text {
  color: #ff6b6b;
}

/*.inscription {
  margin-top: 0.3rem;
  font-size: 1rem;
  color: #aaa;         /* softer gray
  text-align: center;
  letter-spacing: 1px; /* spaced letters for style
}*/

.footer-link {
  /*color: #f1f3f5;        /* same color as footer text */
  /*color: #dee2e6;*/
  color: #ced4da;
  text-decoration: none; /* remove underline */
  font-weight: bold;     /* make it stand out */
}

.footer-link:hover {
  color: #0088cc;        /* highlight on hover */
  text-decoration: underline;
  transition: 1s;
}

h2 {
  font-size: 1.25rem;
}

h1 {
  text-align: center;
}

.centered {
  text-align: center;
  font-size: 1.25rem;
}

@media (max-width: 900px) {
  .btn {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    width: auto;
    max-width: 90%;
    font-size: 1rem; /* slightly smaller for phones */
  }
  .lastblock {
    margin-bottom: 3.2rem;
    font-size: 1.25rem;
    line-height: 1.5;
  }
  footer {
    max-width: 100%;
  }
  .text-link {
    margin-bottom: 3.4rem;
  }
}
