  /* ======================
          BODY / BG
     ====================== */
.bg-img {
    background-image: url("../images/imgblur2.png");
    /* remove the above line and choose a bg color if 
    you do not wish to use an image */
    background-color: none; /* choose color here */
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}


  /* ======================
          PAGE LAYOUT
     ====================== */
.layout {
    display: flex;
    flex-direction: row;
    justify-content: center; /* center horizontally */
    align-items: flex-start;
    padding: 20px;
    position: relative; /* stay above rainCanvas (and other Canvas) */
    z-index: 1;
    min-height: 100vh;
  }

.layout > * {
    margin: 0 40px; /* space between sidebar and main content */
  }  

  p {
    color: white; 
    /* text color. you can specify h1, h2, etc tags like this */
  }
  

  /* Sidebar styling */
  .sidebar {
      position: relative;
      flex: 1 1 200px;
      max-width: 250px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      box-shadow: 0 4px 20px rgba(173, 216, 230, 0.5);
      padding: 10px;
      border-radius: 10px;
      margin-top: 70px;
    }

  /* The following two classes are for a sidebar img overlay.
    You can leave them commented out unless u plant to use it */
  .sidebar-right {
      bottom: 60px;
      right: 130px;
      transform: rotate(0deg) translate(20%, 20%);
      filter: drop-shadow(0 0 10px rgba(173, 216, 230, 0.7));
      z-index: 7;
    }

  .sidebar-overlay {
      position: absolute;
      width: 500px; /* size of overlay image */
      height: auto;
      pointer-events: none; /* don't block mouse */
    }

   
  /* You may use this or the sidebar-image class if you have
  a logo / img title you would like to use */
  .sidebar-title {
      color: #fff;
      padding: 2px;
      text-align: center;
      font-weight: bold;
      font-family: courier;
  }
    
  .sidebar a {
    display: block;
    margin-bottom: 5px;
    text-align: center;
  }

  .sidebar-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border-color: #fff;
    margin-top: 2px;
    margin-bottom: -5px;
    transition: transform 0.3s, box-shadow 0.3s;
  }

  /* Hover effect on the images */
  .sidebar-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(173, 216, 230, 0.719);
  }



  /* This is for mobile rendering only */
  .mobile-content-dropdown {
    display: none; /* Hide it by default (desktop and larger) */
  }
  
  .mobile-content-dropdown:link {
    color: #3d3d3d;
  }

  /* Main content styling */
  .main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 70px; /* Space from the header */
  }
  
  .main-title {
    background-color: rgba(173, 216, 230, 0.6);
    padding: 20px;
    width: 500px; /* Make sure this is consistent */
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
  }

  .main-title-wrapper {
    position: relative;
    display: inline-block;
  }
  
  .main-title-image {
    width: 100%;
    max-width: 530px; /* don't let it grow past 530px */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(173, 216, 230, 0.5);
  }
  
  
  /* Image Overlays for the title && OPTIONAL */
  .corner-overlay {
    position: absolute;
    width: 100px; /* size of overlay image */
    height: auto;
    pointer-events: none; /* don't block mouse */
  }

  .center-overlay {
    position: absolute;
    width: 400px; /* size of overlay image */
    height: auto;
    pointer-events: none; /* don't block mouse */
  }
  
  /* Specific placement */
  .bottom-left {
    bottom: 10px;
    left: -49px;
    transform: rotate(-3deg) translate(-20%, 20%);
    filter: drop-shadow(0 0 10px rgba(173, 216, 230, 0.7));
  }
  
  .bottom-right {
    bottom: -300px;
    right: -50px;
    transform: rotate(0deg) translate(20%, 20%);
    filter: drop-shadow(0 0 10px rgba(173, 216, 230, 0.7));
    z-index: 3;
  }  

  .bottom-center {
    bottom: -10px;
    right: 100px;
    transform: rotate(0deg) translate(20%, 20%);
    filter: drop-shadow(0 0 10px rgba(173, 216, 230, 0.7));
  }


  /* Creates a fade effect around an image && OPTIONAL */
  .image-fade {
    height: auto;
    display: block;
    
    /* Multiple masks at once */
    -webkit-mask-image: 
      linear-gradient(40deg, rgba(0,0,0,0) 10%, rgba(0,0,0,1) 20%),
      linear-gradient(-40deg, rgba(0,0,0,0) 10%, rgba(0,0,0,1) 20%);
    mask-image: 
      linear-gradient(40deg, rgba(0,0,0,0) 10%, rgba(0,0,0,1) 20%),
      linear-gradient(-40deg, rgba(0,0,0,0) 10%, rgba(0,0,0,1) 20%);
      
    -webkit-mask-composite: destination-in;
    mask-composite: intersect;
  }

  .main-buttons {
    display: flex;
    justify-content: center; /* center buttons under the main-title */
    gap: 20px;
  }
  
  .versum-btn { /* This is the large button above the music player */
    width: 523px;
    margin-top: 10px;
    background-color: rgba(0, 0, 0, 0.272);
    border: 1px solid #41001a00;
    border-radius: 10px;
    padding: 13px;
    gap: 10px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(173, 216, 230, 0.5);
    font-weight: bold;
    font-family: courier;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .versum-btn:hover {
    transform: scale(1.05); /* slightly bigger on hover */
    box-shadow: 0 6px 24px rgba(173, 216, 230, 0.7); /* stronger shadow on hover */
  }

  .popup {
    display: none;
  }

  .text-button {
    background-color: rgba(0, 0, 0, 0.272);
    border: 1px solid #41001a00;
    width: 250px;
    border-radius: 10px;
    padding: 13px;
    gap: 10px;
    margin-top: 20px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(173, 216, 230, 0.5);
    font-weight: bold;
    font-family: courier;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .text-button:hover {
    transform: scale(1.05); /* slightly bigger on hover */
    box-shadow: 0 6px 24px rgba(173, 216, 230, 0.7); /* stronger shadow on hover */
  }
  

  /* ======================
        HEADER & ICONS
     ====================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  height: 60px;
}

  .site-header-inner {
    width: 100%;
  }

  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between; /* space between left and right */
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .header-logo {
    height: 50px; /* fix logo size */
    width: auto;
    margin-right: -30px;
    padding-left: 20px;
    object-fit: contain;
  }

  .header-text {
    height: 45px; /* fix logo/text size */
  }

  .header-title {
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 6px rgba(255, 247, 0, 0.349);
    margin: 0; /* remove default H1 margin */
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .social-icon {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1); /* makes icons white if needed */
    transition: transform 0.3s ease;
  }

  .social-icon:hover {
    transform: scale(1.2);
  }

  .discord-tooltip-wrapper {
    position: relative;
    display: inline-block;
  }

  .tooltip-text {
    visibility: hidden;
    opacity: 0;
    background-color: #fff20095;
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'verdana';
    white-space: nowrap;
    position: absolute;
    top: 100%; /* show above the icon */
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
    z-index: 1000;
  }

  .discord-tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
  }



  /* ======================
        CANVAS EFFECTS
          & SCRIPTS
     ====================== */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}
  
  .content {
    position: relative;
    z-index: 1; /* In front of the rain */
    color: white;
    text-align: center;
    padding-top: 20px; /* Pushes text down a bit */
  }


  /* ======================
          MUSIC PLAYER
     ====================== */
