/* god i hate frontend so much dont make fun of me okay */

html{background-color: #000;}
  body {
    padding-bottom: env(safe-area-inset-bottom);
    padding-top: env(safe-area-inset-top);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(45deg, #000000, #250243, #000);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    font-family: 'Arial', sans-serif;
}


*::selection {
  color: #00ff1e;
}

@keyframes gradientBG {
  0% {
      background-position: 100% 100%;
  }
  25% {
      background-position: 0% 100%;
  }
  50% {
      background-position: 0% 0%;
  }
  75% {
      background-position: 100% 0%;
  }
  100% {
      background-position: 100% 100%; 
  }
}

.card-container {
  display: flex;
  justify-content: center;
  align-items: center; 
  gap: 20px; 
}

.main-card {
  flex: 0 0 auto;
}

.side-card {
  flex: 1;
  max-width: 300px;
}


.bg {
  opacity: 60%;
  position: fixed;
}

.card {
  background: linear-gradient(
      360deg,
      rgba(148, 0, 211, .1),
      rgba(148, 0, 211, .5)
  );
  border: 5px solid #9400D3;
  width: 300px;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(148, 0, 211, 0.5);
  animation: cardPulse 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  z-index: 1; 
  transition: transform 0.5s ease, opacity 0.5s ease;
  margin:20px;
}

.main-card {
  z-index: 1;
  transform: translateX(0); 
}


.side-card {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.side-card.active {
  opacity: 1;
  visibility: visible;
}

#about-card {
  transform: translateX(-100vw); 
}

#about-card.active {
  transform: translateX(-420px); 
}

.main-card.shift-left {
  transform: translateX(50px); 
}

.main-card.shift-right {
  transform: translateX(-50px);
}

.tab-nav {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.tab-button {
  background: #4B0082;
  color: #fff;
  border: 1px solid #9400D3; 
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.tab-button.active {
  background: #fff; 
  color: #4B0082; 
  border-color: #fff;
}

.tab-button:hover:not(.active) {
  background: #9400D3;
  transform: scale(1.05); 
}

#achievements-card {
  transform: translateX(100vw);
  color: #fff;
  border: 5px solid #9400D3;
  border-radius: 10px;
  padding: 15px;
}

#achievements-card.active {
  transform: translateX(420px);
}

.achievement-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  padding-bottom: 10px;
}

.achievement-item {
  padding: 12px 15px;
  background: #4b0082;
  cursor: pointer;
  border: 2px solid #b19cd9;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.2s;
  color: #fff;
  font-weight: bold;
  text-align: center;
}

.achievement-item:hover {
  background: #6a0dad;
  transform: scale(1.05);
}

.achievement-item.active {
  background: #b19cd9;
  color: #000;
}

.achievement-details {
  display: flex;
  flex-direction: column;
  justify-content: start;
  width: 90%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #a56eff;
  border-radius: 5px;
  height: 41vh;
  max-height: 41vh;
  overflow-y: auto;
  scrollbar-color: #a56eff #222;
}

.achievement-detail {
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  width: 100%;
}

.achievement-detail.active {
  position: relative;
  opacity: 1;
}

.achievement-detail:not(.active) {
  pointer-events: none;
}

.achievement-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #dda0ff;
  text-shadow: 0 0 5px #6400c8;
  border-bottom: 2px solid #a56eff;
  padding-bottom: 5px;
}

.achievement-entry {
  margin-bottom: 10px;
}

.achievement-entry a {
  color: #a56eff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
  display: inline-block;
}

.achievement-entry a:hover {
  color: #fff;
  text-decoration: underline;
}

.dan-rank {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #fff;
  font-weight: 600;
}

