/* NYT Style: Basic reset and main font */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Times New Roman', Times, serif; /* Classic serif font */ background: transparent; height: 100vh; display: flex; justify-content: center; align-items: center; overflow: hidden; } .hidden { display: none !important; } /* --- Main Newspaper Container --- */ #newspaper-container { width: 90%; height: 90%; background: #fdfdfa; border: 1px solid #ccc; display: none; flex-direction: column; overflow: hidden; overflow-x: hidden; position: relative; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); } #newspaper-container.hidden { display: none !important; } #newspaper-container.full-article-mode { overflow-x: hidden; overflow-y: hidden; } /* --- NYT Style Header --- */ .newspaper-header { background: #fdfdfa; color: #000000; padding: 10px 30px; text-align: center; border-bottom: 2px solid #000000; position: relative; } /* Main title (Masthead) */ .newspaper-header h1 { font-family: 'UnifrakturCook', cursive; /* New font for NYT look */ font-size: 4.5rem; /* Generous size */ font-weight: 700; color: #000000; margin: 0; letter-spacing: 1px; line-height: 1; } /* Details under title (date, volume, price) */ .header-details { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; margin-top: 5px; border-top: 1px solid #000; border-bottom: 1px solid #000; font-family: 'Arial', sans-serif; font-size: 0.8rem; color: #333; text-transform: uppercase; } /* --- Content and Pages --- */ .newspaper-content { flex: 1; padding: 20px 0; /* Removed side padding, handled by pages */ overflow: hidden; /* Hidden scrollbar, handled by internal pages */ background: #fdfdfa; } .page-container { width: 100%; height: 100%; position: relative; } .page { background: #fdfdfa; position: absolute; width: 50%; height: 100%; box-shadow: none; transition: transform 0.8s ease-in-out; } .left-page { left: 0; top: 0; transform-origin: right center; z-index: 2; } .right-page { right: 0; top: 0; transform-origin: left center; z-index: 1; } .page-inner { padding: 0 25px; /* Padding to space text from borders */ height: 100%; overflow-y: auto; } /* When article is expanded, remove width limitations */ .page-inner.full-article-view { padding: 0; width: 100% !important; max-width: none !important; overflow-x: hidden; word-wrap: break-word; overflow-wrap: break-word; height: 100vh; margin: 0; } .page-spine { position: absolute; left: 50%; top: 0; width: 3px; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.15), rgba(0,0,0,0) 80%); transform: translateX(-1.5px); z-index: 10; } /* --- NYT Style: Column Layout for Articles --- */ .articles-container { display: block; height: 100%; width: 100%; column-count: 2; column-gap: 25px; column-rule: 1px solid #eee; } /* When viewing expanded article, remove columns */ .articles-container.full-article-view { width: 100% !important; max-width: none !important; column-count: 1 !important; column-gap: 0 !important; column-rule: none !important; height: 100vh; overflow-y: auto; } /* Single article */ .article { border-bottom: 1px solid #ddd; padding-bottom: 15px; margin-bottom: 15px; position: relative; break-inside: avoid; max-height: 39vh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; } .article .article-content { position: relative; flex: 1 1 auto; } .article .fade-gradient { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(to bottom, rgba(253,253,250,0), #fdfdfa 90%); pointer-events: none; z-index: 2; } .read-more-btn { position: absolute; right: 15px; bottom: 10px; z-index: 3; background: #fff; border: 1px solid #bbb; border-radius: 4px; padding: 2px 10px; font-size: 0.9rem; color: #333; cursor: pointer; transition: background 0.2s, color 0.2s; opacity: 0.85; } .read-more-btn:hover { background: #222; color: #fff; opacity: 1; } .article:last-child { border-bottom: none; margin-bottom: 0; } .article-title { font-family: 'Georgia', serif; font-size: 1.6rem; /* Larger titles */ font-weight: bold; color: #000000; margin-bottom: 5px; line-height: 1.1; cursor: pointer; } .article-title:hover { color: #555; } .article-meta { font-family: 'Helvetica', 'Arial', sans-serif; font-size: 0.7rem; color: #555; margin-bottom: 10px; text-transform: uppercase; } .article-author { font-weight: bold; } .article-job { display: none; /* Hidden for cleaner look */ } /* NYT Style: Justified article body */ .article-content { font-family: 'Times New Roman', Times, serif; font-size: 0.9rem; line-height: 1.4; color: #111; text-align: justify; /* Justified text */ } .article-content p { text-indent: 1.5em; /* First line indent */ margin: 0; } /* Styles for article images */ .article-image { text-align: center; max-width: 500px; overflow: hidden; } .article-image img { max-width: 150px; max-height: 150px; object-fit: cover; } /* Delete Button - More sober style */ .delete-article-btn { position: absolute; top: 0px; right: 0px; background: #333; color: #fff; border: none; border-radius: 4px; width: 20px; height: 20px; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; /* Hidden by default */ transition: opacity 0.2s ease; } .article:hover .delete-article-btn { opacity: 1; /* Appears only on article hover */ } .delete-article-btn:hover { background: #c00; } /* --- Navigation Controls --- */ .newspaper-controls { background: #fff; padding: 10px 30px; display: flex; justify-content: space-between; align-items: center; border-top: 2px solid #000; } .control-btn, .close-btn { background: transparent; color: #000; border: 1px solid #000; padding: 8px 16px; cursor: pointer; font-size: 0.8rem; transition: all 0.2s ease; font-family: 'Helvetica', sans-serif; text-transform: uppercase; } .control-btn:hover, .close-btn:hover { background: #000; color: #fff; } .control-btn:disabled { background: #eee; color: #aaa; border-color: #ccc; cursor: not-allowed; } #page-indicator { font-family: 'Helvetica', sans-serif; font-size: 0.9rem; font-weight: bold; } /* --- Full Article View --- */ .full-article { padding: 30px; height: 100%; overflow-y: auto; overflow-x: hidden; width: 100%; max-width: none; column-count: 1; column-width: auto; word-wrap: break-word; overflow-wrap: break-word; box-sizing: border-box; } /* When articles container is in expanded mode, full-article takes full width */ .articles-container.full-article-view .full-article { width: 100%; max-width: none; padding: 30px 20px; margin: 0; height: 100vh; overflow-y: auto; } .article-title-full { font-family: 'Georgia', serif; font-size: 2.8rem; font-weight: bold; color: #000000; margin-bottom: 25px; line-height: 1.2; text-align: center; border-bottom: 2px solid #000; padding-bottom: 15px; } .article-content-full { font-family: 'Times New Roman', Times, serif; font-size: 1.2rem; line-height: 1.8; color: #111; text-align: justify; margin-top: 25px; max-width: none; width: 100%; word-wrap: break-word; overflow-wrap: break-word; } .article-content-full p { margin-bottom: 25px; text-indent: 2em; max-width: none; word-wrap: break-word; overflow-wrap: break-word; } .back-to-newspaper-btn { background: #333; color: #fff; border: none; padding: 10px 20px; cursor: pointer; font-size: 0.9rem; text-transform: uppercase; margin-top: 30px; } .back-to-newspaper-btn:hover { background: #000; } /* Custom scrollbar */ .page-inner::-webkit-scrollbar { width: 6px; } .page-inner::-webkit-scrollbar-track { background: #f1f1f1; } .page-inner::-webkit-scrollbar-thumb { background: #ccc; } .page-inner::-webkit-scrollbar-thumb:hover { background: #999; } /* --- Responsive Design --- */ @media (max-width: 1366px) { .articles-container { column-count: 2; /* 2 columns for medium screens */ } .newspaper-header h1 { font-size: 3.5rem; } } @media (max-width: 768px) { .articles-container { column-count: 1; /* 1 column for small screens */ } .newspaper-header h1 { font-size: 2.5rem; } .header-details { font-size: 0.6rem; flex-direction: column; gap: 5px; } } /* ========== Article Creation Section (Updated NYT Style) ========== */ #article-creator { width: 95vw; max-width: 900px; /* Reduced width for more readable form */ height: 90vh; background: #fdfdfa; border: 1px solid #ccc; display: none; flex-direction: column; overflow: hidden; position: relative; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } #article-creator.hidden { display: none !important; } .creator-container { width: 100%; height: 100%; display: flex; flex-direction: column; background: #fdfdfa; } .creator-header { background: #fdfdfa; color: #000000; padding: 15px 30px; text-align: center; border-bottom: 2px solid #000000; } .creator-header h1 { font-family: 'UnifrakturCook', cursive; /* Same font as newspaper */ font-size: 3rem; font-weight: 700; color: #000000; margin-bottom: 5px; line-height: 1; } .creator-subtitle { font-family: 'Helvetica', 'Arial', sans-serif; font-size: 0.8rem; color: #666666; text-transform: uppercase; letter-spacing: 1px; } .creator-form { flex: 1; padding: 30px; overflow-y: auto; background: #fdfdfa; } .form-group { margin-bottom: 20px; } .form-group label { display: block; font-family: 'Georgia', serif; /* Serif font for labels */ font-size: 0.9rem; font-weight: bold; color: #000000; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ccc; /* Thinner border */ border-radius: 0; /* No rounded corners */ font-family: 'Times New Roman', Times, serif; font-size: 1rem; background: #ffffff; color: #000000; transition: border-color 0.2s ease; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #000000; box-shadow: none; /* Removed box-shadow */ } .form-group textarea { resize: vertical; min-height: 250px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word; } .form-group input::placeholder, .form-group textarea::placeholder { color: #999999; font-style: italic; font-family: 'Times New Roman', Times, serif; } .creator-controls { display: flex; justify-content: flex-end; /* Buttons to the right */ gap: 15px; padding: 20px 30px; background: #fdfdfa; border-top: 1px solid #ccc; } .publish-btn, .cancel-btn { padding: 10px 25px; border: 1px solid #000; border-radius: 0; font-family: 'Helvetica', 'Arial', sans-serif; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all 0.2s ease; } .publish-btn { background: #000000; color: #ffffff; } .publish-btn:hover { background: #ffffff; color: #000000; } .cancel-btn { background: transparent; color: #000000; } .cancel-btn:hover { background: #eee; color: #000000; } /* Responsive for article creation section */ @media (max-width: 768px) { .creator-header h1 { font-size: 2rem; } .creator-form { padding: 20px; } .creator-controls { justify-content: center; flex-direction: column; gap: 10px; } .publish-btn, .cancel-btn { width: 100%; } }