@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
  }
  .starnav {
    animation-name: fadeIn;
  animation-duration: 0.4s; /* Adjust the duration as needed (e.g., 1.5s) */
  animation-iteration-count: 1;
  animation-fill-mode: forwards; /* Ensures the element stays visible after the animation */
  }
  .listtext {
    animation-name: fadeIn;
  animation-duration: 0.3s; /* Adjust the duration as needed (e.g., 1.5s) */
  animation-iteration-count: 1;
  animation-fill-mode: forwards; /* Ensures the element stays visible after the animation */
  }
.imgnav {
    position: fixed;
    top:0;
    left:15%;
    right:15%;
    width: 70%;
    height: 10px;
    z-index:1000;
}
.imgnav:hover .navtop{
    opacity:1;
    transform: translateY(0);
    pointer-events:auto;
}
.navtop{
    display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
  justify-content: center;  /* center the grid as a whole */
  justify-items: center;    /* center items in each cell */
  gap: 1rem;
  padding: 0.5rem 0;
  margin: 0 auto;  
  transition: all 0.3s ease;
  z-index: 1;
  background-color:#fffdf3;
  border: 5px;
  border-radius: 8px;
  opacity:0;
  transform:translateY(-100%);
  pointer-events:none;
  transition:
    opacity 0.3s ease,
    transform 0.35s ease;
  
}
#birdopen {
    display:none;
}
.bird:hover #birdopen{
    display:block;
}
.bird:hover #birdclosed{
    display:none;}

    #houseon {
    display:none;
}
.house:hover #houseon{
    display:block;
}
.house:hover #houseoff{
    display:none;}
@media (max-width: 480px) {
    .navtop {
        display: flex;
         width:auto;
        height: 50px;
        flex-shrink: 0;
        margin-left: 20px;
        margin-right: 20px;
    }

}
.imgtxt {
  display: flex;
  flex-direction: column;
  align-items: center;    
  text-decoration: none;
}
.imgtxt img {
  height: 90px;
  width: auto;
    transition: transform 0.05s ease;
}
.imgtxt:hover img {
     transform: scale(1.1);
}
.imgtxt p {
  text-align: center;
  margin: 0.25rem 0 0; /* small spacing under image */
  font-size: 1rem;
  color: rgb(129, 152, 0);
}
@media (max-width: 768px) {
    .imgtxt p{
        font-size:10px;
    }
}
.imgtxt p {
  transition: color 0.2s ease;
}

.imgtxt:hover p {
  color: #1a3a3f; /* darker shade on hover */
  font-style: oblique;
}





body {
background-image: url(images/spacesmall.png);
background-size:cover;
background-repeat:repeat-y;
background-color: #1c1613;
}
 
.starnav {
    text-align: center;
    float: left;
    margin-top: -50px;
}

.star1 {
      position:relative;
      margin-left:20px;
      z-index: 10;
}
.media {
position: absolute;
top: 49%;
  left: 49%;
  transform: translate(-50%, -50%);
 color:rgb(0, 0, 0);
}
.star2 {
      position:relative;
      margin-left:20px;
      z-index:9;
}
.music {
position: absolute;
top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
 color:rgb(0, 0, 0);
}
.star3 {
      position:relative;
      margin-left:20px;
      z-index:8;
}
.japanese {
position: absolute;
top: 60%;
  left: 56%;
  transform: translate(-50%, -50%);
 color:rgb(0, 0, 0);
}
.star4 {
      position:relative;
      margin-left:20px;
      z-index:7;
}
.other {
position: absolute;
top: 45%;
  left: 52%;
  transform: translate(-50%, -50%);
 color:rgb(0, 0, 0);
}


.dropdown-content {
  display: none;
  position: absolute;
  z-index: 100;
  background-color: #f1f1f1;
  width: auto;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}
 
.dropdown-content a:hover {
  background-color: #d9d9d9;
}

.starz:hover .dropdown-content {
  display: block;
   animation-name: fadeIn;
  animation-duration: 0.2s;
  animation-fill-mode: forwards
}

.starz:hover .dropbtn {
 font-style:italic;
}

.listtext {
    background-color: #f1f1f1;
    float: center;
    margin-left: 220px;
    margin-right: 4%;
    width:auto;
    padding:20px;
    border: 10px solid rgb(108, 62, 89);
    border-radius: 5px;
    margin-top: 8%
}
.blank {

    float: center;
    margin-left: 220px;
    margin-right: 4%;
    width:auto;
    padding:20px;
    margin-top: 8%
}
