
/* ---------- BODY & CONTAINER ---------- */
body {
    font-family: Arial, sans-serif;
    font-weight: bold;
    background: linear-gradient(to bottom, #FFE5B4, #FF9900);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    min-width: 1100px;
    max-width: 100%;
    padding: 20px;
    background-color: #FFCC66;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
    box-sizing: border-box;

    width: 600px;                /* Adjust to your map image size */
    height: 630px;               /* Adjust to your map image size */
    background-image: url('treasuremap_bg.png'); /* Your treasure map image */
    background-size: cover;      /* Make the image cover the whole div */
    background-position: center; /* Center the image */
    border: 2px solid #444;      /* Optional: nice border for the map */
    padding: 10px;
}

.titlecontainer {
    width: 60%;
    min-width: 999px;
    max-width: 60%;
    padding: 20px;
    background-color: #FFCC66;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
    box-sizing: border-box;
}


/* ---------- HEADER ---------- */
h1 {
    background-color: #ffffff;
    color: #000000;
    padding: 10px;
    margin-top: 0;
    border-radius: 8px;
}

/* ---------- TREASURE BUTTONS ---------- */
.treasure-buttons {
    display: grid;
    grid-template-columns: repeat(13, 50px);
    grid-auto-rows: 60px;
    gap: 15px;
    justify-content: center;
    margin: 0 auto 10px auto;
}

/* Staggered for coastline effect */
.treasure-buttons button:nth-child(3n) {
    margin-top: 5px;
}
.treasure-buttons button:nth-child(5n) {
    margin-top: 40px;
}

.treasure-buttons button:nth-child(2n) {
    margin-top: 20px;
}


.treasure-buttons button {
    border-radius: 8px;
    border: none;
    background-color: #000;
    color: #FF9900;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    width: 58px;
    height: 40px;
    font-size: 25px;
}

.treasure-buttons button:hover {
    transform: scale(1.3);
    background-color: #222;
}

/* ---------- CLUES & MESSAGES ---------- */
.treasure-msg {
    font-style: italic;
    font-weight: bold;
    color: #000000;
    family: arial;
    text-size: 10pt;
    margin-bottom: 15px;
    min-height: 20px;
}

/* ---------- QUIZ ---------- */
.quiz {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

/* ---------- FLEX ROW FOR 2 QUESTIONS ---------- */
.question-row {
    display: flex;                  /* Use flexbox to arrange children side by side */
    justify-content: space-between; /* Put space between the two questions */
    margin-bottom: 10px;            /* Space between rows */
}

.question {
    flex: 0 0 49%;                  /* Take ~49% width per question, leaving 4% gap */
    background-color: #FFF;         /* White background for question box */
    padding: 10px;                  /* Inner spacing */
    border-radius: 6px;             /* Rounded corners */
    box-sizing: border-box;         /* Include padding in width */
    min-width: 250px;               /* Optional: prevent shrinking too much on small screens */
}

input[type="radio"] {
    transform: scale(1.3);
}

.question {
    margin: 10px 0;
}

.question label {
    display: block;
    margin: 3px 0;
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.clue {
    
    font-weight; bold;
    font-size: 11pt;
    color: #0099ff;
    min-height: 20px;
    margin-top: 5px;
}

/* ---------- RESULTS ---------- */
.results {
    font-weight: bold;
    font-size: 30px;
    margin-top: 15px;
    text-align: center;
}


#questionblock button {
    background-color: #FF9900;      /* Treasure-orange base */
    color: #000000;                 /* Text color */
    font-weight: bold;
    font-size: 16px;
    padding: 12px 25px;             /* Bigger clickable area */
    border: 2px solid #000;         /* Bold black border for contrast */
    border-radius: 8px;             /* Rounded corners */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 2px 4px 8px rgba(0,0,0,0.4); /* Subtle shadow */
}

#questionblock button:hover {
    background-color: #FFD700;      /* Golden hover */
    color: #000;                    
    transform: translateY(-2px);    /* Lift effect on hover */
    box-shadow: 4px 6px 12px rgba(0,0,0,0.5); /* Deeper shadow */
}

#questionblock button:active {
    transform: translateY(1px);     /* Pressed effect */
    box-shadow: 1px 2px 4px rgba(0,0,0,0.3);
}

.lock {
    display: inline-block;
    margin-left: 8px;
    color: red;
    font-weight: bold;
    font-size: 16px;
}


#close-btn {
    position: fixed;      /* fixed position on the screen */
    top: 10px;            /* distance from the top */
    left: 10px;           /* distance from the left */
    background-color: #ff5555; /* nice red color */
    color: white;         /* text color */
    padding: 8px 12px;    /* some padding */
    font-weight: bold;
    text-decoration: none; /* remove underline */
    border-radius: 5px;    /* rounded corners */
    z-index: 1000;         /* make sure it’s on top of everything */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); /* subtle shadow */
    cursor: pointer;       /* show pointer on hover */
}

#close-btn:hover {
    background-color: #ff2222; /* darker red on hover */
}

.dissolve {
    animation: dissolveEffect 0.6s forwards;
}

@keyframes dissolveEffect {

    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
        filter: blur(2px);
    }

    100% {
        opacity: 0;
        transform: scale(0);
        filter: blur(6px);
    }
}

