/* Resets */
* {
    box-sizing: border-box;
}

@keyframes gradientBG {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  
bodyy, htmll {
    align-content: center;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family:'Courier New', 'Courier', 'monospace';
    font-size:20px;
    /* Gradient background */
    background: linear-gradient(135deg, 
    #cbcbcb 0%, /* Darker starting color covering more */
    #d1d1d1 10%, 
    #d5d5d5 15%, 
    #dadada 20%, 
    #dedede 25%, 
    #e3e3e3 30%, 
    #e7e7e7 35%, 
    #ececec 40%, 
    #f0f0f0 45%, 
    #f5f5f5 50%, 
    #f9f9f9 55%, 
    #fdfdfd 60%, 
    #ffffff 65%, 
    #ffffff 100%);
    color: #a73cff; /* Yellow text */
    background: linear-gradient(320deg, #c0f3ff, #b8f1ff, #bbe5ff, #f7bbff, #e9c9ff, #e2cbff, #c6ffee);
    background-size: 500% 500%;
    animation: gradientBG 10s ease infinite;
}




body {
    margin: 0;
    padding: 0;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place behind other content */
    animation: pulseBackground 1s linear infinite; /* Adjust animation duration and timing function */
}

.container {
    position: relative;
    
    max-height:50vh;
    max-width:50vh;
    overflow: hidden;
    border: 5px solid rgb(0, 217, 255); /* Frame border */
    border-radius: 50px; /* Adjust border radius */
    box-shadow: 0 0 20px rgba(0, 183, 255, 0.5); /* Frame shadow */
    margin-top: .4rem;
}

.cyberpunk-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px; /* Adjust image corner radius */
}

@keyframes pulseBackground {
    0% {
        opacity: 0.3; /* Start opacity */
    }
    50% {
        opacity: 0.8; /* Middle opacity */
    }
    100% {
        opacity: 0.3; /* End opacity */
    }
}

.errmsg {
    text-align:left;
    align-content: left;
}


.menu {
    display: flex;
    justify-content: flex-start;
    margin-top: 0px;
    text-align:center;
  }
  
  .menu-item {
    padding-left:10px;
    padding-right:10px;
    padding-top:30px;
    padding-bottom:10px;
    transition: transform 0.3s ease-in-out;
    position: relative; /* Position relative for absolute positioning */
  }
  
  .menu-item img {
    width: 75px;
    height: auto;
    display: block;
  }
  
  .menu-item:hover {
    transform: scale(1.05);
    cursor:pointer;
  }
  
  .menu-item::after {
    content: attr(data-text);
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0; /* Initially hide the text */
    transition: opacity 0.3s ease; /* Smooth transition for opacity change */
  }
  
  .menu-item:hover::after {
    animation: pulse 1.5s infinite alternate; /* Apply pulsating animation only on hover */
    opacity: 1; /* Show the text on hover */
    background-color: rgba(0, 255, 204, 0.702); /* Set background color on hover */
  }
  
  @keyframes pulse {
    0% {
      background-color: rgba(0, 204, 255, 0.435); /* Initial color and opacity */
    }
    100% {
      background-color: hsla(186, 100%, 50%, 0.88); /* Final color and opacity */
    }
  }
  .menu-item::before {
    content: attr(data-text); /* Display text from data-text attribute */
    position: absolute;
    top: 32px; /* Adjust the distance from the menu item */
    left: 50%; /* Center the tooltip horizontally */
    transform: translateX(-50%); /* Center the tooltip horizontally */
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0; /* Initially invisible */
    transition: opacity 1s ease; /* Smooth transition for opacity change */
}
  .highlight {
    width: auto;
    height: auto;
    background-color: #00ffbf86; /* Yellow background */
    border-radius: 15px; /* Rounded corners */
    animation: highlightAnimation 1.5s infinite alternate; /* Apply the animation */
  }
  
  @keyframes highlightAnimation {
    0% {
        box-shadow: 0 0 10px 5px rgba(0, 255, 157, 0.7); /* Initial box shadow */
    }
    100% {
        box-shadow: 0 0 20px 10px rgba(0, 255, 136, 0.7); /* Larger box shadow */
    }
  }
  
  .mainmid {
    vertical-align: middle;
    padding-bottom:80px;
  }


.menu {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  padding-top: 2rem;
}

.menu-item img {
  width: 75px;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.menu-item:hover img {
  transform: scale(1.2);
}

.menu-ribbon {
  position: absolute;
  bottom: -1.3rem;
  height: 6px;
  width: 0;                    /* start hidden */
  opacity: 0;                  /* start hidden */
  background: linear-gradient(90deg,#00f0ff,#007bff);
  border-radius: 3px;
  left: 0;
  transform: translateX(0);
  transition: all 0.3s ease;
  pointer-events: none;
}


  body {
    margin: 0;
    background: #524f4f;
    color: #eee;
    font-family: system-ui, sans-serif;
    overflow-x: hidden;
  }

  /* === Username Display === */
  .user-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #222;
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid #444;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    z-index: 100;
  }
  .user-badge:hover {
    background: #333;
  }

  /* === Popup Overlay === */
  .popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  /* === Popup Container === */
  .popup-content {
    position: relative;
    background: #181a1b;
    width: 95%;
    max-width: 800px;
    height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
    animation: fadeIn 0.25s ease;
  }

  /* === Embedded iframe === */
  .popup-content iframe {
    width: 100%;
    height: 100%;
    border: none;
  }

  /* === Close Button === */
  .popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  .popup-close:hover {
    background: #555;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
  }