.music-player {
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 15px;
  margin-top: 20px;
  width: 484px;
  box-shadow: 0 4px 15px rgba(173, 216, 230, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

  .music-overlay {
    position: absolute;
    width: 100px; /* size of overlay image */
    height: auto;
    pointer-events: none; /* don't block mouse */
  }

  .music-bg {
    position: absolute;
    width: 259px; /* size of bg image */
    height: auto;
    pointer-events: none; /* don't block mouse */
    z-index: -1;
  }

  .image-fade-corners {
    width: 259px;
    height: auto;
    display: block;
    
    -webkit-mask-image: 
      linear-gradient(40deg, rgba(0,0,0,0) 10%, rgba(0,0,0,1) 20%),
      linear-gradient(-40deg, rgba(0,0,0,0) 10%, rgba(0,0,0,1) 20%);
    mask-image: 
      linear-gradient(40deg, rgba(0,0,0,0) 10%, rgba(0,0,0,1) 20%),
      linear-gradient(-40deg, rgba(0,0,0,0) 10%, rgba(0,0,0,1) 20%);
      
    -webkit-mask-composite: destination-in;
    mask-composite: intersect;
    
    /* Prevent repeating */
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
 
  .music-left {
    bottom: 53px;
    right: -23px;
    transform: rotate(13deg) translate(20%, 20%);
    filter: drop-shadow(0 0 10px rgba(173, 216, 230, 0.7));
  }  

  .music-right {
    bottom: 50px;
    right: 487px;
    transform: rotate(-13deg) translate(20%, 20%);
    filter: drop-shadow(0 0 10px rgba(173, 216, 230, 0.7));
  }

  .music-center {
    bottom: 30px;
    right: 100px;
    transform: rotate(0deg) translate(20%, 20%);
    filter: drop-shadow(0 0 10px rgba(173, 216, 230, 0.7));
  } 
  
  .music-info {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
  }
  
  .album-art {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 15px;
  }
  
  .track-details {
    display: flex;
    flex-direction: column;
    color: white;
  }
  
  /* Use this if you prefer non-animated track title:

  .track-title { 
    font-size: 18px;
    font-weight: bold;
    font-family: courier;
  }

*/

  #typing-text {
      font-size: 15px;
      font-weight: bold;
      font-family: courier;
      white-space: nowrap;
      overflow: hidden;
  }
  
  .track-artist {
    font-size: 14px;
    color: #ccc;
    font-family: courier;
  }
  
  .controls {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
  }
  
  .control-button {
    background: none;
    border: none;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s;
  }
  
  .control-button:hover {
    transform: scale(1.2);
  }
  
  #progress-bar {
    flex-grow: 1;
    appearance: none;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    outline: none;
  }
  
  #progress-bar::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(173, 216, 230, 0.8);
  }




  /* ======================
        SPOTIFY PLAYER
     ====================== */
