@font-face {
    font-family: 'Komika Axis';
    src: url('KomikaAxis.woff2') format('woff2'),
        url('KomikaAxis.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

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

body {
  font-family: 'Komika Axis', sans-serif;
  font-size: 1.5em;
  margin: 0;
  min-height: 100vh;
  display: flex;
  color: #222222;
  flex-direction: column;
  background: linear-gradient(to bottom, #bfaee0, #a48ecb);
  background-attachment: fixed;
  background-size: cover;
}

main {
  flex-grow: 1;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}

::-webkit-scrollbar-corner {
  background: rgba(255, 255, 255, 0.1);
}

#flower-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

:root {
  font-size: 16px;
}

ul li a i {
	font-size: 2rem; 
}

footer {
  background: transparent;
  color: #222222;
  padding: 20px 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1 1 48%;
  text-align: center;
  border-radius: 8px;
  transition: background-color 0.3s;
  position: relative;
  box-sizing: border-box;
  align-items: center;
}

.footer-container .socials {
  margin-right: 2%;
  padding-bottom: 20px;
  font-size: 30px;
}

.footer-section.socials ul li a .fab {
  font-size: 48px;
  transition: transform 0.3s ease;
}

.footer-section.socials ul li a .fab:hover {
  transform: scale(1.1);
}

.footer-section.socials ul li {
  display: inline-block;
  margin: 0 10px;
}

.footer-container .disclaimer {
  width: 100%;
  text-align: center;
  clear: both;
}

.footer-section .disclaimer a {
  color: #222222;
  font-size: 16px;
  text-decoration: none;
  display: block;
  text-align: center;
}

.footer-section .disclaimer a:hover {
  color: #222222;
  text-decoration: underline;
}

.footer-section .made-by-steph {
    display: block;
    margin-top: 1rem;
    font-size: 1.2rem;
}

.footer-section .made-by-steph .steph {
    font-weight: bold;
}

.footer-section .made-by-steph:hover {
	transform: scale(1.10);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
}

.footer-section ul li {
  margin: 0 10px;
}

.footer-section ul li a {
  color: #222222;
  font-size: 48px;
  transition: color 0.3s;
}

.footer-section ul li img {
  width: 200px;
  height: auto;
}

.footer-section h4 {
  margin-bottom: 10px;
  font-size: 2rem;
  color: #222222;
}

.footer-section a {
  color: #222222;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.footer-section p {
  margin: 10px 0;
  font-size: 18px;
}

.footer-section.offers img {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  height: 70px;
  width: 270px;
  padding: 5px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer-section.offers img:hover {
  transform: scale(1.1);
}

.kick-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  padding: 10px;
  display: none;
}

.kick-widget iframe {
  border-radius: 10px;
}

.kick-widget .close-btn {
  position: absolute;
  top: 5px;
  left: 5px;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.kick-widget .close-btn:hover {
  color: red;
}

.anime-image {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 400px;
  height: auto;
  opacity: 0; /* Initially hidden */
  animation: slideIn 2s forwards, wave 4s infinite ease-in-out;
}

/* Slide-in effect */
@keyframes slideIn {
  0% {
    bottom: -300px; /* Start below the screen */
    opacity: 0;
  }
  100% {
    bottom: -50px; /* End at the bottom of the screen */
    opacity: 1;
  }
}

/* Waving effect */
@keyframes wave {
  0%, 100% {
    transform: rotate(0deg); /* No rotation at the start and end */
  }
  50% {
    transform: rotate(5deg); /* Slight rotation to the right */
  }
}

.leaderboard-container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
  z-index: 1
}

.leaderboard-title {
    position: relative;
    text-align: center;
}

.leaderboard-text {
    position: block;
	color: #fefaff;
    font-size: 3.5rem;
    margin-top: -10px;
    z-index: 1;
    letter-spacing: 1px;
	pointer-events: none;
}

.leaderboard-subtext {
    display: block;
    font-size: 2.5rem;
    color: #fefaff;
    margin-top: 25px;
	margin-bottom: 25px;
    z-index: 1;
    letter-spacing: 1px;
	margin-bottom: 20px;
	pointer-events: none;
}

.leaderboard-undertext {
    display: block;
    font-size: 1rem;
    color: #fefaff;
    margin-top: 25px;
	margin-bottom: 25px;
    z-index: 1;
    letter-spacing: 1px;
	margin-bottom: 20px;
	pointer-events: none;
}

.coin-title {
  width: 2.5rem;
  height: 2.5rem;
  margin-left: 15px;
  vertical-align: middle;
}

.logo-title {
  width: auto;
  height: 48px;
  margin-left: 15px;
  margin-right: 15px;
  vertical-align: middle;
}

.leaderboard-box {
  background: transparent;
  width: 900px;
  height: auto;
  font-size: 3rem;
  padding: 20px;
  color: #4a3f5a;
  text-align: center;
  position: relative;
  text-align: center;
  position: relative;
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    gap: 1rem;
}

.tab-link {
    text-decoration: none;
    padding: 0.5rem 1rem;
	background: #9a7fcc;
    cursor: pointer;
    text-align: center;
    color: #fefaff;
	font-size: 24px;
    transition: background-color 0.3s ease;
	border: 2px solid #8565b5;
	border-radius: 12px;
	width: 250px;
    max-width: 250px;
}

.tab-link:hover {
    transform: scale(1.10);
    transform-origin: center;
}

.date-container {
  display: none;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-family: 'Komika Axis', sans-serif;
  color: #fefaff;
  font-size: 2.5rem;
  letter-spacing: 1px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
}

.countdown-box {
  background: #9a7fcc;
  font-family: 'Komika Axis', sans-serif;
  color: #fefaff;
  padding: 10px;
  font-size: 2rem;
  text-align: center;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  transition: transform 0.2s ease, background-color 0.2s ease;
  border: 2px solid #8565b5;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

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

.countdown-box p {
  font-size: 1rem;
  margin: 0;
  color: #222222;
  z-index: 20;
}

.countdown-box span {
  display: block;
  font-size: 2rem;
}

.countdown-container {
  text-align: center;
  margin: 30px;
}

.countdown-timer {
  font-size: 3rem;
  letter-spacing: 2px;
}

.countdown-labels {
  font-size: 18px;
  color: #222222;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.countdown-labels span {
  margin: 0 10px;
}

.leaderboard {
  display: none;
  text-align: left;
}

.leaderboard.active {
  display: block;
}

.leaderboard-header {
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  padding: 10px;
  text-align: left;
  font-size: 20px;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #4a3f5a;
}

.leaderboard-header .header {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  left: 5px;
  position: absolute;
  color: #4a3f5a;
}

.leaderboard-header .position {
  left: 30px;
  position: absolute;
  margin-bottom: 2px;
  color: #4a3f5a;
}


.leaderboard-header .name {
  left: 220px;
  position: absolute;
  margin-bottom: 2px;
  color: #4a3f5a;
}

.leaderboard-header .wagered {
  left: 470px;
  position: absolute;
  margin-bottom: 2px;
  color: #4a3f5a;
}

.leaderboard-header .prize {
  left: 800px;
  position: absolute;
  margin-bottom: 2px;
  color: #4a3f5a;
}

.leaderboard-row {
    font-family: 'Komika Axis';
    display: flex;
    padding: 20px;
	height: 70px;
    margin-bottom: 10px;
    background-color: #a48ecb;
	border-radius: 24px;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease, background-color 0.3s ease, margin-bottom 0.3s ease;
	position: relative;
}

.leaderboard-row:hover {
	background-color: #bfaee0;
    transform: scale(1.05);
    transform-origin: center;
}

.leaderboard-row .position {
}

.avatar-container {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.avatar-image {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

@keyframes fall {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 0.8;
  }
  100% {
    transform: translateY(50px) translateX(var(--randomX));
    opacity: 0;
  }
}

.position, .name, .wagered, .prize {
  position: absolute;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-size: 16px;
  color: #fefaff;
  text-shadow: 0 0 4px #bfaee0, 0 0 8px #9a7fcc;
}

.position {
  left: 20px;
  text-align: left;
}

.avatar-image {
  position: relative;
  left: 100px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.name {
  left: 200px;
  text-align: left;
}

.wagered {
  left: 450px;
  text-align: left;
}

.prize {
  left: 750px;
  text-align: left;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  color: #fefaff;
}

.coin-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.mobile-header {
	display: none;
}

@media (max-width: 768px) {
  body {
	font-family: 'Komika Axis';
    font-size: 1em;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .anime-image {
	display: none;
  }
  
  .tab-link {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    color: #222222;
    border-radius: 5px;
	font-size: 14px;
    transition: background-color 0.3s ease;
	width: 100%;
   }
   
  .leaderboard-title {
    font-size: 2rem;
    margin: 20px 0;
  }
  
  .leaderboard-image {
	max-height: 100px;
	width: 100%;
   }
  
  .leaderboard-text {
	font-size: 1rem;
  }
  
  .leaderboard-box {
    width: 95%;
    height: auto;
    font-size: 0.7rem;
    text-align: center;
    position: relative;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 1rem;
  }
  
  .coin-icon {
	display: none;
  }
  
  .countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-family: 'Komika Axis', sans-serif;
    color: #222222;
    font-size: 2.5rem;
    letter-spacing: 1px;
  }
  
  .date-row {
	align-items: center;
	width: 100%;
  }

  .countdown-box {
	font-size: 1rem;
    width: 50px;
    height: 50px;
  }

  .footer {
    width: 100%;
    padding: 1rem;
    color: #222222;
    text-align: center;
    position: relative;
    box-sizing: border-box;
  }
  
  .footer-section.offers ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-content: center;
  }

  .footer-section.offers ul li {
    margin: 0;
    text-align: center;
  }

  .footer-section.offers ul li img {
    width: 100%;
    max-width: 200px;
    height: auto;
  }
  
  .responsive-links li.desktop {
	display: none;
  }

  .responsive-links li.mobile {
	display: block;
  }

  .leaderboard-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }
 
  .leaderboard-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .position, .name, .wagered, .prize {
  font-size: 12px;
  }
  
  .avatar-image {
    width: 40px;
    height: 40px;
  }

  .header .leaderboard-title {
   display: none;
  }

  .header .title-text {
    display: none;
  }

  .header .logo {
    display: block;
    max-width: 100%;
    margin: 0 auto;
  }

  .logo-container {
    text-align: center;
    margin-bottom: 20px;
  }

  .main-logo {
    max-width: 60%;
    height: auto;
  }
  .gambleaware-logo {
    width: 120px;
  }
}

@media (min-width: 769px) {
  .responsive-links li.mobile {
	display: none;
  }
}