@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: row;
    height: 100vh;
    font-family: 'JetBrains Mono', monospace;
}

.left-section {
    width: 70%;
    background: #0C0C0C;
    display: flex;
    justify-content: flex-end; /* spinge il contenuto in basso */
    align-items: flex-start;
    flex-direction: column;
    padding-left: 50px;
    padding-bottom: 50px; /* margine dal fondo */
    position: relative;
}

.left-section canvas#terminalCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.left-section h1,
.left-section h2 {
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
    color: #F9F1A5; /* testo chiaro per contrasto */
    text-align: left;
    position: relative;
    z-index: 1;
}

.left-section h1 {
    font-size: 3em;
    font-weight: bold;
    color: #F9F1A5; /* viola per titolo principale */
}

.left-section h2 {
    font-size: 1.5em;
    margin-top: 10px;
    color: #B4009E; /* arancione come accento */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.right-section {
    width: 30%;
    background-color: #1A1A1A; /* più scuro per armonizzare con buco nero */
    padding: 20px;
    overflow-y: auto;
}

.right-section h2 {
    text-align: center;
    margin: 35px;
    font-size: 1.5em;
    color: #F9F1A5; /* titolo giallo chiaro */
}

.post {
    background-color: #2C2C2C; /* grigio scuro per card */
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    border-left: 4px solid #B4009E; /* viola per evidenziare */
}

.post:hover {
    transform: scale(1.05);
    background-color: #881798; /* viola scuro al passaggio */
}

.post h3 {
    margin-bottom: 5px;
    font-size: 1.2em;
    color: #F9F1A5; /* titolo giallo chiaro */
}

.post p {
    font-size: 0.9em;
    color: #CCCCCC; /* testo grigio chiaro */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Scrollbar per browser WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar-track {
    background: #1e1e1e;   /* Colore del track */
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: #555; /* Colore del pollice (thumb) */
    border-radius: 6px;
    border: 3px solid #1e1e1e; /* Spazio tra thumb e track */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #888;  /* Colore al passaggio del mouse */
}

/* Scrollbar per Firefox */
* {
    scrollbar-width: thin;            /* Dimensione della scrollbar */
    scrollbar-color: #555 #1e1e1e;   /* thumb colore | track colore */
}
