
/* Null */
* {
	padding: 0px;
	margin: 0px;
	border: none;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Links */

a, a:link, a:visited  {
    text-decoration: none;
}

a:hover  {
    text-decoration: none;
}

/* Common */

aside, nav, footer, header, section, main {
	display: block;
}

h1, h2, h3, h4, h5, h6, p {
    font-size: inherit;
	font-weight: inherit;
}

ul, ul li {
	list-style: none;
}

img {
	vertical-align: top;
}

img, svg {
	max-width: 100%;
	height: auto;
}

address {
  font-style: normal;
}

/* Form */

input, textarea, button, select {
	font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
}

input::-ms-clear {
	display: none;
}

button, input[type="submit"] {
    display: inline-block;
    box-shadow: none;
    background-color: transparent;
    background: none;
    cursor: pointer;
}

input:focus, input:active,
button:focus, button:active {
    outline: none;
}

button::-moz-focus-inner {
	padding: 0;
	border: 0;
}

label {
	cursor: pointer;
}

legend {
	display: block;
}

:root {
  --primary-color: #012F60; /* main color */
  --secondary-color: #000; /* secondary colors */
  --additional-color: #2A9D8F; /* for additional porposes */
  --accent-color: #398AC9; /* for accents*/
  --body-color: #fff; /* Dark gray for the background */
  --font-body: "Noto sans", sans-serif; /* Modern, geometric sans-serif font */
  --font-headings: "Arial", sans-serif; /* Bold, impactful sans-serif font */
  --heading-color: #012F60; /* For headers */
  --text-color: #000; /* For text */
  --text-color-second: #fff; /* For text */
  --footer-header-bg: #fff; /* For footer headers */
  --footer-header-text: #000; /* For footer header text */
}
body {
  background-color: var(--body-color);
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--body-color);
}

h1, h2, h3, h4 {
  font-family: var(--font-headings);
  color: var(--heading-color);
}

/* Hero Section */
.hero {
  background-color: var(--primary-color);
  color: var(--text-color-second);
  padding: 80px 0;
}

.hero .wrapper {
  display: flex;
  align-items: center ;
  gap: 30px;
  justify-content: space-between;
}

.hero-content {
  max-width: 600px;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--text-color-second);
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
}
.rummy-sec {
  padding: 50px 0;
}

.type-card img {
  width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: var(--body-color);
}

.features h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 30px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Gameplay Section */
.gameplay {
  padding: 80px 0;
  background-color: var(--accent-color);
  color: var(--text-color-second);
}

.gameplay-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.gameplay-text h2 {
  color: var(--text-color-second);
  margin-bottom: 30px;
}

.gameplay-image img {
  width: 100%;
  border-radius: 10px;
}

/* Tournament Section */
.tournaments {
  padding: 80px 0;
  background-color: var(--body-color);
}

.tournament-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.tournament-info ul {
  margin: 20px 0;
  padding-left: 20px;
}

.tournament-image img {
  width: 100%;
  border-radius: 10px;
}

/* Learning Section */
.learning {
  padding: 80px 0;
  background-color: var(--additional-color);
  color: var(--text-color-second);
}

.learning h2 {
  color: var(--text-color-second);
  
}

.learning h4 {
  color: var(--text-color-second);
  font-weight: 600;
  
}

.learning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.learning-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.learning-image img {
  width: 100%;
  border-radius: 10px;
}

