body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(to bottom right, #2d3748, #718096);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
}

h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    font-size: 25px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    height: 50px;
    width: 200px;
    top: 12px;
    left: -1px;
    rotate: -20deg;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 100;
}

.main-nav ul {
    display: flex;
    justify-content: flex-end;
    margin-right: 20px;
}

.main-nav ul li {
    list-style: none;
    margin-left: 20px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #E2E8F0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    width: 0;
    height: 2px;
    background-color: #A0AEC0;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover {
    color: white;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* --- Language Selector --- */
#languageSelectorContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

#languageToggleBtn {
    background-color: rgba(45, 55, 72, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 28px;
    transition: background-color 0.3s ease;
}

#languageToggleBtn:hover {
    background-color: rgba(74, 85, 104, 0.9);
}

#languageSelector {
    display: flex;
    flex-direction: column; /* Default: vertical */
    gap: 10px;
    background-color: rgba(45, 55, 72, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease;
    
    /* Default position (upwards) */
    bottom: 65px;
    right: 0;
    transform-origin: bottom right;
    transform: scale(0.9) translateY(10px);
}

#languageSelector.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

/* Media Query for smaller/shorter screens (tablets, phones) */
@media (max-width: 768px), (max-height: 450px) {
    #languageSelector {
        flex-direction: row; /* Horizontal layout */
        
        /* New position (sideways) */
        bottom: 0;
        right: 55px;
        transform-origin: bottom right;
        transform: scale(0.9) translateX(10px);
    }
     
    #languageSelectorContainer {
        position: fixed;
        bottom: 20px;
        right: 10px;
        z-index: 100;
    }
    
    #languageSelector.show {
        transform: scale(1) translateX(0);
    }
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 5px;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.lang-btn:hover {
    cursor: pointer;
    transform: scale(1.15);
}

.lang-btn iconify-icon {
    vertical-align: middle;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: rgba(26, 32, 44, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    z-index: 1000;
    transition: left 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu.show {
    left: 0;
}

.sidebar-menu ul {
    position: absolute;
    padding-left: 0;
    top: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.sidebar-menu li {
    list-style-type: none;
    margin-bottom: 10px;
    width: 100%;
}

.sidebar-menu li a {
    display: block;
    text-decoration: none;
    color: #E2E8F0;
    padding: 10px 20px;
    width: 100%; 
    box-sizing: border-box; 
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.menu-toggle-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.menu-toggle-btn span {
    display: block;
    height: 3px;
    width: 30px;
    background: white;
    margin: 3px 0;
    border-radius: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle-btn.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu-toggle-btn:focus {
    outline: none;
}

.menu-toggle-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    border-radius: 5px;
}

.infos {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.box {
  width: 320px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  padding: 30px 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.5);
  margin: 0 auto 15px;
}

.username {
  color: #ffffff;
  font-size: 24px;
  margin: 10px 0;
  font-weight: 600;
}

.profile-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  color: #E2E8F0;
}

.profile-list li {
  margin: 12px 0;
  font-size: 16px;
  position: relative;
}

.profile-list a {
  text-decoration: none;
  color: #90cdf4;
  font-weight: bold;
  transition: color 0.2s ease;
}

.profile-list a:hover {
  text-decoration: underline;
  color: #ffffff;
}

#userID {
  cursor: pointer;
  font-weight: 600;
  color: #90cdf4;
  text-decoration: underline;
  transition: color 0.2s ease;
}

#userID:hover {
  color: #ffffff;
}

#copyNotification {
  display: none;
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  padding: 6px 12px;
  background-color: #2D3748;
  color: #fff;
  font-size: 13px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#copyNotification.show {
  display: block;
  opacity: 1;
}

@media (max-width: 800px) {
    .menu-toggle-btn {
        display: flex;
        top: 2px;
        left: 2px;
    }
    
    .main-nav ul {
        display: none; 
    }

    .sidebar-menu ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}


@media (max-width: 600px) {
    h1 {
        font-size: 20px;
        width: 160px;
        height: 40px;
    }

    .box {
        width: 90%;
        max-width: 320px;
    }
}

.about-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#about-title {
  color: #ffffff;
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: 600;
}

#about-text {
  color: #E2E8F0;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}