/* Global Styles */

@font-face {
  font-family: 'Luckiest';
  src: url('../assets/LilitaOne-Regular.ttf')
}

:root {
  --primary-color: #3498db; /* Replace with your primary color */
  --secondary-color: #2ecc71; /* Replace with your secondary color */
  --accent-color: #EB4F42; /* Replace with your accent color */
  --card-color: rgba(236, 236, 236, 0.95);
}

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

#mute-button {
  position: fixed;
  bottom: 80px;
  right: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--card-color);
  border: none;
  color: black;
  font-size: 14px;
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#overlay {
  z-index: 1;
  position: absolute;
  width: 100%;
  height: 100%;
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

#overlay-mid {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#overlay-bottom {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 70px;
}

#tokens-container {
  position: relative;
  z-index: 99;
}

#runner-me-text {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 30px;
  max-height: 30px;
}

#runner-me-text-main-screen {
  position: absolute;
  bottom: 480px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 30px;
  max-height: 30px;
}

#bitcoin-eyes-gif {
  position: absolute;
  bottom: 330px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 120px;
  max-height: 120px;
}

.overlay-top-container {
  display: flex;
  padding: 8px;
  pointer-events: auto;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  align-items: flex-start;
  margin-top: 10px;
}

.stats-column {
  display: flex;
  flex-direction: column;
  width: calc(33.333% - 8px);
  margin: 0;
  padding: 0;
}

.middle-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(33.333% - 8px);
  margin: 0 25px;
  padding: 0;
}

.social-container {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-icon {
  width: 25px;
  height: 25px;
  margin: 0 5px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.social-icon i {
  font-size: 25px; /* Adjust icon size */
  z-index: 999;
}


.stat-item {
  background: var(--card-color);
  border-radius: 10px;
  padding: 4px 6px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 40px;
}


.stat-label {
  font-size: 16px;
  color: black;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Luckiest', sans-serif;
  line-height: 1;
  margin-bottom: 2px;
}

.stat-label i {
  font-size: 14px;
  color: black;
}

.stat-value-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
  background-color: var(--secondary-color);
  color: black;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Luckiest', sans-serif;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  min-width: 30px;
}

.points-item {
  flex: 1;
  color: white;
  background: linear-gradient(135deg, 
    var(--secondary-color) 0%,
    var(--primary-color) 100%
  );
  padding: 5px;
  border-radius: 10px;
  min-width: 0;
  text-align: center;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.points-item .stat-label {
  margin: 0;
  display: flex;
  align-items: center;
}

.points-item .stat-label i {
  font-size: 14px;
  color: white;
  margin: 0;
}

.points-value-container {
  font-size: 14px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Luckiest', sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin: 0;
}


#connect, #use, #shop, #play, #practice, #lock, #skin-prev, #skin-next {
    pointer-events: auto;
}

#score {
  color: white;
  font-size: 50px;
  margin-top: 90px;
  text-align: center;
  display: none;
}

.game-over-container {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: center;    /* Center items horizontally */
}  

.game-over {
  font-family: Luckiest;
  text-align: center;
  width: 100%;
  color: var(--accent-color);
  font-size: 50px;
  padding: 20px;
}

.award-text {
  font-family: Luckiest;
  width: 100%;
  text-align: center;
  font-size: 30px;
  color: white;
}

.flappy-text {
  font-family: Luckiest;
  font-size: 32px;
  color: black;
  text-align: center;
}

.hidden {
  display: none;
}

.btn {
  background-color: var(--primary-color);
  height: 60px;
  font-size: 40px;
  border-radius: 10px;
  border: none;
  padding: 10px;
  color: white;
  cursor: pointer;
}

.btn[disabled] {
  background-color: grey;
  cursor: not-allowed;
}

.flex {
  display: flex;
}

#buttons {
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.button-narrow {
  width: 171px;
  height: 76px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 10px;
  background-color: var(--card-color);
  border-radius: 15px;
}