/* Buttons */
.cta-button, .secondary-button, .tournament-button, .learn-button {
  display: inline-block;
  padding: 15px 30px;
  margin: 30px auto;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta-button {
  background-color: var(--additional-color);
  color: var(--text-color-second);
}

.secondary-button {
  background-color: var(--text-color-second);
  color: var(--accent-color);
}

.tournament-button {
  background-color: var(--accent-color);
  color: var(--text-color-second);
}

.learn-button {
  background-color: var(--text-color-second);
  color: var(--additional-color);
}

/* Responsive Design */
@media (max-width: 968px) {
  .gameplay-content,
  .tournament-grid,
  .learning-grid {
      grid-template-columns: 1fr;
  }
  
  .hero h1 {
      font-size: 2.5rem;
  }
  
  .features-grid {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  section {
      padding: 40px 0;
  }
  
  .hero-content {
      text-align: center;
  }
  
  .feature-card {
      padding: 20px;
  }
  .hero .wrapper {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero h1 {
      font-size: 2rem;
  }
  
  .hero-subtitle {
      font-size: 1rem;
  }
  
  .features h2 {
      font-size: 2rem;
  }
}


.slider-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden; /* Скрываем переполнение */
  padding: 20px 0;

}

.slider-head {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%; /* Ограничиваем ширину слайдера */
}

.slide {
  flex: 0 0 50%; /* Каждый слайд занимает 50% ширины контейнера */
  box-sizing: border-box;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 15px;
  object-fit: cover;
  border: 3px solid var(--accent-color);
}

.slide p {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
  padding: 10px;
  border: 3px solid var(--accent-color);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
  z-index: 10;
}

.slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

@media (max-width: 768px) {
  .slide {
    flex: 0 0 100%; /* На мобильных устройствах показываем один слайд */
  }

  .slider-btn {
    padding: 8px;
    font-size: 16px;
  }
}

.slide-location {
  margin: 10px 0;
  font-size: 12px;

}


.slide-name {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 2rem;
}
.slider-header {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--heading-color);
}
.reviews {
  padding: 80px 0;
}

/* Start */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* About Rummy Section */
.about-rummy {
  padding: 80px 0;
  background-color: var(--body-color);
}

.about-rummy h3 {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
}

.about-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  margin-bottom: 60px;
}

.lead-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--accent-color);
  margin-bottom: 30px;
}

