/* ------------------------- RESET E BASE -------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: 'Roboto', sans-serif;
    background: #101823;
    color: #fff;
    opacity: 0;
    transition: opacity 0.8s ease;
}
body.visible { opacity: 1; }
body.fade-out { opacity: 0; }

/* ------------------------- MOLDURA DE FUNDO -------------------------- */
.frame-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("images/game_background/yume_nikki/yume_nikki.png") no-repeat center center;
    background-size: cover;
    z-index: 0;
}

/* ------------------------- CONTEÚDO ACIMA DA MOLDURA -------------------------- */
.content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-top: 80px;   /* espaço para o cabeçalho fixo */
    margin-bottom: 70px; /* espaço para o rodapé fixo */
}

/* ------------------------- CABEÇALHO -------------------------- */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #1b2838, #171a21);
    color: #bbb;
    font-size: 14px;
    padding: 20px 20px;
    border-bottom: 2px solid #00adee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    z-index: 1000;
}
.top-header a { color: #00adee; text-decoration: none; margin-left: 15px; transition: 0.3s; }
.top-header a:hover { color: #1ecfff; }
.logo-container { display: flex; align-items: center; gap: 15px; transition: transform 0.3s ease; }
.logo-container:hover { transform: scale(1.05); }
.logo-container img.file-icon { height: 50px; width: auto; }
.header-center-links { display: flex; gap: 60px; justify-content: center; flex: 1; font-size: 18px; margin-right: 25px; }
.header-center-links a { color: white; text-decoration: none; font-weight: 900; position: relative; }
.header-center-links a:hover { color: #00adee; }

/* --- barra de pesquisa --- */
.right-section { display: flex; align-items: center; gap: 20px; }
.menu-search { 
    display: flex; 
    align-items: center; 
    border: 2px solid #00adee; 
    border-radius: 8px; 
    overflow: hidden; 
    transition: 0.3s ease; 
}
.menu-search:hover { box-shadow: 0 0 15px #00adee; }
.menu-search input { 
    padding: 6px 10px; 
    border: none; 
    background: #0e151f; 
    color: white; 
}
.menu-search button { 
    padding: 6px 12px; 
    border: none; 
    background: #00adee; 
    color: white; 
    cursor: pointer; 
    transition: background 0.3s ease; 
}
.menu-search button:hover { background: #1ecfff; }

/* ------------------------- CONTEÚDO PRINCIPAL -------------------------- */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(22,32,45,0.95);
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
}
.banner {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
}
h1 { font-size: 32px; margin-bottom: 10px; text-align: center; }
.author { font-size: 20px; font-weight: bold; margin: 15px 0; color: #00adee; text-align: center; }

.description {
    margin: 20px 0;
    line-height: 1.8;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.description p { margin-bottom: 15px; }

/* ------------------------- BOTÕES -------------------------- */
.buttons {
    margin: 30px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
}
button {
    padding: 12px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: 0.3s;
}
.play-btn { background: #00adee; color: white; }
.play-btn:hover { background: #1ecfff; transform: scale(1.05); }
.download-btn { background: #444; color: white; }
.download-btn:hover { background: #666; transform: scale(1.05); }

/* ------------------------- GALERIA -------------------------- */
.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}
.screenshots img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    object-fit: cover;
}

/* ------------------------- RODAPÉ -------------------------- */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0e151f;
    text-align: center;
    padding: 8px 0px;
    font-size: 12px;
    border-top: 2px solid #00adee;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.6);
    z-index: 1000;
}
footer a { color: #00adee; text-decoration: none; margin: 0 10px; }
footer a:hover { color: #1ecfff; }
