body, html {
    height: 100%;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

#app {
    height: var(--full-vertical-height);
    display: flex;
    max-width: 755px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#canvas-container {
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

#canvas-container-inner-fixed-width {
    width: 330px;
    position: relative;
}

#card-and-bars-container {
    height: calc(var(--full-vertical-height));
    max-height: 500px;
    width: 370px;
    display: flex;
    flex-direction: column;
}

/* Styles for phones in portrait mode */
@media screen and (max-width: 767px) and (orientation: portrait) {
    body, html {
        overflow: hidden;
    }
    #app {
        flex-direction: column;
    }
    #canvas-container {
        max-height: calc(var(--full-vertical-height) - 200px);
        transition: max-height 0.3s ease-in-out;
        width: 100%;
        padding: 0;
    }
    #card-and-bars-container {
        width: 100%;
        height: 200px;
        transition: height 0.3s ease-in-out;
        padding: 0;
    }
}

#loading_text
{
    margin: auto;
    padding: 1.5em;
    color: gray;
}

.canvas {
    width: 100px;
    background-color: #e5e5e5;
    margin-bottom: 1em;
    position: relative;
}

.bucket_staging_area
{
    position: absolute;
    margin: 0px;
    border-radius: 8px;
    border: 2px dotted gray;
}

.bucket_count_div
{
    position: absolute;
    margin: 0px;
    border: 0px;
    padding: 5px;
    padding-right: 7px;
    text-align: right;
    font-size: 10px;
    color: grey;
}

.bucket_clock_div
{
    position: absolute;
    margin: 0px;
    border: 0px;
    font-size: 0.8em;;
    color: grey;;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px 10px; /* Adjust as per design requirements */
    background-color: #f5f5f5; /* Background color of the navbar, adjust if needed */
    border-bottom: 1px solid #e0e0e0;
}

#info {
    text-align: center;
    flex-grow: 1; /* Makes sure the info is centered between the icons */
    color: #9e9e9e;
    font-size: 0.8rem;
}

.menu-toggle {
    cursor: pointer;
    font-size: 1rem; /* Adjust the icon size if necessary */
}

.card {
    flex: 1;
}

.visibility-div {
    display: none;
    padding-left: 1rem;
}

.card-controls {
    display: flex;
    justify-content: space-between;
}

.undo-icon, .remove-icon {
    cursor: pointer;
    font-size: 1em;
    color: grey;
    background: transparent;
    border: none;
    padding: 0;
}

.undo-icon:hover, .remove-icon:hover {
    color: darkgrey;
}

#bottom-bar {
    padding: 0.3em 0.7em;
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
}

.btn {
    flex: 1;
    padding: 0.6em 0;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9em;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.action-buttons {
    display: flex;
    gap: 15px; /* To provide some separation between the buttons */
    width: 100%;
}

.pass-btn {
    background-color: #4caf50;
    color: white;
    margin-right: 0.3em; /* Separation between pass and fail button */
}

.fail-btn {
    background-color: #f44336;
    color: white;
    margin-left: 0.3em; /* Separation between fail and pass button */
}

/* In addition to opacity, the action-buttons need visibility settings so that the user cannot click the links. */
.action-buttons {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.action-buttons.reveal-active {
    opacity: 1;
    visibility: visible;
}

.menu {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -100%;  /* Start off the screen */
    width: 700px;
    max-width: 90%;
    background-color: white;
    border-left: 1px solid #9e9e9e;
    transition: right 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.menu.menu-open {
    right: 0;
}

.menu-header .btn-close {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('path_to_your_close_icon.png') no-repeat center;
    border: none;
    cursor: pointer;
}

.menu-body {
    padding: 15px;
}

#menu ul {
    list-style-type: none; /* Removes bullet points */
    padding: 0; /* Resets default padding */
    margin: 0; /* Resets default margin */
}

#menu li {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0; /* Adds a subtle border between items */
}

#menu li a {
    text-decoration: none; /* Removes underline */
    color: #333;
    font-size: 1em;
    display: block; /* Makes the entire list item area clickable */
}

#menu li a:hover {
    color: #007BFF; /* Blue color on hover; adjust as needed */
}

#menu-close-button {
    position: absolute;
    top: 10px; 
    right: 10px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 50%; /* Makes the button round */
    width: 30px; 
    height: 30px;
    font-size: 1.5em; /* Increase font size for a larger X */
    z-index: 10;
    line-height: 24px; /* Vertically center the X; adjust as needed */
    text-align: center;
}

#menu-close-button:hover {
    background-color: #e0e0e0; /* Slightly darker background on hover */
    cursor: pointer; 
}

.deck-tree-card .card-body {
    word-wrap: break-word;
    font-size: 0.9rem;
}
