| |
| * { |
| margin: 0; |
| padding: 0; |
| box-sizing: border-box; |
| font-family: Arial, sans-serif; |
| } |
|
|
| body { |
| background-color: #f0f8ff; |
| color: #333; |
| } |
|
|
| |
| header { |
| background-color: #FFD700; |
| color: #333333; |
| padding: 0.8em; |
| text-align: center; |
| font-size: 1.2em; |
| font-weight: bold; |
| box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1); |
| position: relative; |
| border-bottom: 2px solid #E0C200; |
| } |
|
|
|
|
| |
| .menu-button { |
| display: none; |
| background: none; |
| border: none; |
| color: white; |
| font-size: 1.5em; |
| position: absolute; |
| top: .8em; |
| left: .3em; |
| cursor: pointer; |
| z-index: 2; |
| } |
|
|
| .menu-button:focus { |
| outline: none; |
| } |
|
|
| |
| .container { |
| display: flex; |
| margin-top: 1em; |
| flex-wrap: wrap; |
| } |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| .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; |
| overflow-y: auto; |
| } |
|
|
| .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.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 { |
| width: 80%; |
| padding: 1em 2em; |
| } |
|
|
| |
| @media (max-width: 768px) { |
| .menu-button { |
| display: inline; |
| } |
|
|
| .sidebar { |
| width: 50%; |
| transform: translateX(-100%); |
| 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%; |
| } |
| |
| |
| .sidebar.shown { |
| transform: translateX(0); |
| } |
| } |
|
|
| |
| .content-blocks { |
| display: flex; |
| gap: 1.5em; |
| margin-bottom: 1em; |
| flex-wrap: wrap; |
| } |
|
|
| |
| .sloke-block { |
| flex: 0 1 48%; |
| display: flex; |
| flex-direction: column; |
| background-color: #e8e8e8; |
| padding: 10px; |
| border-radius: 8px; |
| overflow: hidden; |
| } |
|
|
| |
| .video-block { |
| flex: 0 1 48%; |
| 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-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 { |
| font-size: 1.1em; |
| line-height: 1.6; |
| color: #6b4b36; |
| font-weight: bold; |
| } |
|
|
| |
| .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 { |
| 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; |
| } |
|
|
| .audio-container { |
| display: flex; |
| align-items: center; |
| justify-content: flex-start; |
| margin-top: 20px; |
| } |
|
|
| .play-all-button { |
| background-color: #4CAF50; |
| color: white; |
| border: none; |
| padding: 10px 20px; |
| font-size: 16px; |
| cursor: pointer; |
| border-radius: 5px; |
| transition: background-color 0.3s; |
| margin-right: 20px; |
| } |
|
|
| .play-all-button:hover { |
| background-color: #45a049; |
| } |
|
|
| #audioPlayer { |
| width: 300px; |
| } |
|
|
| .highlight { |
| color: red; |
| 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: '▼ '; |
| } |
|
|
|
|