 @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap');
/* Reset + sane defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

 body {
  min-height: 100vh;
  background-color: #2e3440; /* optional dark bg */
  color: #eceff4;
  font-family: 'JetBrains Mono', monospace;
}

/* Root container */
#root {
  width: 100%;
  height: 100%;
}
/* Standard Desktop Styles */
.box {
  width: 300px;
  font-size: 16px;
  padding: 20px;
}

/* Mobile Styles (Screens 768px and smaller) */
@media (max-width: 768px) {
  .box {
    width: 90%;      /* Makes the element take up more horizontal space */
    font-size: 24px;  /* Makes text larger for readability */
    padding: 40px;    /* Increases spacing */
  }
}
/* Make body fill the viewport */
.container {
  display: flex;
  flex-direction: row; /* Side by side on desktop */
}

@media (max-width: 600px) {
  .container {
    flex-direction: column; /* Stacked on mobile */
  }
}


.abstract-grid {
  display: grid;
  gap: 16px;
  /* Default for mobile: 2 equal columns */
  grid-template-columns: repeat(1, 1fr);
} 

@media (min-width: 768px) {
  .abstract-grid {
    /* Desktop: Adjust based on minimum width */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  } 
}
.follow-grid {
  display: grid;
  gap: 16px;
  /* Default for mobile: 2 equal columns */
  grid-template-columns: repeat(1, 1fr);
} 

@media (min-width: 768px) {
  .follow-grid {
    /* Desktop: Adjust based on minimum width */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  } 
}

.navbar {

  position: fixed;
  top: 0;
  left: 0;
  height: 100vh; /* Full height sidebar */
  width: 5.5rem;
  border-right: 1px solid #4c566a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background-color: #2e3440;
  z-index: 100;
}

/* Mobile: Bottom Bar (Screens 768px and smaller) */
@media (max-width: 768px) {
  .navbar {
    position:fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    flex-direction: row; /* Horizontal icons */
    border-right: none;
    border-top: 1px solid #4c566a;
  }

  /* Prevent content from being hidden behind bottom nav */
  body {
    padding-bottom: 60px;
  }
}

em {
  color: #88c0d0;
}
blockquote {
  padding-left:2rem;
  border-left: 2px solid #8fbcbb;
}
strong {
  color: #8fbcbb;
}
li {
  padding-left:1em;
}
span {display: inline;}
h1 {
  margin: 5rem 0 2rem 0;
}
h2 {
  margin: 5rem 0 2rem 0;
}

a {
  color: #81a1c1;
  text-decoration: none;
}
a:hover {
  color: #eceff4;
}
.tooltip {
  color:#5e81ac;
  cursor: pointer;
  display: inline;
}

.tooltip-box {
  display: none;
  position: fixed; 
  
  /* Use viewport units to force it to the screen center */
  top: 50vh;
  left: 50vw;
  
  /* This moves the element's center point to the coordinates above */
  transform: translate(-50%, -50%);

  /* Prevents the box from ever being wider than the screen */
  max-width: 90vw; 
  width: 320px;
  max-height: 80vh;
  
  overflow-y: auto;
  padding: 10px;
  background: #4c566a;
  color: #d8dee9;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.4;
  z-index: 9999; /* Bumped up to stay on top of everything */
}      


.tooltip:hover .tooltip-box {
  display: block;
}
::-moz-selection { /* Code for Firefox */
  color: #81a1c1;
  background: #e5e9f0;
}

::selection {
  color: #81a1c1;
  background: #e5e9f0;
}
.navbar nav {
  opacity: .3;
  transition: opacity 0.3s ease-in-out;
}

.navbar nav:hover {
  opacity: 1;
}
.navbar a[aria-current="page"] {
  opacity: 1;
  color: #b48ead;
  font-weight: bold;
}

/* Container for the main content area */
.main-content {
  flex-grow: 1;
  padding: 2rem;
  /* Shift content right only on PC to make room for sidebar */
  margin-left: 5.5rem; 
}

.code-blocks {
  background: #4c566a;
  color: #81a1c1;
  font-size: 10pt;
}
.keyword {
  font-weigth: 800;
  color: #b48ead; 
}
/* The specific text container (Whoami) */
.content-container {
  max-width: 60%; /* Limit to 60% on PC */
  margin: 0 auto; /* Center it */
  min-width:700px; 
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0; /* No margin on mobile */
    padding: 1rem;
  }

  .content-container {
    max-width: 100%; /* Full width on mobile */
    min-width: 0;    /* Remove the 600px restriction */
  }
}
.inner {
  font-size:10pt;
  color: #b48ead;
}
.roadmap-container {
  width: 100%;
  height: 100%;
  border:1px solid #4c566a;
}

.outer {
  font-size: 11pt; 
}
.roadmap-nodes {
  color: #eceff4;
}
.lateralling {
  color:#d8dee9;
  border-left: 1px solid #88c0d0;
  padding: .5rem 1rem .5rem;
  font-size: 10pt;
  background-color: #3b4252;
}
.matrix-visualizer {
  position: relative; 
  width: fit-content;
  heigth: fit-content;
  background-color: #ff4242;
}

#tcp {
  fill: #4c566a;
  transition: fill 0.2s ease; /* Optional: adds a smooth fade effect */
}

#tcp:hover {
  fill: #ebcb8b;
}

#tls {
  fill:#eceff4;
  transition: fill 0.2s ease; /* Optional: adds a smooth fade effect */
}

#tls:hover {
  fill: #ebcb8b;
}
#mqtt {
  fill:#d8dee9;
  transition: fill 0.2s ease; /* Optional: adds a smooth fade effect */
}

#mqtt:hover {
  fill: #ebcb8b;}


 /* 1. Hide the HTML container by default */
#tcp-popup {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none; /* Stops it from blocking hovers while hidden */
}



#tcp-group:hover #tcp-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* CRITICAL: Allows you to move your mouse inside and click links! */
}

/* 3. Style your HTML elements just like normal web development */
.popup-card {
  background: #2e3440;
  color: #eceff4;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  font-family: sans-serif;
  font-size:11.2pt;
  z-index:9999;
}

.popup-card h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
}

.popup-card ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
}
.popup-card span {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
}


.popup-card a:hover {
  text-decoration: none;
}
 /* 1. Hide the HTML container by default */
#tls-popup {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none; /* Stops it from blocking hovers while hidden */
}

#tls-group:hover #tls-popup {
  z-index:0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* CRITICAL: Allows you to move your mouse inside and click links! */
} 
#mqtt-popup {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none; /* Stops it from blocking hovers while hidden */
}

#mqtt-group:hover #mqtt-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* CRITICAL: Allows you to move your mouse inside and click links! */
} 
