/* Reset and general styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto Mono', monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-image: url("20150618-večerka 3.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Container */
.container {
  width: 80%;
  max-width: 800px;
  text-align: center;
  position: relative;
  margin-top: 100px;
}

/* Header (speech bubble) */
.header {
  width: 60%;
  background-image: url('bubble.png');
  background-repeat: no-repeat;
  background-size: cover;
  height: 260px;
  position: absolute;
  top: -20%;
  right: 21%;
}

/* Main content (Anička) */
.main-content {
  width: 90%;
  height: 600px;
  margin: 10px auto;
  overflow: visible; /* allow Anička to move outside her box */
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-content img.anicka {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Buttons */
.buttons {
  justify-content: space-around;
  margin-top: 20px;
  background-color: #000000a9;
  color: white;
  height: 110px;
  position: absolute;
  top: 85%;
  width: 100%;
  border-radius: 8px;
}

.button {
  flex: 1;
  margin: 5px 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

.button:hover {
  color: rgb(247, 190, 67);
}

/* Hover text arrow */
.hover-text {
  font-size: 18px;
  color: #ffffffe1;
  position: relative;
  cursor: pointer;
  transition: color 0.3s ease;
  padding-left: 20px;
}

/* Make the entire choice clickable and color changes on hover */
.button .hover-text {
  font-size: 18px;
  color: #ffffffe1;
  position: relative;
  cursor: pointer;
  transition: color 0.3s ease;
  padding-left: 20px; /* space for arrow */
}

/* Hover effect: text turns yellow */
.button:hover .hover-text {
  color: #ffc342;
}

/* Arrow only on hover */
.button:hover .hover-text::before {
  content: "➤ ";
  position: absolute;
  left: -20px;
  color: #ffc342;
  transition: left 0.3s ease;
}
/* Scene change: outside view */
body.outside {
  background-image: url("09a5.jpeg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Angry Anička smaller and moved */
.small-anicka {
  transform: translate(-480px, 200px) scale(0.65);
  opacity: 1;
}

body.outside .header {
  top: 10%;
  right: 80%;
}

/* Dialog */
.dialog {
  margin: 38px;
  font-size: larger;
  line-height: 28px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .container {
    width: 90%;
  }

  .header {
    width: 70%;
    height: 220px;
    top: -15%;
    right: 10%;
  }

  .main-content {
    height: 500px;
  }

  .hover-text {
    font-size: 16px;
  }

  .buttons {
    height: 90px;
    top: 80%;
  }
}

@media (max-width: 768px) {
  .header {
    width: 80%;
    height: 180px;
    top: -10%;
    right: 5%;
  }

  .main-content {
    height: 400px;
  }

  .buttons {
    flex-direction: column;
    height: auto;
    top: 75%;
  }

  .button {
    margin: 5px 0;
  }

  .hover-text {
    font-size: 14px;
    padding-left: 15px;
  }
}

@media (max-width: 480px) {
  .header {
    width: 90%;
    height: 150px;
    top: -5%;
    right: 0;
  }

  .main-content {
    height: 300px;
  }

  .buttons {
    top: 70%;
    padding: 5px;
  }

  .hover-text {
    font-size: 12px;
  }
}
