/* Fundo do corpo para parecer um quadro de cortiça */
body {
    background-color: #8B4513; /* Cor de madeira/cortiça */
    background-image: url('../../Imagens/fundo-parede.jpg'); /* Define a imagem de fundo */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: #fff; /* O texto do body será branco, para o header */
}

/* Estilo do cabeçalho */
header {
    background-color: rgba(0, 0, 0, 0.7); /* Fundo semi-transparente */
    color: #fff;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 100;
}

header h1 {
    font-size: 2.8em;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

nav {
    margin-top: 1rem;
}

nav a {
    color: #a4c6e2;
    margin: 0 20px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover {
    color: #fff;
    text-shadow: 0 0 10px #a4c6e2;
}

/* Container que é o quadro */
.container.investigation-board {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 20px;
    position: relative;
    min-height: calc(100vh - 100px);
    margin: 0 auto;
    max-width: 1200px;
    padding-top: 50px;
}

/* Estilo para os post-its */
.post-it {
    position: absolute;
    width: 280px;
    height: 220px;
    background-color: var(--bg-color);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    z-index: 10;
}

.post-it::before {
    content: '';
    position: absolute;
    top: -5px; /* Posição vertical do pino */
    left: 5px; /* Posição horizontal do pino */
    width: 20px;
    height: 20px;
    background-color: #e74c3c; /* Cor do pino (vermelho) */
    border-radius: 50%;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 12; /* Garante que o pino fique acima do post-it */
    transform: rotate(45deg); /* Gira o pino um pouco */
}

.post-it:hover {
    transform: scale(1.08) rotate(var(--rotation, 0deg));
    box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.4);
}

.post-it a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Handlee', cursive;
    font-size: 1.6em;
    line-height: 1.2;
}

/* Rotações aleatórias para os post-its */
.post-it:nth-child(1) { --rotation: 5deg; top: 15%; left: 10%; }
.post-it:nth-child(2) { --rotation: 3deg; top: 35%; left: 35%; }
.post-it:nth-child(3) { --rotation: -3deg; top: 10%; left: 65%; }
.post-it:nth-child(4) { --rotation: -4deg; top: 60%; left: 15%; }
.post-it:nth-child(5) { --rotation: -6deg; top: 50%; left: 75%; }

@media (max-width: 768px) {
    /* Ajustes para o cabeçalho em telas menores */
    header {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.5em;
        letter-spacing: 1px;
    }

    nav a {
        font-size: 0.9em;
        margin: 0 5px;
    }

    /* O container do quadro não precisa de ajuste de largura */
    .container.investigation-board {
        padding-top: 20px;
        min-height: auto;
    }

    /* Post-its agora se comportam como blocos normais */
    .post-it {
        position: static; /* Remove o posicionamento absoluto */
        transform: rotate(0deg) !important; /* Remove a rotação */
        margin: 20px auto; /* Centraliza e adiciona margem entre eles */
        width: 80%; /* Ocupa 80% da largura da tela */
        height: 120px;
    }
    
    /* Remove o pino, pois pode ficar estranho em telas menores */
    .post-it::before {
        display: none;
    }

    /* As rotações e posições absolutas são ignoradas */
}

.board-frame {
    width: 90%;
    max-width: 1200px;
    height: auto;
    aspect-ratio: 24 / 17;
    margin: 50px auto;
    
    /* Efeito de metal prateado */
    background: #c0c0c0; /* Cor de fundo de fallback */
    background-image: url(../../Imagens/fundo-quadro.jpg);
    background-size: 200% 200%;
    
    /* Cria a borda da moldura */
    border: 30px solid transparent; 
    border-image: linear-gradient(to right, #404040, #909090, #404040) 1;
    
    /* Adiciona uma sombra para criar profundidade */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 
                inset 0 0 10px rgba(255, 255, 255, 0.4); /* Sombra interna para o brilho */
    
    position: relative;
    box-sizing: border-box;
}
