body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 5000px;
    background-image: url('img/mapas/back-main_games.jpg');
    background-repeat: repeat;
    background-size: 500px auto;
    font-family: Arial, sans-serif;
    position: relative;
}


/* Optional: Add this if you want to make the background slightly darker */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 1;
}

/* Ensure all content stays above the overlay */
body > * {
    position: relative;
    z-index: 2;
}

.backdiscoverycard {
    position: absolute;
    width: 707px;
    height: 414.5px;
    left: 20px;
    top: 106px;
    background-image: url('img/mapas/s1ep1/s1e1cover.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform-origin: top left;
    z-index: 0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
}
.ancient-fixed-card {
    width: 707px;
    height: 414.5px;
    background-image: url('img/mapas/s1ep1/descobertas1e1.jpg');
    background-size: 2828px 1658px;
    background-repeat: no-repeat;
    position: absolute;
    right: 25px;
    transform: scale(0.283);
    transform-origin: top right;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.ancient-card-position-0 { background-position: 0 0; top: 106px; }
.ancient-card-position-1 { background-position: -707px 0; top: 206px; }
.ancient-card-position-2 { background-position: -1414px 0; top: 306px; }
.ancient-card-position-3 { background-position: -2121px 0; top: 406px; }
.ancient-card-position-4 { background-position: 0 -414.5px; top: 506px; }
.ancient-card-position-5 { background-position: -707px -414.5px; top: 606px; }
.ancient-card-position-6 { background-position: -1414px -414.5px; top: 706px; }
.ancient-card-position-7 { background-position: -2121px -414.5px; top: 806px; }
.ancient-card-position-8 { background-position: 0 -829px; top: 906px; }
.ancient-card-position-9 { background-position: -707px -829px; top: 1006px; }
.ancient-card-position-10 { background-position: -1414px -829px; top: 1106px; }
.ancient-card-position-11 { background-position: -2121px -829px; top: 1206px; }
.ancient-card-position-12 { background-position: 0 -1243.5px; top: 1306px; }
.ancient-card-position-13 { background-position: -707px -1243.5px; top: 1406px; }
.ancient-card-position-14 { background-position: -1414px -1243.5px; top: 1506px; }

.ancient-fixed-card.expanded {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    z-index: 1000;
    right: 50%;
    top: 50% !important;
    margin-right: -353.5px;
    margin-top: -207.25px;
}

.controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.controls button {
    padding: 10px 20px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.controls button:hover {
    background: #34495e;
}

.controls select {
    padding: 10px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.controls select:hover {
    background: #34495e;
}


.decision-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 9999; 
    display: none;
}

.decision-zones {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 10000; 
}

.decision-zone {
    flex: 1;
    height: 100%;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10000; 
}

.mini-card-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    cursor: move;
    user-select: none;
    z-index: 6000;
}

.mini-card {
    height: 414.5px;
    position: relative;
    background-image: url('img/mapas/s1ep1/descobertas1e1.jpg');
    background-size: 2828px 1658px;
    background-repeat: no-repeat;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    overflow: hidden;
}

.mini-card.left-choice {
    width: 210px;
}
.mini-card.right-choice {
    width: 217px;
}

.mini-card-container {
    position: absolute;
    left: 20px;
    top: 540px;
    width: auto;     /* ou um valor específico como 800px */
    height: auto;    /* ou um valor específico como 500px */
    display: block;
}

.card-footer {
    width: 100%;
    padding: 5px 0;
    text-align: center;
    margin-top: 5px;
}

.discard-button {
    padding: 8px 15px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
}

.confirmation-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 10001; 
    display: none;
}

.discard-pile {
    position: absolute;
    left: 750px;
    top: 106px;
    width: 200px;
    min-height: 414.5px;
    z-index: 1;
}

.discarded-card {
    width: 707px;
    height: 414.5px;
    position: absolute;
    background-image: url('img/mapas/s1ep1/descobertas1e1.jpg');
    background-size: 2828px 1658px;
    background-repeat: no-repeat;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transform: scale(0.283);
    transform-origin: top left;
}


.playcard-wrapper {
    position: absolute;
    z-index: -1;
}

#wrapper-1 { left: 2050px; top: 800px; }
#wrapper-2 { left: 1050px; top: 500px; }
#wrapper-3 { left: 1050px; top: 950px; }
#wrapper-4 { left: 1050px; top: 1400px; }
#wrapper-5 { left: 1050px; top: 1850px; }

.hide-button {
    position: absolute;
    left: 0;
    top: -35px;
    padding: 8px 20px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    font-size: 14px;
    transition: background 0.3s;
    width: 200px;
}

.hide-button:hover {
    background: #34495e;
}

.playcard-frame.hidden {
    display: none;
}

.playcard-buttons {
    position: fixed;
    top: 20px;
    left: 500px;
    display: flex;
    gap: 10px;
    z-index: -1;
}

.hide-button {
    padding: 8px 20px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    width: 150px;
}

.hide-button.active {
    background: #27ae60;
}

.playcard-frame {
    position: absolute;
    width: 1000px;
    height: 600px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: -1;
    transform: scale(0.75);
    transform-origin: top left;
}

#playcard-frame-1 { left: 1050px; top: 800px; }
#playcard-frame-2 { left: 2550px; top: 800px; }
#playcard-frame-3 { left: 1050px; top: 1600px; }
#playcard-frame-4 { left: 2550px; top: 1600px; }
#playcard-frame-5 { left: 1050px; top: 2400px; }

.playcard-button-1 { position: absolute; left: 1050px; top: 800px; }
.playcard-button-2 { position: absolute; left: 2550px; top: 800px; }
.playcard-button-3 { position: absolute; left: 1050px; top: 1600px; }
.playcard-button-4 { position: absolute; left: 2550px; top: 1600px; }
.playcard-button-5 { position: absolute; left: 1050px; top: 2400px; }

.hide-button {
    padding: 8px 20px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    width: 150px;
    z-index: 1000;
}
.segundo-deck {
position: absolute;
width: 300px;
height: 414.5px;
left: 20px;
top: 600px;
background-image: url('img/mapas/fear.jpg'); 
background-size: cover;
background-position: center;
background-repeat: no-repeat;
transform-origin: top left;
z-index: 2000; 
border-radius: 10px;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
cursor: pointer;
}

.segundo-container-mini .mini-card {
background-image: url('img/mapas/artefatos back.jpg');
background-size: 2672px 6228px;
width: 300px;
height: 414.5px;
transform: scale(1.3); 
transform-origin: top left;
position: relative;
}

.segundo-container-mini .mini-card-wrapper {
position: absolute;
display: flex;
flex-direction: column;
margin-right: 20px;
cursor: move;
user-select: none;
z-index: 6000;
transform: scale(0.5); 
transform-origin: top left;
}

.segundo-container-mini .card-footer {
position: absolute;
width: 100%;
padding: 5px 0;
text-align: center;
bottom: 402px; 
left: -75px; 
transform: scale(2.2); 
transform-origin: center top;
z-index: 6001; 
}

.segunda-pilha-descarte {
position: absolute;
left: 750px;
top: 600px;
width: 200px;
min-height: 414.5px;
z-index: 6000; 
}

.flip-button {
padding: 6px 12px; 
font-size: 12px; 
transform: scale(.5); 
}

.segundo-controles {
position: absolute;
top: 520px; 
left: 20px; 
z-index: 6000;
display: flex;
gap: 10px;
}

.terceiro-deck {
position: absolute;
width: 300px;
height: 414.5px;
left: 20px;
top: 1100px; 
background-image: url('img/mapas/patologiadeck.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
transform-origin: top left;
z-index: 6000;
border-radius: 10px;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
cursor: pointer;
}

.terceiro-container-mini .mini-card {
background-image: url('img/mapas/patologia3.jpg');
background-size: 1343px 1578px; 
width: 300px; 
height: 414.5px; 
transform: scale(0.5);
position: relative;
transform-origin: top left;
}

.terceiro-container-mini .mini-card-wrapper {
position: absolute;
display: flex;
flex-direction: column;
margin-right: 20px;
cursor: move;
user-select: none;
z-index: 6000;
}

.terceiro-controles {
position: absolute;
top: 1020px; 
left: 20px;
z-index: 6000;
display: flex;
gap: 10px;
}
.terceiro-container-mini .mini-card {
background-image: url('img/mapas/patologia3.jpg');
background-size: 1343px 1578px;
width: 335.75px; 
height: 526px; 
transform: scale(0.1); 
position: relative;
transform-origin: top left;
}

.terceiro-container-mini .mini-card-wrapper {
position: absolute;
display: flex;
flex-direction: column;
margin-right: 20px;
cursor: move;
user-select: none;
z-index: 6000;
}
.fullscreen-view {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.8);
display: none;
justify-content: center;
align-items: center;
z-index: 6000;
}

.fullscreen-card {
width: 335.75px; 
height: 526px; 
background-image: url('img/mapas/patologia3.jpg');
background-size: 1343px 1578px;
background-repeat: no-repeat;
position: relative;
transform: scale(4); 
}

.segundo-container-mini .mini-card.animal-card {
transform: scale(1.3);
transform-origin: top left;
z-index: 6000;
}


.segundo-container-mini .mini-card.zoomed {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(3);
z-index: 6000;
transition: transform 0.3s ease;
}


.segundo-container-mini .animal-card .card-footer {
position: absolute;
width: 100%;
padding: 5px 0;
text-align: center;
bottom: 402px;
left: -75px;
transform: scale(2.2);
transform-origin: center top;
z-index: 6001;
}



.segundo-container-mini .mini-card.animal-card {
width: 668px; 
height: 1038px; 
transform: scale(0.45); 
transform-origin: top left;
background-size: 2672px 3114px;
z-index: 6000;
}

.segundo-container-mini .animal-card .card-footer {
position: absolute;
width: 100%;
padding: 5px 0;
text-align: center;
bottom: 1025px; 
left: -75px;
transform: scale(2.2);
transform-origin: center top;
z-index: 6001;
}

.animal-wrapper {
position: absolute;
width: 668px;    
height: 1038px;  
cursor: move;
user-select: none;
transform: scale(0.30); 
transform-origin: top left;
z-index: 6000;
}

.animal-card {
width: 668px;
height: 1038px;
background-size: 2672px 3114px;

}

.animal-footer {
position: absolute;
bottom: -30px; 
left: 50px; 
transform: translateX(-50%); 
width: 100%;
text-align: center;
z-index: 6001;
}

.animal-flip {
padding: 6px 12px;
font-size: 12px;
background: #2c3e50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.animal-wrapper .card-footer {
position: absolute;
width: 100%;
padding: 5px 0;
text-align: center;
top: -40px; 
left: 300px; 
transform: scale(2.2);
transform-origin: top left;
z-index: 6001;
}

.animal-wrapper .flip-button {
padding: 6px 12px;
font-size: 12px;
background: #2c3e50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}

.animal-wrapper .flip-button {
padding: 6px 12px;
font-size: 12px;
background: #2c3e50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}

.animal-wrapper .animal-footer {
position: absolute;
width: 100%;
padding: 5px 0;
text-align: center;
top: 0; 
left: 50%;
transform: translateX(-50%);
z-index: 6001;
}


.animal-wrapper .animal-flip-button {
padding: 6px 12px;
font-size: 12px;
background: #2c3e50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}

.patologia-wrapper {
position: absolute;
width: 335.75px;    
height: 526px;      
cursor: move;
user-select: none;
transform: scale(0.6); 
transform-origin: top left;
z-index: 6000;
}

.patologia-card {
width: 335.77px;    
height: 526px;      
background-size: 3022px 1578px; 
background-image: url('img/mapas/patologia3.jpg');
background-repeat: no-repeat;
border-radius: 10px;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
cursor: pointer;
}


.patologia-footer,
.patologia-button {
display: none; 
}


.patologia-card.zoomed {
position: fixed;
top: 50vh;
left: 50vw;
transform: translate(-50%, -50%) scale(6);
z-index: 6000;
transition: transform 0.3s ease;
}

.artefato-wrapper {
position: absolute;
width: 300px;
height: 414.5px;
cursor: move;
user-select: none;
transform: scale(0.7);
transform-origin: top left;
z-index: 6000;
}

.artefato-card {
width: 300px;
height: 414.5px;
background-size: 1200px 2487px;
background-repeat: no-repeat;
border-radius: 10px;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.artefato-footer {
position: absolute;
top: -30px; 
left: 50%;
transform: translateX(-50%);
width: 100%;
text-align: center;
z-index: 2001;
}

.artefato-flip-button {
padding: 6px 12px;
font-size: 12px;
background: #2c3e50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.artefato-card.zoomed {
position: fixed;
top: 50vh;
left: 50vw;
transform: translate(-50%, -50%) scale(6);
z-index: 9999;
transition: transform 0.3s ease;
width: 300px;
height: 414.5px;
background-size: 1200px 2487px;
}
.peca {
position: absolute;
width: 100px;
height: 100px;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
user-select: none;
cursor: move;
z-index: 3000;
}

.peca.elites {
    width: 200px !important;
    height: 150px !important;
    background-size: contain !important;
}

.peca.labs {
    width: 200px !important;
    height: 200px !important;
    background-size: contain !important;
}

.peca.ancioes {
    width: 300px !important;
    height: 300px !important;
    background-size: contain !important;
}

.agentes { z-index: 3001; }
.lacaios { z-index: 3002; }
.elites { z-index: 3003; }
.desconhecidos { z-index: 3004; }
.side-menu {
position: fixed;
right: 0;
top: 0;
width: 250px;
height: 100vh;
background: rgba(44, 62, 80, 0.95);
padding: 20px;
color: white;
box-shadow: -2px 0 5px rgba(0,0,0,0.2);

z-index: 10000;
overflow-y: auto;
}

.unknown-selector {
width: 100%;
padding: 10px;
margin-bottom: 10px;
background: #34495e;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}

.unknown-amount {
width: 100%;
padding: 10px;
margin-bottom: 10px;
background: #34495e;
color: white;
border: none;
border-radius: 5px;
}

.generate-button {
width: 100%;
padding: 10px;
background: #27ae60;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background 0.3s;
}

.generate-button:hover {
background: #219a52;
}

.menu-section {
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 1px solid rgba(255,255,255,0.1);
}

.menu-section h3 {
margin: 0 0 10px 0;
font-size: 16px;
}
.chapter-selector {
width: 100%;
padding: 10px;
margin-bottom: 10px;
background: #34495e;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}

.chapter-selector:hover {
background: #2c3e50;
}

.menu-section {
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 1px solid rgba(255,255,255,0.1);
}

.menu-section h3 {
color: white;
margin: 0 0 10px 0;
font-size: 16px;
}
.peca.mapa {
width: 4000px !important;
height: 2500px !important;
z-index: -1 !important;
background-size: 100% 100% !important; /* Alterado de cover para 100% */
position: absolute !important;
left: 200px !important;
top: 0 !important;
}

#coordinates-display {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 9999;
}

#mouse-position, #distance-text {
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px;
    margin-bottom: 5px;
}

#distance-text {
    margin-bottom: 25px;
}

.move-positions-button {
    width: 100%;
    padding: 10px;
    background: #2980b9;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.move-positions-button:hover {
    background: #3498db;
}


.dados-frame {
    position: absolute;
    width: 1500px;
    height: 600px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 100;
    transform: scale(0.6);
    transform-origin: top left;
    margin: 0;
    top: 1500px;
    left: 1500px;

}



.deckgame-frame {
    position: absolute;
    width: 2000px;
    height: 2000px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 100;
    transform: scale(0.5);
    transform-origin: top left;
    top: 1000px;
    left: 10px;
    margin: 0;
}

.status-pool {
    position: fixed;
    left: 50px;
    display: grid;
    grid-template-columns: repeat(2, 100px);
    gap: 10px;
    z-index: 1000;
}

.status-pool-item {
    width: 100px;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}



