body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: auto;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 70vh;
    position: relative;
    background-color: rgba(224, 247, 250, 0.7);
    background-image: url('background.jpg');
    background-size: auto;
    background-repeat: repeat;
    background-position: center;
    background-blend-mode: multiply;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('seamless-background.png');
    background-size: auto;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.5;
    z-index: -1;
}

.question-box {
    margin-bottom: 20px;
    padding: 20px;
    border: 2px solid #007bff;
    border-radius: 10px;
    background-color: #f0f8ff;
    background-image: linear-gradient(to bottom right, #f0f8ff, #e6f2ff);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.question-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.question {
    margin: 20px 0;
    font-size: 2em;
    font-weight: 600;
    color: #333;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.answer {
    display: none;
    color: #fff;
    background-color: #056d1e;
    margin-top: 20px;
    font-size: 1.8em;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #1e7e34;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: scale(0.95);
}

.answer.show {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.button-container {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 20px;
    box-sizing: border-box;
}

#next-question {
    padding: 20px 40px;
    font-size: 1.5em;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    max-width: 70%;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.modal-content {
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
}


.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Subtle style for wiki links */
.wiki-link {
    color: inherit; /* Matches the text color of the surrounding content */
    text-decoration: none; /* Removes the underline */
    cursor: pointer; /* Changes the cursor to indicate it's clickable */
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1); /* Subtle dashed underline */
}

.wiki-link:hover {
    border-bottom: 1px solid rgba(0, 0, 0, 0.4); /* Darker underline on hover */
}
