/* body {
  position: relative;
  background-image: url("images/background.svg");
  background-size: cover;
  background-color: rgb(9, 53, 38);
}
h1 {
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
}

.container {
  position: absolute;
  left: 50%;
  bottom: -70%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  display: flex;

  justify-content: center;
  align-items: center;
  width: 45%;

  background-color: #fff;
  margin: 0 auto;
  padding: 20px;
  border-radius: 15px;
}

main {
  display: flex;
  flex-direction: column-reverse;
  width: 90%;
  margin: 0 auto;
  overflow-y: scroll;
  margin-bottom: 20px;
  height: 25vh;
}

.story-img-container {
  display: flex;
  width: 25%;
  height: 450px;
  background-color: rgba(9, 53, 38, 0.705);
  padding: 25px;
  border-radius: 15px;
  margin: 0 auto;
}
.story-img {
  opacity: 0;
  transition: opacity 2s ease-in-out;
  width: auto;
  border-radius: 15px;
}

#story-text {
  font-family: "Courier New", monospace;
  font-size: 20px;
  white-space: pre-line;
}

.button {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #4caf50;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

#start-button {
  border: none;
  border-radius: 5px;
  background-color: #4caf50;
  color: white;
  font-size: 16px;
  padding: 10px 20px;
  width: 10%;
  align-self: center;
}

.modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}
.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0px 0px 10px #666;
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
} */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  background-image: url("images/background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-color: rgb(9, 53, 38);
}

h1 {
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
}

.container {
  position: absolute;
  left: 50%;
  top: 50vh;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45%;
  background-color: #fff;
  margin: 0 auto;
  padding: 20px;
  border-radius: 15px;
}

main {
  display: flex;
  flex-direction: column-reverse;
  width: 90%;
  margin: 0 auto;
  overflow-y: scroll;
  margin-bottom: 20px;
  height: 25vh;
}

.story-img-container {
  display: flex;
  width: 30%;
  height: 30vh;
  background-color: rgba(9, 53, 38, 0.705);
  padding: 25px;
  border-radius: 15px;
  margin: 0 auto;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

.story-img {
  opacity: 0;
  transition: opacity 2s ease-in-out;
  width: 100%;
  height: 35vh;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 50px;
}

#story-text {
  font-family: "Courier New", monospace;
  font-size: 20px;
  white-space: pre-line;
}

.button {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #4caf50;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

#start-button {
  border: none;
  border-radius: 5px;
  background-color: #4caf50;
  color: white;
  font-size: 16px;
  padding: 10px 20px;
  width: 10%;
  align-self: center;
}

.modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0px 0px 10px #666;
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
}

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

@media screen and (max-width: 1024px) {
  .container {
    width: 60%;
  }
  .story-img-container {
    height: 250px;
    width: 80%;
    display: flex;
    justify-content: center;
  }
  .container {
    width: 80%;
    top: 60vh;
    height: 30vh;
  }
}

@media screen and (max-width: 768px) {
  .modal-content {
    width: 87%;
  }
  h1 {
    font-size: 32px;
  }

  .container {
    width: 80%;
    top: 60vh;
    height: 30vh;
  }

  main {
    height: 30vh;
  }

  .story-img-container {
    height: 300px;
  }
}

@media screen and (max-width: 576px) {
  h1 {
    font-size: 20px;
    top: 30vh;
  }

  .container {
    width: 90%;
    height: 40vh;
    top: 40vh;
  }

  main {
    height: 20vh;
  }

  .story-img-container {
    height: 35vh;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
    border-radius: 0;
  }

  .button {
    font-size: 14px;
    padding: 8px 16px;
  }
}
