:root {
    --background: #1e1e2e;   
    --surface: #313244;      
    --text: #cdd6f4;            
    --accent: #f5c2e7;           
    --accent-hover: #f8a1f1;    
    --shadow: rgba(0, 0, 0, 0.5);
}

*, *::before, *::after {
    box-sizing: border-box;
    color: var(--text);
}

html {
    scrollbar-gutter: stable both-edges;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: "Segoe UI", "Fira Code", monospace;
    background-color: var(--background);
    color: var(--text);
}

h1 {
    margin-top: 80px;
    text-align: center;
}

h2 {
    margin-top: 30px;
    text-align: center;
}

p {
    text-align: center;
}


.top-bar {
    display: flex;
    align-items: center;
    background-color: #181825;
    color: var(--text);
    padding: 12px 24px;
    position: fixed;
    top: 0;
    gap: 20px;
    width: 100%;
    box-shadow: 0 2px 4px #7f849c;
    z-index: 1000;
    transition: background 0.3s;
}
.menu-btn {
    background: transparent;  
    color: #cdd6f4;            
    border: none;             
    font-size: 1.5rem;         
    cursor: pointer;
}

.side-bar {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background-color: var(--surface);
    color: var(--text);
    box-shadow: -3px 0 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    padding: 60px 20px; /* leave space for top-bar */
    gap: 20px;
    transform: translateX(250px);  /* start hidden off-screen */
    transition: transform 0.3s ease;
    z-index: 500;
}

.main-content {
    transition: transform 0.3s ease;
}

.side-bar.active {
    transform: translateX(0); /* slide in */
}

body.side-bar-open .main-content {
    margin-right: 250px;
    transition: margin-right 0.3s ease;
}



.floating-card {
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    z-index: 1;
    margin: 30px auto; 
    background-color: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    width: 300px;
    text-align: center;
    color: var(--text);
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}
.floating-card h2 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.floating-card p {
    font-size: 0.95rem;
    line-height: 1.4;
}


.floating-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
    background-color: #3b3b5a;
}



.bottom-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #11111b;
    color: #cdd6f4;
    padding: 12px 12px;

    position: fixed;
    bottom: 0;
    width: 100%;
    
    left: 0;
    right: 0;

    box-shadow: none;
    flex-wrap: wrap;
    gap: 8px 16px;
    z-index: 1000;
    transition: background 0.3s;
    text-align: center;
}



.shell-wrapper {
    text-align: center;
}

.shell-script {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background-color: #181825;
    padding: 10px 14px;
    border-radius: 8px;

    margin: 0 auto;      
    text-align: center;
}

.copy-btn {
    top: 8px;
    right: 8px;
    margin-left: 12px;
    background: #313244;
    color: #cdd6f4;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #f5c2e7;
    transition: ease-in 0.2s;
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.05);

}

.logo2 {
    font-size: 20px;
    font-weight: bold;
    color: #f5c2e7;
    transition: ease-in 0.2s;
    text-decoration: none;
}

.logo2:hover {
    transform: scale(1.05);

}

.socials {
    display: flex;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.socials a {
    color: #7f849c;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.15s ease;
}

.socials a[href*="youtube"]:hover   { color: #f38ba8; }
.socials a[href*="github"]:hover    { color: #cdd6f4; }
.socials a[href*="itch"]:hover      { color: #fab387; }
.socials a[href*="mastodon"]:hover  { color: #89b4fa; }
.socials a[href*="bsky"]:hover      { color: #89dceb; }
.socials a[href*="matrix"]:hover    { color: #a6e3a1; }
.socials a[href*="mailto"]:hover    { color: #eba0ac; }
.socials a[href*="discord"]:hover {color: #74c7ec;}

.socials a:hover {
    color: #cdd6f4;
    transform: translateY(-2px);
    text-decoration-line: underline;
}
