@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --lightGreen1: #F1f9f8;
  --lightGreen2: #DBEFED;
  --lightGreen3: #BCE1DD;
  --greenMain: #2b7367;
  --greenSecondary: #33897b;
  --neutralGrey: #919EA1;
}

body {
  font-family: Arial, sans-serif;
  font-family: 'Poppins', serif;
  margin: 0;
  padding: 0;
  display: flex;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  background-color: #f4f4f9;
}
.outer-calandar {
	border: 1px solid var(--neutralGrey);
	width: 80vw;
  max-width: 1320px;
  padding: 30px 0;
	border-radius: 15px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.title-div {
	display: flex;
	align-items: center;
	justify-content: center;
  margin-bottom: 20px;
  width: 90%;
  max-width: 1320px;
	img {
		width: 50px;
		height: 50px;
	}
  h1 {
    margin-left: 20px;
    font-size: 2em;
  }
}
h2 {
	width: 90%;
  font-size: 1.5rem;
	span {
		color: var(--neutralGrey);
	}
}
.notification {
  font-size: 1.25rem;
  color: var(--greenMain);
  margin: 0 15px;
}
.calendar-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  width: 90%;
  margin-top: 20px;
}
.day-labels-desktop {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  width: 90%;
  margin-left: 5px;
  font-size: 1.5rem;
  color: var(--neutralGrey);
}
.day-labels-mobile {
  display: none;
  justify-content: space-between;
  color: var(--neutralGrey);
  width: 80%;
}
.tile {
  position: relative;
  aspect-ratio: 2 / 1;
  background-color: #fff;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 2px solid var(--lightGreen2);
  background-color: var(--lightGreen1);
}
.tile:hover {
  transform: scale(1.05);
}
.tile.inactive {
  pointer-events: none;
  background-color: white;
  border: 2px solid var(--lightGreen2);

  .day-number {
    color: var(--lightGreen2);
  }
}
.day-number {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 1.25rem;
  color: var(--greenMain);
}
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.popup.active {
  opacity: 1;
  visibility: visible;
}
.popup-image-desktop {
  display: flex;
}
.popup-image-desktop img {
  width: 440px;
  height: 520px;
  margin: 20px;
}
.popup-image-mobile {
  display: none;
  justify-content: center;
  margin-top: 20px;
}
.popup-image-mobile img {
  width: 90%;
  height: auto;
}

.exit-btn {
  width: 30px;
  height: 30px;
  background-color: rgba(43, 115, 103, 0.5);
  border-radius: 50%;
  color: var(--greenMain);
  display: flex;
  border-color: transparent;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  cursor: pointer;
  align-self: end;
}
.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.controls button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}
.controls button:hover {
  background-color: #0056b3;
}

.popup-content {
	width: 90%;
	max-width: 900px;
	background-color: white;
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;


	.popup-top {
		display: flex;

    .content-details {
      .popup-body {
        width: 90%;
      }
    }

		.popup-details {
			flex: 1;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			margin: 20px;
		}
	}

	.controls {
		margin: 20px;

		#nextBtn {
			background-color: var(--greenMain);
      color: #fff;
		}

		#prevBtn {
			background-color: var(--lightGreen3);
      color: var(--greenMain);
		}
		button {
			width: 180px;
			font-size: 1.25rem;
      font-weight: bold;
		}
	}
}
.exit-btn-mobile {
  display: none;
}
#prevBtnMobile {
  display: none;
}

#logo {
  display: block;
}

#disclaimer-mobile {
  display: none;
}

@media (max-width: 750px) {
  .notification {
    font-size: 1rem;
  }
  #disclaimer-mobile {
    display: block;
    text-align: center;
    columns: var(--greenMain);
    font-style: italic;
    font-weight: 100;
    width: 90%;
    font-size: 1.2rem;
    text-transform: capitalize;
  }
  #logo {
    display: none;
  }
  .title-div {
    font-size: 0.8em;
  }
  h2 {
    font-size: 1.2rem;
  }
  .tile {
    aspect-ratio: 1;
    .day-number {
      position: static;
      font-size: 1rem;
    }
  }

  .controls {
    justify-content: end;
  }

  .exit-btn {
    display: none;
  }

  .exit-btn-mobile {
    margin: 20px 20px 0px 0;
    width: 30px;
    height: 30px;
    background-color: rgba(43, 115, 103, 0.5);
    border-radius: 50%;
    color: var(--greenMain);
    display: flex;
    border-color: transparent;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    align-self: end;
  }

  .popup-image-mobile {
    display: flex;
  }

  .popup-image-desktop {
    display: none;
  }

  .popup-content {
    .controls {
      justify-content: end;

      button {
        width: fit-content;
        font-size: 0.8rem;
      }

      #prevBtn {
        display: none;
      }
      #prevBtnMobile {
        display: block;
        background-color: #fff;
        color: var(--greenMain);
      }
    }
    .popup-top {
      flex-direction: column;
    }
  }

  .day-labels-desktop {
    display: none;
  }
  .day-labels-mobile {
    display: flex;
  }
}