@media screen and (max-width:480px){}

/*Main Element*/
body {
  margin: 0;
  background-color: black;
  color: white;
  font-family: 'Segoe UI', css;
  text-align: center;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  overflow-x: hidden;
}

.box {
  max-width: 75%;
  margin: 50px auto;
  padding: 5px 20px;
  display: grid;
  grid-gap: 10px;
  height: max-content;
}

nav {
  color: lime;
  height: max-content;
  overflow-wrap: break-word;
}

header {
  font-size: 2rem;  
}

header h1 {
  text-shadow: 0 0 20px #30ff29, 0 0 2rem #30ff29;
}

h1 {
  color: white;
  text-shadow: 0 0 10px #30ff29, 0 0 2rem #30ff29;
}

a {
    color: #FFFFFF;
    text-decoration: none;
}

summary {
  display: list-item; /* Restores the native arrow and toggle behavior */
  cursor: pointer;    /* Makes it obvious to users that it is clickable */
}

/*Entry and Sub-Entry are same, it just I won't be confused when I write the code*/
/*Entry*/
.entry {
  /*STYLE*/
  color: lime;
  border: lime 2px solid;
  margin: 10px auto;
  padding: 20px 24px;
  background-color: #111111;
  
  /*Display Settings*/
  display: grid;
  grid-gap: 10px;
  overflow-wrap: break-word;
  opacity: 0.9;
  z-index: -1;
}

/*Sub-Entry*/
.subentry {
  /*STYLE*/
  color: lime;
  background-color: #111111;
  border: lime 2px solid;
  margin: 10px auto;
  padding: 20px 24px;
  
  /*Display Settings*/
  display: grid;
  grid-gap: 10px;
  overflow-wrap: break-word;
  opacity: 0.9;
  z-index: -1;
}

/*Navigation*/
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

ul li a {
  display: block;
  background-color: #111111;
  border: lime 2px solid;
  margin: 4px 5px;
  color: lime;
  padding: 14px 16px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

ul li a:hover {
  transform: scale(1.1);
  color: white;
  text-shadow: 0 0 10px #30ff29, 0 0 20px #30ff29;
}

/* Image Center */
.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

/*Music Page*/
.tracklist {
  text-align: left;
  display: grid;
  grid-template-columns: 2fr 2fr;
  column-gap: 10px;
  grid-row: 10px;
  height: max-content;
}

/*Index Page*/
.container{
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 10px;
  grid-row: 10px;
  height: max-content;
}

/*Art Page*/
    .gallery {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 10px;
    }
    .gallery img {
      width: 100%;
      height: auto;
      cursor: pointer;
      border-radius: 5px;
      transition: transform 0.2s;
    }
    .gallery img:hover {
      transform: scale(1.05);
    }
    .pagination, .year-filter {
      margin-top: 20px;
    }
    .pagination button, .year-filter button {
      margin: 0 5px;
      padding: 5px 10px;
      cursor: pointer;
    }
    /* Modal styles */
    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.8);
      justify-content: center;
      align-items: center;
    }
    .modal-content {
      background: #222;
      padding: 20px;
      border-radius: 10px;
      max-width: 95%;
      max-height: 95%;
      text-align: center;
      color: #fff;
    }
    .modal-content img {
      max-width: 100%;
      max-height: 62vh; /*change to auto later*/
      border-radius: 10px;
      margin-bottom: 15px;
    }
    .modal-content h2 {
      margin: 5px 0;
    }
    .modal-content p {
      max-width: 80%;
      margin: 0 auto;
    }
    .modal-content a {
      color: #4da3ff;
      text-decoration: underline;
    }
    .year-filter button {
    color:lime;
    background: #111111;
    border: lime 2px solid;
    margin: 0 5px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s ease;
  }
    .year-filter button.active-year {
    background: lime;
    color:white;
    font-weight: bold;
    border: 1px solid lime;
  }
    .pagination button {
    color:lime;
    background-color: #111111;
    border: lime 2px solid;
    margin: 0 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
    }
    .pagination button.active-page {
        background: lime;
        color: #fff;
        font-weight: bold;
        border: 1px solid lime;
    }

    .modal-nav {
    margin-top: 10px;
  }
  .modal-nav button {
    color:lime;
    margin: 0 10px;
    padding: 6px 12px;
    cursor: pointer;
    border: lime 2px solid;
    background: #111111;
    border-radius: 5px;
    transition: transform 0.2s ease;
  }
    .page-info {
    color:lime;
    margin-top: 10px;
    font-size: 14px;
  }
  
    .pagination button:hover, .year-filter button:hover, .modal-nav button:hover {
        transform: scale(1.1);
        color: white;
        text-shadow: 0 0 10px #30ff29, 0 0 20px #30ff29;
    }
    
    

/* Visitor Counts */
#visitorCounter::before {
  color: lime;  
}

.digit{
  border: lime 1px solid;
}

.digit::before{
  color:white;
  text-shadow: 0 0 5px #30ff29, 0 0 5px #30ff29;
}

/* Animation */
    .stars {
      position: fixed;
      width: 100%;
      height: 100%;
      background-image: url('galaxy.jpg');
      background-size: 25%;
      top: 0;
      left: 0;
      animation: twinkle 5s infinite alternate;
      z-index: -3;
    }
    
    @keyframes twinkle {
      0% { opacity: 0.6; }
      50% { opacity: 1; }
      100% { opacity: 0.6; }
    }
    
    .shooting-star {
      position: absolute;
      width: 2px;
      height: 80px;
      background: linear-gradient(-45deg, white, rgba(255,255,255,0));
      opacity: 0.8;
      transform: rotate(45deg);
      animation: shooting 3s linear infinite;
      z-index: -2;
    }

    @keyframes shooting {
      0% {
        transform: translateX(0) translateY(0) rotate(45deg);
        opacity: 0;
      }
      50% {
        transform: translateX(-250px) translateY(250px) rotate(45deg);
        opacity: 1;
      }
      100% {
        transform: translateX(-500px) translateY(500px) rotate(45deg);
        opacity: 0;
      }
    }