html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Arial', sans-serif;
  background-image: url('../images/background2.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  color: #fff;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-layout {
  flex: 1;
  /* grow to fill vertical space */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.sidebar {
  width: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.left .mood-container {
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #ddd;
  border: 1px solid #aaa;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #000;
  width: 0%;
  transition: width 0.5s linear;
}

.pause-overlay {
  position: fixed;
  top: 10;
  left: 0;
  width: 100vw;
  height: 87.5vh;
  background: rgba(20, 20, 20, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 3rem;
  z-index: 999;
}


.game-over {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#game-over button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1.2rem;
}

.topbar {
  background-color: #FFDBE9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px 5px 10px;
}

.bottombar {
  background-color: #FFDBE9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px 5px 10px;
}

.bottombar__credits {
  color: #36434F;
  line-height: 110%;
  text-decoration: none;
}

h1 {
  color: #900000;
  font-size: 36px;
  font-weight: bold;
}


.mood-bar {
  height: 120px;
  width: 30px;
  background: #444;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px auto;
  display: flex;
  flex-direction: column-reverse;
}

#mood-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, red 0%, yellow 50%, limegreen 100%);
  transition: height 0.3s;
}

.mood-face {
  font-size: 24px;
}

.center-screen {
  width: 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.counter {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.ipod-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#ipod {
  width: 200px;
  height: 400px;
}

.btn {
  background-color: #F8C8DC;
  color: #36434F;
  padding: 12px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border: medium outset white;
  cursor: pointer;
  font-weight: bold;
}

.btn:hover {
  background-color: #FFDBE9;
  color: #900000;
  padding: 12px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border: medium outset white;
}

.selected {
  background-color: #900000;
  border: none;
  color: white;
  padding: 12px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border: medium inset white;
  cursor: pointer;
  font-weight: bold;
}

.right {
  width: 20%;
  padding: 10px;
}

.right h3 {
  margin-bottom: 10px;
}

.right button {
  margin-top: 5px;
}

/* Modal shop */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #36434f;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
}

.modal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
}

.hidden {
  display: none;
}



@keyframes charge {
  from {
    width: 0%;
    background: red;
  }

  to {
    width: 100%;
    background: limegreen;
  }
}

/* Shop Sections */
.shop-section {
  margin: 20px 0;
}

.shop-section button {
  display: block;
  margin: 5px auto;
}

.icons {
  display: flex;
  gap: 15px;
  margin-left: auto;
}

.mini-ipod-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.mini-ipod-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}