/* General styles */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden; /* Prevent content from overflowing */
}

body {
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Align content to the bottom */
  background-color: #f0f0f0;
  font-size: 16px; /* Base font size */
}

/* Envelope container */
.envelop {
  width: 75%;  /* 75% of the screen width */
  height: 50vh;  /* 50% of the viewport height */
  position: relative;
  background-color: #fff;  /* Visible background */
  max-width: 500px;  /* Limit max width for large screens */
  max-height: 375px;  /* Limit max height */
  margin-bottom: 10%; /* Add a 10% margin from the bottom */
  display: flex; /* Use Flexbox to align content */
  flex-direction: column; /* Stack children vertically */
  justify-content: flex-start; /* Start alignment for inner contents */
  align-items: center; /* Center contents horizontally */
}

/* Front Paper of the Envelope */
.envelop__front-paper {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #ba9872;  /* Front paper color */
  clip-path: polygon(100% 0%, 50% 70%, 0% 0%, 0% 100%, 100% 100%);
  z-index: 300;
  border-radius: 0.7rem;
}

/* Back Paper of the Envelope */
.envelop__back-paper {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #967b5c;  /* Back paper color */
  clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 0% 90%);
  z-index: 100;
  border-radius: 0.7rem;
}

/* Up Paper of the Envelope */
.envelop__up-paper {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #967b5c;  /* Up paper color */
  z-index: 400;
  clip-path: polygon(0% 0%, 100% 0%, 50% 81%);
  border-radius: 0.7rem;
}

/* Sticker */
.envelop__sticker {
  width: 100%;
  height: 20%;
  position: absolute;
  margin: auto;
  top: 30%;
  left: 0;
  right: 0;
  z-index: 400;
  background-image: url("img/emoji-heart-33.png");
  background-size: 2rem;
  background-position: center;
  background-color: #f9f9f9;  /* Sticker background color */
}

/* Envelope content (notes) */
.envelop__content {
  width: 100%;
  height: 100%;
  z-index: 200;
}

.love-notes {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.note {
  width: 95%;
  height: 30%;
  background-color: #f9f9f9;  /* Note background color */
  position: absolute;
  transition: height 0.5s, opacity 0.25s;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
}

.note:nth-child(1) {
  bottom: 60%;
}

.note:nth-child(2) {
  bottom: 40%;
}

.note:nth-child(3) {
  bottom: 20%;
}

.note:hover {
  cursor: pointer;
  height: 45%;
}

/* Text styling */
.note__text {
  padding: 1rem;
  text-align: center;
  font-family: "Sofia";
}

.note__text p {
  font-size: 1rem;  /* Responsive text */
  margin-bottom: 1rem;
  color: #333;
}

/* Cursor style */
.scissors {
  cursor: url("img/sisors.png"), pointer;
  &:active {
    cursor: url("img/pngwing-com.png"), pointer;
  }
}

.cursor {
  cursor: pointer;
}

/* Responsive media queries */
@media (max-width: 600px) {
  .envelop {
    width: 90%;  /* On smaller screens, take 90% of the screen width */
    height: 90%;  /* 90% of the screen height */
    margin-bottom: 5%; /* Adjust margin for smaller screens */
  }

  .note__text p {
    font-size: 0.85rem;  /* Reduce text size for smaller screens */
  }
}

@media (min-width: 1024px) {
  .envelop {
    max-width: 600px;  /* On larger screens, limit max size for better appearance */
    max-height: 450px;
  }

  .note__text p {
    font-size: 1.25rem;  /* Increase text size on larger screens */
  }
}
