/* General styles */
html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-image: url('./towerblocks.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}

.page-about {
    background-image: url('./potterywheel.jpg');
}
.page-childofgod {
    background-image: url('./childofgod.jpg');
}
.page-bornagain {
    background-image: url('./fetus.jpg');
}
.page-sowhat {
    background-image: url('./sowhat.jpg');
}
.page-adoption {
    background-image: url('./adoption.jpg');
}
.page-purpose {
    background-image: url('./strive.jpg');
}
.page-workinus {
    background-image: url('./grapes.jpg');
}
.page-endgoal {
    background-image: url('./winning.jpg');
}

.displaybox {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 2%;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    display: flex;
    text-decoration: none;
    flex-direction: column;
    position: relative; /* Ensure proper positioning context */
}

.displaybox.top-center {
    max-width: 90%;
    margin: 20px 0;
    text-align: center;
        text-decoration: none;
}

.displaybox.ctaonly {
    background: none;
    box-shadow: none;
    padding: 0;
    border: none;
}

.displaybox.ctaonly .cta {
    background-color: #28a745;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-block;
    position: relative; /* Make sure it's positioned */
    z-index: 20; /* High z-index to ensure it's on top */
}

.displaybox.ctaonly .cta:hover {
    background-color: #218838;
}

.displaybox.bottom-right {
    position: absolute; /* Ensure it's positioned relative to the nearest positioned ancestor */
    bottom: 10px;
    right: 10px;
    max-height: 150px;
    z-index: 10; /* Ensure it's above other elements but below .cta */
}

.quote-reference-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quote-mark {
    font-size: 10vw;
    color: #ccc;
}

.quote-text {
    font-style: italic;
    font-size: 3vw;
}

.reference {
    font-weight: bold;
    text-align: center;
    font-size: 3vw;
}

.commentary {
    font-size: 2vw;
    color: #333;
}

.cta {
    background-color: #28a745;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    position: relative; /* Ensure it stays above other elements */
    z-index: 20; /* High z-index to ensure it’s on top */
}

.cta:hover {
    background-color: #218838;
}

.displaybox-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
}

.sidenote {
    font-size: 0.875rem; /* Slightly smaller font size, adjust as needed */
    color: #555; /* Slightly darker gray for emphasis without being too harsh */
    background-color: #f9f9f9; /* Light background color to make it stand out */
    border-left: 4px solid #28a745; /* Green left border for emphasis */
    padding: 10px 15px; /* Padding for better readability */
    margin: 10px 0; /* Margin to separate from surrounding content */
    border-radius: 4px; /* Rounded corners for a softer look */
    font-weight: 500; /* Slightly bolder text for emphasis */
    line-height: 1.5; /* Increase line-height for better readability */
}

/* Optional: Add a hover effect for interactivity */
.sidenote:hover {
    background-color: #eaeaea; /* Slightly darker background on hover */
    border-color: #218838; /* Darker green border on hover */
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .displaybox.top-center {
        max-width: 95%;
        margin-top: 10px;
    }
    .displaybox-container {
        flex-direction: column;
        gap: 10px;
    }
    .quote-text, .reference, .commentary {
        font-size: 5vw;
    }
    .displaybox-container {
        padding: 0 5px;
    }
}
