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

body {
    margin: 0;
    min-height: 100vh;
    background: url("../images/space.png") no-repeat center center fixed;
    background-size: cover;
    text-align: center;
    color: #F8EDFF;
    font-size: 2rem;
    font-family: monospace;
}





/* ===========================
          Navigation Bar
   =========================== */
.navbar {
  position: static;
  width: 100%;
  background: transparent;
}

#webTitle {
  font-size: 1.5rem;
  font-family: monospace;
  color: #F8EDFF;
  padding: 0;
  margin: 0;
}

#funBtn {
  padding: 0;
  margin-right: 2rem;
}
#funBtn:hover {
  color: #F8EDFF;
  background: transparent;
}





/* ===========================
              Body
   =========================== */

/* Moon Image Style*/
img {
  min-height: 200px;
  padding: 25px;
}

/* Text Label Style */
label {
  font-family: monospace;
  color: #F8EDFF;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  align-items: center;
}

/* Button Style */
/* Start */

/* Get Moon Phase Style */
#checkBtn {
  margin-top: .5rem;
  background: transparent;
  border: 2px solid #F8EDFF;
  color: #F8EDFF;
  padding: 6px 12px;  /* narrower side padding */
  font-size: 0.9rem;
  font-family: monospace;
  border-radius: 20px;
  cursor: pointer;
  text-align: center; /* center text */
  transition: all 0.3s ease;
  box-shadow: 0 0 6px #F8EDFF, 0 0 12px #F8EDFF inset;
  letter-spacing: 1px;
}

#checkBtn:hover {
  background: #F8EDFF;
  color: #3D3B40;
  box-shadow: 0 0 12px #F8EDFF, 0 0 24px #F8EDFF inset;
}

/* Info Button Style */
#infoBtn {
  color: #F8EDFF;
  background: transparent;
  border-color: #F8EDFF;
}

#infoBtn:hover {
  cursor: help;
  background: #F8EDFF;
  color: black;
  box-shadow: 0 0 12px #F8EDFF, 0 0 24px #F8EDFF inset;
}

/* End */

/* Date Form Style */
/* Start */
#date {
  margin-top: 20px;
  color: #F8EDFF;
  background-color: transparent;
  border: 2px solid #F8EDFF;
  padding: 10px 14px;
  font-size: 0.9rem;
  border-radius: 12px;
  font-family: monospace;
  box-shadow: 0 0 6px #F8EDFF, 0 0 12px #F8EDFF inset;
  outline: none;
  transition: 0.3s ease;
  width: 180px;
}

#date::placeholder {
  color: #F8EDFF;
  opacity: 0.6;
}

#date:focus {
  box-shadow: 0 0 15px #F8EDFF;
}

#date:hover {
  background: #F8EDFF;
  color: black;
  box-shadow: 0 0 12px #F8EDFF, 0 0 24px #F8EDFF inset;
}/* End */

/* Main Content Style */
/* Start */
.rounded-box {
  min-width: 300px;
  min-height: 300px;
  padding: 0;             
  font-family: monospace;
  color: #F8EDFF;              
  align-items: center;
}

.rounded-box-display{
  min-width: 200px;              
  min-height: 200px;        
  padding: 0;             
  font-family: monospace;
  color: #F8EDFF;               
  align-items: center;
}/* End */






/* ===========================
            Modals
   =========================== */
/* Info modal Start*/
.custom-modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent background */
  justify-content: center;
  align-items: center;
}

/* Info Modal content box */
.custom-modal-content {
  background-color: #F8EDFF;
  border: 2px solid #F8EDFF;
  padding: 20px;
  font-size: 0.9rem;
  font-family: monospace;
  border-radius: 10px;
  width: 90%;
  max-height: 500px;
  max-width: 500px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 8px #F8EDFF, 0 0 16px #F8EDFF inset;
  animation: slideDown 0.3s ease-out;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* Slide down animation */
@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* Info modal End */



/* Fun modal start */
#funModal-content {
  background-color: #F8EDFF;
  border: 2px solid #F8EDFF;
  padding: 20px;
  font-size: 0.9rem;
  font-family: monospace;
  border-radius: 10px;
  width: 90%;
  max-height: 750px;
  max-width: 500px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 8px #F8EDFF, 0 0 16px #F8EDFF inset;
  animation: slideDown 0.3s ease-out;
}

/* Close button */
#funclose {
  position: absolute;
  padding: 2px;
  top: 10px;
  right: 15px;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
}
/* Fun modal end */





/* ===========================
      Shooting Star Effect
   =========================== */
/* Start */
.shooting-star {
  position: fixed;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px white;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
}

.shooting-star::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 150px;
  height: 2px;
  background: linear-gradient(to right, transparent, white);
  transform: translateY(-50%);
}
/* End */


/* For different screen sizes */
@media (max-width: 768px) {
  #mainDiv{
    justify-content: center;
  }

  .left, .right {
    width: 100%;
  }

  .rounded-box {
    min-width: 50px;
    min-height: 50px;
    padding: 0;
    margin-top: 2rem;
    justify-content: center;             
    align-items: center;
  }

  .rounded-box-display{
    min-width: 150px;
    min-height: 150px;           
    align-items: center;
  }

  img {
    min-height: 150px;
    padding: 25px;
  }

  label {
    font-size: 0.9rem;
  }
}
@media (max-width: 320px) {
  .facts {
    display: block; 
    margin: auto;
  }
}