@import url('google-fonts.css');

@font-face {
    font-family: 'Heavitas';
    src: url('../fonts/Heavitas.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto Regular';
    src: url('../fonts/Roboto-Regular.ttf') format('truetype');
    font-display: swap;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #990000, #cc0000);
    border-radius: 10px;
    border: 2px solid #1a1a1a;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #cc0000, #ff0000);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #ff0000, #ff3333);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #990000 #1a1a1a;
}

.history {
    width: 250px;
    height: 100px;
    background-color: rgba(223, 88, 88, 0.7);
    border: solid white 1px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 9px;
}

.history img {
    max-width: 90px;
    max-height: 50px;
    height: auto;
}

.history p {
    font-family: Arial, Helvetica, sans-serif;
    margin: 10px 0 0 0;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

#history-holder{
  position: relative;
}

.guessesCount{
    position: absolute;
    text-align: center;
    top:0;
    right: 5px;
    padding: 0;
}

.guessesCount img{
  width: 35px;
  height: auto;
}

.guessesCount p{
  font-size: 15px;
  margin-top: -10px;
}

@keyframes shake-history {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

.shake-history-animation {
    animation: shake-history 0.5s ease;
}

@keyframes zoomInOut-history {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.zoom-history-animation {
    animation: zoomInOut-history 0.5s ease;
}

.third-guess-streak-toast {
    position: fixed;
    top: 18px;
    left: 50%;
    width: min(360px, calc(100vw - 32px));
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(22, 22, 24, 0.96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(153, 0, 0, 0.35);
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
    transform: translate(-50%, -140%);
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
    transition: transform 350ms ease, opacity 350ms ease;
}

.third-guess-streak-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.third-guess-streak-toast-title {
    margin-bottom: 4px;
    color: #ff5b5b;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

.third-guess-streak-toast-text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.people-count-number {
    position: relative;
    top: 0.08em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    vertical-align: baseline;
}

.people-count-roller {
    gap: 0.02em;
    font-variant-numeric: tabular-nums;
}

.people-count-digit-wrapper {
    display: inline-block;
    width: 0.62em;
    height: 1em;
    overflow: hidden;
}

.people-count-digit-reel {
    display: flex;
    flex-direction: column;
    transition: transform 500ms cubic-bezier(0.2, 0.75, 0.25, 1);
    will-change: transform;
}

.people-count-digit-reel.no-transition {
    transition: none;
}

.people-count-digit-item {
    display: block;
    height: 1em;
    line-height: 1;
    text-align: center;
}

.snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1rem;
    animation: fall linear infinite;
    opacity: 0.8;
    user-select: none;
    pointer-events: none;
}

@keyframes fall {
    0% {
        transform: translateY(-10px);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0.1;
    }
}

#gw {
  background: url('https://i.ytimg.com/vi/_lsEERSC0Go/maxresdefault.jpg') center/cover no-repeat;
  position: relative;
  padding: 20px 60px;
  max-width: 500px;
  margin: 40px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.75);
  text-align: center;
  z-index: 1;
}

#gw::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  z-index: 0;
  border-radius: 10px;
}

#gw p {
  position: relative;
  font-family: 'Creepster', cursive;
  color: #ff2a2a;
  font-size: 30px;
  margin-bottom: 24px;
  z-index: 1;
  text-shadow: 2px 2px 6px black;
  letter-spacing: 1px;
}

#gw button {
  position: relative;
  background-color: #990000;
  color: white;
  border: none;
  padding: 10px 26px;
  font-size: 16px;
  font-weight: bold;
  font-family: 'Arial Black', sans-serif;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1;
  box-shadow: 0 0 8px #ff1a1a;
  transition: all 0.25s ease;
}

#gw button:hover {
  background-color: #e60000;
  box-shadow: 0 0 18px #ff1a1a, 0 0 28px #ff1a1a;
  transform: scale(1.04);
}

a, button, * {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

#mobileBackBtn {
    position: fixed;
    top: 14px;
    left: 14px;
    width: 50px;
    height: 42px;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    z-index: 9999;
  }

  #mobileBackBtn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
  }

  #mobileBackBtn:active {
    transform: scale(0.95);
  }

  .logo img{
    width: 400px;
    margin-top: 20px;
    height: auto;
    transition: 0.25s;
}

@media (max-width: 768px) {
    #mobileBackBtn {
      display: flex;
    }
    .logo img{
      width: 300px;
    }
  }

#app-store-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  margin: 30px 0 -20px 0;
  flex-wrap: wrap;
}

#app-store-links a {
  transition: transform 0.2s ease;
  display: inline-block;
}

#app-store-links a:hover {
  transform: scale(1.05);
}

body.native-app.keyboard-open #app-banner,
body.native-app.keyboard-open #android-app-banner,
body.native-app.keyboard-open #desktop-app-banner,
body.native-app.keyboard-open #app-store-links {
  display: none !important;
}

body.native-app.keyboard-open #pp-div {
  margin-bottom: 8px;
}

.header-buttons .google-auto-placed,
.header-buttons .adsbygoogle,
.header-buttons .adsbygoogle-noablate,
.header-buttons .prosper-slot-anchor,
.header-buttons [id^="aswift_"],
.header-buttons [id*="google_ads"],
.header-buttons iframe[src*="googlesyndication"],
.header-buttons iframe[src*="doubleclick"],
#howToPlayBtn .google-auto-placed,
#howToPlayBtn .adsbygoogle,
#howToPlayBtn .adsbygoogle-noablate,
#howToPlayBtn .prosper-slot-anchor,
#howToPlayBtn [id^="aswift_"],
#howToPlayBtn [id*="google_ads"],
#howToPlayBtn iframe[src*="googlesyndication"],
#howToPlayBtn iframe[src*="doubleclick"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.store-badge {
  height: 50px;
  width: auto;
}

@media (max-width: 500px) {
  .store-badge {
    height: 40px;
  }
  
  #app-store-links {
    gap: 3px;
    margin: 20px 0 0 0;
  }
}
