body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    /* overflow: hidden; /* Optional: Prevents scrollbars on the main body if iframe handles scrolling */
}

/* Styles for index.html - the shell page */
.main-content-area {
    /* Adjust padding to account for the potential width of the expanded menu */
    /* Or, use JavaScript to adjust padding when menu expands/collapses */
    padding-left: 10px; /* Minimal padding when menu is collapsed */
    /* If menu tab is 40px, you might want padding-left: 50px; or so */
    /* This will be dynamic if the menu pushes content, or fixed if menu overlays */
    margin-left: 50px; /* If tab is 40px wide, give some space */
    height: 100vh; /* Make it full viewport height */
    box-sizing: border-box;
}

#content-frame {
    width: 100%;
    height: 100%; /* Fill the .main-content-area */
    border: none; /* Remove default iframe border */
}


/* Styles for content pages (like astrology_tool.html) */
/* The .container class will be used inside the iframe content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    /* background-color: #f5f5f5;  Ensure iframe content can have its own background if needed */
}

/* Header inside content pages */
.container header { /* Be more specific if needed */
    text-align: center;
    margin-bottom: 30px;
}

.container header h1 {
    color: #2c3e50;
}

/* Main content layout within content pages */
.container main { /* Be more specific if needed */
    display: flex;
    gap: 30px;
}

.selection-panel {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.result-panel {
    flex: 2;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

button:hover {
    background-color: #2980b9;
}

#result-content {
    min-height: 200px;
    padding: 10px;
}

/* START: Floating Side Menu Styles (No changes needed here) */
#side-menu {
    position: fixed;
    top: 50px;
    width: 200px; 
    left: -200px; 
    background-color: #2c3e50;
    color: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

#side-menu.expanded {
    left: 0;
}

#menu-tab {
    position: absolute;
    top: 0;             
    left: 100%; 
    width: 40px;
    height: 50px;
    background-color: #555;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    font-size: 20px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2); 
}

#menu-tab:hover {
    background-color: #666;
}

.menu-content {
    padding: 20px; 
}

.menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-content ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #444;
    transition: background-color 0.2s ease;
}

.menu-content ul li:last-child a {
    border-bottom: none;
}

.menu-content ul li a:hover {
    background-color: #4a4a4a;
    padding-left: 5px;
}
/* END: Floating Side Menu Styles */


@media (max-width: 768px) {
    /* This rule was for the astrology tool's main element. 
       It should still apply within astrology_tool.html */
    .container main { /* Or a more specific selector if needed */
        flex-direction: column;
    }

    .main-content-area {
        /* On smaller screens, you might want the menu to overlay fully or have less margin */
        margin-left: 45px; /* Adjust as needed */
    }
}
