body {
  margin: 0;
  background-image: url("../../Images/PlaniMe-WebApp-Background2.png");
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  font-family: "Bubblegum Sans", sans-serif;
}

.app-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: block;
  animation: modalEntrance 10s ease-out forwards,
    modalBounce 3s ease-in-out 10s infinite;
}

.app-modal-content {
  background: linear-gradient(135deg, #467326, #79a637);
  border: 3px solid #000;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  padding: 15px;
  width: 260px;
  position: relative;
  overflow: hidden;
}

.app-modal-content::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #dfe372, #eff299, #dfe372, #eff299);
  background-size: 400% 400%;
  border-radius: 18px;
  z-index: -1;
  animation: borderGlow 2s linear infinite;
}

.app-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none !important;
    border: none !important;
    font-size: 22px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    outline: none !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    text-decoration: none;
    display: inline-block;
}

.app-modal-close:hover {
    color: #dfe372;
    transform: scale(1.2);
}

.app-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 5px;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 35px;
}

.app-icon {
  font-size: 35px;
  animation: phoneWiggle 2s ease-in-out infinite;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
  flex-shrink: 0;
}

.app-text-header {
  flex: 1;
  color: white;
  padding-right: 15px;
}

.app-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 3px 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 2);
  line-height: 1.2;
  text-align: center;
}

.app-subtitle {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #dfe372;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 2);
  text-align: center;
}

.app-button-container {
  display: flex;
  justify-content: center;
  padding: 0 5px;
  margin-left: 15px;
}

.app-download-btn {
  background: linear-gradient(135deg, #dfe372, #eff299);
  border: 2px solid #000;
  border-radius: 8px;
  padding: 10px 20px;
  color: #000;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Bubblegum Sans", sans-serif;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 160px;
}

.app-download-btn:hover {
  background: linear-gradient(135deg, #eff299, #dfe372);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.app-download-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

header nav {
  position: sticky;
  top: 10px;
  background-color: #467326;
  display: flex;
  justify-content: space-between;
  padding-left: 30px;
  padding-right: 25px;
  margin: 24px;
  border: 5px solid black;
  border-radius: 10px;
  transition-duration: 0.4s;
  color: white;
  animation: reveal3 1s ease-out;
  flex-direction: row;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

.tittle {
  text-shadow: 2px 2px 4px rgb(0, 0, 0);
}

#main-h1 {
  font-size: 40px;
  text-shadow: 3px 3px 2px rgba(0, 0, 0, 1);
}

#main-h2 {
  text-align: center;
  width: 70%;
  margin: 0;
  text-shadow: 1.5px 1.5px 3px rgba(0, 0, 0, 0.9);
  color: rgb(255, 255, 255);
  font-size: 25px;
}

.main-button {
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  transition: transform 0.3s ease;
  text-shadow: 2px 2px 4px rgb(0, 0, 0);
}

a:hover {
  transform: scale(1.5);
}

.buttons {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 35%;
}

main {
  position: relative;
  background-color: #79a637;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 10%;
  padding-right: 120px;
  margin: 20px;
  margin-left: 24px;
  margin-right: 24px;
  height: 400px;
  border: 5px solid black;
  border-radius: 10px;
  color: white;
  transition-duration: 0.4s;
  transform: translateX(-2000px);
  animation: reveal2 1s ease-out 1s forwards;
  font-size: 18px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

button {
  width: 200px;
  height: 70px;
  background: linear-gradient(to left top, #dfe372 50%, #eff299 50%);
  border-style: none;
  color: black;
  font-size: 23px;
  letter-spacing: 3px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  position: relative;
  padding: 0px;
  overflow: hidden;
  transition: all 0.5s;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
  font-family: "Bubblegum Sans", sans-serif;
}
button span {
  position: absolute;
  display: block;
}
button span:nth-child(1) {
  height: 4px;
  width: 200px;
  top: 0px;
  left: -200px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0), #000000);
  border-top-right-radius: 1px;
  border-bottom-right-radius: 1px;
  animation: span1 2s linear infinite;
  animation-delay: 1s;
}

button span:nth-child(2) {
  height: 70px;
  width: 5px;
  top: -70px;
  right: 0px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000);
  border-bottom-left-radius: 1px;
  border-bottom-right-radius: 1px;
  animation: span2 2s linear infinite;
  animation-delay: 2s;
}

button span:nth-child(3) {
  height: 4px;
  width: 200px;
  right: -200px;
  bottom: 0px;
  background: linear-gradient(to left, rgba(0, 0, 0, 0), #000000);
  border-top-left-radius: 1px;
  border-bottom-left-radius: 1px;
  animation: span3 2s linear infinite;
  animation-delay: 3s;
}

button span:nth-child(4) {
  height: 70px;
  width: 4px;
  bottom: -70px;
  left: 0px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0), #000000);
  border-top-right-radius: 1px;
  border-top-left-radius: 1px;
  animation: span4 2s linear infinite;
  animation-delay: 4s;
}

button:hover {
  transition: all 0.5s;
  transform: rotate(-3deg) scale(1.1);
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.4);
}
button:hover span {
  animation-play-state: paused;
}

main div {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.nav-div {
  display: flex;
  align-items: center;
  justify-content: start;
}

main img {
  width: 70%;
  height: auto;
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.7));
}

