/* 
 * Main styles for uliki-tainy theme
 * Version: 1.0.0
 */

html {
  scroll-behavior: smooth;
}

iframe {
  border: none;
  width: 100%;
  height: 90vh;
}
.fullscreen-active {
  height: 100vh;
}

.game-wrapper {
  position: relative;
  margin-top: 0;
}

.close {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  display: none;
  cursor: pointer;
}

/* Стили для блока Cover с фоновым изображением */
.wp-block-cover {
  align-items: start;
  border-radius: 0;
}

.site-header .wp-block-cover__inner-container {
    padding: 0;
}

.wp-block-cover__inner-container {
  padding: 60px 20px;
}

/* Затемнение фона */
.wp-block-cover__background {
  opacity: 0.6;
}

/* Заголовок поста в Cover блоке */
.wp-block-cover .wp-block-post-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

/* Контент поста */
.wp-block-post-content {
  margin-top: 40px;
  line-height: 1.8;
}

.wp-block-post-content > * + * {
  margin-top: 1.5em;
}

/* Изображение поста */
.wp-block-post-featured-image img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}

/* Метаданные поста */
.wp-block-post-author,
.wp-block-post-date,
.wp-block-post-terms {
  font-size: 14px;
  opacity: 0.9;
}

/* Термины (категории, теги) */
.wp-block-post-terms a {
  text-decoration: none;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  transition: background 0.3s;
}

.wp-block-post-terms a:hover {
  background: rgba(0, 0, 0, 0.2);
}

.site-name p {
    margin: 0;
}

.rmp-widgets-container {
  margin: 0;
}

.rmp-rating-widget {
    display: flex;
    gap: 3px;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-direction: row;
}

.rmp-widgets-container.rmp-wp-plugin.rmp-main-container .rmp-rating-widget__icons,
.rmp-widgets-container.rmp-wp-plugin.rmp-main-container .rmp-rating-widget__results,
.rmp-widgets-container.rmp-wp-plugin.rmp-main-container {
    margin: 0;
}

.step-card {
  position: relative;
}

.step-num {
    position: absolute;
    right: 0;
    top: 0;
    line-height: 0;
}

.leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin-top: 2rem;
}

.leaderboard-table tr {
  background: var(--wp--preset--color--primary);
  border-radius: 10px;
}

.leaderboard-table thead tr {
  background: var(--wp--preset--color--dark);
  border-radius: 0;
}

.leaderboard-table td:first-child {
  border-radius: 10px 0 0 10px;
}

.leaderboard-table td:last-child {
  border-radius: 0 10px 10px 0;
}

.leaderboard-table td {
    padding: 14px 16px;
    font-size: .95rem;
    text-align: center;
}

.wpcf7-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wpcf7-form p {
  margin: 0;
}

.wpcf7-form input,
.wpcf7-form textarea {
  color: white;
  font-size: medium;
  border-radius: 8px;
  padding: 14px;
  border: none;
  background-color: var(--wp--preset--color--primary);
  width: 257px;
}

:focus-visible {
    outline: var(--wp--preset--color-dark) auto 1px;
}

input[type="submit"] {
  width: 100%;
  cursor: pointer;
}

.footer-years {
  display: flex;
  gap: 4px;
}

@media (min-width: 768px) {
  .wpcf7-form input,
  .wpcf7-form textarea {
    width: 700px;
  }

  input[type="submit"] {
    width: 157px;
    cursor: pointer;
  }

}

@media (min-width: 1024px) {

}
