body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f5f5;
}

.video-container {
    position: relative; /* Ensures absolute children are positioned within */
    width: 100%;
    max-width: 600px;
    height: 800px; /* Set an min height */
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: visible; /* Ensures child elements do not overflow */
}


#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

#resultContainer {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 10px;
    pointer-events: none;
    background: rgba(0, 0, 0, 0);
    max-height: 100%;
    overflow-y: auto;
    z-index: 20;
}

.result-item {
    width: 90%;
    max-width: 500px;
    text-align: center;
    font-family: monospace;
    font-size: 1.5em;
    padding: 10px;
    margin: 5px 0;
    background-color: rgba(0, 0, 0, 0);
    color: #f4f1f1;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0);
}

header {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.hamburger {
    font-size: 24px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    right: 0;
    top: 30px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown-content.show {
    display: block;
}

/* Style for the query icon and query box */
#query-icon {
    cursor: pointer;
    width: 150px;
    height: auto;
    position: absolute;
    bottom: calc(1% + 1px); /* Fine-tune the position */
    left: 69%;
    transform: translateX(-50%);
    z-index: 10;
}


#query-box {
    position: absolute;
    bottom: 10px; /* Slightly above the journal icon */
    left: 82%; /* Center horizontally */
    transform: translateX(-50%); /* Center the element */
    background: none;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1000; /* Ensure it appears above other content */
    width: 300px; /* Adjust width as needed */
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}


#query-box textarea {
    width: 200px;
    height: 100px;
}

.query button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.query img {
    width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.query img:hover {
    transform: scale(1.1);
}
/* In your welcome/styles.css or a shared CSS file */
.journal-icon-container {
    margin-left: auto; /* Pushes it to the far right */
}

.journal-icon-container a {
    /* Style the anchor tag to look like your button */
    display: inline-block; /* Allows width/height and padding */
    background: none;      /* No background */
    border: none;          /* No border */
    padding: 0;            /* No padding around the image */
    cursor: pointer;       /* Indicate clickability */
    text-decoration: none; /* Remove default underline */
    line-height: 0;        /* Often helps with image alignment in links */
}

.journal-icon-container img {
    width: 100px; /* Adjust size as needed */
    height: 100px;
    vertical-align: middle; /* Align if text is also present */
}
header {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px; /* Keeps journal icon aligned */
    z-index: 1000;
    display: flex;
    justify-content: space-between; /* Left and right icons */
}

.bagua-icon-container a,
.journal-icon-container a {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    line-height: 0;
}

.bagua-icon-container img,
.journal-icon-container img {
    width: 100px;
    height: 100px;
    vertical-align: middle;
}
