@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Boldonse&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Mystery+Quest&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Mystery+Quest&family=New+Rocker&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');

*, html, body {
    cursor: url('../imagens/cursor_bom.png'), default !important;
}

a:hover, 
button:hover, 
.dropdown-btn:hover,
.cartao-jogo:hover,
.celula:hover,
.carta:hover,
.toupeira:hover,
.face:hover,
canvas:hover {
    cursor: url('../imagens/cursor_mal.png'), pointer !important;
}

body { 

    font-family: "Courier Prime", monospace, sans-serif !important; 
    background-color: #0a0b0d !important;
    background-image: none !important;
    color: #00ff88 !important;
    margin: 0;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    min-height: 100vh;
    padding-top: 120px;
}

h1 {
    font-family: "Courier Prime", monospace, sans-serif !important;
    color: #00ff88 !important;
    font-size: 55px;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

#status {
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.tabuleiro { 
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 10px;
    background-color: #14171c !important;
    padding: 15px;
    border-radius: 12px;
    border: 3px solid #00ff88 !important;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.celula {
    background-color: #0a0b0d !important;
    border: 1px solid rgba(0, 255, 136, 0.4) !important;
    border-radius: 6px;
    color: #00ff88 !important;
    font-size: 45px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.celula:hover {
    background-color: rgba(0, 255, 136, 0.1) !important;
    box-shadow: inset 0 0 10px rgba(0, 255, 136, 0.4);
}

.vencedora {
    background-color: #00ff88 !important;
    color: #0a0b0d !important;
    box-shadow: 0 0 15px #00ff88;
}

main button {
    background-color: transparent !important;
    color: #00ff88 !important; /* Verde Hacker */
    border: 2px solid #00ff88 !important;
    padding: 10px 24px;
    font-family: "Courier Prime", monospace !important;
    font-size: 16px;
    font-weight: bold;
    margin-top: 25px;
    cursor: pointer;
    border-radius: 6px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

main button:hover {
    background-color: #00ff88 !important;
    color: #0a0b0d !important;
    box-shadow: 0 0 15px #00ff88;
    transform: translateY(-2px);
}

button[onclick="reiniciar()"] {
    background-color: transparent !important;
    color: #00ff88 !important;
    border: 2px solid #00ff88 !important;
    padding: 10px 24px !important;
    font-family: "Courier Prime", monospace !important;
    font-size: 16px;
    font-weight: bold;
    margin-top: 25px;
    cursor: pointer;
    border-radius: 6px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

button[onclick="reiniciar()"]:hover {
    background-color: #00ff88 !important;
    color: #0a0b0d !important;
    box-shadow: 0 0 15px #00ff88;
    transform: translateY(-2px);
}

.controles {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
    gap: 10px; 
}

.menu-jogos {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.icone-link {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    border: 3px solid #e8a1ff;
    transition: transform 0.3s, box-shadow 0.3s;
    object-fit: cover;
}

.icone-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 5px 15px rgba(232, 161, 255, 0.4);
    border-color: white;
}

.header-navegacao {
    width: 100%;
    height: 60px;              
    background-image: url('../imagens/ceu-escuro.gif'); 
    background-size: cover;
    background-position: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;       
}

.menu-principal {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px; 
}

.logo-portal {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    margin-right: auto;
    transition: opacity 0.3s;
}

.logo-portal:hover {
    opacity: 0.8;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background-color: transparent;
    color: #e8a1ff;             
    padding: 10px 15px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important; 
    transition: color 0.3s;
}

.autor-btn {
    color: #e8a1ff; 
}

.dropdown-btn:hover {
    color: #ffffff;
}

.dropdown-conteudo {
    display: none;              
    position: absolute;
    right: 0;                   
    background-color: #222222;  
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.6);
    border-radius: 8px;
    border: 1px solid #e8a1ff;
    padding: 5px 0;
    margin-top: 0px; 
}

.dropdown:has(.autor-btn) .dropdown-conteudo {
    border-color: #e8a1ff; 
}

.dropdown-conteudo a {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 16px;
    text-align: left;
    transition: background 0.2s, color 0.2s;
}

.dropdown-conteudo a:hover {
    background-color: #e8a1ff;
    color: #111111;
}

.dropdown:has(.autor-btn) .dropdown-conteudo a:hover {
    background-color: #e8a1ff;
    color: #111111;
}

.dropdown:hover .dropdown-conteudo {
    display: block;
}