.bronze-shiny {
  font-weight: bold;
  background: linear-gradient(135deg, #ffcc99, #cd7f32, #b87333);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 2px #fff8dc, 0 0 3px #ffcc99;
}

.achievement-detail ul,
.achievement-detail li {
  list-style: none;
  padding: 0;
  margin: 0;
}



.card-body::after {
  content: "";
  display: table;
  clear: both;
}

.main-card {
  z-index: 1;
}

  .bg {
    opacity: 60%;
    position: fixed;
  }
  
  .card {
    background: linear-gradient(
      360deg,
      rgba(148, 0, 211, .1),
      rgba(148, 0, 211, .5)
    );
    border: 5px solid #9400D3;
    width: 17.5vw;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(148, 0, 211, 0.5);
    animation: cardPulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
  }
  
  @keyframes cardPulse {
    0% {transform: scale(1);}
    50% {transform: scale(1.02);}
    100% {transform: scale(1);}
  }
  
  .card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    background: linear-gradient(
      360deg,
      rgba(148, 0, 211, .1),
      rgba(148,0,211,.3),
      rgba(148, 0, 211, .5)
    );
    animation: shine 2s ease-in-out reverse;
  }
  
  @keyframes shine {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(360deg);}
  }
  
  .card-header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid #9400d3;
    animation: imgPulse 2s ease-in-out infinite;
  }
  
  @keyframes imgPulse {
    0% {transform: scale(1);}
    50% {transform: scale(1.05);}
    100% {transform: scale(1);}
  }
  
  .card-header h1, .card-header h2 {
    color: white;
    margin: 0;
    font-family: 'Arial', sans-serif;
    text-shadow: 2px 2px #9400D3;
    animation: textGlow 2s ease-in-out infinite;
  }
  
  @keyframes textGlow {
    0% {text-shadow: 2px 2px #9400D3;}
    50% {text-shadow: 4px 4px #6A00FF;}
    100% {text-shadow: 2px 2px #9400D3;}
  }

  .card-header p {
    color: #bbb;
    font-size: 0.9em;
  }
  
  .card-body {
    color: #ddd;
    margin-top: 20px;
    border-top: 2px solid #9400D3;
    padding-top: 10px;
  }
  
  .skilltype .arrow-left, .skilltype .arrow-right {
    cursor: pointer;
    margin: 0 10px;
    z-index: 1;
}

.skilltype .arrow-left:hover, .skilltype .arrow-right:hover {
    animation: pulse 0.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.3); }
}

.skills {
    position: relative;
    overflow: hidden;
    min-height: 150px;
}

.skill-list {
    display: none;
    transition: transform 0.3s ease-in-out;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.skill-list.active {
    display: block;
}
  
  .skill {
    margin-bottom: 10px;
  }
  
  .skill span {
    display: block;
    margin-bottom: 5px;
    color: #ddd;
  }
  
  .skill-bar {
    background: #210042;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
  }
  
  .skill-level {
    height: 100%;
    border-radius: 5px;
    background-image: linear-gradient(to right, #9400D3, #6A00FF);
    animation: skillFill 1s ease-out;
  }
  
  .typing-text {
    clip-path: inset(0 100% 0 0);
    animation: typing 2s steps(120, end) forwards;
    min-height: 35px;
    transition: opacity 0.5s ease, height 0.5s ease, margin 0.5s ease;
}

  @keyframes typing {
      from { clip-path: inset(0 100% 0 0); }
      to { clip-path: inset(0 0 0 0); }
  }

  @keyframes skillFill {
    0% {width: 0;}
  }
  
  .card-footer {
  margin-top: 20px;
  border-top: 2px solid #9400D3;
  padding-top: 10px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
  
  .social-link {
    background-color: #222;
    border-radius: 8px;
    border: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.3s;
  }

  .social-link:hover {
  transform: scale(1.1);
  background-color: #444;
}

.social-icon {
  object-fit: contain;
  filter: drop-shadow(0 0 2px #000);
}

  
  @keyframes buttonPulse {
    0% {transform: scale(1);}
    50% {transform: scale(1.05);}
    100% {transform: scale(1);}
  }

.content {
    text-align: left;
}

.section-content {
    display: none;
}

.section-content.active {
    display: block;
}
  
  @keyframes buttonShine {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(360deg);}
  }
  
  .fab {
    font-family: 'Font Awesome 5 Brands';
    font-weight: 400;
  }

#msg-list .msg-item {
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
  border-radius: 5px;
  margin-bottom: 5px;
  color: #fff;
  background-color: #111;
  font-size: 0.9em;
  max-width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 0 8px rgba(0,0,0,.2);
}

#msg-list .msg-item:nth-child(even) {
  background-color: #210042;
}
#msg-list .msg-item:nth-child(odd) {
  background-color: #1b0031;
}

.msg-item.lua {
  background-color: #2d004d !important;
  border: 1px solid #bb00ff;
  border-left: 4px solid #bb00ff !important;
}
.msg-item.lua .msg-header {
  color: #ffff00;
}
.msg-item.lua .msg-content {
  color: #f8de7e;
}

.msg-header {
  font-weight: bold;
  font-size: 1em;
  width: 100%;
  margin-bottom: 2px;
  align-self: flex-start;
  line-height: 1.2;
  text-align: center;
}

.msg-content {
  color: #eee;
  font-size: 1em;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  max-width: 100%;
}

.msg-content.collapsed {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  position: relative;
}

.read-more {
  color: #8888ff;
  font-size: 0.8em;
  cursor: pointer;
  margin-top: 4px;
  align-self: flex-start;
  user-select: none;
}
.read-more:hover {
  text-decoration: underline;
}

.msg-footer {
  align-self: flex-end;
  font-size: 0.7em;
  opacity: 0.6;
  margin-top: auto;
  padding-top: 4px;
}

#msg-error {
  color: #ff6b6b;
  font-size: 0.85em;
  height: 18px;
}
#msg-send {
  background: #4b0082;
  color: #fff;
  border: 1px solid #9400d3;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
