
@keyframes tremer {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-2px, 0px) rotate(1deg); }
  30% { transform: translate(2px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-2px, 1px) rotate(0deg); }
  70% { transform: translate(2px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@keyframes brilho {
  50% {
    box-shadow: 0 0 40px hsl(12, 100%, 60%);
  }
}

@font-face {
    font-family: "display-font"; /* --- from https://www.dafont.com --- */
    src: url(/fonts/the-typewriter-hell.otf) format(opentype);
    font-weight: normal;
    font-style: normal;
}

:root {
    --warn: #dc322f;
    --accent: #e9e9e9;
    --hover: #080707; 
}
::selection {
    color: #000;    
    background-color: #e9e9e9;
}
html {
    height: 100%;
    font-family: "Consolas", monospace;
    font-size: 15px;
    background: #000 url(/media/assets/sitebg.png) no-repeat bottom right fixed;
    color: #e0be23;
    overflow: hidden;
    cursor: url('https://www.rw-designer.com/cursor-view/180514.png') -10 10, auto !important;
    

}
body {

    position: relative;
    margin: 0;
    overflow: hidden; 
    min-height: 100vh; 
    width: 100%; 
    background-image: url('/visual/fundo.png'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

a, 
button, 
.playlist-track-ctn, 
.btn-action, 
.btn-play, 
#myProgress, 
#volume-slider,
.blog-post, 
.gallery-item, 
.tab-btn, 
.close-btn {
    cursor: url('https://www.rw-designer.com/cursor-view/180526.png') -10 10, pointer !important;
}

.main {
    height: calc(100vh - 80px); 
    box-sizing: border-box; 
    width: 750px;
    padding: 10px;
    background: rgba(75, 4, 4, 0.8);
    position: absolute;
    top: 40px;
    left: 40px;
    overflow-y: auto; 
    scroll-padding-top: 101px;
    scroll-behavior: smooth;
    scrollbar-color: #e0be23 #11180d;
    scrollbar-width: thin;
    border: 2px solid #11180d;
    box-shadow: 0 0 15px #11180dbe; 
}

.no-scroll > .main {
    position: fixed;
    height: 100%;
}
/* navigation */
.navigate {
    font-size: 16px; 
    font-weight: bold;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.navigate ul, .navigate ul li {
    display: inline;
    margin-left: 10px;
}
.navigate > ul > li.nav-item:after {
    content: " /";
}
.navigate > ul > li:last-of-type:after {
    content: none;
}
.navigate a, .navigate a:focus, .navigate a:active {
    color: #e9e9e9;
}
.navigate a:hover {
    color: var(--hover);
}
.navigate li.praxislatina-button-container {
    float: top;
}

.navigate a.praxislatina-button {
    display: inline-block;
    vertical-align: middle; 
}

.navigate a.praxislatina-button img {
    width: 88px; 
    height: 31px; 
}

.navigate a.praxislatina-button:hover {
    animation: tremer 0.3s infinite;
}
.tremer {
    display: inline-block;
}
.tremer:hover {
    animation: tremer 0.3s infinite;
}

.brilho {
    display: inline-block;
}
.brilho:hover {
    animation: brilho 0.3s infinite;
}
/* main content */
h1.page-title {
    margin: 0;
        margin-top: -8px;
    font-family: "display-font";
    font-size: 51px;
    font-weight: normal;
}

h3.date {
    font-size: 16px;
    margin: 0;
}
h2.title:first-of-type,
h3.date:first-of-type {
    margin-top: 15px;
}
p {
    line-height: 1.2;
}
.main p:last-of-type, .main ul:last-of-type {
    margin-bottom: 0;
}
a {
    color: var(--accent);
    text-decoration: none;
}
a:hover, a:active, a:focus {
    color: var(--hover);
    font-weight: bold;
}
hr {
    margin: 15px 0;
    border: 1px solid var(--accent);
    border-width: 1px 0 0 0;
}
.main ul {
    list-style: none;
    list-style-position: inside;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}
.main ul.with-list-style {
    list-style: square;
    list-style-position: inside;
    line-height: 1.2;
    margin: 0 15px;
    padding: 0;
}
.main ol {
    list-style-position: inside;
    line-height: 1.2;
    margin: 0;
    margin-bottom: 0;
    padding: 0;
}
.main dl, .main dl dd {
    margin-bottom: 0;
    margin-left: 0;
}
textarea {
    resize: none;
}

.navbar {
    position: sticky;
    top: -10px; 
    z-index: 100; 
    background-color: rgb(75, 4, 4); 
    
    margin: -10px -10px 20px -10px; 
    padding: 15px 20px 0 20px; 
}

/* WELCOME */

#welcome {
    margin-bottom: 40px;
    margin-top: 40px;
}

/* ABOUT */

#about {
    margin-bottom: 40px;
    margin-top: 40px;
}

/* MUSIC */

#music {
    margin-bottom: 40px;
    margin-top: 40px;
}

/* BLOG */

#blog {
    margin-bottom: 40px;
    margin-top: 40px;
}

/* GALLERY */

#gallery {
    margin-bottom: 40px;
    margin-top: 40px;
}

