/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header with title space */
header {
    margin: 0;
    padding: 5px 0;
    position: relative;
    z-index: 10;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 0 0 10px 10px;
}

h1 {
    margin: 0;
    flex-grow: 1;
    text-align: center;
    color: white;
}

/* Logo as menu button */
#logo {
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s;
}

#logo:hover {
    transform: scale(1.1);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    bottom: 0;
    width: 250px;
    background: #000000;
    overflow-y: auto;
    padding: 10px;
    transition: left 0.3s ease;  /* Smoother toggle animation */
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    z-index: 20;  /* Higher to overlay content when expanded */
}

.sidebar.expanded {
    left: 0;
}

.nav-dropdown ul {
    list-style: none;
    padding: 0;
}

.nav-dropdown li {
    margin: 5px 0;
    border-bottom: 1px solid #ddd;
}

.group-btn {
    width: 100%;
    text-align: left;
    background: #e0e0e0;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-weight: bold;
}

.group-btn:hover {
    background: #d0d0d0;
}

/* Tree container */
#tree-container {
    margin-top: -20px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

#tree-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;  /* Centers the image horizontally */
}

/* Audio toggle */
#audio-toggle {
    margin-left: 10px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #3b7560;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#audio-toggle:hover {
    background-color: #3b7560;
}
.quick-img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.explanation {
    text-align: center;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;  /* Higher to ensure front of image/sidebar */
}

.modal-content {
    background: rgb(255, 255, 255);
    color: #070707;/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header with title space */
header {
    margin: 0;
    padding: 5px 0;
    position: relative;
    z-index: 10;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 0 0 10px 10px;
}

h1 {
    margin: 0;
    flex-grow: 1;
    text-align: center;
    color: white;
}

/* Logo as menu button */
#logo {
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s;
}

#logo:hover {
    transform: scale(1.1);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    bottom: 0;
    width: 250px;
    background: #040404;
    overflow-y: auto;
    padding: 10px;
    transition: left 0.3s ease;  /* Smoother toggle animation */
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    z-index: 20;  /* Higher to overlay content when expanded */
}

.sidebar.expanded {
    left: 0;
}

.nav-dropdown ul {
    list-style: none;
    padding: 0;
}

.nav-dropdown li {
    margin: 5px 0;
    border-bottom: 1px solid #ddd;
}

.group-btn {
    width: 100%;
    text-align: left;
    background: #e0e0e0;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-weight: bold;
}

.group-btn:hover {
    background: #d0d0d0;
}

.clean-sub {
    padding-left: 15px;
    background: #f9f9f9;
    border-left: 2px solid #3b7560;
}

.clean-sub li {
    padding: 5px 0;
    font-size: 0.9em;
}

/* Tree container */
#tree-container {
    margin-top: -20px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

#tree-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;  /* Centers the image horizontally */
}

/* Audio toggle */
#audio-toggle {
    margin-left: 10px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #3b7560;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#audio-toggle:hover {
    background-color: #3b7560;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    background: rgba(252, 250, 250, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;  /* Higher to ensure front of image/sidebar */
}

.modal-content {
    background: rgb(16, 16, 16);
    color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
}

.close {
    float: right;
    cursor: pointer;
}

/* Modal expansion */
.expand-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #000000;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 5px;
}

.expand-btn:hover {
    background: #2a5847;
}

.modal.expanded {
    height: 80%;
    top: 10%;
}

/* Table styling */
.messaging-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9em;
    text-align: left;
}

.messaging-table th,
.messaging-table td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: top;
}

.messaging-table th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
}

.messaging-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.messaging-table tr:hover {
    background-color: #f1f1f1;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar.expanded {
        left: 0;
    }
    #tree-container {
        margin-left: 0;
        width: 100%;
    }
    #tree-image {
        max-width: 90%;
    }
}

area {
    cursor: pointer;
};
    padding: 20px;
    border-radius: 5px;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
}

.close {
    float: right;
    cursor: pointer;
}

/* Modal expansion */
.expand-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #3b7560;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 5px;
}

.expand-btn:hover {
    background: #2a5847;
}

.modal.expanded {
    height: 80%;
    top: 10%;
}

/* Table styling */
.messaging-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9em;
    text-align: left;
}

.messaging-table th,
.messaging-table td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: top;
}

.messaging-table th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
}

.messaging-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.messaging-table tr:hover {
    background-color: #f1f1f1;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar.expanded {
        left: 0;
    }
    #tree-container {
        margin-left: 0;
        width: 100%;
    }
    #tree-image {
        max-width: 90%;
    }
}

area {
    cursor: pointer;
}