/* General Styles */
@import url('https://fonts.cdnfonts.com/css/orbitron');

body {
    background-color: black;
    color: white;
    font-family: 'VT323', monospace;
    margin: 0;
    padding: 0;
}

/* Hide [x-cloak] elements until Alpine is ready */
[x-cloak] { display: none !important; }

@font-face {
    font-family: 'Radio';
    font-family: 'Orbitron', sans-serif;
    src: url('./radio-stars.regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
  }

/* Make the canvas stay in the background */
#networkCanvas {
    position: fixed; /* Stays fixed behind everything */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Push it to the back */
}

/* Topbar */
.topbar-wrap {
    position: sticky;
    top: 0;
    z-index: 20; /* above canvas and content */
    width: 100%;
    background: rgba(0,0,0,0.9);
    border-bottom: 1px solid #1f2937; /* gray-800 */
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.topbar {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
}
.topbar .logo {
    height: 44px;
    width: auto;
    margin: 0;
}
.topbar-title {
    font-family: "Radio";
    font-size: 1.75rem;
    letter-spacing: 1px;
    text-transform: none;
    color: rgba(230, 0, 0, 0.9);
}
.topbar-sub {
    color: #d1d5db; /* gray-300 */
    font-size: 0.95rem;
}

/* Tabs in topbar */
.topbar-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 16px 10px 16px;
    border-top: 1px solid #1f2937; /* gray-800 */
}
.tab-btn {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: #9ca3af; /* gray-400 */
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tab-btn:hover {
    color: #ffffff;
    border-color: #6f1f1f;
    background: #6f1f1f;
}
.tab-btn.active {
    color: #000000;
    background: rgba(230, 0, 0, 0.9);
    border-color: rgba(230, 0, 0, 0.9);
}
.tab-btn.active:hover {
    background: #fe2121;
    border-color: #ff5555;
}

/* Center hero text and bring it above the canvas */
.hero-content {
    position: relative;
    z-index: 10; /* Ensures it's above the canvas */
    text-align: center;
    padding: 20vh 5vw; /* Add horizontal padding */
}

/* Styling for text */
h1 {
    font-size: 4rem;
    color: red;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: "Radio";
}

h2 {
    font-size: 2rem;
    color: red;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: "Radio";
}

h3 {
    font-size: 1.5rem;
    color: red;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: "Radio";
}

p {
    font-size: 1rem;
}

/* Ensure sections have enough spacing */
section {
    position: relative;
    z-index: 10; /* Keeps all content above the canvas */
    padding: 10vh 5vw; /* Add padding to avoid text touching edges */
    max-width: 900px;
    margin: 0 auto; /* Center the content */
}

/* Fix Links - Make them Red */
a {
    color: yellow;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff5555; /* Slightly lighter red on hover */
}

/* Style Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: rgba(230, 0,0, 0.8);
    color: black;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #ff5555;
}

/* Large button and disabled state */
.btn-lg {
    font-size: 1.125rem; /* text-lg */
    padding: 16px 28px;
    border-radius: 10px;
}
.btn[aria-disabled="true"] {
    background-color: #374151; /* gray-700 */
    color: #9ca3af; /* gray-400 */
    cursor: not-allowed;
    pointer-events: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 3vh 0;
    font-size: 1rem;
    color: gray;
}
/* Ensure logo is centered and responsive */
.logo {
    width: 100%; /* Default size */
    max-width: 80vw; /* Prevents it from being too large */
    height: auto;
    margin-bottom: 20px;
}

/* Keep the hero section centered */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20vh 5vw;
}

#stamp {
    width: 150px;
    transition: transform 0.8s ease, filter 0.6s ease;
    margin-top: 20px;
}

#stamp:hover {
    filter: drop-shadow(0 0 10px rgba(255, 255, 0, 0.412));
    transform: rotate(-2deg) scale(1.05);
    transform: scale(1.05);
    transition: transform 0.8s ease;
}

/* Adjust on smaller screens */
@media (max-width: 768px) {
    .logo {
        width: 180px;
    }
}
