@font-face {
  font-family: "Fredericka the Great";
  src: url("./assets/fonts/FrederickatheGreat-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

* {
  font-family: "Fredericka the Great", cursive !important;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  margin: 0;
  height: 100vh;
  cursor: url("./assets/img/6_salsa_bottle/salsa_bottle_cursor.png") 10 5, auto;
}

canvas {
  display: block !important;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-in;
  z-index: 15;
  position: relative;
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#background.blur {
  filter: blur(6px);
  transition: filter 0.5s ease;
}

.startScreen,
.playScreen,
.endScreen {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.startScreen.active,
.playScreen.active,
.endScreen.active {
  display: flex;
}

.rotate-device-overlay {
  display: none;
  position: fixed;
  z-index: 100;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.rotate-device-overlay .rotate-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 18px;
 
}

.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

footer {
  width: 100%;
  background-color: brown;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  align-content: center;
  font-family: Verdana, Tahoma, sans-serif;
  pointer-events: auto;
  z-index: 20;
}

.footerText {
  color: white;
  font-size: 16px;
  text-align: center;
  position: relative;
  z-index: 21;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footerText a {
  color: #fefefe;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  z-index: 22;
}

.footerText a:hover {
  color: gold;
  text-decoration: underline;
  cursor: pointer;
}

footer img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

footer img:hover {
  transform: scale(0.9);
  filter: drop-shadow(0px 0px 5px gold);
}