#msg-send:hover {
  background: #6a00ff;
}
input, textarea {
  width: 100%;
  padding: 6px;
  margin: 4px 0 10px 0;
  background: #210042;
  border: 1px solid #9400d3;
  color: #fff;
  border-radius: 4px;
}
textarea {
  resize: vertical;
}

#status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 500;
  margin: 10px auto 5px auto;
  background: #25003f;
  color: #ccc;
  border: 1px solid #550088;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

#status-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(71, 71, 71);
  transition: background 0.3s ease;
}

#status-badge.online {
  background: #002910;
  border-color: #00ff44;
  color: #aaffcc;
}

#status-badge.online .dot {
  background: #00ff44;
  animation: pulse 1s infinite ease-in-out;
}

@media (max-width: 768px) {
  .card-container {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    height: auto;
    display: flex;
    margin-top:5vh;
  }

  #messages-card {
    order: 1;
  }

  .main-card {
    order: 0;
  }

  .card {
    width: 80vw;
    margin: 10px auto;
    margin-bottom: 20vw;
  }

  .main-card.shift-left,
  .main-card.shift-right {
    transform: none !important;
  }

  #about-card.active {
    transform: translateX(0) !important;
    position: relative;
    visibility: visible;
    opacity: 1;
  }

  #achievements-card.active {
    transform: translateX(0) !important;
    position: relative;
    visibility: visible;
    opacity: 1;
  }

  .tab-nav {
    flex-wrap: wrap;
    gap: 6px;
  }

  .tab-button {
    flex: 1 1 auto;
  }

  #visitor-count {
    top: 10px;
    right: 10px;
    transform: scale(0.9);
  }
}

@keyframes pulse {
  0% { transform: scale(.5); opacity: .6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(.5); opacity: .6; }
}

#wrapper {
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
  }
  
  #msg-name-input {
    max-width: 95%;
  }
  
  #char-count-wrapper {
    position: relative;
  }
  
  #char-count {
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 0.85rem;
    color: #999;
  }
  
  #msg-textarea {
    width: 100%;
    box-sizing: border-box;
  }
  
  #visitor-count {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: white;
    font-weight: 500;
    font-size: 16px;
    z-index: 999;
    animation: shimmer 6s infinite linear;
  }
  
  #visitor-eye {
    width: 20px;
    opacity: 0.85;
  }
  
  #arrow-left {
    position: absolute;
    right: 75%;
    font-style: normal;
    user-select: none;
  }
  
  #arrow-right {
    position: absolute;
    left: 75%;
    font-style: normal;
    user-select: none;
  }
  
  .social-icon {
    overflow: hidden;
  }
  
  .icon-img {
    height: 100%;
    width: auto;
  }
  
  .discord-icon-img {
    height: 100%;
    width: auto;
  }
  
  #discord-popup {
    display: none;
    position: absolute;
    background: #2f3136;
    color: white;
    padding: 1rem;
    width: 100%;
    max-width: 16.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    font-family: sans-serif;
    box-sizing: border-box;
    height:auto;
  }
  
  #discord-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
  }
  
  #avatar-container {
    position: relative;
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
  }
  
  #avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }
  
  #status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: gray;
    border: 0.1875rem solid #2f3136;
  }
  
  #discord-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
  }
  
  #discord-tag {
    font-size: 0.875rem;
    color: #b9bbbe;
    margin-bottom: 0.25rem;
  }
  
  #discord-id {
    font-size: 0.75rem;
    color: #b9bbbe;
  }
  
  #discord-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    box-sizing: border-box;
  }
  
  .discord-btn {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
  
  .discord-btn.blue {
    background: #5865F2;
    color: white;
  }
  
  .discord-btn.green {
    background: #3ba55c;
    color: white;
  }
  
  
  #terminal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 0, 20, 0.96);
    color: #00ffcc;
    font-family: monospace;
    font-size: 14px;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
  }
  
  .term-green {
    color: #0f0;
  }
  
  .term-pink {
    color: #f0f;
  }
  
  #terminal-input {
    background: transparent;
    border: none;
    color: #00ffcc;
    outline: none;
    width: 80%;
    font-family: monospace;
  }
  
  .visit-counter {
    font-size: 16px;
    color: #fff;
    text-align: center;
    margin-top: 10px;
    opacity: 0.8;
    letter-spacing: 1px;
}

