*
 

{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #8b0100;
    color: #333;
}

.container {
    text-align: center;
    max-width: 100%; /* Ensure container doesn't overflow */
    box-sizing: border-box; /* Ensure padding and borders don't add extra width */
    padding-bottom: 60px;
}

header {
    margin-bottom: 20px;
}

h1 {
    font-size: 1.8em;
}

button {
    background-color: #bac97f;
    color: #4a0000;
    border: none;
    padding: 15px 20px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
}

button:hover {
    background-color: #45a049;
}


footer {
    margin-top: 40px;
    font-size: 0.8em;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    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;
}

/* Prevent horizontal scrolling */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Disable horizontal scrolling */
    box-sizing: border-box;
}

/* Ensure the image takes up the full width of the screen */
.header-image {
    width: 100vw; /* 100% of the viewport width */
    height: auto; /* Maintain the aspect ratio */
    display: block;
    margin: 0;    /* Remove margins around the image */
    padding: 0;
}

/* Additional media query for small screens (like phones) */
@media (max-width: 768px) {
    .header-image {
        width: 100vw; /* Full viewport width */
        height: auto; /* Keep the image responsive */
    }
    .detail-item {
        flex-direction: row;
        align-items: flex-start; /* Ensure the text starts at the top if it wraps */
    }

    .detail-item span {
        font-size: 1em; /* Slightly reduce font size for better fit */
    }

    .detail-item i {
        font-size: 1.1em; /* Adjust icon size for smaller screens */
    }
}

/* Make the image responsive */
.responsive-media {
    width: 100vw; /* 100% of the viewport width */
    height: auto; /* Maintain aspect ratio */
    display: block;
    margin: 0 auto 20px; /* Center the image and add 20px space below it */
}

.tour-details {
    padding: 10px;
    background-color: #fffde3;
    border-radius: 10px;
    margin: 10px auto;
    max-width: 600px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 90%;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 10px 0; /* Adjust the margin for better spacing */
    font-size: 1.1em;
}

.detail-item i {
    margin-right: 10px; /* Adjust the space between the icon and the text */
    font-size: 1.2em;
    width: 30px; /* Ensures the icons all have the same size */
    text-align: center;
}

.detail-item span {
    text-align: left; /* Ensure the text stays left-aligned */
    flex-grow: 1; /* Make the text take the remaining space */
    color: #333; /* Same color as before */
}

.tour-info {
    padding: 0;
    background-color: #fffde3;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 90%;
    overflow: hidden;
}

.info-header {
    padding: 15px 20px;
    cursor: pointer;
    background-color: #fffde3;
    transition: background-color 0.3s ease;
}

.info-header:hover {
    background-color: #f5f4d5;
}

.info-header h2 {
    margin: 0;
    font-size: 1.3em;
    color: #8b0100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.info-content.active {
    max-height: 500px;
    padding: 20px;
}

.info-content p {
    margin-bottom: 15px;
}

.header {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.welcome-text {
    font-weight: 300;
    color: #fffde3;
    padding: 0 20px; /* Add padding on left and right sides */
    margin-bottom: 15px; /* Space between paragraphs */
    font-size: 1em; /* Adjust font size for mobile */
}

.instruction-text {
    font-weight: 300;
    color: #f6e14f;
    padding: 0 20px; /* Add padding on left and right sides */
    margin-bottom: 15px; /* Space between paragraphs */
    font-size: 1em; /* Adjust font size for mobile */
}



.quest-title {
    font-family: 'Old London', serif;
    font-size: 3em;
    font-weight: 700;
    color: #f6e14f;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

@font-face {
    font-family: 'Old London';
    src: url('old_london/OldLondon.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.story-content {
    padding: 15px; /* Reduce padding for mobile */
    margin: 0 auto; /* Center the content */
    max-width: 90%; /* Set a maximum width for mobile devices */
    line-height: 1.5; /* Improve readability with line height */
}

.rebus-input {
    margin: 20px 0; /* Space around the input area */
}

.rebus-input input {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.map-section {
    text-align: center; /* Centers the content */
    margin-top: 20px; /* Adds some space above the map */
    margin-bottom: 20px;
}

.map-section iframe {
    width: 100%; /* Makes the map responsive to screen width */
    max-width: 800px; /* Limits the maximum width */
    height: 450px; /* Fixed height */
    border: none; /* Removes the border */
}

#nav-buttons {
    position: fixed; /* Fixes the navigation at the bottom */
    left: 0; /* Aligns it to the left */
    right: 0; /* Aligns it to the right */
    bottom: 0; /* Aligns it to the bottom */
    padding: 10px; /* Padding for some space around the buttons */
    text-align: center; /* Centers the buttons */
    z-index: 1000; /* Ensures it stays above other content */
    background-color: #8b0100;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); /* Adds a shadow for better visibility */
}

#nav-buttons .btn {
    margin: 0 10px; /* Spacing between buttons */
}

/* Style for disabled buttons */
.btn:disabled {
    background-color: #d3d3d3; /* Light gray background */
    color: #a9a9a9; /* Gray text */
    cursor: not-allowed; /* Change cursor to indicate it can't be clicked */
    opacity: 0.6; /* Slightly transparent */
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.alert-success {
    background-color: #e6f9e6;
    color: #2b7a2b;
}

.alert-error {
    background-color: #f9e6e6;
    color: #b12b2b;
}

.alert i {
    margin-right: 10px;
    font-size: 18px;
}

.fa-check-circle {
    color: #2b7a2b;
}

.fa-exclamation-circle {
    color: #b12b2b;
}

/* Styles for score display */
.score-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fffde3;
    padding: 10px 15px;
    border-radius: 10px;
    color: #333;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 10px 0;
}

.score-label {
    margin-right: 5px;
}

.score-value {
    color: #f6e14f; /* Gold color for score number */
    font-size: 1.4em;
    font-weight: bold;
}

/* Optional animation for score update */
.score-value.updated {
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