.logo {
  width: 15%;
  height: auto;
  filter: drop-shadow(0.2px 0.2px 3px rgba(0, 0, 0, 0.7));
}

article {
  position: relative;
  display: flex;
  justify-content: space-around;
  margin-bottom: 80px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

article section {
  display: flex;
  align-items: center;
  width: min(700px, 45%);
  max-width: 800px;
  padding: 10px;
  color: white;
}

#article1 {
  background-color: #a0d94a;
  margin-top: 50px;
  border-top: 5px solid black;
  border-bottom: 5px solid black;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

#article2 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 40px 0;
  background-color: #f0f78f;
  border-top: 5px solid black;
  border-bottom: 5px solid black;
}

#article2 section p {
  color: black;
}

#article3 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-color: #a0d94a;
  margin-top: 50px;
  border-top: 5px solid black;
  border-bottom: 5px solid black;
  padding: 40px 0;
}

article section p {
  font-size: 25px;
  text-align: justify;
  margin: 0;
  padding: 25px;
  transition-duration: 0.4s;
  animation: reveal linear both;
  animation-timeline: view();
  animation-range: entry 25% cover 40%;
}

article aside {
  padding: 30px;
}

article aside img {
  width: min(650px, 90%);
  max-width: 800px;
  border: 5px solid black;
  border-radius: 10px;
  transition-duration: 0.4s;
  animation: reveal linear both;
  animation-timeline: view();
  animation-range: entry 25% cover 40%;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

div article img {
  width: 150px;
}

.info {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  margin-left: 90px;
  margin-right: 90px;
  color: white;
  margin-bottom: 20px;
}

.info article {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 250px;
  text-align: justify;
  background-color: #a0d94a;
  border: 5px solid black;
  border-radius: 10px;
  transition-duration: 0.4s;
  padding: 10px;
  opacity: 0;
}

.info :first-child {
  animation: revealArticle 0.5s ease-out 2s forwards;
}

.info :nth-child(2) {
  animation: revealArticle 0.5s ease-out 2.3s forwards;
}

.info :nth-child(3) {
  animation: revealArticle 0.5s ease-out 2.6s forwards;
}

.info :nth-child(4) {
  animation: revealArticle 0.5s ease-out 2.9s forwards;
}

.info article:hover {
  scale: 1.08;
}

.info article h4 {
  color: rgb(0, 0, 0);
  text-align: center;
  margin: 20px;
  text-shadow: 2px 2px 3px rgb(255, 255, 255);
}

.info article p {
  margin: 20px;
  text-shadow: 2px 2px 3px rgb(4, 4, 4);
}

#article1 {
  text-shadow: 2px 2px 3px rgb(4, 4, 4);
}

#article2 {
  text-shadow: 2px 2px 3px rgb(255, 255, 255);
}

#article3 {
  text-shadow: 2px 2px 3px rgb(4, 4, 4);
}

.info article img {
  width: 130px;
  margin: 10px;
  filter: drop-shadow(3px 3px 4px rgba(0, 0, 0, 0.7));
}

footer {
  position: relative;
  background-color: #467326;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 30px;
  padding-right: 25px;
  margin: 25px;
  border: 5px solid black;
  border-radius: 10px;
  height: 100px;
  color: white;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

.div-footer-index {
  width: 30%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

footer p.rights {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin: 0;
}

.rights #name {
  font-weight: 600;
  color: #dfe372;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}
