
@import url('https://fonts.googleapis.com/css2?family=Mystery+Quest&family=New+Rocker&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: "New Rocker", system-ui, sans-serif;
    background: radial-gradient(circle, #25123e 0%, #0b0514 100%);
    background-attachment: fixed;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    min-height: 100vh;
    padding-top: 120px;
}

h1 {
    font-family: "Mystery Quest", serif;
    color: #e8a1ff;
    font-size: 50px;
    text-shadow: 0 0 15px rgba(232, 161, 255, 0.6);
    margin-bottom: 10px;
}

.contadores {
    font-size: 20px;
    margin-bottom: 20px;
    background: rgba(232, 161, 255, 0.1);
    border: 1px solid rgba(232, 161, 255, 0.3);
    padding: 8px 20px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(232, 161, 255, 0.1);
}

.tabuleiro-memoria {
    display: grid;
    grid-template-columns: repeat(4, 100px);
    gap: 15px;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #e8a1ff;
    box-shadow: 0 0 25px rgba(232, 161, 255, 0.2);
}

.carta {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 2px solid #e8a1ff;
    box-sizing: border-box;
}

.face.verso {
    background: #3d1e63;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.face.frente {
    background: #11091c;
    color: #000000;
    transform: rotateY(180deg);
    font-size: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 15px rgba(232, 161, 255, 0.2);
}

.carta.virada {
    transform: rotateY(180deg);
}

.face.verso {
    background: #3d1e63;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
    transform: rotateY(0deg);
}

.face.frente {
    background: #11091c;
    color: #ffffff;
    transform: rotateY(180deg);
    font-size: 50px; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 15px rgba(232, 161, 255, 0.2);
}

button {
    font-family: "New Rocker", sans-serif;
    background: #ffa500;
    border: 0;
    padding: 12px 25px;
    border-radius: 999px;
    font-size: 18px;
    margin-top: 30px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #f00;
    transform: scale(1.05);
}

.menu-jogos {
    margin-top: 20px;
    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;
}

.controles {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
    gap: 10px; 
}

button {
    font-family: "New Rocker", sans-serif;
    background: #ffa500;
    border: 0;
    padding: 12px 25px;
    border-radius: 999px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #f00;
    transform: scale(1.05);
}

.menu-jogos {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.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;
}