body {
  font-family: Arial;
  background-image: url("images/forest.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
}

main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  margin-top: 40px;
}

header {
  display: inline-block;
  background-color: rgba(255,255,255,0.9);
  padding: 5px 20px;
  border-radius: 15px;
  border: 2px solid #333;
  margin-bottom: 10px;
}

.title-box {
  display: block;
  background-color: rgba(255,255,255,0.9);
  padding: 20px 40px;
  border-radius: 20px;
  border: 2px solid #333;
  margin-bottom: 20px;
}

.title-box, header {
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#flash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-color: transparent;
  pointer-events: none;

  z-index: 999;
}

/* INTRO SCREEN */
#intro-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
}

#pet-name-input {
  padding: 10px;
  font-size: 16px;
  margin-bottom: 15px;
}

#start-game {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

/* PET IMAGE */
.pet-image {
  height: 250px;
  display: block;
  transition: transform 0.3s;
}

.pet-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* DASHBOARD */
.dashboard {
  flex: 1;
  text-align: left;
  background-color: rgba(255,255,255,0.85);
  padding: 20px;
  border-radius: 15px;
}

/* BUTTONS */
.button-container button {
  margin: 5px;
  padding: 10px;
  background-color: #1e2835;
  color: white;
  border: none;
  cursor: pointer;
  position: relative;
}

.button-container button:hover {
  background-color: #3a4a63;
}

.buttons {
  display: flex;
  gap: 10px;
}

#pet-message {
  width: 100%;
  margin-top: 10px;

  display: none;
  padding: 10px;
  background-color: rgba(255,255,255,0.85);
  border-radius: 10px;

  font-size: 16px;
}

/* BARS */
.bar {
  width: 200px;
  height: 20px;
  background-color: #ddd;
  margin: 5px 0 15px ; /* pushes bars to the right */
  border-radius: 10px;
  overflow: hidden;
}

#health-bar {
  height: 100%;
  width: 50%;
  background-color: green;
}

#happiness-bar {
  height: 100%;
  width: 50%;
  background-color: yellow;
}

#hunger-bar {
  height: 100%;
  width: 100%;
  background-color: blue;
}

/* PET ANIMATION STATES */
.pet-image {
  transition: transform 0.25s ease, filter 0.25s ease;
}