.about-details p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.rummy-types {
  margin-top: 60px;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.type-card {
  background: var(--primary-color);
  color: var(--text-color-second);
  padding: 30px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.type-card:hover {
  transform: translateY(-5px);
}

.type-card h4 {
  color: var(--text-color-second);
  margin-bottom: 15px;
}

/* How to Play Section */
.how-to-play {
  padding: 80px 0;
  background-color: var(--accent-color);
  color: var(--text-color-second);
}

.how-to-play h2 {
  text-align: center;
  color: var(--text-color-second);
  margin-bottom: 50px;
}

.rules-grid {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.rules-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.rule-block {
  margin-bottom: 30px;
}

.rule-block h4 {
  color: var(--text-color-second);
  margin-bottom: 15px;
}

.combination-list {
  list-style-type: none;
  padding-left: 20px;
  margin: 20px 0;
}

.combination-list li {
  margin-bottom: 15px;
  position: relative;
}

.combination-list li:before {
  content: "•";
  color: var(--additional-color);
  font-weight: bold;
  position: absolute;
  left: -20px;
}

.strategy-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.advanced-strategy {
  background-color: var(--primary-color);
  padding: 40px;
  border-radius: 15px;
}

.advanced-strategy h3 {
  color: var(--text-color-second);
  text-align: center;
  font-weight: 600;
  font-size: 1.25rem;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.strategy-item {
  padding: 20px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 10px;
}

.strategy-item h4 {
  color: var(--text-color-second);
  margin-bottom: 15px;
}

.strategy-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--additional-color);
  color: var(--text-color-second);
  text-decoration: none;
  border-radius: 5px;
  margin-top: 30px;
  transition: background-color 0.3s ease;
}

.strategy-button:hover {
  background-color: var(--accent-color);
}
.rules-text h3 {
  color: var(--text-color-second);
  font-weight: 600;
  margin-bottom: 10px;
}
.rules-text p {

  margin-bottom: 20px;
}


/* Responsive Adjustments */
@media (max-width: 968px) {
  .about-content,
  .rules-content {
      grid-template-columns: 1fr;
  }
  
  .about-image {
      order: -1;
  }
  
  .types-grid {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .about-rummy,
  .how-to-play {
      padding: 40px 0;
  }
  
  .strategy-grid {
      grid-template-columns: 1fr;
  }
  
  .advanced-strategy {
      padding: 20px;
  }
}

@media (max-width: 480px) {
  .lead-text {
      font-size: 1.1rem;
  }
  
  .type-card {
      padding: 20px;
  }
}

/* Rating System Section */
.rating-system {
  padding: 80px 0;
  background-color: var(--body-color);
}

.rating-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.rating-lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--accent-color);
  margin-bottom: 40px;
}

.rating-levels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.level {
  background: var(--primary-color);
  color: var(--text-color-second);
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.level:hover {
  transform: translateY(-5px);
}

.level h3 {
  color: var(--text-color-second);
  margin-bottom: 10px;
}

.level p {
  font-weight: bold;
  margin-bottom: 10px;
}

.level-description {
  font-size: 0.9rem;
  opacity: 0.9;
}

.rating-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.feature {
  background: var(--accent-color);
  color: var(--text-color-second);
  padding: 20px;
  border-radius: 10px;
}

.feature h4 {
  color: var(--text-color-second);
  margin-bottom: 10px;
}

.rating-visual img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Leaderboard Section */
.leaderboard {
  padding: 80px 0;
  background-color: var(--accent-color);
  color: var(--text-color-second);
}

.leaderboard h2 {
  text-align: center;
  color: var(--text-color-second);
  margin-bottom: 20px;
}

.leaderboard-description {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.leaderboard-table {
  background: var(--body-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.table-header {
  display: grid;
  grid-template-columns: 0.5fr 2fr 1fr 1fr 1fr;
  padding: 20px;
  background: var(--primary-color);
  color: var(--text-color-second);
  font-weight: bold;
}

.table-row {
  display: grid;
  grid-template-columns: 0.5fr 2fr 1fr 1fr 1fr;
  padding: 20px;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  color: var(--text-color);
}

.table-row:last-child {
  border-bottom: none;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.rank-1, .rank-2, .rank-3 {
  font-weight: bold;
}

.rank-1 {
  color: var(--additional-color);
}

/* Responsive Adjustments */
@media (max-width: 968px) {
  .rating-content {
      grid-template-columns: 1fr;
  }
  
  .rating-visual {
      order: -1;
  }
  
  .rating-levels,
  .rating-features {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .table-header,
  .table-row {
      grid-template-columns: 0.5fr 1.5fr 1fr 1fr 1fr;
      font-size: 0.9rem;
      padding: 15px;
  }
  
  .header-updated,
  .update-time {
      display: none;
  }
}

@media (max-width: 480px) {
  .header-games,
  .games-played {
      display: none;
  }
  
  .table-header,
  .table-row {
      grid-template-columns: 0.5fr 2fr 1fr;
  }
}

/* Questions Section */
.questions {
  padding: 80px 0;
  background-color: var(--body-color);
}

.questions-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.questions-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--accent-color);
  margin-bottom: 40px;
}

.questions-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.questions-feature {
  background: var(--primary-color);
  color: var(--text-color-second);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
}

.feature-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
}

.questions-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.contact-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--additional-color);
  color: var(--text-color-second);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: var(--accent-color);
}

/* FAQ Section */
.faq {
  padding: 80px 0;
  background-color: var(--accent-color);
  color: var(--text-color-second);
}

.faq h2 {
  text-align: center;
  color: var(--text-color-second);
  margin-bottom: 20px;
}

.faq-description {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 15px;
  background: var(--body-color);
  border-radius: 10px;
  overflow: hidden;
}

.accordion-toggle {
  display: none;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--primary-color);
  color: var(--text-color-second);
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background-color: var(--text-color-second);
  transition: transform 0.3s ease;
}

.accordion-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.accordion-icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.accordion-content {
  max-height: 0;
  padding: 0 20px;
  color: var(--text-color);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-toggle:checked + .accordion-header .accordion-icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.accordion-toggle:checked + .accordion-header + .accordion-content {
  max-height: 500px;
  padding: 20px;
}

/* Responsive Adjustments */
@media (max-width: 968px) {
  .questions-content {
      grid-template-columns: 1fr;
  }
  
  .questions-image {
      order: -1;
  }
}

@media (max-width: 768px) {
  .questions-features {
      grid-template-columns: 1fr;
  }
  
  .accordion-header {
      padding: 15px;
      font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .questions,
  .faq {
      padding: 40px 0;
  }
  
  .questions-lead {
      font-size: 1rem;
  }
}

.contact-form {
  padding: 80px 0;
  background-color: var(--body-color);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-container h2 {
  text-align: center;
  color: var(--heading-color);
  margin-bottom: 15px;
}

.form-description {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 25px;
}

.input-container {
  position: relative;
}

.input-container input,
.input-container textarea {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  color: var(--text-color);
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
}

.input-container textarea {
  min-height: 120px;
  resize: vertical;
}

.input-container label {
  position: absolute;
  left: 0;
  top: 10px;
  color: #999;
  font-size: 16px;
  transition: all 0.3s ease;
  pointer-events: none;
}

.input-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: #ddd;
}

.input-underline::after {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.input-container input:focus ~ label,
.input-container input:valid ~ label,
.input-container textarea:focus ~ label,
.input-container textarea:valid ~ label {
  top: -20px;
  font-size: 14px;
  color: var(--accent-color);
}

.input-container input:focus ~ .input-underline::after,
.input-container textarea:focus ~ .input-underline::after {
  transform: scaleX(1);
}

.checkbox-group {
  margin: 30px 0;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkbox-label {
  font-size: 14px;
  color: var(--text-color);
}

.privacy-link {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.privacy-link:hover {
  color: var(--primary-color);
}

.submit-button {
  width: 100%;
  padding: 15px;
  background-color: var(--accent-color);
  color: var(--text-color-second);
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: var(--primary-color);
}

/* Form Validation Styles */
.input-container input:invalid,
.input-container textarea:invalid {
  box-shadow: none;
}

.input-container input:focus:invalid,
.input-container textarea:focus:invalid {
  border-color: #ff3860;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .contact-form {
      padding: 40px 0;
  }

  .form-container {
      padding: 30px 20px;
      margin: 0 20px;
  }
}

@media (max-width: 480px) {
  .form-container {
      padding: 20px 15px;
  }

  .input-container input,
  .input-container textarea,
  .input-container label {
      font-size: 14px;
  }

  .checkbox-label {
      font-size: 13px;
  }

  .submit-button {
      padding: 12px;
      font-size: 14px;
  }
}

.features-icon {
  width: 100px !important;
  height: 100px !important;
  display: block;
  margin: 60px auto !important;
}

.rummy-variants {
  padding: 80px 0;
  background-color: var(--body-color);
}

.rummy-variants h2 {
  text-align: center;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.variants-description {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
  color: var(--accent-color);
}

.tabs-container {
  max-width: 1200px;
  margin: 0 auto;
}

.tabs {
  width: 100%;
  position: relative;
}

.tabs input[type="radio"] {
  display: none;
}

.tabs ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 30px;
}

.tabs ul li {
  flex: 1;
  text-align: center;
}

.tabs ul li label {
  display: block;
  padding: 15px;
  color: var(--text-color);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tabs ul li label:hover {
  color: var(--accent-color);
}

.tabs .content {
  margin-top: 30px;
}

.tabs .content section {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.tab-text h3 {
  color: var(--heading-color);
  margin-bottom: 20px;
}

.tab-text p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.tab-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Tab Selection States */
#tab1:checked ~ ul li:nth-child(1) label,
#tab2:checked ~ ul li:nth-child(2) label,
#tab3:checked ~ ul li:nth-child(3) label,
#tab4:checked ~ ul li:nth-child(4) label,
#tab5:checked ~ ul li:nth-child(5) label {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
}

#tab1:checked ~ .content section:nth-child(1),
#tab2:checked ~ .content section:nth-child(2),
#tab3:checked ~ .content section:nth-child(3),
#tab4:checked ~ .content section:nth-child(4),
#tab5:checked ~ .content section:nth-child(5) {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 968px) {
  .tab-content {
      grid-template-columns: 1fr;
      gap: 30px;
  }

  .tab-image {
      order: -1;
  }
}

@media (max-width: 768px) {
  .tabs ul {
      flex-direction: column;
      border-bottom: none;
  }

  .tabs ul li {
      border-bottom: 1px solid rgba(0,0,0,0.1);
  }

  .tabs ul li label {
      padding: 10px;
  }
}

@media (max-width: 480px) {
  .rummy-variants {
      padding: 40px 0;
  }

  .tab-text h3 {
      font-size: 1.5rem;
  }

  .tab-text p {
      font-size: 0.9rem;
  }
}

.cta-button,
.strategy-button,
.tournament-button,
.learn-button,
.secondary-button {
  display: block;
  margin: 30px auto;
  padding: 15px 20px;

  max-width: 220px;
  text-align: center;
}


/* Footer */
.footer {
  background-color: var(--footer-header-bg);
  padding: 20px 0;
}

.footer__copy {
  text-align: center;
  margin-top: 20px;
  color: var(--footer-header-text);
}

.footer__title {
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--footer-header-text);
}

.footer__content {
  display: flex;
  justify-content: space-between;
}

.footer__element {
  color: var(--footer-header-text);
  width: auto;
  transition: all 0.2s ease-in;
}

.footer__element:hover {
  color: var(--primary-color);
  font-size: 1.2em;
}

.footer__element + .footer__element {
  margin-top: 10px;
}

.footer__column {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  min-width: 200px;
}

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

.footer__begamble {
  width: 200px;
  height: auto;
  margin: 20px 0;
}

.footer__age {
  width: 50px;
  height: auto;
}

@media (max-width: 700px) {
  .footer__content {
    flex-direction: column;
    align-items: center !important;
    gap: 15px;
  }

  .footer__column {
    align-items: center !important;
  }
}

/* Header */

.header {
  background-color: var(--footer-header-bg);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
}

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

.header__logo-text {
  margin-left: 10px;
  color: var(--footer-header-text);
  font-size: 1.5em;
  font-weight: 700;
}

.nav {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--footer-header-bg);
  width: 100%;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}

.nav.nav--active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav__link {
  color: var(--footer-header-text);
  transition: all 0.2s ease-in;
  border-radius: 5px;
  padding: 5px;
}

.nav__link:hover {
  cursor: pointer;
  font-size: 1.1em;
  color: var(--primary-color);
}

.nav__item {
  list-style: none;
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger__line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--footer-header-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.burger--active .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.burger--active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.burger--active .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .burger {
    display: none;
  }

  .nav {
    display: flex;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    width: auto;
    padding: 0;
    box-shadow: none;
  }

  .nav__list {
    flex-direction: row;
    gap: 30px;
  }

  .nav__item {
    list-style: none;
  }
}

html, body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 10px 0;
  flex-shrink: 0; 
}

main {
  flex: 1; 
  padding-top: 60px; 
}

footer {
  flex-shrink: 0;
  padding: 10px;
  text-align: center;
}

.term h2 {
  margin-bottom: 10px;
}

.term h1{
  margin: 30px 0;
}

.term p {
  margin-bottom: 30px;
}

.disclaimer h5 {
  font-weight: 600;
}

.disclaimer p {
  margin-top: 10px;
}

.disclaimer {
  border-bottom: 1px solid #e6e6e6;
  border-top: 1px solid #e6e6e6;
  color: var(--footer-header-text);
  margin-bottom: 10px;
  padding: 10px 0;
}

.mobile-first {
  display: none;
}

@media (max-width: 550px) {
  .mobile-first {
    position: relative;
    z-index: 1001;
    background: var(--footer-header-bg);
    color: var(--footer-header-text);
    margin-top: -60px;
    display: flex;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 50px 20px;
  }

  .mobile-first__logo {
    width: 250px;
    height: auto;

  }
  .mobile-first__brandname {
    font-weight: 600;
    font-family: var(--font-headings);
    font-size: 3rem;
  }

  .mobile-first__subtitle {
    font-size: 2rem;
    text-align: center;
    font-weight: 600;
  }
  
  .mobile-first__link {
    text-transform: uppercase;
    color: var(--text-color-second);
    background: var(--additional-color);
    padding: 20px 60px;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.5s ease;
    animation: pulse 1s infinite ease;
    border: 5px solid #fff;
}
.mobile-first__link:hover {
    transform: scale(1.05);
    animation: none;
    background: var(--primary-color);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

}

