/* Reset dei margini e padding */ * { margin: 0; padding: 0; box-sizing: border-box; } /* Stili generali per il body */ body { background-color: rgb(0, 0, 0); color: white; font-family: 'Arial', sans-serif; display: flex; flex-direction: column; height: 100vh; } /* Stile per il logo */ .logo.right { position: absolute; top: 20px; /* Puoi aumentare questo valore se necessario */ right: 20px; height: 80px; z-index: 10; /* Assicurati che il logo sia sopra altri contenuti */ } /* Barra laterale */ .sidebar { width: 200px; background-color: #302e2e00; padding-top: 30px; position: fixed; height: 100%; top: 0; left: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: flex-start; box-shadow: 2px 0 10px rgba(0, 0, 0, 0); padding-left: 10px; } /* Container per i canali */ .channel-category { margin-top: 20px; } .channel-category h3 { margin: 10px 0; font-size: 18px; font-weight: bold; } /* Stile per ogni canale */ .channel { display: flex; align-items: center; padding: 10px 20px; margin: 5px 0; background-color: #333; color: white; font-size: 16px; border-radius: 5px; cursor: pointer; transition: all 0.3s ease; } .channel i { margin-right: 10px; } .channel:hover { background-color: #444; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); } .channel:active { transform: scale(0.98); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } /* Contenuto principale */ .main-content { margin-left: 220px; padding: 20px; color: white; background-color: rgba(0, 0, 0, 0); height: 100vh; overflow-y: auto; } /* Contenuto del canale */ .channel-content { display: none; text-align: center; } .channel-content.active { display: block; } /* Titolo del canale */ #channelTitle { font-size: 32px; font-weight: bold; margin-bottom: 20px; margin-top: 50px; } /* Descrizione del canale */ #channelDescription { font-size: 16px; line-height: 1.5; } .input { width: 0px; /* Imposta una larghezza fissa */ padding-left: 2.5rem; } .input { font-family: 'Montserrat', sans-serif; width: 100%; height: 45px; padding-left: 2.5rem; box-shadow: 0 0 0 1.5px #2b2c37, 0 0 25px -17px #000; border: 0; border-radius: 12px; background-color: #16171d; outline: none; color: #bdbecb; transition: all 0.25s cubic-bezier(0.19, 1, 0.22, 1); cursor: text; } .input::placeholder { color: #bdbecb; } .input:hover { box-shadow: 0 0 0 2.5px #2f303d, 0px 0px 25px -15px #000; } .input:focus { box-shadow: 0 0 0 2.5px #2f303d; } .search-icon { position: absolute; left: 1rem; fill: #bdbecb; width: 1rem; height: 1rem; pointer-events: none; } /* Footer */ footer { color: white; text-align: left; padding: 10px; position: fixed; bottom: 0; left: 0; font-size: 12px; background-color: rgba(0, 0, 0, 0); } footer a { color: white; text-decoration: none; } .input-container { position: fixed; bottom: 20px; right: 20px; display: flex; align-items: center; } .input { width: 40px; height: 40px; border-radius: 20px; border: none; outline: none; padding: 18px 16px; background-color: transparent; cursor: pointer; transition: all 0.5s ease-in-out; } .input:focus, .input:not(:placeholder-shown) { width: 290px; padding: 18px 16px 18px 45px; border: 1px solid rgb(82, 82, 82); background-color: #fff; } .icon { position: absolute; left: 0; height: 45px; width: 45px; background-color: #fff; border-radius: 99px; fill: rgb(114, 114, 114); border: 1px solid rgb(65, 65, 65); } .input:focus + .icon, .input:not(:placeholder-shown) + .icon { background-color: transparent; border: none; } .icon { position: absolute; left: 0; height: 45px; width: 45px; background-color: #fff; border-radius: 99px; z-index: -1; fill: rgb(88, 88, 88); border: 1px solid rgb(255, 255, 255); } .input:focus + .icon,.input:not(:placeholder-shown) + .icon { z-index: 0; background-color: transparent; border: none; } .highlight { background-color: #530aff; box-shadow: #fff; color: white; font-weight: bold; } .discord-message { margin: 10px 0; padding: 5px; border: 1px solid #ddd; border-radius: 5px; white-space: pre-wrap; /* Mantieni il formato dei ritorni a capo nel testo */ word-wrap: break-word; /* Vai a capo automaticamente se la parola è troppo lunga */ } .discord-message a { color: #1a73e8; text-decoration: none; } .discord-message img { max-width: 100%; height: auto; } .discord-message code { font-family: "Courier New", monospace; /* Font monospaziato per il codice inline */ font-size: 0.9em; color: #333; background: none; /* Senza sfondo */ padding: 0; white-space: normal; /* Permette il wrap nel codice inline */ } .discord-message pre code { font-family: "Courier New", monospace; /* Usa un font monospaziato per il blocco di codice */ font-size: 1em; padding: 0; background: none; /* Rimuove lo sfondo */ color: #333; /* Imposta il colore del testo */ } .discord-message pre { white-space: pre-wrap; /* Mantieni il formato di ritorno a capo nel blocco di codice */ word-wrap: break-word; /* Vai a capo automaticamente se la parola è troppo lunga */ margin: 10px 0; padding: 10px; background-color: #f5f5f5; /* Puoi cambiarlo o rimuoverlo */ border-radius: 5px; font-family: "Courier New", monospace; border: 1px solid #ddd; /* Bordo leggero */ } /* Stile della freccia */ .category-arrow { margin-right: 8px; transition: transform 0.3s ease; /* Animazione della freccia */ } /* Quando la lista dei canali è visibile, ruota la freccia */ .category-channels { transition: max-height 0.3s ease-out; /* Animazione di espansione/contrazione */ overflow: hidden; max-height: 1000px; /* Valore molto alto per permettere la visibilità */ } /* Nascondi la lista inizialmente */ .category-channels[style*="display: none"] { max-height: 0; } /* Stile per la categoria e la lista di canali */ .channel-category { margin-bottom: 10px; } .category-header { cursor: pointer; display: flex; align-items: center; } h3 { margin: 0; font-size: 16px; font-weight: bold; } /* Posizionamento del bottone 'New Inside' */ .new-button { position: fixed; top: 10px; /* Distanza dal bordo superiore */ left: 50%; transform: translateX(-50%); /* Centra il bottone orizzontalmente */ z-index: 999; /* Assicurati che il bottone sia sopra gli altri contenuti */ margin: 0; } /* === Rimuovere lo stile di default del bottone === */ .button { margin: 0; height: auto; background: transparent; padding: 0; border: none; cursor: pointer; } /* Stile del bottone */ .button { --border-right: 6px; --text-stroke-color: rgba(255,255,255,0.6); --animation-color: #ffffff; --fs-size: 2em; letter-spacing: 3px; text-decoration: none; font-size: var(--fs-size); font-family: "Arial"; position: relative; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px var(--text-stroke-color); } /* La parte hover deve coprire l'intero testo */ .hover-text { position: absolute; box-sizing: border-box; content: attr(data-text); color: var(--animation-color); width: 0%; /* Inizia con larghezza 0% */ inset: 0; border-right: var(--border-right) solid var(--animation-color); overflow: hidden; transition: 0.5s; -webkit-text-stroke: 1px var(--animation-color); } .button:hover .hover-text { width: 100%; filter: drop-shadow(0 0 23px var(--animation-color)); } body { -webkit-user-select: none; /* Chrome, Safari */ -moz-user-select: none; /* Firefox */ -ms-user-select: none; /* IE10+ */ user-select: none; /* Standard */ }