@font-face {
  font-family: 'SLRPIX';
  src: url('../fonts/slr_pix.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'SLRBODY';
  src: url('../fonts/slr_body.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
*, *::before, *::after {
  box-sizing: border-box;
  user-select: none;
}

a, a:focus, a:visited, a:hover {
text-decoration: none;

} 
button {
  background: #362F4F;
  border: none;
  color: #fff;
  border-radius: 8px;
  font-family: 'SLRBODY';
}
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.2); }
}

#double-jump-icon {
  animation: pulse 0.5s infinite;
  position: absolute; 
  bottom: 40%; 
  left: 50%; 
  transform: translateX(-50%); 
  width: 25%; 
  display: none;
  z-index: 10;
}
#rotate {
  width: 100px;
}
#rotate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 2rem;
  z-index: 9999;
  display: none; /* hidden by default */
  pointer-events: all; /* capture all clicks and touches */
}
/*LAPTOP*/
html, body {
  margin: 0;
  padding: 0;
  font-family:'SLRBODY';
  overflow: hidden;
  height: 100%;
}
body.home0 {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  /*background: linear-gradient(#63C8FF 10%, #fff 50%);*/
}
body {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: url('../imgs/sky.gif') no-repeat center top;
  transition: filter 0.5s ease, background 0.5s ease;
  background-size: cover;
}
body.infos {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #000;
  transition: filter 0.5s ease, background 0.5s ease;
  background-size: cover;
}
#contaier {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
}
/*HOME*/
.header {
  z-index: 1;
  text-align: center;
  margin-bottom: 20px;
  position: absolute;
  font-family: 'SLRPIX';
  color: #fff;
}

h1 {
  font-size: 6rem;
  margin: 0;
  text-transform: uppercase;
  font-family: 'SLRPIX';
  color: #fff;
  text-shadow:-5px -5px 0 #000, 5px -5px 0 #000, -5px 5px 0 #000, 8px 8px 0 #000;
}

h2 {
  font-size: 2.2rem;
  font-weight: lighter;
  color: #fff;
  animation: blink 1.5s infinite;
  background: #000;
  width: 300px;
  padding: 10px;
  margin-right: auto;
  margin-left: auto;
}
.home {
  position: absolute;
  z-index: 0;
  overflow: hidden;
  bottom: 0;
  margin: -5px;
  width: 100%;
}
.poutine-home {
  width: 100%;
  height: auto;
  bottom: 0;
  position: relative;
}
/*GAME*/
.world {
  overflow: visible;
  position: absolute;
  bottom: 0px;

}
.bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.score {
  position: absolute;
  font-size: 3rem;
  left: 50%;
  transform: translateX(-50%);
  top: 1vmin;
  font-family: 'SLRPIX';
  color: #fff;
  padding: 10px;
  background: #362F4F;
  border-radius: 8px;
  min-width: 80px;
  text-align: center;
}

.start-screen {
  font-family: 'SLRPIX';
  color: #362F4F;
  position: absolute;
  font-size: 5vmin;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

}
.hide {
  display: none;
}
.ground {
  --left: 0;
  position: absolute;
  width: 300%;
  bottom: 0;
  left: calc(var(--left) * 1%);
  transition: filter 0.1s linear;
}

.dino {
  --bottom: 15;
  position: absolute;
  left: 1%;
  height: 30%;
  bottom: calc(var(--bottom) * 1%);
}

.cactus {
  position: absolute;
  left: calc(var(--left) * 1%);
  height: 15%;
  bottom: 15%;
} 
.apo-mode {
  filter: sepia(1) hue-rotate(-60deg) saturate(8) brightness(0.7);
}
.home-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 24px;
  background: #362F4F;
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 10;
  height: 40px;
}
.menu-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 24px;
  background: #362F4F;
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 10;
  height: 40px;
}
.game-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  background: #362F4F;
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 10;
  height: 40px;
}
.mute-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  background: #362F4F;
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 10;
  height: 40px;
}
.mute-btn:active {
  transform: scale(0.9);
}
/*INFOS*/
#info-container {
  display: flex;
  height: 90vh;
  width: 100%;
  top: 40px;
  position: absolute;
}
#left {
  width: 220px;
  background:none;
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin-top: 30px;
}
.tab-btn {
  background: none;
  border: none;
  color: #bbb;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 5px;
  transition: 0.2s;
}
.tab-btn:hover {
  background: #222;
  color: #fff;
}
.tab-btn.active {
  background: #333;
  color: #fff;
  font-weight: bold;
}
.right {
  flex: 1;
  background: none;
  padding: 20px;
  box-sizing: border-box;
  margin: 50px 50px 50px 0;
  border-radius: 8px;
  border: 4px solid #333;
  color: #fff;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
/*FOOTER*/
.footer {
  z-index: 2;
  font-family: 'SLRPIX';
  color: #fff;
  bottom: 0;
  position: absolute;
  text-align: left;
  width: 100%;
  padding: 5px 15px;
}
/*POPUP*/
#final-score {
  font-size: 28px;
  font-weight: bold;
}
.game-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 400px;
}

.popup-content button {
  margin: 10px;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
}
/*MOBILE*/
@media (max-width: 1200px) {
  #rotate {
    width: 100px;
  }
  #rotate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 2rem;
    z-index: 9999;
    display: none; /* hidden by default */
    pointer-events: all; /* capture all clicks and touches */
  }
  .poutine-home {
    bottom: -80px;
  }
}

