@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap'); .notebook-container { width: 100%; height: 95vh; display: flex; justify-content: center; align-items: center; background-color: #e0e0e0; font-family: 'Merriweather', serif; position: relative; } .book { display: flex; justify-content: center; align-items: center; perspective: 1500px; } .page { position: relative; width: 50%; padding-bottom: 70.7%; background-color: #fffbf0; border: 1px solid #e0e0e0; box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); animation: fadeIn 0.5s ease-in-out; display: flex; justify-content: center; align-items: center; } .page-inner { position: absolute; top: 0; bottom: 0; left: 0; right: 0; padding: 2em; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; } .page-content { margin: 10px; flex-grow: 1; font-size: 1.2vw; line-height: 1.6; } .notebook-header, .notebook-footer { text-align: center; font-size: 0.8rem; color: #888; } .notebook-cover { position: relative; width: 50%; padding-bottom: 70.7%; /* 50% * 1.414 */ background-color: #d2b48c; /* Light Brown */ display: flex; justify-content: center; align-items: center; font-size: 2rem; color: white; font-weight: bold; border-left: 2px solid rgba(0, 0, 0, 0.1); } .notebook-cover .page-inner h2 { border-bottom: 2px solid rgba(255, 255, 255, 0.5); padding-bottom: 0.5rem; margin-bottom: 1rem; } .notebook-cover::before, .notebook-cover::after { content: ''; position: absolute; top: 0; bottom: 0; width: 2px; background-color: rgba(0, 0, 0, 0.1); } .notebook-cover::before { left: 10px; } .notebook-cover::after { left: 20px; } .clickable-edge { position: absolute; top: 0; bottom: 0; width: 15%; cursor: pointer; display: flex; justify-content: center; align-items: center; color: #333; transition: color 0.3s; z-index: 10; } .clickable-edge:hover { color: #000; } .notebook-cover .author, .notebook-cover .date { font-size: 1rem; font-weight: normal; position: absolute; bottom: 2rem; right: 2rem; color: #5a4d3c; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); } .notebook-cover .author { bottom: 4rem; } .clickable-edge.left { left: -5%; } .clickable-edge.right { right: -5%; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .slider-container { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); width: 50%; max-width: 500px; text-align: center; } .page-number-display { margin-top: 0.5rem; font-size: 0.9rem; color: #555; } .slider { -webkit-appearance: none; width: 100%; height: 15px; border-radius: 5px; background: #d3d3d3; outline: none; opacity: 0.7; -webkit-transition: 0.2s; transition: opacity 0.2s; border: 1px solid #888; } .slider:hover { opacity: 1; } .slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #5a4d3c; cursor: pointer; border: 1px solid #333; } .slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #5a4d3c; cursor: pointer; border: 1px solid #333; } @media (max-width: 1279px) { .book { width: min(90vw, 90vh / 1.414); height: calc(min(90vw, 90vh / 1.414) * 1.414); } .page, .notebook-cover { width: 100%; height: 100%; } .slider-container { width: 80%; } .page-content { font-size: 1.2rem; } } @media (min-width: 1280px) { .book { width: min(80vw, 80vh * 1.414); height: calc(min(80vw, 80vh * 1.414) / 1.414); } .page-content { font-size: 1.1rem; } }