.spotify-player {
  background: transparent;
  padding-bottom: 0;
  border-radius: 12px;
  margin-top: 20px;
  max-height: 340px;
  overflow: hidden; /* Ensures rounded corners work on iframe */
}



  /* ======================
          MOBILE LAYOUT
     ====================== */
  @media (max-width: 1100px) { /* Apply for both portrait and landscape if device is under 768px */
    
    /* General layout stacking */
    body .sidebar {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    /* Header: show only social icons centered horizontally */
    .site-header {
        height: auto;
        padding: 10px 0;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 0;
    }

    .header-content {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        padding: 0 10px;
        box-sizing: border-box;
        margin-bottom: 0;
    }

    .header-left {
        display: none !important;
    }

    .header-right {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 16px;
        width: 100%;
        overflow-x: auto; /* allow horizontal scroll as fallback */
        flex-wrap: nowrap;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .social-icon {
        height: 28px;
        flex-shrink: 0;
    }

        /* Popup Box Styles */
    .popup {
      display: none;
      position: fixed;
      top: 15%;
      left: 50%;
      transform: translateX(-50%);
      width: 90%; /* Adjusted for better responsiveness */
      max-width: 400px; /* Still keeps a max width */
      padding: 20px;
      border-radius: 8px;
      z-index: 1000;
      color: white;
      box-sizing: border-box;
    }

    /* Flexbox centering */
    .popup.show {
      display: flex;
      justify-content: center;
      align-items: center;
      position: fixed;
      top: 15%;
      left: 50%;
      transform: translateX(-50%);
      width: 90%;
      max-width: 400px;
      padding: 20px;
      border-radius: 8px;
      color: white;
      box-sizing: border-box;
    }

    .popup-content {
      position: relative;
      background-color: white;
      padding: 20px;
      border-radius: 10px;
      text-align: center;
      width: 100%; /* Ensure it fills the available width */
      max-width: 100%;
    }

    .popup .close-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      font-size: 30px;
      cursor: pointer;
      color: #000000a5; /* Change the color of the close button */
      background: none; /* Remove any background */
      border: none; /* Remove any border */
      transition: color 0.3s ease, transform 0.2s ease; /* Add transition effects */
    }

    .popup p {
      color: #000000a5;
      font-family: courier;
      font-weight: 200;
    }


    /* Hide the old sidebar, show the new dropdown */
    .sidebar {
        display: none !important;
    }

    /* Main content: stack buttons and title */
    .main-content {
        margin-top: 90px !important;
        padding-top: 0 !important;
        width: 100%;
        align-items: center;
    }

    .main-title-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .main-title-image {
        width: 100%;
        max-width: 100%;
        padding-top: 10px;
    }

    .mobile-content-dropdown {
        display: block;
        width: 100%;
        margin: 20px auto;
    }

    .mobile-content-dropdown select {
        background-color: #ffe9fe;
        width: 100%;
        padding: 10px;
        font-size: 16px;
        border-radius: 8px;
        font-family: courier;
        border: 1px solid #cccccc;
    }

    .main-buttons {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 25px;
      margin-top: 25px;
      padding: 0 10px;
  }

    .main-buttons a {
      width: 100%;
      max-width: 500px;
    }

    .main-buttons .text-button,
    .versum-btn {
      width: 100% !important;
      max-width: 500px;
      padding: 14px;
      font-size: 12px;
      background-color: #ffe9fe9e;
      color: #3d3d3d;
      border: none;
      border-radius: 12px;
      box-sizing: border-box;
      margin: 0 !important;
    }

    /* Hide music player */
    .spotify-player {
        display: none !important;
    }


    /* Hide music player */
    .music-player {
        display: none !important;
    }

    /* Hide overlays that clutter mobile */
    .music-overlay,
    .sidebar-overlay,
    .corner-overlay,
    .center-overlay {
        display: none !important;
    }

    .bg-img {
        background-image: url("../images/mobilebg.png") !important;
        background-size: cover;
        /* background: #000; fallback solid color */
    }

    #twinkleCanvas {
      position: fixed;
      width: 100%;
      height: 100%;
      z-index: 0; /* Behind all other content */
      pointer-events: none; /* Allows interactions with content behind the canvas */
    }
}




  
