/* Global Styles */ * { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; } body { background-color: #f0f8ff; color: #333; } /* Header */ header { background-color: #FFD700; /* A medium yellow shade for eye comfort */ color: #333333; /* Dark gray text color for better readability */ padding: 0.8em; /* Reduced padding to decrease header height */ text-align: center; font-size: 1.2em; /* Slightly smaller font size */ font-weight: bold; box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1); /* Reduced shadow to match header size */ position: relative; border-bottom: 2px solid #E0C200; /* Subtle border for a more refined look */ } /* Mobile Menu Button */ .menu-button { display: none; background: none; border: none; color: white; font-size: 1.5em; position: absolute; top: .8em; left: .3em; /* Move to the left */ cursor: pointer; z-index: 2; /* Ensure it's above the sidebar */ } .menu-button:focus { outline: none; } /* Layout */ .container { display: flex; margin-top: 1em; flex-wrap: wrap; } /* Sidebar */ /* .sidebar { width: 20%; background-color: #e6eff7; padding: 1em; border-right: 2px solid #c9e3fa; transition: transform 0.3s ease-in-out; position: relative; z-index: 1; } */ .sidebar { width: 20%; background-color: #e6eff7; padding: 1em; border-right: 2px solid #c9e3fa; transition: transform 0.3s ease-in-out; position: relative; z-index: 1; max-height: 100vh; /* Limit sidebar height to the viewport height */ overflow-y: auto; /* Enable vertical scrolling */ } .sidebar.hidden { transform: translateX(-100%); } .sidebar h2 { color: #4b6cb7; margin-bottom: 1em; font-size: 1.5em; text-align: center; } .sidebar ul { list-style: none; } .sidebar ul li { padding: 0.7em; cursor: pointer; color: #333; font-size: 1.1em; border-radius: 5px; transition: background-color 0.3s, color 0.3s; } .sidebar ul li:hover { background-color: #c9e3fa; color: #4b6cb7; font-weight: bold; } /* Sidebar Toggle for Mobile */ .sidebar.shown { transform: translateX(0); } .charcha-button { width: 100%; padding: 10px; margin-bottom: 15px; font-size: 16px; background-color: #4CAF50; color: white; border: none; cursor: pointer; } .charcha-button:hover { background-color: #45a049; } /* Main Content Area */ .main { width: 80%; padding: 1em 2em; } /* Responsive Styles */ @media (max-width: 768px) { .menu-button { display: inline; /* Show mobile menu button */ } .sidebar { width: 50%; transform: translateX(-100%); /* Hidden initially */ position: fixed; top: 0; left: 0; height: 100vh; z-index: 1; background-color: #e6eff7; transition: transform 0.3s ease-in-out; } .main { width: 100%; padding: 1em; } .content-blocks { flex-direction: column; gap: 1em; } .sloke-block, .video-block { flex: 0 1 100%; /* Stack them on top of each other */ } /* Sidebar toggle class for when it's shown */ .sidebar.shown { transform: translateX(0); } } /* Content Blocks */ .content-blocks { display: flex; gap: 1.5em; margin-bottom: 1em; flex-wrap: wrap; } /* Slok Block */ .sloke-block { flex: 0 1 48%; /* Set to 48% to take a bit less than half of the container */ display: flex; flex-direction: column; background-color: #e8e8e8; padding: 10px; border-radius: 8px; overflow: hidden; } /* Video Block */ .video-block { flex: 0 1 48%; /* Set to 48% to take a bit less than half of the container */ background-color: #fdfdfd; padding: 1.5em; border-radius: 8px; box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); } .sloke-block h3, .video-block h3 { margin-bottom: 1em; font-size: 1.5em; color: #4b6cb7; } .video-block iframe { width: 100%; height: 400px; border-radius: 5px; border: none; } /* Sloke List */ .sloke-block ul { list-style: none; } .sloke-block ul li { margin-bottom: 1em; display: flex; align-items: center; gap: 10px; } #slokeContent { flex: 1; overflow-y: auto; max-height: 400px; } /* Sloke Text */ .sloke-text { font-size: 1.1em; line-height: 1.6; color: #6b4b36; font-weight: bold; } /* Speak Button */ .speak-button { background-color: #4b6cb7; color: white; border: none; border-radius: 3px; padding: 0.4em 0.8em; cursor: pointer; font-size: 0.9em; transition: background-color 0.3s; } .speak-button:hover { background-color: #3a559f; } /* Transcript Block */ .transcript-block { margin-top: 1.5em; background-color: #fdfdfd; padding: 1.5em; border-radius: 8px; box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); } .transcript-block h3 { font-size: 1.5em; color: #4b6cb7; margin-bottom: 1em; } .transcript-text { font-size: 1em; line-height: 1.8; color: #333; } #playAllButton, #playPauseButton { display: inline-block; margin-right: 10px; /* Adds spacing between buttons */ } .audio-container { display: flex; /* Use flexbox for layout */ align-items: center; /* Center items vertically */ justify-content: flex-start; /* Align items to the left */ margin-top: 20px; /* Space above the audio section */ } .play-all-button { background-color: #4CAF50; /* Green background color */ color: white; /* White text color */ border: none; /* No border */ padding: 10px 20px; /* Padding for the button */ font-size: 16px; /* Font size */ cursor: pointer; /* Pointer cursor on hover */ border-radius: 5px; /* Rounded corners */ transition: background-color 0.3s; /* Smooth transition for hover effect */ margin-right: 20px; /* Space between the button and audio player */ } .play-all-button:hover { background-color: #45a049; /* Darker green on hover */ } #audioPlayer { width: 300px; /* Width of the audio player */ } .highlight { color: red; /* Highlight color */ font-weight: bold; } /* ########################################## */ #shastraList { list-style-type: none; padding: 0; margin: 0; } .main-group { font-weight: bold; cursor: pointer; margin: 10px 0; } .skanda-group { font-weight: bold; margin-left: 15px; cursor: pointer; } .chapter-item { margin-left: 30px; cursor: pointer; } .nested-list { list-style-type: none; padding: 0; margin: 0; } .main-group:hover, .skanda-group:hover, .chapter-item:hover { color: #007bff; } .chapter-item { padding: 5px 0; } .main-group::before, .skanda-group::before { content: '► '; display: inline-block; transition: transform 0.2s ease; } .main-group.open::before, .skanda-group.open::before { content: '▼ '; }