/* CHAT */

#chat {
    margin-bottom: 40px;
    margin-top: 40px;
}

/* LINKS */

#links {
    margin-bottom: 40px;
    margin-top: 40px;
}

 /* MUSIC PLAYER*/

.music-player-container {
    display: flex; gap: 20px; 
    flex-wrap: wrap; 
    justify-content: center;
    margin-top: 20px;
}

 /* 1. PLAYER PRINCIPAL (Centralizado e Arrumado) */
        .player-ctn {
            border-radius: 15px; width: 100%; max-width: 500px;
            padding: 15px; background-color: var(--player-bg);
            box-sizing: border-box; display: flex; flex-direction: column; gap: 10px;
            background-color: rgba(99, 13, 13, 0.8); 
        }

        .infos-ctn {
            display: flex; align-items: center; justify-content: space-between;
            color: var(--text-gold); font-size: 0.9em;
        }

        .infos-ctn .song-name { font-weight: bold; flex-grow: 1; text-align: center; margin: 0 10px; }

        #myProgress {
            width: 100%; height: 6px; background-color: rgba(255,255,255,0.2);
            border-radius: 3px; cursor: pointer; overflow: hidden;
        }
#myBar { 
    height: 100%; 
    width: 0%; 
    background-color: #e0be23; 
    transition: width 0.1s linear; 
    pointer-events: none; 
}
        .btn-ctn {
            display: flex; align-items: center; justify-content: center; /* Centraliza os controles */
            gap: 20px; width: 100%; position: relative; /* Para o volume absoluto */
        }

        .btn-action, .btn-play {
            color: var(--text-gold); cursor: pointer; font-size: 1.3em;
            transition: transform 0.1s, color 0.1s;
        }
        .btn-action:hover, .btn-play:hover { color: var(--accent); transform: scale(1.1); }
        .volume-container {
            display: flex; align-items: center; gap: 8px;
            position: absolute; right: 0; 
        }
        .volume-container i { color: var(--text-gold); font-size: 1.1em; }

        #volume-slider {
        width: 70px; 
        height: 4px; 
        cursor: pointer;
        accent-color: #e0be23; 
        }


/* 2. PLAYLIST EM LINHAS (Horizontal) */
        .playlist-ctn {
            width: 100%; max-width: 600px;
            background-color: var(--player-bg);
            padding: 10px; border-radius: 10px;
            display: flex; flex-direction: column; gap: 8px;
        }

        .playlist-track-ctn {
            display: flex; align-items: center; justify-content: space-between;
            padding: 8px 12px; background-color: rgba(255,255,255,0.05);
            border-radius: 5px; cursor: pointer; transition: background 0.2s;
        }

        .playlist-track-ctn:hover { background-color: rgba(255,255,255,0.1); }
        .playlist-track-ctn.active-track { background-color: rgba(224, 190, 35, 0.2); }

        .playlist-btn-play { color: var(--text-gold); font-size: 1.2em; width: 30px; text-align: center; }
        .playlist-info-track { flex-grow: 1; padding: 0 15px; color: var(--accent); }
        .playlist-duration { color: #888; font-size: 0.9em; }

/* ----- LAYOUT DOS CARDS DE BLOG (HORIZONTAL) ----- */
.blog-grid {
    display: flex;
    flex-direction: column; 
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 50px;
}

.blog-post {
    background-color: rgba(99, 13, 13, 0.8);
    border: 1px solid var(--accent);
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    position: relative; 
    display: grid;
    grid-template-columns: 2fr 1fr; 
    grid-template-rows: auto auto;
    grid-template-areas: 
        "content title"
        "date title";
    column-gap: 20px;
    align-items: start;
    margin: 0 35px 0 35px;
}

/* O estado .active continua igual... */
.blog-post:hover, .blog-post.active {
    transform: scale(1.02);
    background-color: rgba(120, 20, 20, 0.9);
}

.blog-post .title {
    grid-area: title;
    font-size: 26px; 
    line-height: 1.1;
    margin: 0;
    word-break: break-word; 
    align-self: center; 
    text-align: right; 
}

.blog-post .blog-content {
    grid-area: content;
    max-height: 45px; 
    overflow: hidden;
    margin: 0;
    mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}

.blog-post .date {
    grid-area: date;
    font-size: 14px;
    color: #bfa51d; 
    margin: 5px 0 0 0;
}

/* ----- FORMATAÇÃO DENTRO DO MODAL ----- */
#modal-body .title {
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 5px;
}

#modal-body .date {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--accent);
}

#modal-body .blog-content {
    max-height: none;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
}

/* ----- MODAL INDEPENDENTE ----- */
#blog-modal-overlay {
    display: none; 
    position: fixed;
    top: 0; right: 0; width: 60vw; height: 110vh;
    z-index: 9998;
    background-color: transparent; 
    pointer-events: none; 
    justify-content: center;
    align-items: center;
}

