::selection {
  background-color: transparent;
}

* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #fafafa;
  transition: background-color 0.3s;
}

h1,
h2 {
  font-family: "DM Mono", monospace;
  font-weight: 500;
}

h3 {
  margin-top: 20px;
  font-family: "DM Mono", monospace;
  font-weight: 300;
}

.hide {
  display: none;
}

/* MENU SCREEN */
.menu {
  position: absolute;
  top: 50vh;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
}

/* SETTINGS SCREEN */
.settings {
  position: absolute;
  top: 50vh;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
}

.settings-buttons {
  width: 100%;
  text-align: center;
}

.settings-buttons a {
  display: inline-block;
  font-size: 30px;
  background-color: transparent;
  border: 2px solid #131313;
  padding: 5px 10px;
  margin: 20px 20px 0 20px;
  transition: background-color 0.1s, color 0.1s;
  text-decoration: none;
  color: #131313;
  font-weight: 300;
  font-family: "DM Mono", monospace;
}

.settings-buttons a:hover {
  background-color: #131313;
  color: #fafafa;
}

/* GAME SCREEN */
.webpet {
  position: absolute;
  display: block;
  width: 100%;
  top: 50vh;
  transform: translateY(-50%);
  font-size: 80px;
  text-align: center;
}

#t-body {
  font-family: "Arial", sans-serif;
  font-size: 70px;
}

#name {
  display: inline-block;
  margin-bottom: 50px;
  color: #fff;
  padding: 5px 10px;
  font-size: 30px;
  background-color: #131313;
  font-family: "DM Mono", monospace;
  font-weight: 500;
}

.buttons,
.menu-buttons {
  width: 100%;
  text-align: center;
}

/* BUTTON STYLES */
.buttons a,
.menu-buttons a,
.settings-buttons a {
  display: inline-block;
  font-size: 40px;
  background-color: transparent;
  border: 2px solid #131313;
  padding: 10px 20px;
  margin: 100px 20px 0 20px;
  transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: #131313;
  font-weight: 300;
  font-family: "DM Mono", monospace;
}

.buttons a:hover,
.menu-buttons a:hover,
.settings-buttons a:hover {
  background-color: #131313;
  color: #fafafa;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Optional: Add active state */
.buttons a:active,
.menu-buttons a:active,
.settings-buttons a:active {
  transform: translateY(-2px);
}

.hp {
  font-family: "DM Mono", monospace;
  font-weight: 300;
  font-size: 30px;
  width: 100%;
  text-align: center;
}

.hp span {
  font-weight: 500;
}

.hp p {
  display: inline;
}

/* Responsive Styles */
@media (max-width: 860px) {
  .hp {
    font-size: 20px;
  }

  .buttons a,
  .menu-buttons a,
  .settings-buttons a {
    font-size: 30px;
    transition: background-color 0.1s, color 0.1s, transform 0.3s;
  }

  #name {
    font-size: 20px;
  }

  #t-body {
    font-size: 50px;
  }
}

@media (max-width: 540px) {
  .hp p {
    font-size: 20px;
    display: block;
  }

  .buttons a,
  .menu-buttons a,
  .settings-buttons a {
    font-size: 20px;
    margin: 20px 5px 0 5px;
    transition: background-color 0.1s, color 0.1s, transform 0.3s;
  }

  #name {
    font-size: 20px;
  }

  #t-body {
    font-size: 30px;
  }

  .webpet {
    top: 120px;
    transform: translateY(0);
  }
}

/* Night Mode */
body.nightmode-on {
  background-color: #111;
  color: #fafafa;
}

body.nightmode-on .settings-buttons a,
body.nightmode-on .buttons a,
body.nightmode-on .menu-buttons a {
  color: #fafafa;
  border: 2px solid #fafafa;
}

body.nightmode-on .settings-buttons a:hover,
body.nightmode-on .buttons a:hover,
body.nightmode-on .menu-buttons a:hover {
  background-color: #fafafa;
  color: #111;
  transform: translateY(-5px);
}

body.nightmode-on #name {
  color: #111;
  background-color: #fafafa;
}

/* Notification */
.notification {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #131313;
  color: #fafafa;
  padding: 15px 30px;
  font-family: "DM Mono", monospace;
  font-size: 20px;
  border-radius: 5px;
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 1000;
}

.notification.show {
  bottom: 30px;
  opacity: 1;
}

/* Pet Appearance Styles */
#t-body span {
  display: inline-block;
  transition: all 0.5s ease;
}

@keyframes colorChange {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

#t-body span.animate {
  animation: colorChange 5s infinite linear, float 3s infinite ease-in-out;
}
