
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Nunito', sans-serif;
  background: #0a0f2c;
  color: #fff;
}


.welcome-popup {
  max-width: 700px;
  min-height: 300px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.welcome-hacker {
  width: 180px;
  margin-right: 15px;
}
.welcome-text {
  flex: 1;
}
.welcome-title {
  font-size: 2.2rem;
  color: #39ff14;
  margin-bottom: 15px;
}
.typing-intro {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 15px;
}
.welcome-start {
  font-size: 1.3rem;
  padding: 15px 25px;
}


.page-header {
  text-align: center;
  padding: 15px;
  background: transparent;
  position: relative;
  z-index: 1000;
}

#mainTitle {
  position: relative;
  display: inline-block;
  color: #0f0;
  font-size: 2.4rem;
  margin-bottom: 5px;
  text-shadow: 0 0 5px #0f0, 0 0 10px #0f0;
  transition: all 0.3s ease;
}
#mainTitle:hover {
  animation: glitchHover 1s infinite;
}
@keyframes glitchHover {
  0% { transform: translate(0, 0); }
  20% { transform: translate(2px, -2px) skewX(5deg); }
  40% { transform: translate(-2px, 2px) skewX(-5deg); }
  60% { transform: translate(1px, -1px) skewX(3deg); }
  80% { transform: translate(-1px, 1px) skewX(-3deg); }
  100% { transform: translate(0, 0); }
}
.subtitle {
  font-size: 1.3rem;
  color: #81d4fa;
  margin-bottom: 10px;
}
.score-bar {
  font-size: 1.2rem;
  display: inline-block;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  padding: 5px 10px;
  position: relative;
}
#scoreLabel {
  margin-right: 10px;
}
.progress-bar-container {
  width: 120px;
  height: 10px;
  background: #333;
  border-radius: 5px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin: 0 10px;
}
.progress-bar-fill {
  width: 0;
  height: 100%;
  background: #39ff14;
  transition: width 0.4s;
}
#progressPercentLabel {
  margin-left: 10px;
}


.bubble-bar-right {
  position: fixed;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
  z-index: 1000;
  overflow: visible;
}
.bubble {
  position: relative;
  width: 50px;
  height: 50px;
  background: #39FF14;
  border-radius: 50%;
  cursor: pointer;
  overflow: visible;
  transition: width 0.3s ease, border-radius 0.3s ease;
}
.bubble img {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  pointer-events: none;
}
.bubble .label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%) translateX(-20px);
  font-size: 1rem;
  font-weight: bold;
  color: #000;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.bubble:hover,
.bubble.expanded {
  width: 160px;
  border-radius: 25px;
}
.bubble:hover .label,
.bubble.expanded .label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.bubble:hover {
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.8);
}


.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}
.hidden {
  display: none !important;
}
.popup-content {
  background: #222;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 20px #39ff14;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.6;
}
.intro-content {
  background: #111;
  box-shadow: 0 0 15px #39ff14;
}
.popup-btn {
  background: #39ff14;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 1.1rem;
  margin: 10px;
  cursor: pointer;
  transition: transform 0.3s;
}
.popup-btn:hover {
  transform: scale(1.05);
}
.bigger-btn {
  font-size: 1.3rem;
  padding: 15px 25px;
}


#hackOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: transparent;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
#matrixCanvas {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}


#particles-js {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
}


.round-container {
  display: flex;
  justify-content: center;
  align-items: center; 
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.panel {
  background: #1a1a1a;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(57,255,20,0.3);
  min-width: 250px;
  min-height: 400px;
}
.panel h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #81d4fa;
}
#emailList {
  list-style: none;
  padding: 0;
}
#emailList li {
  background: #333;
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
  position: relative;
}
#emailList li:hover {
  background: #444;
}
#emailList li.selectedEmail {
  box-shadow: 0 0 8px #39ff14;
}
.lock-symbol {
  width: 24px;
  height: 24px;
  margin-left: 5px;
  animation: floatlock 2s ease-in-out infinite alternate;
}
@keyframes floatlock {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}
.big-panel {
  flex: 1;
  min-width: 400px;
}
#emailTitle {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #81d4fa;
}
#emailContent {
  background: #fff;
  color: #333;
  border-radius: 10px;
  padding: 15px;
  min-height: 300px;
  font-size: 1.2rem;
  line-height: 1.4;
}
.button-group {
  text-align: center;
  margin-top: 20px;
}
.action-btn {
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
  transition: transform 0.3s;
}
.action-btn:hover {
  transform: scale(1.05);
}
.legit-btn {
  background: #28a745;
  color: #fff;
}
.phishing-btn {
  background: #dc3545;
  color: #fff;
}


#instructionsPanel {
  max-width: 280px;
}
.inst-list {
  list-style: none;
  margin-top: 10px;
}
.inst-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.inst-list li::before {
  content: "•";
  color: #39ff14;
  font-size: 1.3rem;
  margin-right: 5px;
  transform: translateY(2px);
}


#round2Container {
  flex-direction: column;
  text-align: center;
}
#round2Title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
  transition: transform 0.3s;
}
#round2Title:hover {
  transform: scale(1.05) rotate(3deg);
}
#timerBar {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 15px;
}
.round2-content {
  background: #1a1a1a;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(57,255,20,0.3);
  width: 600px;
  margin: 0 auto;
}
#round2ImageBox {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  height: 300px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-action {
  display: inline-block;
  background: linear-gradient(135deg, #ffce00, #f9a825);
  border: none;
  border-radius: 12px;
  color: #333;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 10px 20px;
  cursor: pointer;
  text-align: center;
  min-width: 140px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.email-action:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.email-action:active {
  transform: scale(0.98);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.4);
}



.redflag {
  text-decoration: underline dashed red;
  cursor: pointer;
}
.redflag.flagged {
  background: rgba(255,0,0,0.2);
  color: red;
}


@keyframes glitchHover {
  0% { transform: translate(0, 0); }
  20% { transform: translate(2px, -2px) skewX(5deg); }
  40% { transform: translate(-2px, 2px) skewX(-5deg); }
  60% { transform: translate(1px, -1px) skewX(3deg); }
  80% { transform: translate(-1px, 1px) skewX(-3deg); }
  100% { transform: translate(0, 0); }
}