#blog-modal-box {
    position: relative;
    pointer-events: auto; 
    width: 70vw;
    max-width: 700px;
    height: 60vh;
    background-color: rgba(75, 4, 4, 0.98);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 30px;
    box-sizing: border-box;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1); 
}

#blog-modal-box .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #e0be23;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

#blog-modal-box .close-btn:hover {
    color: var(--accent);
}

#modal-body .blog-content {
    max-height: none;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
}


/* ----- QUADRADOS DA GALERIA (GRID) ----- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gallery-item {
    background-color: rgba(99, 13, 13, 0.8);
    border: 1px solid var(--accent);
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1 / 1; 
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
    padding: 10px;
    box-sizing: border-box;
}

.gallery-item:hover, .gallery-item.active {
    transform: scale(1.05);
    background-color: rgba(120, 20, 20, 0.9);
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none; 
    -webkit-user-drag: none; 
}

.item-title-preview {
    font-size: 12px;
    color: var(--accent);
    font-weight: bold;
    text-align: center;
}

.gallery-item .gallery-desc {
    display: none;
}

/* ----- GALLERY MINI NAVBAR & TABS ----- */
.gallery-nav {
    margin-top: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 10px;
}

.gallery-nav .tab-btn {
    background: none;
    border: none;
    color: #e0be23; 
    font-family: "Consolas", monospace;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.gallery-nav .separator {
    margin: 0 10px;
    color: #e0be23;
}

.gallery-nav .tab-btn:hover {
    color: var(--hover);
}

/* Estado ativo do botão da mini navbar */
.gallery-nav .tab-btn.active {
    color: var(--accent);
    text-decoration: underline;
}

/* ----- LOGICA DE EXIBIÇÃO DAS ABAS ----- */
.gallery-tab {
    display: none; 
}

.gallery-tab.active {
    display: block; /* Mostra apenas a aba com a classe active */
    animation: fadeInTab 0.3s ease-in-out;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----- QUADRADOS DA GALERIA (GRID) ----- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gallery-item {
    background-color: rgba(99, 13, 13, 0.8);
    border: 1px solid var(--accent);
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1 / 1; 
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
    padding: 10px;
    box-sizing: border-box;
}

.gallery-item:hover, .gallery-item.active {
    transform: scale(1.05);
    background-color: rgba(120, 20, 20, 0.9);
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mock-cube-icon {
    font-size: 28px;
    margin-bottom: 5px;
}

.item-title-preview {
    font-size: 12px;
    color: var(--accent);
    font-weight: bold;
    text-align: center;
}

.gallery-item .gallery-desc {
    display: none;
}

/* ----- CONFIGURAÇÃO DO MODAL DA GALERIA ----- */
#gallery-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9998;
    background-color: transparent;
    pointer-events: none; 
    justify-content: center;
    align-items: center;
}

#gallery-modal-box {
    position: relative;
    pointer-events: auto; 
    width: 90vw;
    max-width: 600px;
    height: 70vh;
    background-color: rgba(75, 4, 4, 0.98);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 30px;
    box-sizing: border-box;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
}

#gallery-modal-box .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #e0be23;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

#gallery-modal-box .close-btn:hover {
    color: var(--accent);
}

#gallery-modal-body .gallery-desc {
    display: block; 
    margin-top: 20px;
    border-top: 1px dashed var(--accent);
    padding-top: 15px;
}

#gallery-modal-body h3 {
    color: #e0be23;
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

#gallery-modal-body p {
    margin: 0;
    line-height: 1.4;
    color: var(--accent);
}

#gallery-modal-body img {
    display: block;
    max-width: 400px;
    max-height: 400px;
    margin: 0 auto;
}

#gallery-modal-body .mock-cube-icon {
    font-size: 48px;
    text-align: center;
}

#gallery-modal-body .item-title-preview {
    font-size: 16px;
    margin-top: 5px;
}

.cd {
    float: right;    
}
.rainbow {
    float: right;
}
.earth {
    float: right;
}
.heart {
    float: right;
    height: 50px;
}
.rainbow {
    float: right;
}

.chat-frame {
    position: center;
    display: block;
    width: 100%;
    max-width: 700px; 
    height: 400px;    
    border: 2px solid #ffb6c1;
    border-radius: 12px;
    background-color: transparent;
    margin: 20px 20px 20px 20px;
}

/* ___________________LINKS__________________ */

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 15px;
    align-self: center;
    width: 70%;
    margin: auto;
    margin-top: 15px;
}

.link-button:hover {
    filter: brightness(80%);
}


/*__________________FOOTER BAR__________________*/

.footer-bar {
    position: sticky;
    bottom: -10px;
    z-index: 100;
    background-color: #11180d; 
    margin: 20px -10px -10px -10px; 
    padding: 5px 0; 
    overflow: hidden; 
    display: flex;
    align-items: center;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scroll-left 15s linear infinite; 
}

.marquee-content img {
    width: 120px;
    height: 30px;
    flex-shrink: 0; 
    image-rendering: pixelated; 
    margin: 2px 10px 2px 10px; 
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); 
    }
}