.button-narrow.disabled {
  opacity: 0.7;
  background-color: #cccccc;
  cursor: pointer; /* Keep it clickable */
}

.button-narrow.disabled .flappy-text {
  color: #666666;
}

/* Optional: Add hover effect to indicate it's still clickable */
.button-narrow.disabled:hover {
  background-color: #bbbbbb;
}

.play-icon {
  width: 21px;
  height: 34px;
  background-image: url(../assets/play.svg);
}

.button-wide {
  width: 267px;
  /* background-image: url(../assets/button-wide.svg); */
  background-color: var(--card-color);
  border-radius: 15px;
}
.flex-column {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.align-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.pointer {
  cursor: pointer;
}

.box-shadow {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

#season-high-score-container, #runs-left-container {
    display: none;
    position: absolute;
    top: 16px;
    background-color: var(--card-color);
    font-family: Luckiest;
    padding: 12px 8px;
    border-radius: 10px;
    align-items: center;
}

#season-high-score-container {
    left: 8px;
}

#runs-left-container {
    right: 8px;
}

/* Tooltip styles for main screen elements */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px;
    background-color: var(--card-color);
    color: black;
    border-radius: 15px;
    font-size: 14px;
    font-family: 'Luckiest', sans-serif;
    line-height: 1.5;
    white-space: normal;
    max-width: 280px;
    width: max-content;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    pointer-events: none;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-tooltip]:hover::after,
[data-tooltip]:active::after {
    visibility: visible;
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    [data-tooltip]::after {
        max-width: 240px;
        padding: 12px;
        font-size: 13px;
    }
}

/* Add dynamic background colors for runs-left */
.runs-left-red {
    background-color: rgba(255, 59, 48, 0.88) !important;
}

.runs-left-orange {
    background-color: rgba(255, 149, 0, 0.88) !important;
}

.runs-left-yellow {
    background-color: rgba(255, 204, 0, 0.88) !important;
}

.runs-left-green {
    background-color: var(--secondary-color);
}

/* Help button styling */
#help-button {
  position: fixed;
  bottom: 80px;
  left: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--card-color);
  border: none;
  color: black;
  font-size: 14px;
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Welcome card styling */
#welcome-card, #help-card {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 85%;
  height: 70%;
  transform: translate(-50%, -50%);
  background-color: rgba(236, 236, 236);
  border-radius: 15px;
  padding: 0; /* Remove padding as we'll handle it in content */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  font-family: 'Luckiest', sans-serif;
  overflow: hidden;
}

.welcome-banner {
  background-color: var(--secondary-color);
  padding: 12px;
  text-align: center;
  font-size: 1.8em;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  margin-bottom: 5px;
}

.welcome-content {
  font-size: 14px;
  line-height: 1.5;
  color: black;
  padding: 20px;
  text-align: center;
  max-height: calc(100% - 100px);
  overflow-y: auto;
}

.welcome-section {
  margin-bottom: 20px;
  text-align: center;
}

.welcome-section:last-child {
  margin-bottom: 0;
}

.welcome-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.welcome-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.welcome-link i {
  color: var(--primary-color);
  font-size: 16px;
}

.welcome-link a {
  color: var(--primary-color);
  text-decoration: none;
}

.welcome-link a:hover {
  text-decoration: underline;
}

.welcome-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.welcome-close:hover {
  opacity: 0.8;
}

#streak-card {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 85%;
    height: auto;
    font-size: 20px;
    transform: translate(-50%, -50%);
    background-color: rgba(236, 236, 236);
    border-radius: 15px;
    padding: 0 0 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-family: 'Luckiest', sans-serif;
    overflow: hidden;
}

#streak-card .welcome-content {
    padding: 20px;
    font-size: 18px;
    text-align: center;
}

#claim-streak {
    margin-top: 20px;
    background-color: var(--secondary-color);
}

#claim-streak:hover {
    background-color: var(--primary-color);
}
